:root {
  --bg: #e7edf4;
  --ink: #101828;
  --muted: #5d6b82;
  --line: #d5deea;
  --accent: #0f766e;
  --accent2: #0b5f59;
  --gold: #9a3412;
  --ok: #047857;
  --danger: #be123c;
  --paper: #ffffff;
  --side: #0b1220;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 220px);
}
h1, h2, h3, .logo, .display, .price, .stat b, .side-wallet strong {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
a { color: var(--accent2); text-decoration: none; }
.muted { color: var(--muted); }
code {
  color: var(--gold);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.card, .hero-card, .auth-card, .stat, .support-band, .status-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, .04);
}
.site-nav {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
}
.app-side, .side-wallet {
  background: var(--side);
  border: 0;
  box-shadow: none;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.logo { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav .logo em { color: var(--accent); font-style: normal; }
.app-side .logo { color: #f8fafc; }
.app-side .logo em { color: #5eead4; font-style: normal; }
.logo-fin {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(160deg, #14b8a6, #0f766e);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.site-nav nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.site-nav nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.site-nav nav a:hover { color: var(--ink); background: #eef3f8; }
.nav-signin { border: 1px solid var(--line); }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 8px; padding: 10px 16px; font-weight: 700;
  font-family: inherit; font-size: 14px;
}
.btn { background: #0f172a; color: #fff; }
.btn-primary, .nav-cta { background: var(--accent); color: #f0fdfa; }
.btn-primary:hover, .nav-cta:hover, .btn:hover { filter: brightness(1.08); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: #fff1f2; color: var(--danger); border: 1px solid #fecdd3; }
.tg-channel { background: #0284c7; color: #fff; }
.nav-tg {
  color: #0f766e !important;
  font-weight: 800 !important;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
}

.hero { padding: 64px 7vw 20px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.kicker { color: var(--accent); letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.display { font-size: clamp(40px, 5.6vw, 68px); line-height: .98; margin: 8px 0 14px; color: #0b1220; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero-card { border-radius: 18px; padding: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }

.status-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 7vw 8px; max-width: 560px; }
.status-card {
  border-radius: 14px; padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.status-card.on { border-color: #6ee7b7; background: #f0fdf4; }
.status-card.off { border-color: #fecdd3; background: #fff1f2; }
.status-card h3 { margin: 0; font-size: 16px; }
.status-card .kicker { font-size: 10px; }
.status-card p { display: block; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
  background: var(--ok);
}
.live-dot.off { background: var(--danger); }
.status-flag { font-size: 11px; letter-spacing: .12em; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.status-card.on .status-flag { background: #d1fae5; color: #065f46; }
.status-card.off .status-flag { background: #ffe4e6; color: #9f1239; }
.app .status-card { padding: 16px; }
.app .status-card h3 { font-size: 18px; margin-bottom: 4px; }
.app .status-card p { font-size: 13px; }

.section { padding: 56px 7vw; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 10px; font-size: 22px; }
.badge { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); font-weight: 800; }
.price { font-size: 32px; color: #0b1220; margin-top: 6px; }
.featured { border-color: #99f6e4; box-shadow: 0 10px 30px rgba(15, 118, 110, .08); }

.support-band {
  margin: 0 7vw 36px; border-radius: 18px; padding: 28px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center;
  background: #0b1220; color: #f8fafc; border: 0;
}
.support-band h2 { margin: 8px 0; font-size: 32px; }
.support-band .muted, .support-band .kicker { color: #99f6e4; }
.support-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.partner-card { text-align: center; }
.partner-card img.photo { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin: 8px auto; display: block; }
.partner-card img.logo { max-height: 40px; max-width: 100%; margin: 8px auto; display: block; }
.partner-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.partner-links a { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.partner-links a:hover { background: #f0fdfa; color: var(--accent2); }

.site-foot { padding: 28px 7vw 40px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }

.auth-body {
  display: grid; place-items: center; min-height: 100vh; padding: 24px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(15,118,110,.16), transparent 70%),
    var(--bg);
}
.auth-card { width: min(440px, 100%); border-radius: 18px; padding: 32px; }
.auth-card h1 { margin: 8px 0 6px; font-size: 28px; }
input, textarea, select,
.auth-card input, .app-main input, .app-main select, .app-main textarea {
  width: 100%; margin: 6px 0 14px; padding: 11px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px;
}
label { font-size: 13px; color: var(--muted); font-weight: 600; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0; }
.alert.err { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.brand-mark { color: var(--accent); letter-spacing: .22em; font-size: 12px; font-weight: 800; }

.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: #eef3f8; }
.app-side { margin: 0; border-radius: 0; padding: 22px 14px; min-height: 100vh; }
.app-side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.app-side nav a { color: #cbd5e1; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.app-side nav a.on, .app-side nav a:hover { background: rgba(94, 234, 212, .12); color: #f8fafc; }
.side-wallet { margin-top: 18px; padding: 14px; border-radius: 12px; background: #111a2e; }
.side-wallet span { color: #94a3b8; font-size: 12px; }
.side-wallet strong { display: block; font-size: 26px; color: #5eead4; }
.side-label { color: #5eead4; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 18px 12px 4px; font-weight: 800; }
.app-main { padding: 28px 32px 48px; }
.app-main h1 { margin: 4px 0 6px; font-size: 32px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pill { padding: 3px 8px; border-radius: 999px; font-size: 12px; background: #ecfdf5; color: #065f46; font-weight: 700; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 10px 0 16px; user-select: none; position: relative; }
.switch input {
  position: absolute; left: 0; top: 0; width: 72px; height: 32px;
  opacity: 0; cursor: pointer; z-index: 3; margin: 0;
}
.switch .track {
  width: 72px; height: 32px; border-radius: 999px; position: relative; flex-shrink: 0;
  background: #e2e8f0; border: 1px solid #cbd5e1;
}
.switch .track::before {
  content: 'OFF'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 9px; letter-spacing: .08em; font-weight: 800; color: #64748b;
}
.switch .track::after {
  content: ''; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  top: 3px; left: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: #0f766e; border-color: #0f766e; }
.switch input:checked + .track::before { content: 'ON'; left: 10px; right: auto; color: #ecfdf5; }
.switch input:checked + .track::after { left: 42px; }
.switch .switch-text { color: var(--ink); font-size: 14px; }

body.lux-home {
  background: #07080c;
  color: #f6f1e7;
}
body.lux-home .poster-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #07080c;
}
body.lux-home .poster-slide {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: posterFade 32s infinite;
}
body.lux-home .poster-slide.s1 { background-image: url("../posters/poster-black.jpg?v=2"); animation-delay: 0s; }
body.lux-home .poster-slide.s2 { background-image: url("../posters/poster-silver.jpg?v=2"); animation-delay: 8s; }
body.lux-home .poster-slide.s3 { background-image: url("../posters/poster-green.jpg?v=2"); animation-delay: 16s; }
body.lux-home .poster-slide.s4 { background-image: url("../posters/poster-night.jpg?v=2"); animation-delay: 24s; }
body.lux-home .poster-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,12,.9) 0%, rgba(7,8,12,.55) 42%, rgba(7,8,12,.12) 100%),
    linear-gradient(180deg, rgba(7,8,12,.35) 0%, rgba(7,8,12,.2) 30%, rgba(7,8,12,.82) 100%);
}
@keyframes posterFade {
  0% { opacity: 0; transform: scale(1.08); }
  8% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
body.lux-home .hero { grid-template-columns: minmax(0, 640px); }
body.lux-home .site-nav,
body.lux-home .hero,
body.lux-home .section,
body.lux-home .status-board,
body.lux-home .support-band,
body.lux-home .site-foot { position: relative; z-index: 2; }
body.lux-home .site-nav {
  background: rgba(7, 8, 12, .55);
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 110, .28);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
body.lux-home .logo,
body.lux-home .site-nav .logo { color: #f6f1e7; }
body.lux-home .site-nav .logo em { color: #e4c88a; }
body.lux-home .logo-fin { background: linear-gradient(160deg, #f3e2b8, #a6843d); }
body.lux-home .site-nav nav a { color: #eadcc4; }
body.lux-home .site-nav nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
body.lux-home .nav-signin { border-color: rgba(212,175,110,.45); color: #f6f1e7; }
body.lux-home .nav-cta,
body.lux-home .btn-primary {
  background: linear-gradient(90deg, #f3e2b8, #c6a15b);
  color: #1a1408;
}
body.lux-home .btn-ghost {
  background: transparent;
  border: 1px solid rgba(228, 200, 138, .55);
  color: #f6f1e7;
}
body.lux-home .kicker { color: #e4c88a; }
body.lux-home .display,
body.lux-home h1,
body.lux-home h2,
body.lux-home h3,
body.lux-home .price {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  color: #f8f3ea;
  letter-spacing: -0.03em;
}
body.lux-home .hero p,
body.lux-home .muted { color: #d9d0c2; }
body.lux-home .card,
body.lux-home .hero-card,
body.lux-home .status-card {
  background: rgba(10, 12, 16, .62);
  border: 1px solid rgba(212, 175, 110, .28);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  color: #f6f1e7;
}
body.lux-home .status-card.on { background: rgba(8, 28, 22, .62); border-color: rgba(110, 231, 183, .45); }
body.lux-home .status-card.off { background: rgba(40, 12, 18, .62); border-color: rgba(251, 113, 133, .4); }
body.lux-home .badge { color: #e4c88a; }
body.lux-home .featured { border-color: rgba(228, 200, 138, .7); }
body.lux-home .support-band {
  background: rgba(10, 12, 16, .72);
  border: 1px solid rgba(212, 175, 110, .35);
}
body.lux-home .support-band h2,
body.lux-home .support-band .muted,
body.lux-home .support-band .kicker { color: #f6f1e7; }
body.lux-home .support-band .kicker { color: #e4c88a; }
body.lux-home .site-foot { color: #cbbfaa; }
body.lux-home .partner-links a { color: #f6f1e7; border-color: rgba(212,175,110,.35); }
body.lux-home code { color: #f3e2b8; background: rgba(0,0,0,.35); border-color: rgba(212,175,110,.3); }

@media (max-width: 960px) {
  .hero, .grid-2, .grid-3, .grid-4, .status-board, .support-band { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; }
  .site-nav nav a:not(.nav-cta):not(.nav-signin) { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { min-height: 0; padding: 14px; }
  .app-side nav { flex-direction: row; flex-wrap: wrap; }
  .app-main { padding: 18px 14px 32px; }
  .site-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  body.lux-home .poster-slide { animation: none; opacity: 0; }
  body.lux-home .poster-slide.s1 { opacity: 1; }
}
