/* GameAi Community — Blizzard-inspired dark theme */
:root {
    --bg: #0a0e1a;
    --bg2: #0f1525;
    --bg3: #151c30;
    --bg4: #1c2540;
    --bg5: #232d4a;
    --border: #1e2a45;
    --border2: #2a3a5c;
    --t1: #e8eaf0;
    --t2: #9da5b8;
    --t3: #5c6580;
    --accent: #4dabf7;
    --accent2: #845ef7;
    --green: #51cf66;
    --red: #ff6b6b;
    --yellow: #ffd43b;
    --orange: #ff922b;
    --pink: #cc5de8;
    --radius: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--t1); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #74c0fc; }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; border: none; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #339af0; color: #fff; }
.btn-purple { background: var(--accent2); color: #fff; }
.btn-purple:hover { background: #7048e8; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--t2); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--t1); }
.btn-danger { background: rgba(255,107,107,.15); color: var(--red); }
.btn-danger:hover { background: rgba(255,107,107,.25); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Ecosystem Nav ── */
.eco-nav { background: rgba(8,10,18,.97); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(30,42,69,.6); padding: 0 1.5rem; position: sticky; top: 0; z-index: 200; }
.eco-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 44px; }
.eco-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--t1); }
.eco-icon { width: 22px; height: 22px; background: linear-gradient(135deg, #4dabf7, #845ef7); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; }
.eco-title { font-weight: 700; font-size: .82rem; }
.eco-badge { background: rgba(255,145,0,.15); color: var(--orange); font-size: .58rem; font-weight: 600; padding: 1px 5px; border-radius: 3px; letter-spacing: .05em; }
.eco-links { display: flex; gap: .15rem; }
.eco-links a { color: var(--t3); font-size: .76rem; font-weight: 500; padding: 4px 7px; border-radius: 4px; transition: all .2s; white-space: nowrap; }
.eco-links a:hover, .eco-links a.active { color: var(--t1); background: rgba(255,255,255,.06); }
.eco-toggle { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 16px; position: relative; padding: 0; z-index: 10002; }
.eco-toggle span { display: block; width: 100%; height: 2px; background: var(--t1); border-radius: 2px; position: absolute; left: 0; transition: all .3s; }
.eco-toggle span:nth-child(1) { top: 0; }
.eco-toggle span:nth-child(2) { top: 7px; }
.eco-toggle span:nth-child(3) { top: 14px; }
.eco-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eco-toggle.open span:nth-child(2) { opacity: 0; }
.eco-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.eco-drawer { position: fixed; top: 0; right: -300px; width: 280px; max-width: 85vw; height: 100vh; background: var(--bg); border-left: 1px solid var(--border); z-index: 10001; transition: right .3s ease; padding: 4rem 1.5rem 2rem; overflow-y: auto; }
.eco-drawer.open { right: 0; }
.eco-drawer a { display: block; padding: .7rem 1rem; color: var(--t3); font-size: .9rem; font-weight: 600; border-radius: 6px; transition: all .2s; margin-bottom: .1rem; }
.eco-drawer a:hover { color: var(--t1); background: rgba(255,255,255,.04); }
.eco-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; }
.eco-backdrop.open { display: block; }

/* ── Main Nav ── */
.main-nav { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 44px; z-index: 150; padding: 0 1.5rem; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 56px; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.nav-logo { font-weight: 900; font-size: 1.2rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-tag { font-size: .65rem; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--border); padding: 1px 6px; border-radius: 3px; }
.nav-links { display: flex; gap: .25rem; margin-left: 1rem; }
.nav-links a { color: var(--t2); font-size: .88rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); transition: all .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--t1); background: rgba(255,255,255,.06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-user { display: flex; align-items: center; gap: .5rem; color: var(--t1); font-size: .85rem; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-sm); transition: all .2s; }
.nav-user:hover { background: rgba(255,255,255,.06); color: var(--t1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; padding: 0; margin-left: auto; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--t1); border-radius: 2px; position: absolute; left: 0; transition: all .3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-mobile { display: none; padding: .5rem 0 1rem; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: .6rem 1rem; color: var(--t2); font-size: .9rem; font-weight: 500; border-radius: var(--radius-sm); }
.nav-mobile a:hover { color: var(--t1); background: rgba(255,255,255,.04); }
.nav-mobile hr { margin: .5rem 0; }

/* ── Layout ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; min-height: 60vh; }

/* ── Hero ── */
.hero { text-align: center; padding: 4rem 0 3rem; }
.hero h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.15; margin-bottom: .75rem; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent), var(--accent2), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--t2); max-width: 600px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: .78rem; color: var(--t3); margin-top: 2px; }

