 :root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #202024;
  --border: #27272a;
  --border-bright: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.18);
  --vip: #a855f7;
  --vip-glow: rgba(168, 85, 247, 0.18);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--bg); color: var(--text); font-family: var(--font-sans); }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; line-height: 1.6; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }

.ambient-grid {
  position: fixed; inset: 0;
  background-image: linear-gradient(to right, rgba(39, 39, 42, 0.25) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(39, 39, 42, 0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
  pointer-events: none; z-index: -2;
}
.ambient-orb { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; transition: transform 0.2s ease-out; }
.orb-1 { width: 420px; height: 420px; background: var(--accent-glow); top: -120px; left: 12%; }
.orb-2 { width: 380px; height: 380px; background: var(--vip-glow); bottom: 5%; right: 8%; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.admin-bar { position: sticky; top: 0; z-index: 1000; background: linear-gradient(90deg, #1e1b4b, #0f172a); border-bottom: 1px solid var(--accent); padding: 0.6rem 1.5rem; }
.admin-bar-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-status { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--accent); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.navbar { position: sticky; top: 0; z-index: 90; background: rgba(9, 9, 11, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand-mark { color: var(--accent); }
.nav-links { display: flex; gap: 0.35rem; }
.nav-link { background: transparent; border: 1px solid transparent; color: var(--text-muted); padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface); border-color: var(--border); }
.account-pill { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s; }
.account-pill:hover { border-color: var(--accent); }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.status-indicator.online { background: var(--success); box-shadow: 0 0 8px var(--success); }

.main-content { flex: 1; padding-top: 2.5rem; padding-bottom: 5rem; }
.view-section { display: none; }
.view-section.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero { text-align: center; max-width: 760px; margin: 1.5rem auto 4rem; }
.hero-badge { display: inline-block; font-size: 0.75rem; color: var(--accent); background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.text-gradient { background: linear-gradient(135deg, #fafafa 25%, #38bdf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 2rem; }
.hero-cta { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

.sticky-section-header { position: sticky; top: 68px; z-index: 40; background: rgba(9, 9, 11, 0.88); backdrop-filter: blur(10px); padding: 1rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.section-title { font-size: 1.35rem; font-weight: 700; }
.section-desc { font-size: 0.88rem; color: var(--text-muted); }
.filter-pills { display: flex; gap: 0.5rem; }
.pill { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.82rem; cursor: pointer; transition: all 0.2s; }
.pill.active, .pill:hover { border-color: var(--accent); color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.35rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.badge { font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 600; letter-spacing: 0.02em; }
.badge-vip { background: rgba(168, 85, 247, 0.14); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.35); }
.badge-once { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-owned { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-pending { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.product-title { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); gap: 0.75rem; }
.product-price { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.62rem 1.15rem; border-radius: 9px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all 0.2s ease; }
.btn-sm { padding: 0.38rem 0.75rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #e4e4e7; box-shadow: 0 0 20px rgba(250, 250, 250, 0.2); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-bright); background: var(--surface-hover); }
.btn-owned { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.btn-owned:hover { background: rgba(16, 185, 129, 0.26); }
.btn-pending { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); cursor: default; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

.vip-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
.vip-card { background: linear-gradient(165deg, #18181b 60%, rgba(168, 85, 247, 0.12)); border: 1px solid rgba(168, 85, 247, 0.4); border-radius: 16px; padding: 2rem; }
.vip-header h2 { font-size: 1.75rem; margin: 0.75rem 0 0.5rem; }
.vip-header p { color: var(--text-muted); font-size: 0.95rem; }
.vip-pricing { margin: 1.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-big { font-size: 2.5rem; font-weight: 800; font-family: var(--font-mono); }
.period { display: block; font-size: 0.82rem; color: var(--text-muted); }
.vip-perks { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; font-size: 0.92rem; }
.vip-perks .check { color: var(--success); font-weight: 700; margin-right: 0.4rem; }
.vip-included-preview { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.vip-included-preview h3 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.mini-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mini-item { background: var(--bg); border: 1px solid var(--border); padding: 0.85rem 1rem; border-radius: 10px; }

.form-container, .policy-container { max-width: 720px; margin: 0 auto; }
.form-header { margin-bottom: 1.75rem; }
.form-header h2 { font-size: 1.75rem; margin: 0.35rem 0; }
.form-header p { color: var(--text-muted); }
.card-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
input, textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.68rem 0.9rem; color: var(--text); font-family: inherit; font-size: 0.92rem; outline: none; transition: border-color 0.2s; }
input:focus, textarea:focus { border-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.75rem 0; }
.policy-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; }
.policy-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.policy-card p { font-size: 0.9rem; color: var(--text-muted); }
.policy-alert { background: rgba(239, 68, 68, 0.07); border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.alert-header { color: #fca5a5; font-weight: 700; font-size: 0.85rem; }

.admin-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.tab-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.tab-btn.active { border-color: var(--accent); color: var(--text); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: start; }
.admin-item-list { display: flex; flex-direction: column; gap: 0.85rem; }
.admin-row-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-muted); font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 0; font-size: 0.8rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-right { display: flex; align-items: center; gap: 0.75rem; }
.secret-trigger { background: transparent; border: none; color: var(--text-muted); opacity: 0.16; font-size: 0.9rem; cursor: pointer; padding: 2px 6px; transition: opacity 0.25s ease; }
.secret-trigger:hover { opacity: 0.55; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { position: relative; width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--border-bright); border-radius: 16px; padding: 1.85rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7); }
.modal-sm { max-width: 420px; }
.modal-xs { max-width: 320px; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }
.modal-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.swish-badge { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.05em; }
.swish-pay-grid { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; margin: 1rem 0; align-items: center; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; font-size: 0.72rem; }
#swish-qrcode { background: #ffffff; padding: 8px; border-radius: 8px; }
.swish-details { display: flex; flex-direction: column; gap: 0.7rem; }
.detail-row { display: flex; flex-direction: column; font-size: 0.85rem; }
.copyable { cursor: pointer; }
.highlight-ref { background: rgba(56, 189, 248, 0.08); border: 1px dashed rgba(56, 189, 248, 0.4); padding: 0.5rem 0.7rem; border-radius: 8px; }
.ref-code { font-size: 1.15rem; color: var(--accent); cursor: pointer; }
.swish-note { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1.1rem; }

.code-viewer { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin: 1rem 0; overflow-x: auto; font-family: var(--font-mono); font-size: 0.84rem; color: #e4e4e7; max-height: 320px; }
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; background: var(--surface); border: 1px solid var(--accent); color: var(--text); padding: 0.8rem 1.2rem; border-radius: 10px; font-size: 0.88rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }

@media (max-width: 820px) {
  .vip-wrapper, .admin-split, .policy-grid, .form-row, .swish-pay-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
