/* ================================================================
   BADDACK.ID  ·  Design System  ·  v7.0
   ================================================================
   Palet diekstrak dari Maskot Dhadhak Imut:
     Primary  → Navy Royal  #1B2872  (warna perisai / shield)
     Accent   → Amber Gold  #F5A31A  (permata / gem dekorasi)
     Steel    → Biru Baja   #7BA0CC  (kulit badak)
   Target device: Mobile-first, layar sempit, sinyal rendah Pantura
   Font: Plus Jakarta Sans — clean, highly legible, non-generic
   Icons: Inline SVG Lucide — stroke 1.8px, NO emoji
   ================================================================ */

/* ──────────────────────────────────────────
   1. GOOGLE FONTS
   ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ──────────────────────────────────────────
   2. DESIGN TOKENS
   ────────────────────────────────────────── */
:root {
  /* — Brand — */
  --primary:       #1B2872;
  --primary-600:   #253499;
  --primary-400:   #3A50CC;
  --primary-subtle:rgba(27, 40, 114, .15);
  --accent:        #F5A31A;
  --accent-600:    #D48A0D;
  --accent-lt:     #FFCB5A;
  --accent-subtle: rgba(245, 163, 26, .12);
  --steel:         #7BA0CC;

  /* — Dark Background System — */
  --bg-0:          #060B18;   /* deepest base */
  --bg-1:          #0B1424;   /* surface */
  --bg-2:          #111E35;   /* card bg */
  --bg-3:          #192847;   /* elevated card */
  --bg-glass:      rgba(6, 11, 24, .86);
  --bg-glass-lite: rgba(11, 20, 36, .72);

  /* — Text — */
  --t1:   #EEF2FF;   /* primary text */
  --t2:   #8B9DC8;   /* secondary text */
  --t3:   #445070;   /* muted / disabled */

  /* — Semantic — */
  --green:  #10B981;
  --red:    #EF4444;
  --yellow: #F59E0B;
  --blue:   #3B82F6;
  --purple: #8B5CF6;
  --orange: #F97316;

  /* — Borders — */
  --border:       rgba(255,255,255,.06);
  --border-amber: rgba(245,163,26,.25);
  --border-blue:  rgba(59,130,246,.25);

  /* — Typography — */
  --font:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   'DM Mono', 'Courier New', monospace;

  /* — Layout — */
  --h-header: 56px;
  --h-nav:    68px;

  /* — Radius — */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* — Shadows — */
  --shadow-amber: 0 0 24px rgba(245,163,26,.35);
  --shadow-blue:  0 0 24px rgba(59,130,246,.35);
  --shadow-card:  0 4px 28px rgba(0,0,0,.45);
}

/* ──────────────────────────────────────────
   3. RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--t1);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a       { color: inherit; text-decoration: none; }
button  { cursor: pointer; border: none; background: none; font-family: var(--font); }
img     { display: block; max-width: 100%; }
input, select, textarea { font-family: var(--font); }

/* Custom scrollbar — thin & dark */
::-webkit-scrollbar       { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }

/* ──────────────────────────────────────────
   4. LAYOUT SHELL
   ────────────────────────────────────────── */

/* Page wrapper — accounts for fixed header + nav */
.page {
  padding-top: var(--h-header);
  padding-bottom: calc(var(--h-nav) + 8px);
  min-height: 100dvh;
}

/* Horizontal separator */
.divider { height: 1px; background: var(--border); margin: 0 16px; }

/* Section header row */
.sec-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 10px;
}
.sec-hd h2 {
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--t2);
}
.sec-hd a {
  font-size: 18px; font-weight: 600; color: var(--accent);
  letter-spacing: 0; text-transform: none;
}

/* ──────────────────────────────────────────
   5. HEADER  (Top App Bar)
   ────────────────────────────────────────── */
.app-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--h-header);
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
  z-index: 100;
}

/* Logo / Back button — wajib 48×48 touch target */
.header-logo {
  width: 48px; height: 48px; min-width: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); cursor: pointer;
  transition: opacity .2s;
}
.header-logo:active { opacity: .65; }
.header-logo img {
  width: 38px; height: 38px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(245,163,26,.55)); background: transparent !important; mix-blend-mode: normal;
}
/* Fallback jika gambar tidak ada */
.header-logo .fb {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: var(--accent); letter-spacing: -.5px;
}

