/* =====================================================================
   VDS Sunucular - Premium Dark Tech News Theme
   vdssunucular.com
   ===================================================================== */

:root {
  --bg:           #050914;
  --bg-2:         #080d1c;
  --card:         #0b1020;
  --card-2:       #0e1428;
  --border:       #1b2440;
  --neon-blue:    #00d9ff;
  --neon-yellow:  #ffd400;
  --purple:       #8b5cf6;
  --green:        #00e6a8;
  --orange:       #ff9f1c;
  --white:        #ffffff;
  --gray:         #9ca3af;
  --gray-2:       #6b7388;
  --radius:       16px;
  --radius-sm:    10px;
  --maxw:         1240px;
  --shadow:       0 12px 40px rgba(0,0,0,.45);
  --glow-blue:    0 0 24px rgba(0,217,255,.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(0,217,255,.10), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(139,92,246,.12), transparent 60%);
  background-attachment: fixed;
}

h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.2; font-weight: 700; }

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--neon-blue); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head .accent { color: var(--neon-blue); }
.section-head a.more { color: var(--gray); font-size: .9rem; font-weight: 600; }
.section-head a.more:hover { color: var(--neon-blue); }

.eyebrow { display:inline-block; font-size:.78rem; letter-spacing:.18em; text-transform:uppercase; color: var(--neon-blue); font-weight:700; margin-bottom:10px; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--gray);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 38px; }
.topbar-left { white-space: nowrap; }
.topbar-right { margin-left: auto; white-space: nowrap; }
.topbar-right a { color: var(--neon-blue); font-weight: 600; }
.topbar-ticker { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-track span { color: var(--gray); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,13,28,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--purple));
  color: #04101a; padding: 8px 12px; border-radius: 10px;
  box-shadow: var(--glow-blue); letter-spacing: .5px;
}
.logo-text { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.2rem; line-height: 1; }
.logo-text small { display: block; font-size: .62rem; color: var(--gray); font-weight: 500; letter-spacing: .12em; margin-top: 3px; }

