/* ══════════════════════════════════════════════
   TOKEN SYSTEM — LIGHT (Soft Blue)
══════════════════════════════════════════════ */
:root {
  --bg:           #EDF2FB;
  --surface:      #FFFFFF;
  --surface-2:    #F0F4FD;
  --border:       #D6E0F5;
  --border-focus: #4A8CF7;
  --accent:       #3A7BF7;
  --accent-hi:    #2563EB;
  --accent-soft:  rgba(58,123,247,0.12);
  --error:        #DC4B4B;
  --error-soft:   rgba(220,75,75,0.10);
  --success:      #16A34A;
  --text:         #0F172A;
  --text-2:       #334155;
  --muted:        #64748B;
  --muted-2:      #94A3B8;
  --shadow-card:  0 2px 8px rgba(15,23,42,0.06), 0 12px 32px rgba(58,123,247,0.10);
  --shadow-btn:   0 4px 14px rgba(58,123,247,0.38);
  --radius-card:  20px;
  --radius-input: 11px;
  --radius-btn:   11px;
}

/* ══════════════════════════════════════════════
   TOKEN SYSTEM — DARK
══════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:           #0D1424;
  --surface:      #141E35;
  --surface-2:    #1A2744;
  --border:       #243456;
  --border-focus: #5B9BFF;
  --accent:       #5B9BFF;
  --accent-hi:    #7AB4FF;
  --accent-soft:  rgba(91,155,255,0.14);
  --error:        #F87171;
  --error-soft:   rgba(248,113,113,0.12);
  --success:      #4ADE80;
  --text:         #F0F6FF;
  --text-2:       #CBD5E1;
  --muted:        #94A3B8;
  --muted-2:      #64748B;
  --shadow-card:  0 2px 8px rgba(0,0,0,0.3), 0 16px 40px rgba(0,0,0,0.5);
  --shadow-btn:   0 4px 16px rgba(91,155,255,0.30);
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Stop Android/iOS from auto-inflating text size ("font boosting"),
     which is the usual cause of a page looking randomly zoomed-in. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100dvh;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  transition: background .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(58,123,247,0.13) 0%, transparent 70%);
}
body::after {
  width: 460px; height: 460px;
  bottom: -140px; left: -90px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
}
[data-theme="dark"] body::before { background: radial-gradient(circle, rgba(91,155,255,0.11) 0%, transparent 70%); }
[data-theme="dark"] body::after  { background: radial-gradient(circle, rgba(91,155,255,0.07) 0%, transparent 70%); }

/* ══════════════════════════════════════════════
   CARD
══════════════════════════════════════════════ */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: card-rise .5s cubic-bezier(.22,1,.36,1) both;
  transition: background .35s, border-color .35s, box-shadow .35s;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top accent stripe */
.card-stripe {
  height: 3px;
  background: linear-gradient(90deg, #3A7BF7 0%, #60A5FA 60%, #93C5FD 100%);
}

/* ══════════════════════════════════════════════
   CARD HERO — banner biru dengan bola melayang
══════════════════════════════════════════════ */
.card-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a6ee8 0%, #3a8ef6 45%, #5eb3ff 100%);
  padding: 36px 32px 32px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Tema toggle di dalam hero — warna putih transparan */
.card-hero .theme-toggle {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
}
.card-hero .theme-toggle:hover {
  background: rgba(255,255,255,0.30);
  transform: rotate(18deg);
}
.card-hero .theme-toggle svg { stroke: #fff; }
.card-hero .theme-toggle:hover svg { stroke: #fff; }

/* Hero text */
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  margin-bottom: 6px;
}
.hero-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.60);
  letter-spacing: .2px;
}

/* ── BOLA / ORB ── */
.orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  animation: orb-float linear infinite;
  z-index: 1;
}

