/* ============================================================
   TEBAK 2D — Tema Ungu Glassmorphism (v2, richer)
   Section gelap/terang bergantian, ikon, gauge, dekorasi.
   ============================================================ */

:root {
  --purple-900: #140f3d;
  --purple-800: #1e1656;
  --purple-700: #2a1f74;
  --purple-600: #534AB7;
  --purple-500: #6a5fd6;
  --purple-400: #7F77DD;
  --purple-300: #A9A3EC;

  --gold: #F5B301;
  --gold-soft: #ffcf4d;
  --gold-deep: #c98a00;

  --green: #2ecc71;
  --red: #ff5c74;
  --amber: #ffb020;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 8px 32px rgba(10, 6, 40, 0.45);

  --text: #EDEBFF;
  --text-dim: #B7B2E0;

  /* Section terang */
  --light-bg: #efecfb;
  --light-bg2: #e7e3f8;
  --ink: #241d52;
  --ink-dim: #6f689c;
  --line-light: #e2ddf5;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1000px 620px at 10% -8%, rgba(127,119,221,.30), transparent 60%),
    radial-gradient(820px 560px at 100% 4%, rgba(83,74,183,.30), transparent 55%),
    linear-gradient(165deg, var(--purple-900), var(--purple-800) 60%, var(--purple-700));
  background-attachment: fixed;
}

