/* ============================================================
   Sahabat Rindu Kabah — Design System v3 (Mobile-First)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,600&display=swap');

:root {
  --green-900: #042c20;
  --green-800: #063b2a;
  --green-700: #0a5238;
  --green-600: #0b6e4f;
  --green-500: #128a63;
  --green-400: #2aa57b;
  --green-100: #e3f1ea;
  --green-50:  #f1f8f4;
  --gold-700:  #9a7b1f;
  --gold-600:  #bd9530;
  --gold-500:  #d4af37;
  --gold-400:  #e3c662;
  --gold-200:  #f3e6bd;
  --gold-50:   #fbf6e7;
  --paper:     #fcfcf9;
  --white:     #ffffff;
  --ink-900:   #11231b;
  --ink-700:   #2c3b33;
  --ink-500:   #5d6c64;
  --ink-400:   #8a978f;
  --line:      #e7ece8;
  --grad-green: linear-gradient(135deg,#0b6e4f 0%,#063b2a 100%);
  --grad-gold:  linear-gradient(135deg,#f3e6bd 0%,#d4af37 45%,#bd9530 100%);
  --grad-gold-text: linear-gradient(135deg,#e3c662 0%,#d4af37 50%,#9a7b1f 100%);
  --shadow-sm: 0 1px 3px rgba(6,59,42,.06);
  --shadow-md: 0 4px 14px rgba(6,59,42,.08);
  --shadow-lg: 0 18px 48px rgba(6,59,42,.14);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --font-sans: 'Plus Jakarta Sans',system-ui,sans-serif;
  --font-display: 'Fraunces',Georgia,serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }
a { color: inherit; text-decoration: none; }

/* ============ Utilities ============ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4{gap:4px}.gap-6{gap:6px}.gap-8{gap:8px}.gap-10{gap:10px}.gap-12{gap:12px}.gap-14{gap:14px}.gap-16{gap:16px}.gap-20{gap:20px}.gap-24{gap:24px}
.grow { flex: 1; min-width: 0; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-500); }
.tiny { font-size: 12px; }
.text-center { text-align: center; }

/* ============ Typography ============ */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-600); }
.eyebrow.gold { color: var(--gold-700); }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.gold-text { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
  border: none; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-green { background: var(--grad-green); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--grad-gold); color: #3c2f06; box-shadow: 0 6px 20px rgba(189,149,48,.25); }
.btn-ghost { background: var(--white); color: var(--green-700); border: 1.5px solid var(--line); }
.btn-outline-gold { background: transparent; color: var(--gold-700); border: 1.5px solid var(--gold-500); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--ink-500);
  border: 1px solid var(--line); background: var(--white); flex-shrink: 0;
  transition: all .15s;
}
.icon-btn:hover { color: var(--green-600); border-color: var(--green-100); background: var(--green-50); }
.icon-btn.danger:hover { color: #b4322a; border-color: #f6d6d3; background: #fcebea; }

/* ============ Cards ============ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }

/* ============ Chips ============ */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.chip-green { background: var(--green-100); color: var(--green-700); }
.chip-gold { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200); }
.chip-ink { background: #eef1ef; color: var(--ink-700); }
.chip-amber { background: #fdf3df; color: #9a6a08; }
.chip-red { background: #fcebea; color: #b4322a; }

.divider { height: 1px; background: var(--line); border: 0; width: 100%; margin: 0; }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field .hint { font-size: 12px; color: var(--ink-400); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 15px; color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(42,165,123,.15);
}
.input.with-prefix { padding-left: 46px; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-500); font-weight: 600; font-size: 14px; pointer-events: none; }

/* ============ Animations ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s ease both; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--green-100); border-top-color: var(--green-600); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.floaty { animation: floaty 6s ease-in-out infinite; }

.pattern { background-image: radial-gradient(circle at 1px 1px, rgba(212,175,55,.10) 1px, transparent 0); background-size: 22px 22px; }

/* ============================================================
   LOADING SPLASH SCREEN — Professional Login Loader
============================================================ */
.splash {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #042c20 0%, #063b2a 50%, #0a5238 100%);
  z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  animation: splashFade .3s ease;
  padding: 20px;
}
.splash::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,175,55,.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,.1) 0%, transparent 40%);
  pointer-events: none;
}
.splash-logo {
  width: 160px;
  max-width: 60vw;
  aspect-ratio: 1 / 1.15;
  background: #fff;
  border-radius: 20px;
  display: grid; place-items: center;
  box-shadow: 0 18px 48px rgba(0,0,0,.25), 0 0 0 1px rgba(212,175,55,.4);
  position: relative; z-index: 2;
  animation: splashPulse 1.8s ease-in-out infinite;
  padding: 16px 12px;
}
.splash-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.splash-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: #fff; letter-spacing: -.01em;
  text-align: center; position: relative; z-index: 2;
  line-height: 1.15;
}
.splash-tag {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700;
  position: relative; z-index: 2;
  text-align: center;
}
.splash-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 999px; overflow: hidden;
  position: relative; z-index: 2;
}
.splash-bar::after {
  content: ''; position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  animation: splashSlide 1.4s ease-in-out infinite;
}
.splash-msg {
  color: rgba(255,255,255,.65); font-size: 12.5px;
  position: relative; z-index: 2;
  text-align: center;
}
@keyframes splashFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 18px 48px rgba(0,0,0,.25), 0 0 0 1px rgba(212,175,55,.4); }
  50% { transform: scale(1.05); box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 4px rgba(212,175,55,.5); }
}
@keyframes splashSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}
.splash.fade-out { animation: splashFadeOut .4s ease forwards; }
@keyframes splashFadeOut { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   LANDING NAV — Better mobile
============================================================ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,252,249,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
  padding: 8px 0;
  gap: 8px;
}
.lp-nav-links { display: none; gap: 24px; }
.lp-nav-actions {
  display: flex; gap: 6px; align-items: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .lp-nav-links { display: flex; }
  .lp-nav-inner { min-height: 68px; padding: 0; }
  .lp-nav-actions { gap: 8px; }
}