.search-box { margin-left: auto; display: flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 4px 4px 4px 18px; width: min(420px, 42vw); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--neon-blue); box-shadow: var(--glow-blue); }
.search-box input { flex: 1; background: transparent; border: none; outline: none; color: var(--white); font-size: .9rem; }
.search-box input::placeholder { color: var(--gray-2); }
.search-box button { background: linear-gradient(135deg, var(--neon-blue), var(--purple)); border: none; border-radius: 24px; width: 38px; height: 38px; cursor: pointer; font-size: .95rem; color: #04101a; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

.main-nav { border-top: 1px solid var(--border); background: rgba(5,9,20,.6); }
.nav-list { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.nav-list a { display: inline-flex; align-items: center; gap: 6px; padding: 13px 14px; font-size: .9rem; font-weight: 600; color: var(--gray); position: relative; }
.nav-list a:hover, .nav-list a.active { color: var(--white); }
.nav-list a.active::after, .nav-list a:hover::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: linear-gradient(90deg, var(--neon-blue), var(--purple)); border-radius: 2px; }
.nav-ico { font-size: .95rem; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 360px at 80% 20%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(600px 360px at 10% 80%, rgba(0,217,255,.14), transparent 60%),
    linear-gradient(180deg, #060b1a, #050914);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,217,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,217,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--neon-blue), var(--purple), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--gray); max-width: 680px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 30px; font-weight: 700; font-size: .95rem; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s; }
.btn-primary { background: linear-gradient(135deg, var(--neon-blue), var(--purple)); color: #04101a; box-shadow: var(--glow-blue); }
.btn-primary:hover { transform: translateY(-2px); color: #04101a; box-shadow: 0 0 34px rgba(0,217,255,.55); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--white); }
.btn-ghost:hover { border-color: var(--neon-blue); color: var(--neon-blue); transform: translateY(-2px); }

.hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; position: relative; }
.stat-box { background: rgba(11,16,32,.6); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; transition: border-color .2s, transform .2s; }
.stat-box:hover { border-color: var(--neon-blue); transform: translateY(-3px); }
.stat-box .num { font-family: 'Space Grotesk'; font-size: 1.4rem; font-weight: 700; color: var(--neon-blue); }
.stat-box .lbl { font-size: .76rem; color: var(--gray); margin-top: 4px; }

/* ---------------- CATEGORY CARDS ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s;
}
.cat-card::before { content:''; position:absolute; inset:0; border-radius:var(--radius); padding:1px; background:linear-gradient(135deg, var(--neon-blue), var(--purple)); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .25s; }
.cat-card:hover { transform: translateY(-6px); }
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-ico { font-size: 1.9rem; margin-bottom: 14px; display: inline-block; }
.cat-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cat-card p { color: var(--gray); font-size: .88rem; margin-bottom: 16px; min-height: 48px; }
.cat-card .discover { color: var(--neon-blue); font-weight: 700; font-size: .85rem; }
.cat-card:hover .discover { letter-spacing: .04em; }

/* ---------------- POST CARDS ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(0,217,255,.4); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-cat-tag { position: absolute; top: 12px; left: 12px; background: rgba(5,9,20,.85); border: 1px solid var(--border); color: var(--neon-blue); font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; backdrop-filter: blur(6px); }
.post-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-body h3 a:hover { color: var(--neon-blue); }
.post-body p { color: var(--gray); font-size: .87rem; flex: 1; margin-bottom: 14px; }
.post-meta { display: flex; gap: 14px; font-size: .76rem; color: var(--gray-2); flex-wrap: wrap; align-items: center; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-2); }

/* badge breaking */
.badge-breaking { background: linear-gradient(135deg, var(--orange), #ff5e5e); color:#1a0b00; }

/* ---------------- FEATURED ---------------- */
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.featured-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; display: flex; align-items: flex-end; }
.featured-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-main .overlay { position: relative; width: 100%; padding: 30px; background: linear-gradient(transparent, rgba(5,9,20,.55) 35%, rgba(5,9,20,.96)); }
.featured-main h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 10px 0; }
.featured-main p { color: var(--gray); max-width: 560px; margin-bottom: 12px; }
.featured-side { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, transform .2s; }
.side-item:hover { border-color: rgba(0,217,255,.4); transform: translateX(3px); }
.side-item .thumb { aspect-ratio: 1; background: var(--bg-2); overflow:hidden; }
.side-item .thumb img { width:100%; height:100%; object-fit:cover; }
.side-item .info { padding: 12px 14px 12px 0; display: flex; flex-direction: column; justify-content: center; }
.side-item .info span { font-size: .72rem; color: var(--neon-blue); font-weight: 700; }
.side-item .info h4 { font-size: .92rem; margin-top: 4px; font-family:'Inter'; font-weight:600; }

/* ---------------- POPULAR GUIDES (big + 3 small) ---------------- */
.guides-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.guide-small-list { display: grid; gap: 16px; }
.guide-small { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; transition: border-color .2s; }
.guide-small:hover { border-color: var(--neon-blue); }
.guide-small .rank { width: 64px; height: 64px; display: grid; place-items: center; font-family: 'Space Grotesk'; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, rgba(0,217,255,.12), rgba(139,92,246,.12)); border-radius: var(--radius-sm); color: var(--neon-blue); }
.guide-small h4 { font-size: .95rem; font-family:'Inter'; font-weight:600; }
.guide-small .post-meta { margin-top: 6px; }

/* ---------------- TWO COLUMN LAYOUT (content + sidebar) ---------------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 130px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.widget h3 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget h3 .accent { color: var(--neon-blue); }
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.widget-list li a { display: flex; gap: 12px; align-items: flex-start; }
.widget-list .wnum { color: var(--purple); font-weight: 700; font-family: 'Space Grotesk'; }
.widget-list li h4 { font-size: .88rem; font-family:'Inter'; font-weight: 600; line-height:1.4; }
.widget-list li span { font-size: .72rem; color: var(--gray-2); }

/* ---------------- TAGS ---------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .footer-tags a {
  font-size: .8rem; padding: 7px 13px; border-radius: 20px;
  background: var(--card-2); border: 1px solid var(--border); color: var(--gray); font-weight: 600;
}
.tag-cloud a:hover, .footer-tags a:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

/* ---------------- TECH GUIDES STRIP ---------------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-item { background: linear-gradient(160deg, var(--card), var(--card-2)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; display: flex; gap: 14px; transition: border-color .2s, transform .2s; }
.tech-item:hover { border-color: var(--green); transform: translateY(-3px); }
.tech-item .ti-ico { font-size: 1.5rem; }
.tech-item h4 { font-size: 1rem; margin-bottom: 4px; }
.tech-item p { color: var(--gray); font-size: .82rem; }

/* ---------------- NEWSLETTER ---------------- */
.newsletter {
  margin: 60px 0 0;
  background:
    radial-gradient(500px 220px at 20% 0%, rgba(0,217,255,.16), transparent 60%),
    radial-gradient(500px 220px at 90% 100%, rgba(139,92,246,.18), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 20px; flex-wrap: wrap; }
.newsletter-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.newsletter-text p { color: var(--gray); max-width: 520px; margin-top: 8px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter-form input { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 14px 20px; color: var(--white); outline: none; }
.newsletter-form input:focus { border-color: var(--neon-blue); }
.newsletter-form button { background: linear-gradient(135deg, var(--neon-yellow), var(--orange)); color: #1a1200; border: none; border-radius: 30px; padding: 0 26px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.newsletter-form button:hover { box-shadow: 0 0 24px rgba(255,212,0,.4); }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 50px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-col h3 { font-size: 1rem; margin-bottom: 16px; color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--gray); font-size: .88rem; }
.footer-col ul a:hover { color: var(--neon-blue); }
.footer-about p { color: var(--gray); font-size: .85rem; margin: 14px 0 18px; }
.footer-logo { margin-bottom: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--gray); font-weight: 700; }
.footer-social a:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--gray); font-size: .82rem; text-align: center; }
.footer-bottom strong { color: var(--white); }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb { font-size: .82rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--gray-2); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--neon-blue); }
.breadcrumb li[aria-current] { color: var(--neon-blue); }

/* ---------------- PAGE HEADER ---------------- */
.page-hero { padding: 50px 0 30px; border-bottom: 1px solid var(--border); background: radial-gradient(600px 240px at 80% 0%, rgba(139,92,246,.14), transparent 60%); }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--gray); max-width: 680px; }