.header-title {
  flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-title .gold { color: var(--accent); }

/* Icon buttons di kanan header */
.header-actions { display: flex; gap: 4px; }
.hbtn {
  width: 40px; height: 40px; min-width: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--t2); transition: all .2s;
}
.hbtn:active { transform: scale(.9); }
.hbtn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.hbtn .notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; background: var(--red);
  border-radius: 50%; border: 1.5px solid var(--bg-0);
}

/* ──────────────────────────────────────────
   6. BOTTOM DOCK NAVIGATION  (Glassmorphism)
   ────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--h-nav);
  background: rgba(6, 11, 24, .9);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  justify-content: space-around;
  padding: 0 4px 6px;
  z-index: 100;
}

/* Nav item — min touch 48×48 */
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; padding: 8px 4px 0;
  border-radius: var(--r-md); color: var(--t3);
  transition: color .2s; position: relative;
  min-width: 48px; min-height: 48px;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; flex-shrink: 0; }
.nav-item span {
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; line-height: 1;
}

/* Active state */
.nav-item.active { color: var(--accent); }
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 2.5px;
  background: var(--accent); border-radius: 0 0 4px 4px;
}

/* Om Bidi AI icon — menggunakan logo dengan blue neon glow */
.nav-ai-img {
  width: 30px; height: 30px; object-fit: contain;
  filter: brightness(0) invert(.5) sepia(.2) hue-rotate(190deg) brightness(.8);
  transition: filter .25s;
}
.nav-item.active .nav-ai-img {
  filter: brightness(0) invert(1)
          drop-shadow(0 0 6px rgba(59,130,246,.9))
          drop-shadow(0 0 12px rgba(59,130,246,.55));
}

/* ──────────────────────────────────────────
   7. FAB — MASKOT DHADHAK (WhatsApp)
   ────────────────────────────────────────── */
.fab-maskot {
  position: fixed;
  bottom: calc(var(--h-nav) + 12px);
  right: 14px;
  width: 60px; height: 60px;
  z-index: 99; cursor: pointer;
  filter: drop-shadow(0 4px 18px rgba(245,163,26,.5));
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.fab-maskot:hover  { transform: scale(1.1) rotate(-6deg); }
.fab-maskot:active { transform: scale(.88); }
.fab-maskot img { width: 100%; height: 100%; object-fit: contain; }

/* ──────────────────────────────────────────
   8. HERO BANNER
   ────────────────────────────────────────── */
.hero-banner {
  position: relative; overflow: hidden;
  padding: 24px 16px 28px;
  /* Efek "Padi Hijau Bokeh" — CSS radial gradients */
  background:
    radial-gradient(ellipse 60% 50% at 15% 40%,  rgba(16,185,129,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%,  rgba(5,150,105,.14)  0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 65% 75%,  rgba(6,78,59,.20)    0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 35% 15%,  rgba(16,185,129,.1)  0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(27,40,114,.4)   0%, transparent 80%),
    linear-gradient(160deg, #071A0E 0%, #0A2E14 35%, #0C2818 60%, #090D1E 100%);
}
/* Bokeh circles — efek blur latar belakang sawah */
.hero-banner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 50px at 8%  30%,  rgba(16,185,129,.22) 0%, transparent 100%),
    radial-gradient(circle 30px at 92% 15%,  rgba(5,150,105,.18)  0%, transparent 100%),
    radial-gradient(circle 70px at 75% 70%,  rgba(6,78,59,.20)    0%, transparent 100%),
    radial-gradient(circle 25px at 30% 80%,  rgba(16,185,129,.15) 0%, transparent 100%),
    radial-gradient(circle 40px at 55% 25%,  rgba(16,185,129,.12) 0%, transparent 100%);
  animation: bokehFloat 8s ease-in-out infinite alternate;
}
/* Noise texture overlay */
.hero-banner::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}
@keyframes bokehFloat {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.05); }
}

