/* ===== Jet Billing - Design System ===== */
:root, [data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0b1120;
  --card: rgba(17, 25, 45, .72);
  --card-solid: #111a2d;
  --border: rgba(148, 163, 184, .14);
  --text: #e5ecf7;
  --muted: #8b98b4;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-grad: linear-gradient(135deg, #22d3ee, #3b82f6);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --shadow: 0 20px 50px rgba(2, 6, 23, .5);
}
[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-2: #ffffff;
  --card: rgba(255, 255, 255, .85);
  --card-solid: #ffffff;
  --border: rgba(15, 23, 42, .1);
  --text: #0f1b33;
  --muted: #5b6b8a;
  --shadow: 0 16px 40px rgba(15, 23, 42, .1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; transition: background-color .3s, color .3s;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -10%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(59, 130, 246, .1), transparent 60%);
}
[data-theme="light"] body::before { opacity: .5; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }
h1, h2, h3 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; }
.site-nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; } [data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; } [data-theme="light"] .icon-moon { display: block; }

/* Hero */
.hero { padding: 6rem 0 4rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.7; max-width: 34rem; margin-bottom: 2rem; }
.hero-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 1.8rem; backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stats .stat b { font-family: 'Space Grotesk'; font-size: 1.5rem; display: block; }
.hero-stats .stat span { color: var(--muted); font-size: .82rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .72rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background-color .18s, border-color .18s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #04121f; box-shadow: 0 8px 24px rgba(34, 211, 238, .28); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(34, 211, 238, .4); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: rgba(248, 113, 113, .14); color: var(--danger); border-color: rgba(248, 113, 113, .3); }
.btn-success { background: rgba(52, 211, 153, .14); color: var(--success); border-color: rgba(52, 211, 153, .3); }
.btn-sm { padding: .42rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* Cards & grids */
.section { padding: 4rem 0; }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.6rem; backdrop-filter: blur(14px); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.card h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.card .price { font-family: 'Space Grotesk'; font-size: 1.7rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .7rem 0; }
.card ul { list-style: none; margin: .8rem 0 1.2rem; }
.card ul li { padding: .32rem 0; color: var(--muted); font-size: .9rem; display: flex; gap: .55rem; align-items: baseline; }
.card ul li::before { content: '▸'; color: var(--accent); }

/* Badge */
.badge { display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-success { background: rgba(52, 211, 153, .14); color: var(--success); }
.badge-danger { background: rgba(248, 113, 113, .14); color: var(--danger); }
.badge-warning { background: rgba(251, 191, 36, .14); color: var(--warning); }
.badge-info { background: rgba(34, 211, 238, .14); color: var(--accent); }
.badge-muted { background: rgba(148, 163, 184, .14); color: var(--muted); }

/* Alert */
.alert { padding: .9rem 1.2rem; border-radius: 14px; margin: 1rem 0; font-size: .92rem; font-weight: 600; }
.alert-success { background: rgba(52, 211, 153, .12); color: var(--success); border: 1px solid rgba(52, 211, 153, .3); }
.alert-danger { background: rgba(248, 113, 113, .12); color: var(--danger); border: 1px solid rgba(248, 113, 113, .3); }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: .72rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card-solid); color: var(--text); font-family: inherit; font-size: .94rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
th { text-align: left; padding: .85rem 1rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(148, 163, 184, .05); }

/* Admin layout */
.admin-body { display: flex; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 60;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 1.2rem .9rem; transition: transform .25s;
}
.sidebar-brand { padding: .3rem .6rem 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: .8rem; }
.sidebar-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 12px;
  color: var(--muted); font-size: .9rem; font-weight: 600; transition: background-color .18s, color .18s;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(148, 163, 184, .08); color: var(--text); }
.sidebar-nav a.active { background: var(--accent-grad); color: #04121f; }
.sidebar-footer { display: flex; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.admin-main { flex: 1; margin-left: 250px; padding: 1.6rem 2rem 3rem; max-width: calc(100% - 250px); }
.admin-topbar { margin-bottom: 1.4rem; }
.admin-topbar h1 { font-size: 1.5rem; }
.sidebar-toggle {
  display: none; position: fixed; top: .8rem; left: .8rem; z-index: 70;
  background: var(--card-solid); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: .45rem .7rem; font-size: 1.1rem; cursor: pointer;
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem; backdrop-filter: blur(12px); }
.stat-card .label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-family: 'Space Grotesk'; font-size: 1.7rem; font-weight: 700; margin-top: .35rem; }
.stat-card.accent .value { color: var(--accent); }
.stat-card.success .value { color: var(--success); }
.stat-card.danger .value { color: var(--danger); }
.stat-card.warning .value { color: var(--warning); }

/* Member */
.member-body main { padding-top: 1.5rem; padding-bottom: 3rem; }
.member-greet { margin-bottom: 1.6rem; }
.member-greet h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.member-greet p { color: var(--muted); font-size: .92rem; }
.page { padding-bottom: 3rem; }

/* Slider promo */
.promo-slider { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--border); }
.promo-track { display: flex; transition: transform .5s cubic-bezier(.65,.05,.36,1); }
.promo-slide { min-width: 100%; position: relative; }
.promo-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
.promo-slide .caption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 2rem 1.6rem;
  background: linear-gradient(transparent, rgba(2, 6, 23, .85)); color: #fff;
}
.promo-dots { position: absolute; bottom: 1rem; right: 1.4rem; display: flex; gap: .45rem; }
.promo-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: background-color .2s, transform .2s; }
.promo-dots button.on { background: var(--accent); transform: scale(1.3); }

/* Auth page */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 2.4rem; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.auth-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.auth-card .brand { justify-content: center; margin-bottom: 1.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.4rem 0 1.4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.footer-inner p { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: .8rem; }

/* Voucher print */
.voucher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .voucher-grid .card { break-inside: avoid; color: #000; background: #fff; border: 1px dashed #999; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .6s ease both; }
.reveal-1 { animation-delay: .08s; } .reveal-2 { animation-delay: .16s; } .reveal-3 { animation-delay: .24s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: none; box-shadow: var(--shadow); }
  .admin-main { margin-left: 0; max-width: 100%; padding: 4rem 1rem 3rem; }
  .sidebar-toggle { display: block; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .promo-slide img { height: 220px; }
}
