:root {
  --bg: #060b06;
  --bg2: #0a110a;
  --panel: #0e150e;
  --panel2: #111b11;
  --line: #23331f;
  /* Accent matches the launcher's green theme. */
  --gold: #7ed957;
  --gold-2: #a6f56f;
  --gold-deep: #4f9e2f;
  --green: #7ed957;
  --amber: #f0a24a;
  --text: #eaf1f8;
  --muted: #93a8bd;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1100px 560px at 78% -10%, rgba(126,217,87,.10) 0%, var(--bg) 58%) fixed, var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  background: #16221a; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn.block { width: 100%; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-gold { background: linear-gradient(135deg, #7ed957, #4f9e2f); color: #0b160a; box-shadow: 0 4px 16px rgba(79,158,47,.3); }
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(79,158,47,.4); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(6,11,6,.72); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0b160a; font-weight: 900; font-size: 13px; letter-spacing: -1px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.brand-text b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: 14px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0;
  background: url("../assets/bg-main.png") center/cover no-repeat;
  opacity: .28; filter: saturate(1.1); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,11,6,.35) 0%, rgba(6,11,6,.72) 60%, var(--bg) 100%); }
.hero-glow { position: absolute; inset: -30% 20% auto -10%; height: 520px; z-index: 1;
  background: radial-gradient(closest-side, rgba(232,197,71,.16), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 96px 22px 84px; display: block; }
.hero-copy { max-width: 720px; }
.eyebrow { color: var(--gold); font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 52px; font-weight: 900; letter-spacing: -1px; }
.grad { background: linear-gradient(90deg, var(--gold-2), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 13px; }

.hero-art { display: grid; place-items: center; }
.hero-shot { position: relative; width: 100%; max-width: 460px; }
.hero-shot img { width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-badge { position: absolute; bottom: 14px; left: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(6,11,6,.82); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: #cfe0f0; backdrop-filter: blur(6px); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.g { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.a { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* Sections */
.section { max-width: 1140px; margin: 0 auto; padding: 72px 22px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; }
.ficon { width: 52px; height: 52px; object-fit: contain; margin-bottom: 14px;
  border-radius: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* Download */
.download-card { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, var(--panel2), var(--bg2)); position: relative; overflow: hidden; }
.dl-info { max-width: 640px; position: relative; z-index: 1; }
.dl-art { flex-shrink: 0; }
.dl-art img { width: 160px; height: auto; opacity: .95; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.dl-info h2 { font-size: 28px; margin: 8px 0 10px; }
.dl-info p { color: var(--muted); margin: 0 0 20px; }
.dl-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl-meta { color: var(--muted); font-size: 13px; }
.dl-notes { color: var(--muted); font-size: 13px; margin-top: 16px; white-space: pre-wrap; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }
.news-item { padding: 0; display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  transition: transform .1s ease, border-color .2s ease; }
.news-item:hover { transform: translateY(-3px); border-color: rgba(232,197,71,.5); }
.news-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a120a; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body-wrap { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.news-item .n-date { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.news-item .n-title { font-size: 17px; font-weight: 700; }
.news-item .n-body { color: var(--muted); font-size: 14px; }
.news-item .n-more { margin-top: 4px; color: var(--gold); font-size: 13px; font-weight: 700; }
.news-item .n-flag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; color: #0b160a;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); padding: 2px 8px; border-radius: 999px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { padding: 26px; position: relative; display: flex; flex-direction: column; }
.price.featured { border-color: rgba(232,197,71,.5); box-shadow: 0 0 0 1px rgba(232,197,71,.25), var(--shadow); }
.price-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0b160a; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; }
.price-tier { font-size: 14px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.price-cost { font-size: 34px; font-weight: 900; margin: 8px 0 16px; }
.price-benefits { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-benefits li { padding: 7px 0 7px 24px; position: relative; color: #cfe0f0; font-size: 14px; }
.price-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 34px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: #64788f; font-size: 12px; width: 100%; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,3,.72); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.modal-x { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.modal-x:hover { color: var(--text); }

.tabs { display: flex; gap: 6px; background: #0a120a; padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tab { flex: 1; background: transparent; border: none; color: var(--muted); padding: 9px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--panel2); color: var(--text); }

.auth-form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 12px 0 5px; }
.auth-form input { width: 100%; background: #0a120a; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--text); font-size: 14px; }
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form .btn { margin-top: 18px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 5px; }
.form-msg { margin-top: 12px; font-size: 13px; min-height: 18px; }
.form-msg.err { color: #ff9b9b; }
.form-msg.ok { color: var(--green); }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dash-email { font-size: 17px; font-weight: 800; }
.dash-sub { color: var(--muted); font-size: 13px; }
.dash-status { display: flex; align-items: center; gap: 12px; background: #0a120a; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.status-pill { font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.status-pill.active { background: rgba(126,217,87,.16); color: var(--green); }
.status-pill.inactive { background: rgba(255,155,155,.14); color: #ff9b9b; }
.status-detail { color: var(--muted); font-size: 13px; }
.dash-actions { margin-bottom: 20px; }
.dash-section { border-top: 1px solid var(--line); padding-top: 16px; }
.dash-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.purchase-list { display: flex; flex-direction: column; gap: 8px; }
.purchase-item { background: #0a120a; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.purchase-item .p-cred { font-family: Consolas, monospace; color: #eaf2ea; }
.purchase-item .p-date { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* Article page */
.article { max-width: 820px; margin: 0 auto; padding: 40px 22px 80px; }
.article-back { color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; margin-bottom: 18px; }
.article-back:hover { color: var(--gold); }
.article-meta { color: var(--gold); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.article h1.article-title { font-size: 38px; font-weight: 900; letter-spacing: -.5px; margin: 10px 0 18px; }
.article-cover { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 26px; box-shadow: var(--shadow); }
.article-summary { color: var(--muted); font-size: 18px; margin-bottom: 24px; }
.article-body { font-size: 16px; line-height: 1.8; color: #dbe6f2; }
.article-body h1, .article-body h2, .article-body h3 { margin: 26px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body a { color: var(--gold); text-decoration: underline; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 16px; }
.article-body blockquote { border-left: 3px solid var(--gold); margin: 0 0 16px; padding: 6px 0 6px 16px; color: var(--muted); }
.article-loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* Reset page */
.center-page { min-height: 70vh; display: grid; place-items: center; padding: 40px 20px; }
.center-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.center-card h1 { font-size: 24px; margin-bottom: 8px; }

/* Auth extras */
.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer;
  padding: 0; margin-top: 12px; text-decoration: underline; }
.link-btn:hover { color: var(--gold); }
.back-row { margin-bottom: 4px; }
.qr-wrap { display: grid; place-items: center; padding: 14px; margin: 10px 0; background: #fff;
  border-radius: 12px; width: fit-content; }
.qr-wrap img, .qr-wrap canvas { display: block; }
.secret-row { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.secret-row code { color: var(--gold); font-family: Consolas, monospace; word-break: break-all; }
.row-2 { display: flex; gap: 10px; margin-top: 14px; }

/* 2FA + dashboard inputs */
.dash-section input { width: 100%; background: #0a120a; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 12px; color: var(--text); font-size: 14px; margin-top: 6px; transition: border-color .15s, box-shadow .15s; }
.dash-section input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(126,217,87,.15); }
.dash-section label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.code-input { text-align: center; letter-spacing: 10px; font-size: 24px; font-weight: 700;
  font-family: Consolas, "SF Mono", monospace; padding: 13px 12px !important; caret-color: var(--gold); }
.code-input::placeholder { letter-spacing: 8px; color: #34462f; }
#twofaSetup, #twofaOn { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--panel2), var(--bg2)); }
#twofaSetup .qr-wrap { box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.secret-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-2 .btn { flex: 1; }
.twofa-required { margin: 4px 0 12px; padding: 11px 13px; border-radius: 11px; font-size: 13px; font-weight: 600;
  color: #ffd98a; background: rgba(184, 134, 11, .12); border: 1px solid rgba(232, 197, 71, .45); }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 38px; }
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-grid, .price-grid { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .dl-art { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}