/* Gradient fade ke bawah supaya konten di bawahnya blend */
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
}

.hero-content { position: relative; z-index: 1; }

.hero-greeting {
  font-size: 18px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(16,185,129,.9);
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.hero-greeting-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: badgepulse 2s ease-in-out infinite;
}

.hero-appname {
  font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1;
  margin-bottom: 6px;
}
.hero-appname .gold { color: var(--accent); }
.hero-appname .dim  { font-weight: 400; font-size: 22px; opacity: .5; }

.hero-sub {
  font-size: 16px; color: rgba(238,242,255,.65); margin-bottom: 18px;
  line-height: 1.4;
}

/* Time/Date chip */
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-full); padding: 6px 14px;
  font-size: 18px; font-weight: 500; color: var(--t1);
  font-family: var(--mono);
}
.hero-chip svg { width: 14px; height: 14px; stroke-width: 2; color: var(--accent); }

/* ──────────────────────────────────────────
   9. CARDS
   ────────────────────────────────────────── */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.card-glass {
  background: var(--bg-glass-lite);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.card-p  { padding: 14px 16px; }
.card-p2 { padding: 20px; }

/* ──────────────────────────────────────────
   10. STAT GRID  (Dashboard kilat)
   ────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }

.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 14px;
  position: relative; overflow: hidden;
}
/* Accent stripe kiri */
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--accent-stripe, var(--t3)); border-radius: 0 2px 2px 0;
}
.stat-card.green  { --accent-stripe: var(--green); }
.stat-card.amber  { --accent-stripe: var(--accent); }
.stat-card.blue   { --accent-stripe: var(--blue); }
.stat-card.red    { --accent-stripe: var(--red); }
.stat-card.purple { --accent-stripe: var(--purple); }

.stat-lbl {
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--t2); margin-bottom: 7px;
  display: flex; align-items: center; gap: 4px;
}
.stat-lbl svg { width: 11px; height: 11px; stroke-width: 2.2; }

.stat-val {
  font-size: 26px; font-weight: 800; font-family: var(--mono);
  letter-spacing: -1.5px; line-height: 1;
}
.stat-unit {
  font-size: 18px; font-weight: 600; font-family: var(--font);
  color: var(--t2); margin-left: 2px; letter-spacing: 0;
}
.stat-sub {
  font-size: 17px; color: var(--t2); margin-top: 4px; line-height: 1.3;
}

/* Skeleton loading di dalam stat-card */
.stat-skel .stat-val-skel  { height: 26px; width: 70px;  margin-bottom: 6px; }
.stat-skel .stat-sub-skel  { height: 11px; width: 90px; }

/* ──────────────────────────────────────────
   11. WEATHER WIDGET
   ────────────────────────────────────────── */
.weather-card {
  margin: 0 16px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  position: relative; overflow: hidden;
}
.weather-card::before {
  content: ''; position: absolute; top: -30px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.weather-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.weather-loc {
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--t2); margin-bottom: 4px;
  display: flex; align-items: center; gap: 5px;
}
.weather-loc svg { width: 11px; height: 11px; stroke-width: 2.2; color: var(--accent); }
.weather-temp {
  font-size: 38px; font-weight: 800; font-family: var(--mono);
  letter-spacing: -2px; line-height: 1; color: var(--t1);
}
.weather-temp sup { font-size: 20px; font-family: var(--font); color: var(--t2); vertical-align: super; }
.weather-cond {
  font-size: 16px; color: var(--t2); margin-top: 3px;
}

.weather-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.weather-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.weather-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 0 4px;
  border-right: 1px solid var(--border);
}
.weather-stat:last-child { border-right: none; }
.weather-stat svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--steel); }
.weather-stat-val { font-size: 17px; font-weight: 700; font-family: var(--mono); }
.weather-stat-lbl { font-size: 16px; color: var(--t2); letter-spacing: .3px; }

/* ──────────────────────────────────────────
   12. FEATURE SHORTCUT CAROUSEL
   ────────────────────────────────────────── */