/* ---------------- ARTICLE DETAIL ---------------- */
.article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-cover { aspect-ratio: 21/9; overflow: hidden; background: var(--bg-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-inner { padding: 30px; }
.article-head h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin: 8px 0 16px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--gray); padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); align-items: center; }
.article-meta .cat-pill { background: linear-gradient(135deg, rgba(0,217,255,.15), rgba(139,92,246,.15)); border: 1px solid var(--border); color: var(--neon-blue); padding: 5px 13px; border-radius: 20px; font-weight: 700; font-size: .78rem; }
.toc { background: var(--card-2); border: 1px solid var(--border); border-left: 3px solid var(--neon-blue); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 26px; }
.toc strong { display: block; margin-bottom: 10px; font-family: 'Space Grotesk'; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 7px; }
.toc li { counter-increment: toc; font-size: .9rem; }
.toc li.lvl-3 { padding-left: 18px; font-size: .85rem; }
.toc li::before { content: counter(toc) '. '; color: var(--neon-blue); font-weight: 700; }
.toc a { color: var(--gray); }
.toc a:hover { color: var(--neon-blue); }

.article-content { font-size: 1.04rem; color: #d6dbe8; }
.article-content h2 { font-size: 1.5rem; margin: 32px 0 14px; scroll-margin-top: 130px; }
.article-content h3 { font-size: 1.22rem; margin: 26px 0 12px; scroll-margin-top: 130px; }
.article-content p { margin-bottom: 18px; }
.article-content a { color: var(--neon-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--green); }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 22px 0; border: 1px solid var(--border); }
.article-content blockquote { border-left: 3px solid var(--purple); background: var(--card-2); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; color: var(--gray); font-style: italic; }
.article-content pre { background: #04060f; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 22px 0; }
.article-content code { background: var(--card-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-content th { background: var(--card-2); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.share-row a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 24px; border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--gray); }
.share-row a:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.prevnext a { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; transition: border-color .2s; }
.prevnext a:hover { border-color: var(--neon-blue); }
.prevnext span { font-size: .74rem; color: var(--gray-2); }
.prevnext h4 { font-size: .92rem; margin-top: 6px; font-family:'Inter'; font-weight:600; }
.prevnext .next { text-align: right; }

.author-box { display: flex; gap: 16px; align-items: center; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin: 26px 0; }
.author-box .avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--purple)); display: grid; place-items: center; font-weight: 700; color: #04101a; font-size: 1.3rem; }
.author-box .a-name { font-weight: 700; }
.author-box .a-role { font-size: .82rem; color: var(--gray); }