a { color: var(--purple-300); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 900; letter-spacing: .5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
p { color: var(--text-dim); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 60px 0; position: relative; }
.section > .container { position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 12px; justify-content: center; }
.section-head .lead { margin: 8px auto 0; max-width: 640px; }
.text-gold { color: var(--gold); }
.center { text-align: center; }
.icon { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.15em; }

/* Section terang (tabel & cara ikut) */
.section-light { background: linear-gradient(180deg, var(--light-bg), var(--light-bg2)); color: var(--ink); }
.section-light h2 { color: var(--ink); }
.section-light .lead, .section-light p { color: var(--ink-dim); }
.section-light .section-head h2 .icon { color: var(--purple-600); }

/* ---------- Panel kaca ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-strong { background: var(--glass-bg-strong); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,15,61,.72);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { font-weight: 900; letter-spacing: 1px; font-size: 1.5rem; color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.brand span { color: var(--gold); }
.brand .spark { color: var(--gold); font-size: .9rem; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: #fff; font-weight: 700; letter-spacing: .3px; font-size: .9rem; text-transform: uppercase; }
.nav-links > li > a:not(.btn):hover { background: var(--glass-bg); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: .98rem; cursor: pointer; letter-spacing: .3px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a2b00; box-shadow: 0 8px 22px rgba(245,179,1,.4); }
.btn-primary:hover { filter: brightness(1.05); color: #3a2b00; }
.btn-purple { background: linear-gradient(135deg, var(--purple-500), var(--purple-600)); color: #fff; box-shadow: 0 10px 26px rgba(83,74,183,.5); border: 1px solid rgba(255,255,255,.18); }
.btn-purple:hover { filter: brightness(1.08); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: linear-gradient(135deg, #ff5c74, #ff8a9a); color: #3a0010; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Kartu ---------- */
.card { padding: 24px; }
.card h3 { color: #fff; }
.section-light .card { background: #fff; border: 1px solid var(--line-light); box-shadow: 0 10px 30px rgba(36,29,82,.10); color: var(--ink); }
.section-light .card h3 { color: var(--ink); }
.muted { color: var(--text-dim); font-size: .92rem; }
.section-light .muted { color: var(--ink-dim); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 70px 0 84px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
}
/* glow emas lembut (pengganti streak) */
.hero::before {
  left: -10%; top: -25%; width: 60%; height: 130%;
  background: radial-gradient(circle at 32% 42%, rgba(245,179,1,.20), transparent 62%);
  filter: blur(10px);
}
/* glow magenta bawah kiri */
.hero::after {
  left: -10%; bottom: -30%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(153,63,214,.45), transparent 65%);
  filter: blur(10px);
}
/* ---------- Dekorasi bola lotre di hero ---------- */
.hero-balls { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero > .container { position: relative; z-index: 2; }

.lball {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; letter-spacing: .5px; line-height: 1;
  box-shadow: 0 14px 34px rgba(8, 4, 32, .45), inset 0 -8px 18px rgba(0,0,0,.18);
}
/* cakram putih di tengah (tempat angka) */
.lball::before {
  content: ""; position: absolute; inset: 21%; border-radius: 50%;
  background: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,.10);
}
/* angka */
.lball::after { content: attr(data-num); position: relative; z-index: 1; }
/* kilau */
.lball .shine {
  position: absolute; left: 16%; top: 13%; width: 34%; height: 20%;
  border-radius: 50%; background: #fff; opacity: .45; transform: rotate(-28deg); filter: blur(1px);
}
.lball.gold   { background: radial-gradient(circle at 34% 28%, #ffeeb0, #F5B301 55%, #a86f00); color: #3a2b00; }
.lball.purple { background: radial-gradient(circle at 34% 28%, #c3bcff, #6a5fd6 55%, #302879); color: #2a2270; }
.lball.white  { background: radial-gradient(circle at 34% 28%, #ffffff, #e8e5ff 60%, #9d96e0); color: #2a2270; }

/* bola polos (tanpa angka) untuk kedalaman */
.lball.plain::before, .lball.plain::after { display: none; }
.lball.plain { filter: blur(3px); }

/* posisi & ukuran */
.lb1 { width: 118px; height: 118px; left: 4%;  top: 9%;  font-size: 34px; }
.lb2 { width: 138px; height: 138px; right: 3%; top: 5%;  font-size: 38px; }
.lb3 { width: 92px;  height: 92px;  left: 8%;  top: 29%; font-size: 27px; }
.lb4 { width: 104px; height: 104px; right: 7%; top: 25%; font-size: 30px; }
.lb5 { width: 70px;  height: 70px;  left: 18%; bottom: 4%;  opacity: .5; }
.lb6 { width: 54px;  height: 54px;  right: 20%; bottom: 2%; opacity: .45; }
.lb7 { width: 44px;  height: 44px;  left: 27%; top: 4%;     opacity: .4; }
.lb8 { width: 34px;  height: 34px;  right: 14%; top: 40%;   opacity: .4; }

@media (max-width: 980px) {
  .lb1, .lb2 { width: 84px; height: 84px; font-size: 24px; }
  .lb3, .lb4 { width: 70px; height: 70px; font-size: 20px; }
  .lb5, .lb6, .lb7, .lb8 { display: none; }
}
@media (max-width: 640px) { .hero-balls { opacity: .45; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 .modal {
  display: block;
  background: linear-gradient(180deg, #ffe79a, var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.28));
}
.hero .sub { font-size: 1.08rem; color: #dcd8ff; margin: 16px 0 28px; max-width: 500px; }

/* Kartu hasil hari ini + gauge */
.result-card {
  position: relative; padding: 30px 34px; text-align: center; overflow: hidden;
  border: 1px solid rgba(169,163,236,.5);
  box-shadow: 0 0 0 1px rgba(245,179,1,.10), 0 20px 50px rgba(10,6,40,.55), inset 0 0 40px rgba(127,119,221,.15);
  background:
    radial-gradient(circle at 50% 0%, rgba(127,119,221,.35), transparent 70%),
    rgba(24,17,66,.72);
}
.result-card .label { color: #cfc9ff; text-transform: uppercase; letter-spacing: 4px; font-size: .82rem; font-weight: 700; }
.result-card .market-logo { display: block; height: 46px; width: auto; margin: 0 auto 10px; object-fit: contain; position: relative; z-index: 2; }
.result-4d {
  font-size: clamp(2.8rem, 9vw, 4.6rem); font-weight: 900; letter-spacing: .28em;
  color: var(--gold); text-shadow: 0 0 34px rgba(245,179,1,.45); margin: 6px 0 6px; padding-left: .28em;
}
.result-card .divider {
  display: flex; align-items: center; gap: 12px; color: #cfc9ff;
  font-weight: 700; letter-spacing: 3px; font-size: .8rem; margin: 6px 0 2px;
}
.result-card .divider::before, .result-card .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(169,163,236,.6), transparent); }
.countdown-big { font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .05em; line-height: 1.05; }
.deadline-note { margin-top: 4px; color: var(--gold-soft); font-size: .95rem; font-weight: 700; letter-spacing: 1px; }
.gauge { position: absolute; right: -46px; top: 50%; transform: translateY(-50%); width: 190px; height: 190px; opacity: .55; pointer-events: none; }

/* ============================================================
   TABEL HASIL (light)
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.section-light .table-wrap { background: #fff; border: 1px solid var(--line-light); box-shadow: 0 12px 34px rgba(36,29,82,.12); }
table.data { width: 100%; border-collapse: collapse; min-width: 480px; }
table.data th, table.data td { padding: 15px 18px; text-align: left; }
table.data thead th {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px;
}
.section-light table.data tbody tr { border-bottom: 1px solid #efecfa; }
.section-light table.data tbody td { color: #453f70; }
.section-light table.data tbody tr:nth-child(even) { background: #faf9ff; }
.section-light table.data tbody tr:hover { background: #f3f0ff; }
table.data td .mono { font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 700; }
/* varian tabel di section gelap */
.section:not(.section-light) table.data thead th { border-bottom: 1px solid var(--glass-border); }
.section:not(.section-light) table.data tbody tr { border-bottom: 1px solid rgba(255,255,255,.06); }
.section:not(.section-light) table.data tbody tr:hover { background: rgba(255,255,255,.04); }

/* Homepage Tabel Hasil (SGP & HK): latar UNGU, font PUTIH, header kuning */
#hasil .table-wrap { background: var(--purple-800); border: 1px solid var(--glass-border); box-shadow: 0 12px 34px rgba(10,6,40,.45); }
#hasil table.data thead th { background: #f9be1f; color: #241d52; } /* header kuning, teks navy */
#hasil table.data tbody tr { border-bottom: 1px solid rgba(255,255,255,.10); }
#hasil table.data tbody td { color: #fff; }
#hasil table.data tbody tr:nth-child(even) { background: rgba(255,255,255,.05); }
#hasil table.data tbody tr:hover { background: rgba(255,255,255,.10); }

/* Badge level member */
.level-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: .82rem; letter-spacing: .5px; }
.level-badge.free   { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); color: #fff; }
.level-badge.silver { background: linear-gradient(135deg, #eef1f6, #b9c1cf); color: #2a2f3a; box-shadow: 0 6px 16px rgba(185,193,207,.3); }
.level-badge.gold   { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a2b00; box-shadow: 0 6px 16px rgba(245,179,1,.35); }

/* Badge status */
.status { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; display: inline-block; }
.status.pending { background: rgba(255,176,32,.18); color: #b9820c; border: 1px solid rgba(255,176,32,.5); }
.status.menang  { background: rgba(46,204,113,.16); color: #1f8a4c; border: 1px solid rgba(46,204,113,.5); }
.status.kalah   { background: rgba(255,92,116,.16); color: #c62d45; border: 1px solid rgba(255,92,116,.5); }
.section:not(.section-light) .status.pending { color: var(--amber); }
.section:not(.section-light) .status.menang { color: var(--green); }
.section:not(.section-light) .status.kalah { color: var(--red); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 700;
}
.section-light .pagination a, .section-light .pagination span { border: 1px solid var(--line-light); background: #fff; color: var(--purple-600); box-shadow: 0 4px 12px rgba(36,29,82,.08); }
.section-light .pagination a:hover { background: #f2effe; }
.pagination .active { background: linear-gradient(135deg, var(--gold-soft), var(--gold)) !important; color: #3a2b00 !important; border: 0 !important; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   CARA IKUT (light) — step flow dengan panah
   ============================================================ */
.step-flow { display: flex; align-items: stretch; gap: 14px; }
.step-card {
  flex: 1; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(36,29,82,.10); padding: 22px; display: flex; align-items: center; gap: 16px;
}
.step-card .step-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); color: #fff;
  box-shadow: 0 8px 20px rgba(83,74,183,.4);
}
.step-card .step-icon .icon { width: 26px; height: 26px; }
.step-card .step-no { color: var(--purple-500); font-weight: 800; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }
.step-card h3 { color: var(--ink); margin: 2px 0 0; font-size: 1.05rem; }
.step-card .step-btn { margin-top: 10px; padding: 8px 18px; font-size: .78rem; letter-spacing: .5px; }
.step-arrow { flex: 0 0 auto; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple-600); color: #fff; box-shadow: 0 6px 16px rgba(83,74,183,.45); }

/* ============================================================
   KATEGORI HADIAH (dark) — kartu + hadiah + kotak hadiah
   ============================================================ */
.kategori { background: linear-gradient(180deg, #180f4a, #241463); }
.kategori::before, .kategori::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 150px; height: 150px; background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: .9; z-index: 1;
}
.gift-deco { position: absolute; top: 50%; transform: translateY(-50%); width: 140px; z-index: 1; opacity: .95; pointer-events: none; }
.gift-deco.left { left: 10px; }
.gift-deco.right { right: 10px; }
.tier {
  padding: 24px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: rgba(35,25,86,.62); border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.tier.silver { border-color: rgba(200,208,222,.55); box-shadow: 0 0 0 1px rgba(200,208,222,.15), 0 14px 40px rgba(0,0,0,.35); }
.tier.gold   { border-color: rgba(245,179,1,.55); box-shadow: 0 0 0 1px rgba(245,179,1,.15), 0 14px 40px rgba(0,0,0,.35); }
.tier .tier-title { font-size: 1.25rem; font-weight: 900; color: var(--gold); letter-spacing: .5px; margin-bottom: 12px; text-transform: uppercase; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { padding: 6px 0; color: #e7e4ff; font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.tier li .check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #06371c; display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.tier .prize { text-align: center; padding-left: 16px; border-left: 1px dashed var(--glass-border); }
.tier .prize .plabel { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.tier .prize .pval { font-size: 2.1rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.tier .prize .punit { font-size: .78rem; color: var(--text-dim); }
/* Ketentuan — section putih terpisah */
.section-white { background: #ffffff; color: var(--ink); }
.section-white h2 { color: var(--ink); }
.section-white .lead { color: var(--ink-dim); }
.section-white .section-head h2 .icon { color: var(--purple-600); }
.ket-title { color: var(--purple-600); text-transform: uppercase; letter-spacing: .5px; }
.ketentuan-card {
  max-width: 860px; margin: 0 auto; padding: 26px 30px;
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(36,29,82,.12);
}
.ketentuan-list { margin: 0; padding-left: 24px; }
.ketentuan-list li { padding: 12px 6px; color: #453f70; font-weight: 600; border-bottom: 1px dashed var(--line-light); }
.ketentuan-list li:last-child { border-bottom: 0; }
.ketentuan-list li::marker { color: var(--gold-deep); font-weight: 800; }

/* Tebakan ter-submit */
.submit-count { text-align: center; }
.submit-count .sc-label { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #cfc9ff; }
.submit-count .sc-val { font-size: clamp(3rem, 10vw, 5rem); font-weight: 900; color: var(--gold); text-shadow: 0 0 34px rgba(245,179,1,.4); letter-spacing: .1em; }

/* Tentang kami — pola titik */
.tentang { position: relative; }
.tentang::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(169,163,236,.28) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}
.tentang .card { background: rgba(255,255,255,.05); text-align: center; }
.tentang .card h2 { color: #fff; }

/* ============================================================
   FORM / AUTH
   ============================================================ */
.form-card { max-width: 440px; margin: 48px auto; padding: 34px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 700; color: #fff; font-size: .92rem; }
.input {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.22); border: 1px solid var(--glass-border); color: #fff; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,1,.2); }
.input::placeholder { color: rgba(183,178,224,.55); }
.digit-picker { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 6px 0 4px; }
.digit-select {
  -webkit-appearance: none; appearance: none; text-align: center;
  width: 88px; padding: 16px 0; font-size: 2rem; font-weight: 800; color: var(--gold);
  background: rgba(0,0,0,.24); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); cursor: pointer;
}
.digit-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,1,.2); }
/* Daftar opsi dropdown: latar hitam, teks emas (ganti abu-abu default browser) */
.digit-select option { background-color: #000; color: var(--gold); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert-error   { background: rgba(255,92,116,.14); border-color: rgba(255,92,116,.4); color: #ffd0d7; }
.alert-success { background: rgba(46,204,113,.14); border-color: rgba(46,204,113,.4); color: #d6ffe8; }
.alert-info    { background: rgba(127,119,221,.16); border-color: rgba(127,119,221,.4); color: #e7e4ff; }

/* ============================================================
   LAYOUT DASHBOARD/ADMIN (sidebar)
   ============================================================ */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(20,15,61,.72); border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 24px 18px; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
}
.sidebar .brand { display: inline-flex; margin-bottom: 24px; }
.side-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.side-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; }
.side-menu a:hover { background: var(--glass-bg); color: #fff; }
.side-menu a.active { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #3a2b00; }
.side-menu .sep { height: 1px; background: var(--glass-border); margin: 10px 0; }
.main { padding: 30px; }
.main .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.stat { padding: 22px; }
.stat .k { color: var(--text-dim); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.stat .v { font-size: 2rem; font-weight: 800; color: #fff; margin-top: 4px; }
.stat .v.gold { color: var(--gold); }
.sidebar-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--glass-border); padding: 30px 0; text-align: center; color: var(--text-dim); font-size: .88rem; background: rgba(20,15,61,.5); }

/* ============================================================
   Responsif
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .gift-deco { width: 90px; opacity: .6; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 250px; height: 100vh; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .main { padding: 20px; }
  .step-flow { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 70px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 12px;
    background: rgba(20,15,61,.98); border-bottom: 1px solid var(--glass-border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; }
  .tier .prize { border-left: 0; border-top: 1px dashed var(--glass-border); padding-left: 0; padding-top: 12px; }
  .gift-deco { display: none; }
  .section { padding: 44px 0; }
  .result-card .gauge { display: none; }
}

/* ---------- Daftar link kontak (dashboard member: Event Promo) ---------- */
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-row {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: 999px; text-decoration: none; text-align: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #3a2b00; box-shadow: 0 8px 22px rgba(245,179,1,.4); border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
.link-row:hover { filter: brightness(1.05); transform: translateY(-2px); color: #3a2b00; }
.link-row:active { transform: translateY(1px); }
.link-row strong {
  display: block; font-size: .98rem; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
}
.link-row small { display: block; margin-top: 3px; font-size: .82rem; opacity: .78; font-weight: 600; }

@media (max-width: 480px) {
  .link-row { padding: 12px 16px; }
  .link-row strong { font-size: .88rem; }
  .link-row small { font-size: .76rem; }
}
