*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

:root {
  color-scheme: dark;
  --bg: #090d14;
  --surface: #111a27;
  --surface-raised: #172335;
  --surface-soft: rgba(22, 35, 53, .72);
  --border: rgba(166, 190, 224, .13);
  --text: #edf4ff;
  --muted: #9aabc2;
  --accent: #55a6ff;
  --mint: #65dec0;
  --danger: #ff8291;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 70% -20%, rgba(52, 115, 191, .22), transparent 46%),
    radial-gradient(ellipse at 0% 40%, rgba(43, 126, 128, .12), transparent 34%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 13, 20, .84);
  backdrop-filter: blur(18px);
}
.topbar-inner { display:flex; align-items:center; justify-content:space-between; min-height:70px; gap:20px; }
.brand { display:flex; align-items:center; gap:11px; font-size:15px; font-weight:800; letter-spacing:-.02em; }
.brand-mark {
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  border:1px solid rgba(98, 171, 255, .32);
  border-radius:12px;
  background:linear-gradient(145deg,#24476e,#122337);
  color:#baddff;
  box-shadow:0 6px 24px rgba(57, 136, 222, .18);
}
.nav-links { display:flex; align-items:center; gap:24px; color:var(--muted); font-size:12px; }
.nav-links a:hover { color:var(--text); }
.top-actions { display:flex; align-items:center; gap:10px; }
.panel-entry { flex:0 0 auto; }
.account-name { max-width:150px; overflow:hidden; color:var(--muted); font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.button {
  display:inline-flex;
  min-height:42px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 17px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  cursor:pointer;
  font-size:12px;
  font-weight:700;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform:translateY(-1px); border-color:rgba(112,177,255,.45); background:rgba(82,153,232,.12); }
.button-primary { border-color:transparent; background:linear-gradient(135deg,#3987eb,#55b5e7); color:#071321; box-shadow:0 10px 28px rgba(56,137,231,.2); }
.button-primary:hover { background:linear-gradient(135deg,#62a8ff,#70d5ec); }
.button-quiet { background:transparent; }
.button-danger { color:var(--danger); }
.icon-button { width:40px; min-width:40px; padding:0; }
.eyebrow { color:#82b8f1; font-size:10px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { letter-spacing:-.035em; line-height:1.12; }
h1 { font-size:clamp(38px, 6vw, 68px); }
h2 { font-size:clamp(26px, 3.4vw, 38px); }
.muted { color:var(--muted); }
.accent { color:var(--mint); }

.hero { position:relative; overflow:hidden; padding:88px 0 76px; }
.hero::before {
  position:absolute;
  top:10px;
  right:-220px;
  width:680px;
  height:680px;
  border:1px solid rgba(98,171,255,.12);
  border-radius:50%;
  background:radial-gradient(circle,rgba(49,118,195,.13),transparent 68%);
  content:"";
  pointer-events:none;
}
.hero-grid { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); align-items:center; gap:55px; }
.hero-copy { position:relative; z-index:1; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border:1px solid rgba(101,222,192,.22); border-radius:999px; background:rgba(73,186,159,.08); color:#a0f1d8; font-size:10px; font-weight:750; }
.hero-badge::before { width:7px; height:7px; border-radius:50%; background:var(--mint); box-shadow:0 0 12px var(--mint); content:""; }
.hero h1 { margin:22px 0 18px; }
.hero h1 span { display:block; background:linear-gradient(105deg,#fff 8%,#98c9ff 52%,#6fe1ca 100%); background-clip:text; -webkit-text-fill-color:transparent; }
.hero-lead { max-width:540px; color:#b4c3d6; font-size:16px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:11px; margin:27px 0 24px; }
.hero-note { color:var(--muted); font-size:11px; }
.hero-note strong { color:var(--text); }
.hero-visual { position:relative; min-width:0; }
.visual-glow { position:absolute; inset:12% 8%; border-radius:30px; background:rgba(48,135,222,.2); filter:blur(58px); }
.screen-frame { position:relative; overflow:hidden; border:1px solid rgba(150,185,225,.2); border-radius:18px; background:#0d141e; box-shadow:var(--shadow); transform:perspective(1200px) rotateY(-5deg) rotateX(1deg); }
.screen-frame img { display:block; width:100%; height:auto; }
.screen-label { position:absolute; right:14px; bottom:14px; padding:7px 10px; border:1px solid rgba(255,255,255,.12); border-radius:9px; background:rgba(8,13,20,.78); color:#e4f2ff; font-size:10px; backdrop-filter:blur(10px); }
.floating-chip { position:absolute; z-index:2; left:-24px; bottom:26px; padding:11px 14px; border:1px solid rgba(101,222,192,.22); border-radius:13px; background:rgba(15,27,39,.92); box-shadow:var(--shadow); color:#dffbf2; font-size:10px; }
.floating-chip strong { display:block; color:var(--mint); font-size:12px; }
.feature-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; overflow:hidden; margin-top:40px; border:1px solid var(--border); border-radius:15px; background:var(--border); }
.feature-strip div { padding:17px 18px; background:rgba(16,25,38,.9); }
.feature-strip strong { display:block; font-size:12px; }
.feature-strip span { display:block; margin-top:3px; color:var(--muted); font-size:10px; }

.section { padding:78px 0; }
.section-heading { max-width:650px; margin:0 auto 34px; text-align:center; }
.section-heading p { color:var(--muted); font-size:13px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.feature-card { min-height:170px; padding:21px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,rgba(23,36,53,.88),rgba(14,22,33,.88)); }
.feature-icon { display:grid; width:36px; height:36px; place-items:center; margin-bottom:16px; border:1px solid rgba(98,171,255,.22); border-radius:12px; background:rgba(68,141,219,.1); color:#a5d1ff; font-size:16px; }
.feature-card h3 { margin-bottom:8px; font-size:15px; }
.feature-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.screenshots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.shot { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.shot img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#0b111a; }
.shot figcaption { padding:12px 15px; color:var(--muted); font-size:11px; }
.pricing-wrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.7fr); gap:20px; align-items:stretch; }
.price-card { position:relative; overflow:hidden; padding:27px; border:1px solid rgba(102,184,235,.28); border-radius:19px; background:radial-gradient(ellipse at top right,rgba(72,159,223,.15),transparent 55%),linear-gradient(145deg,#152235,#101824); box-shadow:var(--shadow); }
.price-card::after { position:absolute; top:-110px; right:-70px; width:220px; height:220px; border:1px solid rgba(112,185,240,.15); border-radius:50%; content:""; }
.price-value { margin:12px 0 3px; font-size:42px; font-weight:850; letter-spacing:-.06em; }
.price-value small { color:var(--muted); font-size:15px; font-weight:550; letter-spacing:0; }
.price-card ul { display:grid; gap:9px; margin:23px 0; padding:0; list-style:none; color:#d2dfed; font-size:12px; }
.price-card li::before { margin-right:9px; color:var(--mint); content:"✓"; }
.purchase-note { padding:24px; border:1px solid var(--border); border-radius:18px; background:rgba(17,26,39,.78); }
.purchase-note h3 { font-size:18px; }
.purchase-steps { display:grid; gap:14px; margin:18px 0; }
.purchase-step { display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:start; color:var(--muted); font-size:11px; }
.step-number { display:grid; width:25px; height:25px; place-items:center; border:1px solid var(--border); border-radius:9px; background:var(--surface-raised); color:#b9d8f8; font-size:10px; font-weight:800; }
.faq { display:grid; max-width:780px; gap:9px; margin:0 auto; }
.faq details { padding:15px 18px; border:1px solid var(--border); border-radius:13px; background:rgba(17,26,39,.72); }
.faq summary { cursor:pointer; font-size:12px; font-weight:700; }
.faq details p { margin:10px 0 0; color:var(--muted); font-size:11px; }
.footer { padding:28px 0 35px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.footer-links { display:flex; gap:16px; }

.auth-shell { display:grid; min-height:calc(100vh - 71px); place-items:center; padding:40px 0; }
.auth-card { width:min(460px,100%); padding:28px; border:1px solid var(--border); border-radius:19px; background:linear-gradient(145deg,rgba(23,36,53,.96),rgba(13,20,30,.96)); box-shadow:var(--shadow); }
.auth-card h1 { margin:10px 0; font-size:28px; }
.auth-card > p { color:var(--muted); font-size:12px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:20px 0; padding:4px; border:1px solid var(--border); border-radius:12px; background:rgba(0,0,0,.14); }
.auth-tabs button { min-height:36px; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; font-size:11px; font-weight:750; }
.auth-tabs button.active { background:var(--surface-raised); color:var(--text); }
.form { display:grid; gap:12px; }
.field { display:grid; gap:6px; color:#c0ccdb; font-size:10px; font-weight:650; }
.field input { width:100%; min-height:43px; padding:0 12px; border:1px solid var(--border); border-radius:10px; outline:0; background:#0e1621; color:var(--text); font-size:12px; }
.field input:focus { border-color:rgba(85,166,255,.7); box-shadow:0 0 0 3px rgba(85,166,255,.1); }
.form .button { width:100%; margin-top:5px; }
.form-message { min-height:18px; margin:4px 0 0; color:var(--danger); font-size:11px; }
.form-message.success { color:var(--mint); }
.auth-foot { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); color:var(--muted); font-size:10px; }

.app-shell { display:grid; min-height:calc(100vh - 71px); grid-template-columns:230px minmax(0,1fr); }
.sidebar { padding:24px 15px; border-right:1px solid var(--border); background:rgba(11,17,26,.58); }
.sidebar-label { padding:8px 11px; color:#7e91aa; font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.side-link { display:flex; align-items:center; gap:10px; margin:3px 0; padding:10px 11px; border:1px solid transparent; border-radius:10px; color:#a7b6c9; font-size:11px; }
.side-link.active { border-color:rgba(89,162,235,.2); background:rgba(65,132,202,.13); color:#e6f3ff; }
.side-link span:first-child { width:19px; text-align:center; }
.app-main { min-width:0; padding:30px clamp(18px,4vw,48px) 55px; }
.app-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:22px; }
.app-heading h1 { margin:5px 0 7px; font-size:30px; }
.app-heading p { margin:0; color:var(--muted); font-size:11px; }
.status-card { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding:16px; border:1px solid rgba(101,222,192,.18); border-radius:14px; background:rgba(58,157,137,.07); }
.status-dot { width:9px; height:9px; flex:none; border-radius:50%; background:var(--mint); box-shadow:0 0 13px rgba(101,222,192,.7); }
.status-card strong { display:block; font-size:12px; }
.status-card span { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.dashboard-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.dashboard-card { min-height:125px; padding:18px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(145deg,rgba(23,36,53,.8),rgba(14,22,33,.8)); }
.dashboard-card .metric { margin:10px 0 4px; font-size:21px; font-weight:800; letter-spacing:-.04em; }
.dashboard-card p { margin:0; color:var(--muted); font-size:10px; }
.migration-banner { margin-top:18px; padding:22px; border:1px solid rgba(98,171,255,.2); border-radius:15px; background:linear-gradient(135deg,rgba(49,109,173,.14),rgba(19,31,47,.65)); }
.migration-banner h2 { margin:0 0 8px; font-size:17px; }
.migration-banner p { margin:0; color:var(--muted); font-size:11px; }
.module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:17px; }
.module-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border:1px solid var(--border); border-radius:12px; background:rgba(17,26,39,.68); }
.module-card strong { font-size:11px; }
.module-state { padding:4px 7px; border:1px solid var(--border); border-radius:999px; color:var(--muted); font-size:9px; white-space:nowrap; }
.market-console { margin-top:20px; padding:22px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,rgba(23,35,53,.94),rgba(12,19,29,.92)); box-shadow:var(--shadow); }
.market-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.market-heading h2 { margin:6px 0 0; font-size:24px; }
.market-controls { display:grid; grid-template-columns:100px 120px minmax(180px,1fr) minmax(180px,1.3fr); gap:12px; }
.market-controls .field { display:grid; gap:6px; color:var(--muted); font-size:11px; font-weight:700; }
.market-controls input,.market-controls select { min-width:0; min-height:42px; padding:0 12px; border:1px solid var(--border); border-radius:10px; outline:0; background:#0e1621; color:var(--text); font-size:12px; }
.market-selected { display:flex; align-items:center; gap:12px; min-height:60px; margin-top:12px; padding:8px 11px; border:1px solid var(--border); border-radius:12px; background:rgba(8,14,22,.55); }
.market-selected img { width:42px; height:42px; object-fit:contain; }
.market-selected div { display:grid; gap:2px; }
.market-selected strong { font-size:12px; }
.market-selected span { color:var(--muted); font-size:10px; }
.market-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:15px 0; }
.market-feedback { color:var(--muted); font-size:11px; }
.market-feedback.error { color:var(--danger); }
.market-feedback.success { color:var(--mint); }
.market-table-wrap { max-height:520px; overflow:auto; border:1px solid var(--border); border-radius:11px; }
.market-table { width:100%; border-collapse:collapse; font-size:11px; }
.market-table th,.market-table td { padding:11px 12px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
.market-table th { position:sticky; top:0; background:#111a27; color:var(--muted); font-size:10px; }
.market-table td.market-empty { padding:28px 14px; color:var(--muted); text-align:center; white-space:normal; }
.market-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:13px; color:var(--muted); font-size:10px; }
.credential-card { margin-top:18px; padding:18px; border:1px solid var(--border); border-radius:14px; background:rgba(17,26,39,.72); }
.credential-card h2 { margin:5px 0 7px; font-size:19px; }
.credential-card > p { max-width:620px; color:var(--muted); font-size:11px; }
.credential-card .form { max-width:460px; }
.license-panel { margin-top:18px; padding:18px; border:1px solid var(--border); border-radius:14px; background:rgba(17,26,39,.72); }
.license-panel h2 { margin:0 0 5px; font-size:15px; }
.license-panel p { margin:0 0 12px; color:var(--muted); font-size:10px; }
.inline-form { display:flex; gap:9px; }
.inline-form input { flex:1; min-width:0; min-height:42px; padding:0 12px; border:1px solid var(--border); border-radius:10px; outline:0; background:#0e1621; color:var(--text); font-size:11px; }

.admin-section { margin-top:20px; padding:20px; border:1px solid var(--border); border-radius:15px; background:rgba(17,26,39,.72); }
.admin-section h2 { margin-bottom:13px; font-size:17px; }
.admin-page { padding-top:32px; padding-bottom:60px; }
.admin-title { margin:6px 0; font-size:34px; }
.account-actions { margin-top:16px; flex-wrap:wrap; }
.purchase-guide,.license-card { margin-top:17px; padding:18px; border:1px solid var(--border); border-radius:14px; background:rgba(17,26,39,.72); }
.purchase-guide h2,.license-card h2 { margin:0 0 10px; font-size:15px; }
.purchase-guide ol { display:grid; gap:9px; margin:0 0 12px; padding-left:20px; color:#d2dfed; font-size:11px; }
.purchase-guide p,.license-card p { margin:0; color:var(--muted); font-size:11px; }
.license-card h2 { color:var(--mint); }
.license-card .license-expiry { margin-top:7px; color:var(--text); font-weight:700; }
.modules-heading { margin:22px 0 12px; }
.modules-heading h2 { margin:5px 0 0; font-size:20px; }
.admin-form { display:flex; align-items:end; flex-wrap:wrap; gap:10px; }
.admin-form .field { min-width:120px; }
.admin-form .field input { min-height:39px; }
.days-input { width:82px; }
.data-table-wrap { overflow:auto; }
.data-table { width:100%; border-collapse:collapse; font-size:10px; }
.data-table th,.data-table td { padding:10px 9px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
.data-table th { color:var(--muted); font-size:9px; font-weight:700; }
.key-output { margin-top:13px; padding:13px; border:1px solid rgba(101,222,192,.2); border-radius:11px; background:rgba(55,145,124,.08); font:11px/1.9 Consolas,monospace; overflow-wrap:anywhere; }

@media (max-width: 850px) {
  .hero-grid { grid-template-columns:1fr; gap:35px; }
  .hero-copy { max-width:700px; }
  .hero-visual { width:min(720px,100%); margin:auto; }
  .screen-frame { transform:none; }
  .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell { grid-template-columns:190px minmax(0,1fr); }
}
@media (max-width: 620px) {
  .container { width:min(100% - 28px,1160px); }
  .topbar-inner { min-height:60px; }
  .nav-links { display:none; }
  .account-name { max-width:82px; font-size:10px; }
  .panel-entry { min-height:37px; padding:0 10px; font-size:10px; }
  .top-actions .button { min-height:37px; padding:0 11px; font-size:10px; }
  .hero { padding:55px 0 45px; }
  .hero-grid { gap:28px; }
  .hero-lead { font-size:14px; }
  .feature-strip { grid-template-columns:repeat(2,1fr); }
  .feature-grid,.screenshots,.pricing-wrap { grid-template-columns:1fr; }
  .section { padding:55px 0; }
  .section-heading { margin-bottom:24px; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  .app-shell { display:block; }
  .sidebar { display:flex; gap:4px; overflow:auto; padding:8px 12px; border-right:0; border-bottom:1px solid var(--border); }
  .sidebar-label { display:none; }
  .side-link { flex:none; margin:0; padding:8px 10px; }
  .app-main { padding:22px 14px 40px; }
  .dashboard-grid { grid-template-columns:1fr 1fr; }
  .module-grid { grid-template-columns:1fr; }
  .app-heading { flex-direction:column; }
  .market-console { padding:15px; }
  .market-heading { align-items:flex-start; flex-direction:column; }
  .market-heading h2 { font-size:20px; }
  .market-controls { grid-template-columns:1fr 1fr; }
  .market-search,.market-item-field { grid-column:1 / -1; }
  .market-pagination { align-items:flex-start; flex-direction:column; }
}