/* ============================================================
   FOOTER — Mobile-friendly
============================================================ */
.lp-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 32px 0 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.lp-footer-brand {
  max-width: none;
}
.lp-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lp-footer-col {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.lp-footer-col strong { color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.lp-footer-col a { color: rgba(255,255,255,.65); transition: color .15s; }
.lp-footer-col a:hover { color: var(--gold-400); }
.lp-footer-bot {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  justify-content: center;
  text-align: center;
}
@media (min-width: 768px) {
  .lp-footer-grid { grid-template-columns: 1fr auto; gap: 32px; }
  .lp-footer-cols { grid-template-columns: repeat(3, auto); gap: 36px; }
  .lp-footer-bot { justify-content: space-between; text-align: left; }
}

.lp-hero { position: relative; overflow: hidden; padding: 32px 0 56px; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.lp-hero-art { display: none; }

.lp-section { padding: 60px 0; }
.lp-section-head { text-align: center; margin-bottom: 36px; }
.lp-section-head h2 { font-size: clamp(26px, 5vw, 38px); }

.lp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lp-grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* Tablet */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 1024px) {
  .lp-nav-links { display: flex; }
  .lp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .lp-hero-art { display: block; }
  .lp-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-grid-2 { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lp-section { padding: 72px 0; }
  .lp-hero { padding: 48px 0 72px; }
}

/* ============================================================
   AUTH PAGES
============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-side { display: none; }
.auth-form-side { display: grid; place-items: center; padding: 32px 20px; background: var(--paper); min-height: 100vh; }
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 24px; }

@media (min-width: 1024px) {
  .auth-wrap { grid-template-columns: 1fr 1fr; }
  .auth-side { display: block; background: var(--grad-green); color: #fff; padding: 44px; position: relative; overflow: hidden; }
  .auth-mobile-header { display: none; }
  .auth-form-side { padding: 44px; }
}

/* ============================================================
   DASHBOARD SHELL — Mobile First!
   Mobile: bottom nav + drawer for full menu
   Desktop (≥1024px): sidebar
============================================================ */
.dash {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* ----- Topbar (mobile + desktop) ----- */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
}
.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.dash-topbar-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-topbar-sub {
  font-size: 11px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 1px;
}
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ----- Hamburger button (mobile only) ----- */
.dash-burger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.dash-burger:active { background: var(--green-50); }

/* ----- Sidebar (mobile drawer + desktop side) ----- */
.dash-side {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  background: var(--white);
  border-right: 1px solid var(--line);
  z-index: 60;
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.dash-side.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
.dash-side.is-master { background: var(--green-900); border-right-color: rgba(255,255,255,.08); color: #fff; }
.dash-side-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.is-master .dash-side-head { border-bottom-color: rgba(255,255,255,.08); }
.dash-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.dash-nav-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-500); text-align: left;
  transition: all .15s; width: 100%;
  cursor: pointer;
}
.dash-nav-btn .nav-label { flex: 1; }
.dash-nav-btn:hover { background: var(--green-50); color: var(--green-700); }
.dash-nav-btn.active { background: var(--grad-green); color: #fff; }
.dash-nav-btn.master { color: rgba(255,255,255,.62); }
.dash-nav-btn.master:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav-btn.master.active { background: var(--grad-gold); color: #3c2f06; }
.nav-badge {
  background: var(--gold-500); color: #3c2f06;
  font-size: 11px; font-weight: 800; padding: 1px 8px;
  border-radius: 999px; min-width: 22px; text-align: center;
}
.dash-nav-btn.active .nav-badge { background: rgba(255,255,255,.95); }

.dash-side-foot { padding: 12px; border-top: 1px solid var(--line); }
.is-master .dash-side-foot { border-top-color: rgba(255,255,255,.08); }
.dash-user-row { display: flex; align-items: center; gap: 10px; }
.dash-user-avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--grad-green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.is-master .dash-user-avatar { background: var(--grad-gold); color: #3c2f06; }
.dash-user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-user-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-900); }
.is-master .dash-user-name { color: #fff; }
.dash-user-role { font-size: 11px; color: var(--ink-400); }
.is-master .dash-user-role { color: rgba(255,255,255,.55); }

/* Scrim */
.dash-scrim {
  position: fixed; inset: 0; background: rgba(4,44,32,.5);
  z-index: 55; backdrop-filter: blur(2px);
}

/* ----- Body ----- */
.dash-body {
  padding: 14px;
  flex: 1;
  width: 100%;
}

/* ----- Bottom Nav (Mobile Only) ----- */
.dash-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -4px 14px rgba(6,59,42,.06);
  padding: 6px 4px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}
.dash-bottom-nav.is-master {
  background: var(--green-900);
  border-top-color: rgba(255,255,255,.08);
}

.bn-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: color .15s;
  min-height: 50px;
  border-radius: 8px;
}
.bn-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.bn-btn span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Active state — mitra: green text */
.bn-btn.active {
  color: var(--green-600);
}
.dash-bottom-nav.is-master .bn-btn {
  color: rgba(255,255,255,.55);
}
.dash-bottom-nav.is-master .bn-btn.active {
  color: var(--gold-400);
}

/* Badge — tiny red dot at top-right of icon */
.bn-btn .nav-badge {
  position: absolute;
  top: 4px;
  /* center reference + offset right of the icon */
  left: 50%;
  margin-left: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  background: #d44a3a;
  color: #fff;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  text-align: center;
  box-sizing: content-box;
}
.dash-bottom-nav.is-master .bn-btn .nav-badge {
  border-color: var(--green-900);
}

/* Desktop layout switch */
@media (min-width: 1024px) {
  .dash {
    flex-direction: row;
    padding-bottom: 0;
  }
  .dash-side {
    position: sticky; top: 0; height: 100vh;
    transform: none; width: 260px; max-width: 260px;
    box-shadow: none; border-right: 1px solid var(--line);
  }
  .is-master.dash-side { border-right-color: rgba(255,255,255,.08); }
  .dash-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    padding-bottom: 0;
  }
  .dash-burger,
  .dash-bottom-nav,
  .dash-scrim { display: none !important; }
  .dash-topbar { padding: 16px 28px; }
  .dash-topbar-title { font-size: 20px; }
  .dash-topbar-sub { font-size: 12px; }
  .dash-body { padding: 24px 28px 40px; max-width: 1180px; }
}

/* On desktop wrap topbar+body */
.dash-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  width: 100%;
}

/* ============================================================
   GRIDS for dashboard content
============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qa-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 600; font-size: 13px; color: var(--ink-700);
  transition: all .15s; text-align: left;
}
.qa-btn:hover { border-color: var(--green-100); background: var(--green-50); }

.paket-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .paket-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .paket-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   TABLES (master) — mobile responsive
============================================================ */
.tbl-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tbl-head-row, .tbl-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  padding: 12px 14px;
  align-items: center;
}
.tbl-head-row {
  background: var(--paper); border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-400);
}
.tbl-row { border-bottom: 1px solid var(--line); }
.tbl-row:last-child { border-bottom: none; }
.tbl-hide-mobile { display: none; }