.feat-scroll {
  display: flex; gap: 10px;
  padding: 0 16px 6px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.feat-scroll::-webkit-scrollbar { display: none; }

.feat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 9px; padding: 16px 10px 14px;
  width: 88px; min-width: 88px;  /* fixed width agar swipe konsisten */
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); cursor: pointer;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  scroll-snap-align: start; text-align: center; position: relative;
  text-decoration: none; color: var(--t1);
}
.feat-card:active { transform: scale(.93); background: var(--bg-3); }

/* Icon circle */
.feat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.feat-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }

/* Color themes untuk setiap fitur */
.fi-stream  { background: rgba(59,130,246,.15);  color: var(--blue);   }
.fi-calc    { background: rgba(245,163,26,.15);  color: var(--accent); }
.fi-bursa   { background: rgba(16,185,129,.15);  color: var(--green);  }
.fi-sat     { background: rgba(139,92,246,.15);  color: var(--purple); }
.fi-logis   { background: rgba(245,158,11,.15);  color: var(--yellow); }
.fi-harga   { background: rgba(16,185,129,.15);  color: var(--green);  }
.fi-primbon { background: rgba(139,92,246,.12);  color: var(--purple); }
.fi-kasir   { background: rgba(249,115,22,.15);  color: var(--orange); }
.fi-bidi    { background: rgba(59,130,246,.15);  color: var(--blue);   }

.feat-label {
  font-size: 16px; font-weight: 600; line-height: 1.25;
  color: var(--t1); text-align: center; word-break: keep-all;
}

/* Gembok kecil untuk fitur yang locked */
.feat-lock {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: rgba(245,163,26,.15); border: 1px solid var(--border-amber);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feat-lock svg { width: 9px; height: 9px; stroke-width: 2.5; }

/* ──────────────────────────────────────────
   13. ARMADA / FLEET STATUS
   ────────────────────────────────────────── */
.fleet-card {
  margin: 0 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.fleet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.fleet-header h3 { font-size: 17px; font-weight: 700; }
.fleet-header h3 span { color: var(--accent); }

.fleet-bar-wrap {
  padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px;
}
.fleet-bar-row {
  display: flex; align-items: center; gap: 10px;
}
.fleet-bar-lbl { font-size: 17px; font-weight: 600; color: var(--t2); width: 50px; flex-shrink: 0; }
.fleet-bar-track {
  flex: 1; height: 8px; background: var(--bg-0);
  border-radius: var(--r-full); overflow: hidden;
}
.fleet-bar-fill {
  height: 100%; border-radius: var(--r-full);
  transition: width 1s cubic-bezier(.34,1.56,.64,1) .3s;
}
.fleet-bar-row.aktif   .fleet-bar-fill { background: var(--green); width: 0; }
.fleet-bar-row.servis  .fleet-bar-fill { background: var(--yellow); width: 0; }
.fleet-bar-row.idle    .fleet-bar-fill { background: var(--t3); width: 0; }
.fleet-bar-num { font-size: 18px; font-weight: 700; font-family: var(--mono); width: 30px; text-align: right; flex-shrink: 0; }
.fleet-bar-row.aktif   .fleet-bar-num { color: var(--green); }
.fleet-bar-row.servis  .fleet-bar-num { color: var(--yellow); }
.fleet-bar-row.idle    .fleet-bar-num { color: var(--t3); }

.fleet-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.fleet-total { font-size: 18px; color: var(--t2); }
.fleet-total strong { color: var(--t1); font-family: var(--mono); }

/* ──────────────────────────────────────────
   14. ACTIVITY FEED
   ────────────────────────────────────────── */
.activity-list { padding: 0 16px; display: flex; flex-direction: column; gap: 0; }

.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  animation: fadeUp .35s ease both;
}
.activity-item:last-child { border-bottom: none; }

.activity-dot-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 3px;
}
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.activity-dot.green  { background: var(--green); box-shadow: 0 0 8px rgba(16,185,129,.6); }
.activity-dot.amber  { background: var(--accent); box-shadow: 0 0 8px rgba(245,163,26,.5); }
.activity-dot.blue   { background: var(--blue); box-shadow: 0 0 8px rgba(59,130,246,.5); }
.activity-dot.red    { background: var(--red); }
.activity-dot.gray   { background: var(--t3); }