/* ---------------- PAGINATION ---------------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-weight: 600; font-size: .9rem; color: var(--gray); }
.pagination a:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.pagination .current { background: linear-gradient(135deg, var(--neon-blue), var(--purple)); color: #04101a; border-color: transparent; }

/* ---------------- STATIC PAGE / FORM ---------------- */
.prose { font-size: 1.02rem; color: #d6dbe8; }
.prose h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 22px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; display:flex; flex-direction:column; gap:8px; }
.prose a { color: var(--neon-blue); text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
.form-card, .info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--gray); }
.form-control { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--white); font-size: .92rem; outline: none; font-family: inherit; }
.form-control:focus { border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(0,217,255,.12); }
textarea.form-control { min-height: 150px; resize: vertical; }
.info-card .info-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-card .info-row:last-child { border-bottom: none; }
.info-card .info-ico { font-size: 1.3rem; }
.info-card .info-row strong { display: block; font-size: .9rem; }
.info-card .info-row span { font-size: .85rem; color: var(--gray); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--white); padding: 16px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-family: inherit; }
.faq-q::after { content: '+'; color: var(--neon-blue); font-size: 1.4rem; line-height: 1; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; color: var(--gray); padding: 0 20px; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 18px; }

/* flash */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; font-size: .92rem; border: 1px solid var(--border); }
.flash-success { background: rgba(0,230,168,.1); border-color: rgba(0,230,168,.4); color: var(--green); }
.flash-error { background: rgba(255,94,94,.1); border-color: rgba(255,94,94,.4); color: #ff8e8e; }

/* empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .ico { font-size: 3rem; margin-bottom: 12px; }

/* back to top */
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--neon-blue), var(--purple)); color: #04101a; border: none; font-size: 1.3rem; cursor: pointer; z-index: 90; box-shadow: var(--glow-blue); }
.back-to-top[hidden] { display: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .guides-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .search-box { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-2); border-left: 1px solid var(--border); z-index: 200; transition: right .3s; overflow-y: auto; padding-top: 70px; border-top: none; }
  .main-nav.open { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,.6); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { padding: 15px 22px; }
  .nav-list a.active::after, .nav-list a:hover::after { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .cat-grid, .card-grid, .tech-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-left, .topbar-ticker { display: none; }
  .topbar-right { margin: 0 auto; }
  .newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { max-width: none; }
  .prevnext { grid-template-columns: 1fr; }
  .article-inner { padding: 20px; }
  .side-item { grid-template-columns: 70px 1fr; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