/* ── Cards ── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: all .2s; }
.card:hover { border-color: var(--border2); background: var(--bg3); }
.card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }

/* ── Section Headers ── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.3rem; font-weight: 700; }
.section-head a { font-size: .85rem; color: var(--t3); }
.section-head a:hover { color: var(--accent); }

/* ── Category Cards ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.cat-card { display: flex; gap: 1rem; align-items: flex-start; }
.cat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.cat-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.cat-info h3 a { color: var(--t1); }
.cat-info h3 a:hover { color: var(--accent); }
.cat-info p { font-size: .82rem; color: var(--t3); line-height: 1.4; }
.cat-meta { font-size: .75rem; color: var(--t3); margin-top: .4rem; display: flex; gap: 1rem; }

/* ── Thread List ── */
.thread-list { display: flex; flex-direction: column; gap: .5rem; }
.thread-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); transition: all .15s; }
.thread-row:hover { border-color: var(--border2); background: var(--bg3); }
.thread-row.pinned { border-left: 3px solid var(--yellow); }
.thread-row.locked { opacity: .7; }
.thread-avatar { flex-shrink: 0; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.thread-title a { color: var(--t1); }
.thread-title a:hover { color: var(--accent); }
.thread-meta { font-size: .78rem; color: var(--t3); display: flex; gap: .75rem; flex-wrap: wrap; }
.thread-stats { display: flex; gap: 1.5rem; flex-shrink: 0; text-align: center; }
.thread-stat { display: flex; flex-direction: column; align-items: center; }
.thread-stat .n { font-size: .95rem; font-weight: 700; color: var(--t1); }
.thread-stat .l { font-size: .7rem; color: var(--t3); }
.thread-last { flex-shrink: 0; text-align: right; font-size: .78rem; color: var(--t3); min-width: 90px; }
.thread-last .by { color: var(--t2); }

/* ── Post / Reply ── */
.post { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; }
.post.op { border-color: var(--border2); background: var(--bg3); }
.post.admin-post { border-left: 3px solid var(--accent); background: rgba(77,171,247,.04); }
.post.mod-post { border-left: 3px solid var(--green); background: rgba(81,207,102,.04); }
.post-sidebar { flex-shrink: 0; text-align: center; width: 100px; }
.post-username { font-weight: 700; font-size: .85rem; margin-top: .5rem; display: block; }
.post-username a { color: var(--t1); }
.post-role { margin-top: .25rem; }
.post-info { font-size: .72rem; color: var(--t3); margin-top: .4rem; line-height: 1.5; }
.post-body { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.post-date { font-size: .78rem; color: var(--t3); }
.post-content { font-size: .92rem; line-height: 1.7; color: var(--t2); }
.post-content p { margin-bottom: .75rem; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: .75rem 1rem; background: rgba(77,171,247,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1rem 0; color: var(--t3); font-style: italic; }
.post-content code { background: var(--bg4); padding: 2px 6px; border-radius: 3px; font-size: .85em; font-family: 'JetBrains Mono', monospace; }
.post-content pre { background: var(--bg4); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; margin: 1rem 0; }
.post-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.post-actions button, .post-actions a { background: none; border: none; color: var(--t3); font-size: .8rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all .15s; display: flex; align-items: center; gap: 4px; }
.post-actions button:hover, .post-actions a:hover { color: var(--accent); background: rgba(77,171,247,.1); }
.upvote-btn.voted { color: var(--accent); }

/* ── Blog Cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.blog-card { overflow: hidden; }
.blog-card .cover { height: 180px; background: linear-gradient(135deg, var(--bg4), var(--bg5)); display: flex; align-items: center; justify-content: center; font-size: 3rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 1.25rem; }
.blog-card .body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.blog-card .body h3 a { color: var(--t1); }
.blog-card .body h3 a:hover { color: var(--accent); }
.blog-card .body .excerpt { font-size: .85rem; color: var(--t3); line-height: 1.5; margin-bottom: .75rem; }
.blog-card .body .meta { font-size: .78rem; color: var(--t3); display: flex; gap: 1rem; }

/* ── Blog Post ── */
.blog-article { max-width: 800px; margin: 0 auto; }
.blog-article h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.blog-article .article-meta { color: var(--t3); font-size: .88rem; margin-bottom: 2rem; display: flex; gap: 1rem; align-items: center; }
.blog-article .article-content { font-size: 1rem; line-height: 1.8; color: var(--t2); }
.blog-article .article-content h2 { color: var(--t1); font-size: 1.4rem; margin: 2rem 0 .75rem; }
.blog-article .article-content h3 { color: var(--t1); font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.blog-article .article-content p { margin-bottom: 1rem; }
.blog-article .article-content ul, .blog-article .article-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.blog-article .article-content li { margin-bottom: .5rem; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; }
.badge-admin { background: rgba(77,171,247,.2); color: var(--accent); }
.badge-mod { background: rgba(81,207,102,.2); color: var(--green); }
.badge-pinned { background: rgba(255,212,59,.15); color: var(--yellow); }
.badge-locked { background: rgba(255,107,107,.15); color: var(--red); }
.badge-new { background: rgba(77,171,247,.15); color: var(--accent); }
.badge-cat { padding: 3px 10px; border-radius: 20px; font-size: .72rem; }

/* ── Avatar ── */
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--t2); margin-bottom: .4rem; }
.form-input { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--t1); font-family: inherit; font-size: .9rem; transition: border .2s; outline: none; }
.form-input:focus { border-color: var(--accent); }
textarea.form-input { min-height: 150px; resize: vertical; line-height: 1.6; }
.form-error { color: var(--red); font-size: .82rem; margin-top: .3rem; }
.form-help { color: var(--t3); font-size: .78rem; margin-top: .3rem; }
.form-card { max-width: 480px; margin: 2rem auto; }
.form-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.form-card p { color: var(--t3); margin-bottom: 1.5rem; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .88rem; }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.2); color: var(--red); }
.alert-success { background: rgba(81,207,102,.1); border: 1px solid rgba(81,207,102,.2); color: var(--green); }