.activity-body { flex: 1; min-width: 0; }
.activity-title {
  font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 2px;
}
.activity-meta {
  font-size: 17px; color: var(--t2); display: flex; align-items: center; gap: 6px;
}
.activity-meta svg { width: 11px; height: 11px; stroke-width: 2; }

.activity-badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 700; letter-spacing: .3px;
}

/* ──────────────────────────────────────────
   15. SKELETON LOADER
   ────────────────────────────────────────── */
.skel {
  background: linear-gradient(
    90deg,
    var(--bg-1) 0%, var(--bg-2) 40%,
    var(--bg-3) 50%, var(--bg-2) 60%, var(--bg-1) 100%
  );
  background-size: 250% 100%;
  animation: skelAnim 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes skelAnim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ──────────────────────────────────────────
   16. TOAST NOTIFICATION
   ────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  top: calc(var(--h-header) + 10px);
  left: 50%; transform: translateX(-50%);
  z-index: 200; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  opacity: 0;
  animation: tIn .3s cubic-bezier(.34,1.56,.64,1) forwards,
             tOut .25s ease-in 1.8s forwards;
}
.toast.success { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(16,185,129,.45); }
.toast.error   { background: var(--red);   color: #fff; box-shadow: 0 4px 20px rgba(239,68,68,.45); }
.toast svg { width: 15px; height: 15px; stroke-width: 2.5; }

@keyframes tIn  { from{transform:translateY(-14px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes tOut { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-10px)} }

/* ──────────────────────────────────────────
   17. COPY BUTTON  (Universal)
   ────────────────────────────────────────── */
.btn-copy {
  width: 32px; height: 32px; min-width: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--t2); transition: all .18s;
  cursor: pointer;
}
.btn-copy:active {
  transform: scale(.87);
  background: rgba(16,185,129,.2);
  color: var(--green);
  border-color: rgba(16,185,129,.4);
}
.btn-copy svg { width: 14px; height: 14px; stroke-width: 2; }

/* ──────────────────────────────────────────
   18. MAGIC LINK MODAL (Bottom Sheet)
   ────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(6,11,24,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 150;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-bg.open { opacity: 1; pointer-events: all; }

.modal-sheet {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px 40px; width: 100%; max-width: 520px;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.34,1.1,.64,1);
}
.modal-bg.open .modal-sheet { transform: translateY(0); }

.modal-pill {
  width: 40px; height: 4px; background: var(--bg-3);
  border-radius: var(--r-full); margin: 0 auto 22px; cursor: pointer;
}
.modal-icon-wrap {
  width: 54px; height: 54px; border-radius: var(--r-lg);
  background: var(--accent-subtle); border: 1px solid var(--border-amber);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px;
}
.modal-icon-wrap svg { width: 26px; height: 26px; stroke-width: 1.8; }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-desc  { font-size: 16px; color: var(--t2); line-height: 1.65; margin-bottom: 20px; }

/* Timer countdown */
.timer-block { text-align: center; padding: 28px 0; }
.timer-num   {
  font-size: 52px; font-weight: 800; font-family: var(--mono);
  color: var(--accent); letter-spacing: -3px; line-height: 1;
}
.timer-lbl   { font-size: 18px; color: var(--t2); margin-top: 8px; text-transform: uppercase; letter-spacing: .8px; }

.timer-ring {
  width: 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--bg-3) 0deg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 0 30px rgba(245,163,26,.25);
}
.timer-ring-inner {
  width: 82px; height: 82px; border-radius: 50%; background: var(--bg-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ──────────────────────────────────────────
   19. FORM ELEMENTS
   ────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--t2); margin-bottom: 7px;
}
.form-ctrl {
  width: 100%; height: 50px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 14px;
  color: var(--t1); font-size: 18px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-ctrl:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,163,26,.1);
}
textarea.form-ctrl { height: auto; padding: 12px 14px; resize: none; }
select.form-ctrl {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B9DC8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 38px;
}