.orb-1 { width: 14px; height: 14px; top: 20%;  left: 72%; animation-duration: 7s;  animation-delay: 0s;   }
.orb-2 { width: 10px; height: 10px; top: 55%;  left: 85%; animation-duration: 9s;  animation-delay: -2s;  }
.orb-3 { width: 18px; height: 18px; top: 15%;  left: 55%; animation-duration: 11s; animation-delay: -4s;  }
.orb-4 { width: 8px;  height: 8px;  top: 70%;  left: 60%; animation-duration: 8s;  animation-delay: -1s;  }
.orb-5 { width: 12px; height: 12px; top: 40%;  left: 78%; animation-duration: 10s; animation-delay: -5s;  }

@keyframes orb-float {
  0%   { transform: translateY(0px) scale(1);    opacity: .7; }
  33%  { transform: translateY(-14px) scale(1.1); opacity: 1;  }
  66%  { transform: translateY(-6px) scale(.95);  opacity: .8; }
  100% { transform: translateY(0px) scale(1);    opacity: .7; }
}

/* ══════════════════════════════════════════════
   SECTION HEAD (ganti section-divider di form)
══════════════════════════════════════════════ */
.section-head {
  margin-bottom: 20px;
  padding-top: 2px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  margin-bottom: 4px;
}
.section-desc {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

.card-body {
  padding: 36px 36px 32px;
}

/* ══════════════════════════════════════════════
   THEME TOGGLE — top right
══════════════════════════════════════════════ */
.theme-toggle {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 10;
}
.theme-toggle:hover { background: var(--border); transform: rotate(18deg); }
.theme-toggle svg { width: 15px; height: 15px; stroke: var(--muted); transition: stroke .2s; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover svg { stroke: var(--text); }

.icon-sun  { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ══════════════════════════════════════════════
   LOGO AREA
   Cara pakai logo asli:
   Hapus <div class="logo-placeholder">
   Ganti dengan: <img src="assets/img/logo.png" alt="Shio Store" class="logo-img" />
══════════════════════════════════════════════ */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1.5px dashed var(--border-focus);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: background .35s, border-color .35s;
  margin-bottom: 14px;
}

/* Shimmer effect */
.logo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.logo-placeholder:hover::after { transform: translateX(100%); }
[data-theme="dark"] .logo-placeholder::after {
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
}

.logo-placeholder .logo-icon {
  font-size: 26px;
  line-height: 1;
}

.logo-placeholder .logo-label {
  font-size: 8px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Real logo image */
.logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 14px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px;
}

.brand-tagline {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.section-divider span {
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  letter-spacing: .4px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════════ */
.field { margin-bottom: 15px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .05px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  pointer-events: none;
  stroke: var(--muted-2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 11px 12px 11px 36px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

input::placeholder { color: var(--muted-2); font-size: 13px; }

input:focus {
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: 0 0 0 3.5px var(--accent-soft);
}

.input-wrap:focus-within .input-icon { stroke: var(--accent); }

input.is-invalid { border-color: var(--error); }
input.is-invalid:focus { box-shadow: 0 0 0 3.5px var(--error-soft); }

.pw-toggle {
  position: absolute;
  right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  padding: 5px; cursor: pointer;
  color: var(--muted-2);
  display: grid; place-items: center;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.pw-toggle:hover { color: var(--text); background: var(--border); }
.pw-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

#password { padding-right: 40px; }

.field-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
}
.field-msg.visible { opacity: 1; transform: translateY(0); }
.field-msg.error   { color: var(--error); }
.field-msg.ok      { color: var(--success); }
.field-msg svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   REMEMBER + FORGOT ROW
══════════════════════════════════════════════ */
.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: -2px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.remember input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 1px;
  width: 5px; height: 8.5px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.remember span {
  font-size: 12.5px;
  color: var(--muted);
}

a.forgot {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
a.forgot:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════════════════════════════════════
   SUBMIT BUTTON
══════════════════════════════════════════════ */
.btn-submit {
  width: 100%;
  padding: 12.5px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: background .2s, box-shadow .2s, transform .1s, opacity .2s;
  letter-spacing: .15px;
}
.btn-submit:hover  { background: var(--accent-hi); box-shadow: 0 6px 20px rgba(58,123,247,0.45); }
.btn-submit:active { transform: scale(.985); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: none;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit.loading .btn-label   { opacity: .65; }

/* ══════════════════════════════════════════════
   OR DIVIDER + GOOGLE
══════════════════════════════════════════════ */
.or-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.or-divider span { font-size: 11.5px; color: var(--muted-2); }

.btn-google {
  width: 100%;
  padding: 11px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .2s, border-color .2s;
}
.btn-google:hover { background: var(--border); border-color: var(--muted-2); }
.btn-google svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   REGISTER LINK
══════════════════════════════════════════════ */
.register-row {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}
.register-row a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color .2s;
}
.register-row a:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.page-footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .3px;
  text-align: center;
}

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 7px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════
   PWA INSTALL BANNER
══════════════════════════════════════════════ */
#install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s, border-color .35s;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
#install-banner.show { transform: translateY(0); }

.install-icon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.install-icon svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.install-text { flex: 1; }
.install-text strong { font-size: 13px; font-weight: 600; display: block; color: var(--text); }
.install-text span   { font-size: 11.5px; color: var(--muted); }

.install-actions { display: flex; gap: 8px; }
.btn-install-do {
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-install-do:hover { background: var(--accent-hi); }
.btn-install-skip {
  padding: 8px 12px;
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s;
}
.btn-install-skip:hover { background: var(--surface-2); }

/* ══════════════════════════════════════════════
   ACCESSIBILITY & MOTION
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2.5px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 440px) {
  .card-body { padding: 26px 20px 24px; }
}

/* ══════════════════════════════════════════════
   CLOUDFLARE TURNSTILE
══════════════════════════════════════════════ */
.cf-turnstile {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

/* Tombol disable saat Turnstile belum selesai */
.btn-submit:disabled:not(.loading) {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--muted-2);
}

.social-icons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}

.social-icon {
font-size: 24px;
color: #ffffff;
text-decoration: none;
transition: transform 0.3s ease;
}

.social-icon:hover {
transform: scale(1.1);
color: #25d366;
}

.social-icon .fa-instagram:hover {
color: #e4405f;
}

.social-icon .fa-tiktok:hover {
color: #000000;
}

.social-icon .fa-github:hover {
color: #6e5494;
}

/* ══════════════════════════════════════════════
   MODAL REGISTER
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 14, 28, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 36px 32px 32px;
  transform: translateY(24px) scale(.97);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 30px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.2px;
}
.modal-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}


/* ══════════════════════════════════════════════
   FORGOT PASSWORD MODAL EXTRAS
══════════════════════════════════════════════ */
.forgot-success-box {
  text-align: center;
  padding: 20px 0 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.forgot-success-icon {
  width: 48px; height: 48px;
  stroke: #22c55e;
  stroke-width: 2;
  fill: rgba(34,197,94,.12);
  margin-bottom: 12px;
}
.forgot-success-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
#forgot-sent-email {
  font-weight: 600;
  color: #3a8ef6;
  word-break: break-all;
}

/* ══════════════════════════════════════════════
   MOBILE ZOOM FIX
   iOS Safari auto-zooms the whole page whenever you
   focus a form field with font-size < 16px. Forcing
   16px on small screens stops that "kezoom-zoom" jump.
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD — layout shell (sidebar + topbar + content)
══════════════════════════════════════════════════════════════ */
body.dashboard-body {
  display: block;
  padding: 0;
  align-items: initial;
  justify-content: initial;
  min-height: 100dvh;
}

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .35s, border-color .35s;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,14,28,0.55);
  backdrop-filter: blur(2px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: all; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.sidebar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.2px;
}

.nav-list {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10.5px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .18s, color .18s;
  cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.nav-item-logout:hover { background: var(--error-soft); color: var(--error); }

/* ── Main / topbar ───────────────────────────── */
.dash-main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background .35s, border-color .35s;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}
.topbar-date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.back-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.back-btn svg { width: 18px; height: 18px; stroke: var(--text-2); fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.topbar .theme-toggle { position: static; }

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px 4px 4px;
  border-radius: 30px;
  transition: background .18s;
}
.profile-btn:hover { background: var(--surface-2); }
.profile-name-text { font-size: 13px; font-weight: 600; color: var(--text); }

.avatar-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-circle-big { width: 84px; height: 84px; font-size: 32px; margin: 0 auto 12px; }
.avatar-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-photo-big { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }

.dash-content {
  flex: 1;
  padding: 20px 20px 90px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.greeting {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

/* ── Bottom nav (mobile) ─────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 80;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
.bottom-nav-item svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav-item.active { color: var(--accent); }

/* ══════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  box-shadow: var(--shadow-card);
  transition: background .35s, border-color .35s;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 19px; height: 19px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon-revenue { background: rgba(22,163,74,0.12); } .stat-icon-revenue svg { stroke: var(--success); }
.stat-icon-pending  { background: rgba(37,99,235,0.12); } .stat-icon-pending svg { stroke: var(--accent-hi); }
.stat-icon-server   { background: rgba(124,58,237,0.12); } .stat-icon-server svg { stroke: #7C3AED; }
.stat-icon-sold     { background: var(--accent-soft); } .stat-icon-sold svg { stroke: var(--accent); }

.stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.stat-trend { font-size: 11px; font-weight: 600; }
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--error); }

/* ══════════════════════════════════════════════
   CHART + FEED
══════════════════════════════════════════════ */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
.chart-card, .feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: background .35s, border-color .35s;
}
.chart-card-head { margin-bottom: 14px; }
.chart-card-head h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.chart-wrap { position: relative; height: 260px; }

.feed-list { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.feed-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 0; }
.feed-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }
.feed-pulse-wrap { position: relative; flex-shrink: 0; }
.feed-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(22,163,74,0.12);
  display: grid; place-items: center;
}
.feed-icon svg { width: 15px; height: 15px; stroke: var(--success); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed-item.pending .feed-icon { background: rgba(217,119,6,0.12); }
.feed-item.pending .feed-icon svg { stroke: #D97706; }
.feed-ping {
  position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--surface);
  animation: feed-pulse 1.4s ease-out infinite;
}
@keyframes feed-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.5), 0 0 0 2px var(--surface); }
  70%  { box-shadow: 0 0 0 6px rgba(22,163,74,0), 0 0 0 2px var(--surface); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0), 0 0 0 2px var(--surface); }
}
.feed-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.feed-text strong { font-size: 12.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-text span { font-size: 10.5px; color: var(--muted); }
.feed-amount { font-size: 12.5px; font-weight: 700; color: var(--success); white-space: nowrap; }

/* ══════════════════════════════════════════════
   RIWAYAT — filters & table
══════════════════════════════════════════════ */
.riwayat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.riwayat-search { flex: 1; min-width: 200px; }
.riwayat-search input { padding-left: 36px; }

.filter-select {
  padding: 10px 30px 10px 13px;
  background: var(--surface-2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2364748B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 9px center / 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--border-focus); }

.riwayat-info { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}
.tx-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.tx-table thead th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tx-table tbody td {
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tx-table tbody tr:last-child td { border-bottom: none; }
.tx-table tbody tr:hover { background: var(--surface-2); }
.invoice-code { font-weight: 700; color: var(--text); font-family: monospace; }
.amount { font-weight: 700; color: var(--text); }
.date-cell { color: var(--muted); }

.product-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
}
.product-tag.ptero    { background: rgba(124,58,237,0.12); color: #7C3AED; }
.product-tag.sosmed   { background: rgba(220,38,38,0.12);  color: #dc2626; }
.product-tag.reseller { background: rgba(217,119,6,0.12);  color: #D97706; }
.product-tag.nokos    { background: rgba(8,145,178,0.12);  color: #0891B2; }

.badge-status, .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-status.sukses, .badge.lunas   { background: rgba(22,163,74,0.12); color: var(--success); }
.badge-status.pending, .badge.pending { background: rgba(217,119,6,0.12); color: #D97706; }
.badge-status.gagal, .badge.gagal    { background: var(--error-soft); color: var(--error); }

/* ══════════════════════════════════════════════
   PRODUK — category tabs & cards
══════════════════════════════════════════════ */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.category-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tab-accent, var(--accent)); flex-shrink: 0; }
.category-tab.active { border-color: var(--tab-accent, var(--accent)); color: var(--text); background: var(--surface-2); }

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.produk-empty { grid-column: 1/-1; text-align: center; color: var(--muted); font-size: 13px; padding: 50px 0; }

.produk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .18s;
}
.produk-card:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(15,23,42,0.09), 0 18px 40px rgba(58,123,247,0.14); }

.produk-card-header {
  position: relative;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 78px;
}
.produk-icon-wrap { display: flex; align-items: center; }
.produk-badge { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .2px; }

.produk-card-body { padding: 16px 18px 18px; }
.produk-card-body h3 { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -.1px; }
.produk-card-body > p { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-bottom: 13px; min-height: 32px; }

.produk-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 11px;
}
.produk-price-row { display: flex; align-items: baseline; gap: 4px; }
.produk-price { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.produk-price-unit { font-size: 10.5px; color: var(--muted); }
.produk-stock { font-size: 10.5px; font-weight: 600; }
.produk-stock.online { color: var(--success); }

.produk-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}
.produk-features span {
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 20px;
}

.btn-produk-buy {
  padding: 10px;
  border: none;
  border-radius: var(--radius-btn);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .18s, transform .1s;
}
.btn-produk-buy:hover { filter: brightness(1.08); }
.btn-produk-buy:active { transform: scale(.98); }

/* ══════════════════════════════════════════════
   ORDER MODAL — extras (form pakai .field dari login)
══════════════════════════════════════════════ */
.order-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.order-price-row strong { font-size: 16px; color: var(--text); font-weight: 700; }

.qris-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.qris-box img { width: 100%; max-width: 240px; aspect-ratio: 1/1; object-fit: contain; }

.order-status-text {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 12px;
}

.order-result { display: flex; flex-direction: column; gap: 0; margin-bottom: 14px; }
.order-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.order-result-row:last-child { border-bottom: none; }
.order-result-row span { color: var(--muted); }
.order-result-row strong { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

.order-reseller-note { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 14px; text-align: center; }
.btn-wa { background: #25D366; box-shadow: 0 4px 14px rgba(37,211,102,0.38); text-decoration: none; margin-bottom: 10px; }
.btn-wa:hover { background: #1FBE5A; }

.order-done-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 4px 0 14px; }

/* ══════════════════════════════════════════════
   SETTINGS + PROFILE
══════════════════════════════════════════════ */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.settings-card-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.settings-row div { display: flex; flex-direction: column; gap: 2px; }
.settings-row strong { font-size: 13px; color: var(--text); font-weight: 600; }
.settings-row span { font-size: 11.5px; color: var(--muted); }

.btn-settings-danger {
  padding: 9px 16px;
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s;
}
.btn-settings-danger:hover { background: var(--error); color: #fff; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s;
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

.profile-header-card {
  position: relative;
  text-align: center;
  padding: 0 20px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.profile-header-cover {
  height: 84px;
  margin: 0 -20px;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent) 55%, #63B3FF);
}
.profile-header-card .avatar-circle-big {
  margin-top: -44px;
  border: 4px solid var(--surface);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.profile-header-card h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-top: 14px; }
.profile-email { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.profile-joined {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 13px; border-radius: 999px;
}
.profile-joined svg { flex-shrink: 0; }

.backsound-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.backsound-volume-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 140px; }
.backsound-volume-wrap input[type="range"] { flex: 1; }

.active-products-list { display: flex; flex-direction: column; }
.active-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.active-product-row:last-child { border-bottom: none; }
.active-product-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.active-product-info > span:first-child { font-size: 12.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-product-exp { font-size: 10.5px; color: var(--muted); }
.mini-progress { height: 4px; background: var(--border); border-radius: 4px; margin-top: 4px; overflow: hidden; }
.mini-progress-bar { height: 100%; background: var(--accent); border-radius: 4px; }

/* ══════════════════════════════════════════════
   RESPONSIVE — desktop sidebar becomes static
══════════════════════════════════════════════ */
@media (min-width: 900px) {
  .sidebar { transform: none; position: fixed; }
  .sidebar-backdrop { display: none; }
  .dash-main { margin-left: 260px; }
  .bottom-nav { display: none; }
  .dash-content { padding-bottom: 32px; }
}
@media (max-width: 899px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-content { padding: 16px 14px 90px; }
  .topbar { padding: 12px 14px; }
}

/* ══════════════════════════════════════════════
   CS / BANTUAN — FAQ accordion
══════════════════════════════════════════════ */
.cs-faq-list { display: flex; flex-direction: column; gap: 8px; }
.cs-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cs-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.cs-faq-caret { transition: transform .2s ease; color: var(--muted); }
.cs-faq-item.open .cs-faq-caret { transform: rotate(180deg); }
.cs-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.cs-faq-item.open .cs-faq-answer { max-height: 240px; }
.cs-faq-answer p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ══════════════════════════════════════════════
   PROMO CAROUSEL — banner slide auto di Dashboard
══════════════════════════════════════════════ */
.promo-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
  background: var(--surface);
}
.promo-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.promo-slide {
  flex: 0 0 100%;
  min-width: 100%;
  aspect-ratio: 2.5 / 1;
}
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-slide a { display: block; width: 100%; height: 100%; }
.promo-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: all .2s ease;
}
.promo-dot.active { background: #fff; width: 18px; border-radius: 4px; }
@media (max-width: 560px) {
  .promo-slide { aspect-ratio: 16 / 9; }
}

/* ══════════════════════════════════════════════
   CS — daftar kontak (WhatsApp / Telegram / Email)
══════════════════════════════════════════════ */
.cs-contact-list { display: flex; flex-direction: column; gap: 10px; }
.cs-contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text); transition: transform .15s ease, border-color .15s ease;
}
.cs-contact-item:hover { transform: translateY(-1px); border-color: var(--border-focus); }
.cs-contact-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cs-contact-text { display: flex; flex-direction: column; font-size: 13px; }
.cs-contact-text strong { font-size: 13.5px; }
.cs-contact-text span { color: var(--muted); font-size: 12.5px; }

/* ══════════════════════════════════════════════
   PROMO POPUP — ajakan follow channel WhatsApp
══════════════════════════════════════════════ */
.promo-popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,15,25,0.55); backdrop-filter: blur(3px);
  padding: 20px;
}
.promo-popup-overlay.open { display: flex; }
.promo-popup-card {
  background: var(--surface); border-radius: var(--radius-card);
  padding: 28px 24px 24px; max-width: 340px; width: 100%;
  text-align: center; box-shadow: var(--shadow-card);
  animation: promoPopIn .25s ease;
}
@keyframes promoPopIn { from { opacity:0; transform: scale(.94); } to { opacity:1; transform: scale(1); } }
.promo-popup-icon {
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.promo-popup-card h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--text); }
.promo-popup-card p { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.promo-popup-follow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 12px; border-radius: var(--radius-btn); font-weight: 600; font-size: 14px;
  margin-bottom: 10px;
}
.promo-popup-dismiss {
  width: 100%; background: none; border: none; color: var(--muted);
  font-size: 13px; padding: 8px; cursor: pointer; font-weight: 500;
}