@media (min-width: 768px) {
  .tbl-head-row, .tbl-row {
    grid-template-columns: 56px 2fr 1fr 1.1fr 1fr 1fr auto;
  }
  .tbl-hide-mobile { display: block; }
}

.tbl-thumb {
  width: 48px; height: 36px;
  border-radius: 8px; object-fit: cover; display: block; flex-shrink: 0;
}
.tbl-thumb-ph {
  width: 48px; height: 36px; border-radius: 8px;
  background: var(--green-100); color: var(--green-500);
  display: grid; place-items: center; flex-shrink: 0;
}

/* ============================================================
   MODAL
============================================================ */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(4,44,32,.5); backdrop-filter: blur(3px);
  z-index: 1000;
  display: grid; place-items: center;
  padding: 12px;
  overflow-y: auto;
}
.modal-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px; width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.modal-card.wide { max-width: 600px; }
.modal-card.full-mobile { max-width: 460px; }

@media (max-width: 640px) {
  .modal-scrim { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 90vh;
    padding: 18px;
  }
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.modal-head h3 { font-size: 17px; font-weight: 700; line-height: 1.3; flex: 1; }

/* ============================================================
   TOAST
============================================================ */
.toast-wrap {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
  width: 90%; max-width: 420px;
}
@media (min-width: 1024px) {
  .toast-wrap { bottom: 24px; }
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease both;
  pointer-events: auto;
}
.toast.ok { background: var(--green-700); color: #fff; }
.toast.err { background: #b4322a; color: #fff; }

/* ============================================================
   PROGRESS BAR
============================================================ */
.prog-track {
  height: 8px; background: var(--green-50);
  border-radius: 999px; overflow: hidden;
}
.prog-fill {
  height: 100%; background: var(--grad-gold);
  border-radius: 999px;
  transition: width .6s ease;
}

/* ============================================================
   UPLOAD ZONE (Master form)
============================================================ */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: var(--paper);
  display: block;
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--green-400);
  background: var(--green-50);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.upload-preview {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}
.upload-remove {
  position: absolute; top: 8px; right: 8px;
  background: #b4322a; color: #fff; border: none;
  border-radius: 999px; width: 32px; height: 32px;
  font-size: 18px; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d4ddd6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b9c6bd; }

/* Helpers */
.hide-mobile { display: none; }
.hide-desktop { display: initial; }
@media (min-width: 1024px) {
  .hide-mobile { display: initial; }
  .hide-desktop { display: none; }
}