/* ──────────────────────────────────────────
   20. BUTTONS
   ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 20px; height: 50px; border-radius: var(--r-md);
  font-size: 17px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: all .2s; border: none; outline: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
.btn-full { width: 100%; }
.btn-sm   { height: 40px; font-size: 16px; padding: 0 16px; }

.btn-amber   { background: var(--accent); color: var(--bg-0); }
.btn-amber:active  { background: var(--accent-600); }
.btn-outline { background: transparent; color: var(--t1); border: 1px solid var(--border); }
.btn-outline:active { background: var(--bg-2); }
.btn-success { background: var(--green);  color: #fff; }
.btn-danger  { background: var(--red);    color: #fff; }
.btn-ghost   { background: var(--bg-2); color: var(--t2); border: 1px solid var(--border); }

/* ──────────────────────────────────────────
   21. BADGES
   ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 16px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.badge-dot-el { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live   { background: rgba(239,68,68,.15);   color: var(--red);    border:1px solid rgba(239,68,68,.3); animation: badgepulse 1.8s ease-in-out infinite; }
.badge-legal  { background: rgba(16,185,129,.15);  color: var(--green);  border:1px solid rgba(16,185,129,.3); }
.badge-amber  { background: var(--accent-subtle);  color: var(--accent); border:1px solid var(--border-amber); }
.badge-blue   { background: rgba(59,130,246,.12);  color: var(--blue);   border:1px solid var(--border-blue); }
.badge-gray   { background: rgba(255,255,255,.06); color: var(--t2);     border:1px solid var(--border); }
@keyframes badgepulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ──────────────────────────────────────────
   22. TABS
   ────────────────────────────────────────── */