/* ── Profile ── */
.profile-header { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.profile-info h1 { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.profile-info .profile-meta { color: var(--t3); font-size: .85rem; margin-top: .4rem; }
.profile-stats { display: flex; gap: 2rem; margin-top: .75rem; }
.profile-stats .stat { text-align: center; }
.profile-stats .stat .n { font-weight: 700; color: var(--t1); }
.profile-stats .stat .l { font-size: .78rem; color: var(--t3); }

/* ── Search ── */
.search-form { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-form input { flex: 1; }

/* ── Pagination ── */
.pagination { display: flex; gap: .25rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; }
.pagination a { background: var(--bg3); border: 1px solid var(--border); color: var(--t2); }
.pagination a:hover { background: var(--bg4); color: var(--t1); }
.pagination span.current { background: var(--accent); color: #fff; }

/* ── Breadcrumbs ── */
.crumbs { font-size: .82rem; color: var(--t3); margin-bottom: 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--t3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border2); }

/* ── Empty state ── */
.empty { text-align: center; padding: 3rem; color: var(--t3); }
.empty .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty h3 { color: var(--t2); margin-bottom: .5rem; }

/* ── Admin ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat { text-align: center; padding: 1.25rem; }
.admin-stat .n { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.admin-stat .l { font-size: .8rem; color: var(--t3); margin-top: .25rem; }

/* ── Footer ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 1.5rem 1rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { font-weight: 900; font-size: 1.3rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: var(--t3); font-size: .85rem; margin-top: .5rem; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 { font-size: .8rem; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--t3); font-size: .85rem; padding: .2rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: .78rem; color: var(--t3); }
.footer-bottom a { color: var(--t3); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .eco-links { display: none; }
    .eco-toggle { display: block; }
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .wrap { padding: 1.25rem 1rem; }
    .cat-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .thread-row { flex-wrap: wrap; }
    .thread-stats { gap: 1rem; }
    .thread-last { display: none; }
    .post { flex-direction: column; gap: .75rem; }
    .post-sidebar { width: auto; display: flex; align-items: center; gap: .75rem; text-align: left; }
    .post-info { display: none; }
    .search-form { flex-direction: column; }
    .profile-header { flex-direction: column; text-align: center; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links { gap: 2rem; }
    .form-card { margin: 1rem auto; }
    .main-nav { top: 44px; }
}


/* === New pages: About, Pricing, Docs === */

.page-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--t2, #888);
  margin: 0;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
.content-section {
  margin-bottom: 2.5rem;
}
.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border, #333);
}
.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.content-section p {
  line-height: 1.7;
  color: var(--t2, #ccc);
}
.content-section ul {
  padding-left: 1.5rem;
  color: var(--t2, #ccc);
}
.content-section ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.content-section pre {
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
.content-section code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}
.content-section a {
  color: var(--accent, #4dabf7);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.feature-card {
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.feature-card h3 {
  margin: 0 0 0.5rem !important;
  font-size: 1.1rem;
}
.feature-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.stat {
  text-align: center;
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 12px;
  padding: 1.5rem 1rem;
}
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent, #4dabf7);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--t2, #888);
}

/* Ecosystem map */
.eco-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.eco-item {
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  padding: 1.25rem;
}
.eco-item.active {
  border-color: var(--accent, #4dabf7);
}
.eco-item h4 { margin: 0 0 0.25rem; }
.eco-item p { font-size: 0.85rem; margin: 0; }

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.pricing-card {
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent, #4dabf7);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent, #4dabf7);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}
.pricing-tier {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent, #4dabf7);
  margin-bottom: 1rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--t2, #888);
}
.pricing-card ul {
  list-style: none;
  padding: 0;
}
.pricing-card ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border, #222);
  font-size: 0.9rem;
  color: var(--t2, #ccc);
}
.pricing-card ul li:last-child { border: 0; }
.pricing-features ul {
  list-style: none;
  padding: 0;
}
.pricing-features li {
  padding: 0.3rem 0;
}

/* Add-on grid */
.addon-grid {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.addon-item.featured {
  border-color: var(--accent, #4dabf7);
}
.addon-name { font-weight: 600; }
.addon-price { color: var(--accent, #4dabf7); font-weight: 700; }
.addon-price small { color: var(--t2, #888); font-weight: 400; }

/* Docs table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.docs-table th, .docs-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #333);
}
.docs-table th {
  font-weight: 600;
  color: var(--t1, #fff);
  background: var(--bg2, #1a1a2e);
}
.docs-table td {
  color: var(--t2, #ccc);
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-accent {
  background: var(--accent, #4dabf7);
  color: #000;
}
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

@media (max-width: 600px) {
  .page-hero h1 { font-size: 1.8rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════
   GAMEAI ENHANCED — More Life Edition
   ═══════════════════════════════════════════ */


/* ── Circuit Board Canvas ── */
#circuitCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-enhanced {
  min-height: 420px;
}

/* Hero Enhancement */
.hero-enhanced { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.hero-enhanced > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.1); }
  50% { box-shadow: 0 0 20px rgba(0,212,255,0.25); }
}

/* Intelligence Pulse */
.pulse-section {
  background: linear-gradient(135deg, rgba(0,212,255,0.03) 0%, rgba(157,78,221,0.03) 100%);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.pulse-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: #51cf66;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #51cf66;
  border-radius: 50%;
  animation: pulse-blink 2s ease-in-out infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(81,207,102,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(81,207,102,0); }
}
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.pulse-card {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.pulse-card:hover {
  background: rgba(0,212,255,0.05);
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-2px);
}
.pulse-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.pulse-num {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--t1), #9d4edd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pulse-label { font-size: 0.75rem; color: var(--t3); margin-top: 0.2rem; }
.pulse-sources {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.pulse-source-label {
  font-size: 0.75rem; color: var(--t3); font-weight: 600;
}
.pulse-source {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 99px;
  font-size: 0.72rem; font-weight: 500;
  color: var(--t2);
  transition: all 0.15s;
}
.pulse-source:hover {
  background: rgba(0,212,255,0.15);
  color: var(--t1);
}

/* Trending Games */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.trending-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--c2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  border-left: 3px solid var(--game-color, var(--t1));
}
.trending-card:hover {
  background: rgba(0,212,255,0.04);
  border-color: var(--game-color, var(--t1));
  transform: translateX(3px);
}
.trending-icon {
  font-size: 1.6rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  flex-shrink: 0;
}
.trending-info { flex: 1; min-width: 0; }
.trending-name {
  font-weight: 700; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trending-meta {
  display: flex; gap: 0.75rem;
  font-size: 0.78rem; color: var(--t3);
  margin-top: 0.2rem;
}
.trending-indicator {
  flex-shrink: 0;
}
.trending-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(81,207,102,0.12);
  color: #51cf66;
  border-radius: 50%;
  font-weight: 700; font-size: 0.9rem;
}

/* Most Viewed */
.popular-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.popular-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--c2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.popular-row:hover {
  background: rgba(0,212,255,0.04);
  border-color: var(--t1);
}
.popular-rank {
  font-size: 1.1rem; font-weight: 800;
  color: var(--t1);
  width: 32px; text-align: center; flex-shrink: 0;
}
.popular-icon {
  font-size: 1.4rem; flex-shrink: 0;
}
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-weight: 600; font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.popular-meta {
  display: flex; gap: 0.75rem;
  font-size: 0.75rem; color: var(--t3);
  margin-top: 0.15rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(157,78,221,0.06) 100%);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--t1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
}
.cta-section p {
  color: var(--t3); font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-actions {
  display: flex; gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .pulse-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-section { padding: 2rem 1rem; }
}

/* ══ Live Stats Ticker ══ */
#gg-ticker .sb-shell {
    position: relative;
    background: rgba(7,7,15,0.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}
#gg-ticker .sb-scanlines {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(255,255,255,0.007) 2px,rgba(255,255,255,0.007) 4px);
    pointer-events: none; z-index: 1;
}
@keyframes sb-neon-pulse { 0%,100%{opacity:0.7;} 50%{opacity:1;} }
#gg-ticker .sb-neon-top {
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,transparent,#00d4ff 25%,#bf5fff 50%,#00d4ff 75%,transparent);
    opacity: 0.7; animation: sb-neon-pulse 3s ease infinite;
}
#gg-ticker .sb-neon-bot {
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,transparent,#bf5fff 25%,#00d4ff 50%,#bf5fff 75%,transparent);
    opacity: 0.35; animation: sb-neon-pulse 3s ease infinite 1.5s;
}
#gg-ticker .sb-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 0; height: 52px; position: relative; z-index: 2;
}
#gg-ticker .sb-brand {
    display: flex; align-items: center; gap: 8px;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
    height: 100%; flex-shrink: 0;
}
#gg-ticker .sb-brand-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00d4ff; box-shadow: 0 0 8px #00d4ff;
    animation: sb-dot-pulse 2s ease infinite;
}
@keyframes sb-dot-pulse { 0%,100%{opacity:1;box-shadow:0 0 8px #00d4ff;} 50%{opacity:0.5;box-shadow:0 0 4px #00d4ff;} }
#gg-ticker .sb-brand-text {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    color: #00d4ff; font-weight: 700;
    text-shadow: 0 0 12px rgba(0,212,255,0.6);
}
#gg-ticker .sb-stats {
    display: flex; align-items: center; gap: 0;
    height: 100%; flex: 1; justify-content: center;
}
#gg-ticker .sb-stat {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 0 28px; height: 100%;
    border-right: 1px solid rgba(255,255,255,0.05); min-width: 130px;
}
#gg-ticker .sb-stat:last-child { border-right: none; }
#gg-ticker .sb-stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 20px; line-height: 1; letter-spacing: 0.04em;
    font-weight: 800;
    color: #f0f0f8; transition: color 0.3s ease;
}
#gg-ticker .sb-stat-num.accent-cyan { color: #00d4ff; text-shadow: 0 0 10px rgba(0,212,255,0.3); }
#gg-ticker .sb-stat-num.accent-purple { color: #bf5fff; text-shadow: 0 0 10px rgba(191,95,255,0.3); }
#gg-ticker .sb-stat-num.accent-green { color: #00D26A; text-shadow: 0 0 10px rgba(0,210,106,0.3); }
#gg-ticker .sb-stat-num.accent-gold { color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.3); }
#gg-ticker .sb-stat-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.35); margin-top: 3px;
}
#gg-ticker .sb-powered {
    display: flex; align-items: center; gap: 6px;
    padding: 0 16px;
    border-left: 1px solid rgba(255,255,255,0.08);
    height: 100%; flex-shrink: 0;
}
#gg-ticker .sb-powered-text {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 7px; letter-spacing: 0.1em; color: rgba(255,255,255,0.2);
}
#gg-ticker .sb-powered-text a { color: rgba(255,255,255,0.35) !important; text-decoration: none; }
#gg-ticker .sb-powered-text a:hover { color: #00d4ff !important; }
@media (max-width: 768px) {
    #gg-ticker .sb-stat { padding: 0 14px; min-width: 90px; }
    #gg-ticker .sb-stat-num { font-size: 16px; }
    #gg-ticker .sb-brand { padding: 0 12px; }
    #gg-ticker .sb-powered { display: none; }
}
@media (max-width: 480px) {
    #gg-ticker .sb-inner { flex-wrap: wrap; height: auto; }
    #gg-ticker .sb-brand { width: 100%; justify-content: center; height: 28px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    #gg-ticker .sb-stats { flex-wrap: wrap; padding: 6px 0; }
    #gg-ticker .sb-stat { padding: 6px 12px; min-width: 80px; border-right: none; }
}

/* Pulse card highlight glow */
.pulse-card-highlight {
    border-color: rgba(0,212,255,0.2) !important;
    box-shadow: 0 0 20px rgba(0,212,255,0.08), inset 0 0 20px rgba(0,212,255,0.03);
}

/* ── Mobile: hide circuit canvas, keep hero clean ── */
@media (max-width: 768px) {
  #circuitCanvas { display: none !important; }
  .hero-enhanced { min-height: auto; }
  .hero-glow { display: none; }
}