.tabs-wrap {
  display: flex; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 3px; gap: 2px;
}
.tab-btn {
  flex: 1; height: 40px; border-radius: var(--r-sm);
  color: var(--t3); font-size: 18px; font-weight: 700;
  transition: all .22s; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.tab-btn svg { width: 15px; height: 15px; stroke-width: 2; }
.tab-btn.active { background: var(--accent); color: var(--bg-0); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ──────────────────────────────────────────
   23. LOCKED OVERLAY (fitur berbayar / auth)
   ────────────────────────────────────────── */
.locked-wrap { position: relative; }
.locked-overlay {
  position: absolute; inset: 0;
  background: rgba(6,11,24,.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; z-index: 10; border-radius: inherit; cursor: pointer;
}
.locked-overlay svg { color: var(--accent); width: 30px; height: 30px; stroke-width: 1.8; }
.locked-overlay p {
  font-size: 18px; font-weight: 600; color: var(--t2);
  text-align: center; line-height: 1.5; padding: 0 20px;
}
.locked-overlay .btn-sm { margin-top: 4px; }

/* ──────────────────────────────────────────
   24. MAPS + BOTTOM SHEET (satelit / logistik)
   ────────────────────────────────────────── */
.map-container {
  position: relative;
  height: calc(100dvh - var(--h-header) - var(--h-nav));
  overflow: hidden;
}
#map { width: 100%; height: 100%; z-index: 1; }

.bottom-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(calc(100% - 72px));
  transition: transform .35s cubic-bezier(.34,1.1,.64,1);
  max-height: 60%; overflow-y: auto;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  display: flex; justify-content: center; padding: 10px 0 4px; cursor: pointer;
}
.sheet-pill {
  width: 40px; height: 4px; background: var(--bg-3); border-radius: var(--r-full);
}

/* ──────────────────────────────────────────
   25. SNAP SCROLL (TikTok style)
   ────────────────────────────────────────── */
.snap-container {
  height: calc(100dvh - var(--h-header) - var(--h-nav));
  overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.snap-container::-webkit-scrollbar { display: none; }
.snap-item {
  height: calc(100dvh - var(--h-header) - var(--h-nav));
  scroll-snap-align: start; overflow: hidden; position: relative;
}

/* ──────────────────────────────────────────
   26. CHAT (Om Bidi)
   ────────────────────────────────────────── */
.chat-area {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; overflow-y: auto;
}
.chat-row { display: flex; }
.chat-row.user { justify-content: flex-end; }
.chat-row.ai   { justify-content: flex-start; }

.bubble {
  max-width: 80%; padding: 11px 15px;
  font-size: 16px; line-height: 1.8; position: relative;
  border-radius: 18px;
}
.bubble.user { background: var(--primary-600); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai   { background: var(--bg-3); color: var(--t1); border-bottom-left-radius: 4px; }

.bubble-meta {
  font-size: 16px; color: var(--t3); margin-top: 4px;
  display: flex; align-items: center; gap: 6px;
}
.bubble-actions { display: flex; gap: 4px; margin-top: 6px; }

/* ──────────────────────────────────────────
   27. PRICE / HARGA
   ────────────────────────────────────────── */
.price-big { font-size: 32px; font-weight: 800; font-family: var(--mono); letter-spacing: -1.5px; }
.delta-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: 17px; font-weight: 700; font-family: var(--mono);
}
.delta-up   { background: rgba(16,185,129,.15); color: var(--green); }
.delta-down { background: rgba(239,68,68,.15);  color: var(--red); }

/* ──────────────────────────────────────────
   28. POS KASIR
   ────────────────────────────────────────── */
.keypad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 16px;
}
.key-btn {
  height: 68px; border-radius: var(--r-lg);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--t1); font-size: 24px; font-weight: 700;
  font-family: var(--mono); transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.key-btn:active { transform: scale(.9); background: var(--bg-3); }
.key-btn.action { background: var(--primary); color: #fff; font-size: 20px; font-family: var(--font); }
.key-btn.lunas  { background: var(--green);  color: #fff; font-family: var(--font); font-size: 20px; }
.key-btn.bon    { background: var(--red);    color: #fff; font-family: var(--font); font-size: 20px; }

/* ──────────────────────────────────────────
   29. EMPTY STATE
   ────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; text-align: center; color: var(--t2);
}
.empty-state svg { opacity: .25; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--t1); }
.empty-state p { font-size: 16px; line-height: 1.55; }

/* ──────────────────────────────────────────
   30. ANIMATIONS & UTILITIES
   ────────────────────────────────────────── */
@keyframes fadeUp  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes spin    { to{transform:rotate(360deg)} }
@keyframes scaleIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }

.anim-up     { animation: fadeUp  .4s ease both; }
.anim-in     { animation: fadeIn  .3s ease both; }
.anim-scale  { animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1) both; }

/* Stagger delays */
.anim-up:nth-child(1)  { animation-delay: .00s }
.anim-up:nth-child(2)  { animation-delay: .05s }
.anim-up:nth-child(3)  { animation-delay: .10s }
.anim-up:nth-child(4)  { animation-delay: .15s }
.anim-up:nth-child(5)  { animation-delay: .20s }
.anim-up:nth-child(6)  { animation-delay: .25s }
.anim-up:nth-child(7)  { animation-delay: .30s }
.anim-up:nth-child(8)  { animation-delay: .35s }
.anim-up:nth-child(9)  { animation-delay: .40s }

.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.2); border-top-color: #fff;
  border-radius: 50%; animation: spin .65s linear infinite;
}

/* Utilities */
.flex   { display: flex; }
.col    { flex-direction: column; }
.ic     { align-items: center; }
.jb     { justify-content: space-between; }
.jc     { justify-content: center; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.px-4   { padding: 0 16px; }
.pb-4   { padding-bottom: 16px; }
.mt-2   { margin-top: 8px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-xs     { font-size: 17px; }
.text-sm     { font-size: 16px; }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--t2); }
.font-bold   { font-weight: 700; }
.font-mono   { font-family: var(--mono); }
.divider     { height: 1px; background: var(--border); margin: 0 16px; }
.divider-full { height: 1px; background: var(--border); }
.rounded     { border-radius: var(--r-full); }

/* Font besar 40+ */
.cat-content,.dr-teks,.mimpi-arti,.cat-desc{font-size:15px!important;line-height:1.8!important;}
.cat-name{font-size:16px!important;font-weight:700!important;}
.dr-judul{font-size:15px!important;font-weight:700!important;}
.cat-body *{font-size:16px!important;line-height:2!important;}.cat-name,.dr-judul{font-size:18px!important;}.cat-desc{font-size:15px!important;}
