/* ═══════════════════════════════════════════════════════════════════
 * PACCO — Shared V4 Stylesheet
 * 
 * Design System: "Friendly Pro"
 * Inspired by HubSpot warm cream + Buffer clean trust + Homerun bold typography
 * 
 * Status: Foundation file. Co-exists dengan shared-v3.css selama migrasi.
 * Halaman yang sudah dimigrasi import file ini.
 * 
 * Last updated: 8 Mei 2026
 * ═══════════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────────────────
 * 1. DESIGN TOKENS
 * ──────────────────────────────────────────────────────────────────── */
:root {
  /* — Brand Colors — */
  --pacco-coral:        #E85D2F;
  --pacco-coral-dark:   #C24716;
  --pacco-coral-darker: #9C3810;
  --pacco-coral-soft:   #FEF2EE;
  --pacco-coral-tint:   #FFF6F1;

  /* — Backgrounds — */
  --bg-warm:        #FFF4EC;   /* main warm cream — sections */
  --bg-warm-deep:   #FFEEDE;   /* slightly deeper accent */
  --bg-warm-subtle: #FFFAF4;   /* very subtle, almost white */
  --surface:        #FFFFFF;   /* card/component bg */
  --surface-alt:    #FFFBF5;   /* alternative card bg */
  --surface-dark:   #1A1A2E;   /* dark sections (CTA, navbar variants) */
  --surface-dark-2: #2D2D45;   /* darker variant */

  /* — Text — */
  --text:           #1A1A2E;   /* primary */
  --text-muted:     #6B5B4F;   /* secondary, warm tone (harmonis dgn cream) */
  --text-subtle:    #9B8D80;   /* tertiary, hints */
  --text-on-dark:   #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.65);

  /* — Accent Palette (untuk variety) — */
  --teal:        #0F766E;   /* secondary accent — stats, success */
  --teal-soft:   #ECFDF5;
  --amber:       #B45309;   /* tertiary — warnings, badges */
  --amber-soft:  #FEF3C7;
  --emerald:     #047857;   /* success state */
  --emerald-soft:#ECFDF5;
  --red:         #DC2626;   /* danger/error */
  --red-soft:    #FEE2E2;
  --blue:        #1E40AF;   /* info */
  --blue-soft:   #DBEAFE;
  --admin-blue:      #378ADD; /* admin access badge (sidebar dot + main badge) */
  --admin-blue-soft: #E6F1FB;

  /* — Borders — */
  --border-warm:        #F1E5D6;
  --border-warm-strong: #E0D6C4;
  --border-warm-bold:   #C9BBA5;
  --border-default:     #E5E7EB;

  /* — Shadows (soft, layered — bukan brutal offset) — */
  --shadow-xs:    0 1px 2px rgba(26,26,46,0.04);
  --shadow-sm:    0 1px 3px rgba(26,26,46,0.06), 0 1px 2px rgba(26,26,46,0.03);
  --shadow-md:    0 4px 12px rgba(26,26,46,0.07), 0 2px 4px rgba(26,26,46,0.04);
  --shadow-lg:    0 10px 25px rgba(26,26,46,0.08), 0 4px 10px rgba(26,26,46,0.04);
  --shadow-xl:    0 20px 40px rgba(26,26,46,0.10), 0 8px 16px rgba(26,26,46,0.05);
  --shadow-coral: 0 8px 20px rgba(232,93,47,0.18);
  --shadow-coral-lg: 0 16px 40px rgba(232,93,47,0.20);

  /* — Typography — */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* — Border Radius — */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-2xl:  18px;
  --radius-3xl:  24px;
  --radius-full: 999px;

  /* — Spacing scale — */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* — Z-index scale — */
  --z-base:    1;
  --z-sticky:  100;
  --z-overlay: 900;
  --z-modal:   1000;
  --z-toast:   1100;

  /* — Transitions — */
  --t-fast: 120ms ease;
  --t-base: 180ms ease;
  --t-slow: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ────────────────────────────────────────────────────────────────────
 * 2. RESET & BASE
 * ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-warm);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }

::selection { background: var(--pacco-coral-soft); color: var(--pacco-coral-dark); }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--pacco-coral);
  outline-offset: 2px;
}

/* Scrollbar styling (subtle, fits warm aesthetic) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--border-warm-strong); border-radius: 999px; border: 2px solid var(--bg-warm); }
::-webkit-scrollbar-thumb:hover { background: var(--border-warm-bold); }


/* ────────────────────────────────────────────────────────────────────
 * 3. TYPOGRAPHY
 * ──────────────────────────────────────────────────────────────────── */

/* Display headings (rare, untuk hero besar) */
.display-1 { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -2px; }
.display-2 { font-size: 44px; font-weight: 700; line-height: 1.08; letter-spacing: -1.6px; }

/* Standard heading scale */
h1, .h1 { font-size: 36px; font-weight: 700; line-height: 1.12; letter-spacing: -1.2px; color: var(--text); }
h2, .h2 { font-size: 28px; font-weight: 700; line-height: 1.2;  letter-spacing: -0.8px; color: var(--text); }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.3;  letter-spacing: -0.4px; color: var(--text); }
h4, .h4 { font-size: 16px; font-weight: 600; line-height: 1.4;  letter-spacing: -0.2px; color: var(--text); }
h5, .h5 { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text); }
h6, .h6 { font-size: 13px; font-weight: 600; line-height: 1.5;  color: var(--text); }

/* Body text variants */
.text-lg   { font-size: 17px; line-height: 1.6; }
.text-base { font-size: 15px; line-height: 1.6; }
.text-sm   { font-size: 13px; line-height: 1.55; }
.text-xs   { font-size: 11.5px; line-height: 1.5; }

/* Eyebrow — uppercase label */
.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pacco-coral);
}
.eyebrow.eyebrow-muted { color: var(--text-muted); }
.eyebrow.eyebrow-on-dark { color: rgba(255,255,255,0.55); }

/* Lead paragraph */
.lead { font-size: 17px; line-height: 1.65; color: var(--text-muted); }

/* Color utilities */
.text-primary  { color: var(--text); }
.text-muted    { color: var(--text-muted); }
.text-subtle   { color: var(--text-subtle); }
.text-coral    { color: var(--pacco-coral); }
.text-teal     { color: var(--teal); }
.text-amber    { color: var(--amber); }
.text-emerald  { color: var(--emerald); }
.text-red      { color: var(--red); }
.text-on-dark  { color: var(--text-on-dark); }

/* Mono */
.mono, code, kbd { font-family: var(--font-mono); font-size: 0.92em; }

/* Helpers */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }

/* Responsive heading scale */
@media (min-width: 768px) {
  h1, .h1 { font-size: 44px; letter-spacing: -1.5px; }
  h2, .h2 { font-size: 32px; letter-spacing: -1px; }
}
@media (min-width: 1024px) {
  .display-1 { font-size: 72px; letter-spacing: -2.5px; }
  .display-2 { font-size: 56px; letter-spacing: -2px; }
  h1, .h1 { font-size: 52px; letter-spacing: -1.8px; }
}


/* ────────────────────────────────────────────────────────────────────
 * 4. LAYOUT
 * ──────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.container-sm  { max-width: 720px; }
.container-md  { max-width: 960px; }
.container-lg  { max-width: 1280px; }

.section {
  padding: 56px 0;
}
@media (min-width: 768px)  { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section-sm { padding: 48px 0; }
.section-lg { padding: 80px 0; }
@media (min-width: 1024px) {
  .section-sm { padding: 64px 0; }
  .section-lg { padding: 120px 0; }
}

/* Section variants */
.section-warm  { background: var(--bg-warm); }
.section-deep  { background: var(--bg-warm-deep); }
.section-white { background: var(--surface); }
.section-dark  { background: var(--surface-dark); color: var(--text-on-dark); }

/* Section header pattern */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }


/* ────────────────────────────────────────────────────────────────────
 * 5. BUTTONS
 * ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.1px;
}
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Primary (coral filled) */
.btn-primary {
  background: var(--pacco-coral);
  color: #FFFFFF;
  border-color: var(--pacco-coral);
}
.btn-primary:hover { background: var(--pacco-coral-dark); border-color: var(--pacco-coral-dark); box-shadow: var(--shadow-coral); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* Secondary (white with coral border) */
.btn-secondary {
  background: var(--surface);
  color: var(--pacco-coral);
  border-color: var(--pacco-coral);
}
.btn-secondary:hover { background: var(--pacco-coral-soft); }

/* Outline (neutral) */
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-warm-strong);
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-warm-subtle); }

/* Dark (navy filled) */
.btn-dark {
  background: var(--surface-dark);
  color: #FFFFFF;
  border-color: var(--surface-dark);
}
.btn-dark:hover { background: #2D2D45; border-color: #2D2D45; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Ghost (transparent) */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--pacco-coral-soft); color: var(--pacco-coral-dark); }

/* Danger */
.btn-danger {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* Sizes */
.btn-xs  { padding: 6px 12px;  font-size: 12px; border-radius: var(--radius-md); gap: 6px; }
.btn-sm  { padding: 8px 14px;  font-size: 13px; border-radius: var(--radius-md); gap: 6px; }
.btn-lg  { padding: 14px 26px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl  { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-xl); }

/* Modifiers */
.btn-block { width: 100%; }
.btn-icon  { padding: 10px; aspect-ratio: 1; }


/* ────────────────────────────────────────────────────────────────────
 * 6. CARDS
 * ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card-hover:hover {
  border-color: var(--border-warm-bold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-lg { padding: 28px; border-radius: var(--radius-2xl); }
.card-sm { padding: 14px; border-radius: var(--radius-lg); }

.card-feature {
  border-color: var(--pacco-coral);
  border-width: 2px;
  box-shadow: var(--shadow-coral);
  position: relative;
}
.card-flush { padding: 0; overflow: hidden; }
.card-warm  { background: var(--bg-warm-subtle); }
.card-dark  { background: var(--surface-dark); color: var(--text-on-dark); border-color: var(--surface-dark); }

/* Card sections */
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-warm);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-warm);
  background: var(--bg-warm-subtle);
}


/* ────────────────────────────────────────────────────────────────────
 * 7. BADGES & PILLS
 * ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  white-space: nowrap;
}
.badge-coral   { background: var(--pacco-coral-soft); color: var(--pacco-coral-dark); }
.badge-teal    { background: var(--teal-soft); color: var(--teal); }
.badge-amber   { background: var(--amber-soft); color: var(--amber); }
.badge-emerald { background: var(--emerald-soft); color: var(--emerald); }
.badge-red     { background: var(--red-soft); color: var(--red); }
.badge-blue    { background: var(--blue-soft); color: var(--blue); }
.badge-neutral { background: var(--bg-warm-deep); color: var(--text-muted); }
.badge-dark    { background: var(--surface-dark); color: #FFFFFF; }

.badge-pill { border-radius: var(--radius-full); padding: 5px 12px; }
.badge-lg   { font-size: 12px; padding: 6px 14px; }

/* Status dot */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 2px;
}
.status-dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Filter pill (clickable) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border-warm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-base);
}
.pill:hover { border-color: var(--border-warm-bold); color: var(--text); }
.pill.active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--text-on-dark);
  font-weight: 600;
}


/* ────────────────────────────────────────────────────────────────────
 * 8. FORMS
 * ──────────────────────────────────────────────────────────────────── */
.input, .select, .textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-warm-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  line-height: 1.4;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-warm-bold); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--pacco-coral);
  box-shadow: 0 0 0 3px rgba(232,93,47,0.15);
  background: var(--bg-warm-subtle);
}
.input:disabled { background: var(--bg-warm-subtle); color: var(--text-subtle); cursor: not-allowed; }
.input.error, .select.error { border-color: var(--red); }
.input.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }

.textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.input-lg { padding: 13px 16px; font-size: 15px; }
.input-sm { padding: 7px 12px; font-size: 13px; }

/* Form group */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--pacco-coral); }
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.form-error {
  display: block;
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}

/* Checkbox & Radio */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--t-base), background var(--t-base);
}
.check-row:hover { border-color: var(--border-warm-bold); background: var(--bg-warm-subtle); }
.check-row input[type="checkbox"], .check-row input[type="radio"] {
  margin: 2px 0 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--pacco-coral);
  cursor: pointer;
  flex-shrink: 0;
}
.check-row .check-label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.check-row .check-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.check-row.checked { border-color: var(--pacco-coral); background: var(--pacco-coral-soft); }


/* ────────────────────────────────────────────────────────────────────
 * 9. AVATAR
 * ──────────────────────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pacco-coral-soft);
  color: var(--pacco-coral-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 20px; }
.avatar-2xl{ width: 80px; height: 80px; font-size: 26px; }

.avatar-teal    { background: var(--teal-soft); color: var(--teal); }
.avatar-amber   { background: var(--amber-soft); color: var(--amber); }
.avatar-emerald { background: var(--emerald-soft); color: var(--emerald); }
.avatar-blue    { background: var(--blue-soft); color: var(--blue); }


/* ────────────────────────────────────────────────────────────────────
 * 10. STAT CARD (label + number)
 * ──────────────────────────────────────────────────────────────────── */
.stat {
  background: var(--bg-warm-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.stat-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stat-trend.up   { color: var(--emerald); }
.stat-trend.down { color: var(--red); }


/* ────────────────────────────────────────────────────────────────────
 * 11. SIDEBAR (untuk authenticated pages)
 * ──────────────────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-warm);
}

.sidebar {
  background: var(--surface-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.sidebar-logo .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--pacco-coral);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-logo .logo-text { font-weight: 700; font-size: 16px; letter-spacing: -0.4px; color: #fff; }

/* ─── Logo image (replaces old logo-mark + logo-text combo) ─── */
.logo-img {
  display: block;
  width: auto;
  user-select: none;
}
/* Sidebar context — white square logo, slightly bigger */
.sidebar-logo .logo-img {
  height: 66px;
  max-width: 180px;
}
/* Public navbar (landing index, privacy, terms) */
.nav-public .logo-img {
  height: 80px;
  max-width: 400px;
}
/* Auth pages — desktop split visual (login, daftar, lupa-password, reset-password) */
.auth-visual-top .logo-img {
  height: 44px;
  max-width: 200px;
}
/* Auth pages — mobile compact logo (above form on small screens) */
.auth-form-mobile-logo .logo-img {
  height: 38px;
  max-width: 170px;
}
/* Footer logo */
.footer .footer-logo .logo-img {
  height: 36px;
  max-width: 160px;
}
/* Mobile: slightly smaller */
@media (max-width: 767px) {
  .sidebar-logo .logo-img {
    height: 56px;
  }
  .footer .footer-logo .logo-img {
    height: 38px;
  }
  .nav-public .logo-img {
    height: 42px;
  }
  .auth-visual-top .logo-img,
  .auth-form-mobile-logo .logo-img {
    height: 36px;
  }
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-section-title {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 10px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
  position: relative;
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-link.active {
  background: rgba(232, 93, 47, 0.16);
  color: var(--pacco-coral);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--pacco-coral);
  border-radius: 0 3px 3px 0;
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Profile card di sidebar footer */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t-base);
}
.sidebar-profile:hover { background: rgba(255, 255, 255, 0.06); }
.sidebar-profile .name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-profile .meta { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* Subscription status card di sidebar */
.sidebar-sub-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-sub-card .sub-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.55); }
.sidebar-sub-card .sub-tier { font-size: 14px; font-weight: 700; color: #fff; }
.sidebar-sub-card .sub-meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }


/* ─── Mobile responsive: sidebar hidden, slide-in overlay when open ─── */
@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    display: none !important;
  }
  .sidebar.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    animation: pacco-slideInLeft 0.22s ease-out;
  }
}
@keyframes pacco-slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Sidebar backdrop — overlay yang dim background + tap untuk close */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  animation: pacco-fadeIn 0.18s ease-out;
}
.sidebar-backdrop.show {
  display: block;
}
@keyframes pacco-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ────────────────────────────────────────────────────────────────────
 * 12. TOPBAR (untuk authenticated pages)
 * ──────────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-warm);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}
.topbar-title { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.3px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  align-items: center;
  justify-content: center;
}
@media (max-width: 1023px) { .topbar-mobile-toggle { display: inline-flex; } }

/* Topbar compact pada mobile */
@media (max-width: 767px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar-title { font-size: 14px; }
  .topbar > div { min-width: 0; flex: 1; }
  .topbar-title,
  .topbar > div > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions .btn { padding: 6px 10px; font-size: 12px; }
  .topbar-actions .btn-sm { padding: 5px 9px; font-size: 11.5px; }
}


/* ────────────────────────────────────────────────────────────────────
 * 13. PAGE CONTENT WRAPPER
 * ──────────────────────────────────────────────────────────────────── */
.app-main {
  background: var(--bg-warm);
  min-height: 100vh;
}
.page-wrap {
  padding: 24px;
  max-width: 1200px;
}
@media (min-width: 768px) { .page-wrap { padding: 32px; } }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin-bottom: 4px;
}
.page-header .page-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.page-header .page-actions {
  display: flex;
  gap: 8px;
}


/* ────────────────────────────────────────────────────────────────────
 * 14. MODAL (overlay + dialog)
 * ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.55);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 200ms ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-lg { max-width: 640px; }
.modal-sm { max-width: 380px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-header .modal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.modal-header .modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-base), color var(--t-base);
}
.modal-header .modal-close:hover { background: var(--pacco-coral-soft); color: var(--pacco-coral); }

.modal-body { padding: 0 24px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-warm);
  background: var(--bg-warm-subtle);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}


/* ────────────────────────────────────────────────────────────────────
 * 15. ALERTS / NOTICES
 * ──────────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: 13.5px;
  line-height: 1.55;
}
.alert-icon { flex-shrink: 0; font-size: 18px; line-height: 1; padding-top: 1px; }
.alert-info    { background: var(--blue-soft);    border-color: #BFDBFE; color: var(--blue); }
.alert-success { background: var(--emerald-soft); border-color: #A7F3D0; color: var(--emerald); }
.alert-warning { background: var(--amber-soft);   border-color: #FCD34D; color: var(--amber); }
.alert-danger  { background: var(--red-soft);     border-color: #FECACA; color: var(--red); }
.alert b, .alert strong { font-weight: 700; }


/* ────────────────────────────────────────────────────────────────────
 * 16. TIER BADGE (Starter / Pro / Korporat)
 * ──────────────────────────────────────────────────────────────────── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tier-badge.tier-starter  { background: var(--bg-warm-deep); color: var(--text-muted); }
.tier-badge.tier-pro      { background: var(--pacco-coral-soft); color: var(--pacco-coral-dark); }
.tier-badge.tier-korporat { background: var(--surface-dark); color: #FFD93D; }
.tier-badge.tier-trial    { background: var(--blue-soft); color: var(--blue); }


/* ────────────────────────────────────────────────────────────────────
 * 17. TABLE
 * ──────────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}
.table thead th {
  background: var(--bg-warm-subtle);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-warm);
}
.table tbody tr { border-top: 1px solid var(--border-warm); transition: background var(--t-base); }
.table tbody tr:hover { background: var(--bg-warm-subtle); }
.table tbody tr:first-child { border-top: none; }
.table .col-num { font-family: var(--font-mono); font-size: 12.5px; }


/* ────────────────────────────────────────────────────────────────────
 * 18. UTILITIES
 * ──────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider { height: 1px; background: var(--border-warm); margin: 16px 0; }
.divider-vert { width: 1px; background: var(--border-warm); align-self: stretch; }

.skeleton {
  background: linear-gradient(90deg, var(--border-warm) 25%, var(--bg-warm-subtle) 50%, var(--border-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Spacing utilities */
.mt-0 { margin-top: 0; }    .mt-1 { margin-top: 4px; }   .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }  .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-10{ margin-top: 40px; }  .mt-12{ margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; }.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }


/* ────────────────────────────────────────────────────────────────────
 * 19. ANIMATIONS
 * ──────────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }


/* ────────────────────────────────────────────────────────────────────
 * 20. NAVBAR PUBLIC (untuk landing & auth pages)
 * ──────────────────────────────────────────────────────────────────── */
.nav-public {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-warm);
  padding: 14px 0;
}
.nav-public .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav-public .nav-inner { padding: 0 32px; } }
@media (min-width: 1024px){ .nav-public .nav-inner { padding: 0 48px; } }

.nav-public .nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding-left: 100px;
}
@media (max-width: 767px) {
  .nav-public .nav-logo { padding-left: 0; }
}
.nav-public .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--pacco-coral);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.nav-public .logo-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-public .nav-links {
  display: none;
  gap: 6px;
  align-items: center;
}
@media (min-width: 768px) { .nav-public .nav-links { display: flex; } }

.nav-public .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  text-decoration: none;
}
.nav-public .nav-link:hover {
  color: var(--pacco-coral-dark);
  background: var(--pacco-coral-soft);
  transform: translateY(-1px);
}

.nav-public .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-public .nav-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  color: var(--text);
}
@media (min-width: 768px) { .nav-public .nav-mobile-toggle { display: none; } }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border-warm);
  padding: 16px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.nav-mobile-menu a:hover { background: var(--bg-warm); color: var(--pacco-coral); }
.nav-mobile-menu .mobile-cta {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--pacco-coral);
  color: #fff;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
}


/* ────────────────────────────────────────────────────────────────────
 * 21. FOOTER (untuk landing)
 * ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-warm);
  padding: 56px 0 32px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 767px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.footer .foot-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer .foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--t-base);
}
.footer .foot-col a:hover { color: var(--pacco-coral); }

.footer .foot-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer .foot-brand .footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 14px;
}

.footer .foot-bottom {
  border-top: 1px solid var(--border-warm);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-subtle);
  flex-wrap: wrap;
}
.footer .foot-social { display: flex; gap: 12px; }


/* ────────────────────────────────────────────────────────────────────
 * 22. AUTH LAYOUT (split-screen — login, signup, forgot, reset)
 * ──────────────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-warm);
}
@media (min-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr 1.1fr; }
  .auth-shell.auth-shell-wide { grid-template-columns: 1fr 1.4fr; }
}

/* Left side — visual / brand */
.auth-visual {
  display: none;
  position: relative;
  padding: 48px;
  background: var(--bg-warm);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .auth-visual { display: flex; flex-direction: column; justify-content: space-between; }
}

.auth-visual-top {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.auth-visual-top .logo-mark {
  width: 32px; height: 32px;
  background: var(--pacco-coral);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.auth-visual-top .logo-text {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.auth-visual-mid {
  position: relative;
  z-index: 1;
}
.auth-visual-mid h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 460px;
}
.auth-visual-mid p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 28px;
}

.auth-visual-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-visual-card .v-icon {
  width: 44px; height: 44px;
  background: var(--pacco-coral-soft);
  color: var(--pacco-coral);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-visual-card .v-text { font-size: 13.5px; color: var(--text); font-weight: 500; line-height: 1.5; }
.auth-visual-card .v-text strong { font-weight: 700; }

.auth-visual-bottom {
  font-size: 12px;
  color: var(--text-subtle);
  position: relative;
  z-index: 1;
}

/* Decorative dots in auth visual */
.auth-visual::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(232,93,47,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(15,118,110,0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Right side — form */
.auth-form-side {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
}
@media (min-width: 768px)  { .auth-form-side { padding: 48px 40px; } }
@media (min-width: 1024px) { .auth-form-side { padding: 56px 64px; } }

.auth-form-card {
  width: 100%;
  max-width: 420px;
}
.auth-form-card.auth-form-card-wide { max-width: 520px; }

.auth-form-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  text-decoration: none;
}
.auth-form-mobile-logo .logo-mark {
  width: 30px; height: 30px;
  background: var(--pacco-coral);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.auth-form-mobile-logo .logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--text);
}
@media (min-width: 1024px) { .auth-form-mobile-logo { display: none; } }

.auth-form-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.auth-form-card .auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) { .auth-form-row { grid-template-columns: 1fr 1fr; } }

.auth-form-card .form-group { margin-bottom: 14px; }
.auth-form-card .input { padding: 11px 14px; font-size: 14px; }

.auth-form-card .auth-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 18px;
  font-size: 13px;
}
.auth-form-card .auth-link-row a {
  color: var(--pacco-coral);
  font-weight: 600;
}
.auth-form-card .auth-link-row a:hover { color: var(--pacco-coral-dark); text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-warm);
}
.auth-divider span {
  font-size: 11.5px;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-foot-text {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.auth-foot-text a {
  color: var(--pacco-coral);
  font-weight: 600;
}
.auth-foot-text a:hover { color: var(--pacco-coral-dark); text-decoration: underline; }

.auth-back-home {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background var(--t-base), color var(--t-base);
}
.auth-back-home:hover { background: var(--bg-warm); color: var(--text); }

/* Platform pills (multi-select for signup) */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 480px) { .platform-grid { grid-template-columns: repeat(4, 1fr); } }

.platform-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--border-warm-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t-base);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
}
.platform-pill:hover { border-color: var(--border-warm-bold); background: var(--bg-warm-subtle); }
.platform-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.platform-pill:has(input:checked) {
  border-color: var(--pacco-coral);
  background: var(--pacco-coral-soft);
  color: var(--pacco-coral-dark);
  font-weight: 600;
}

/* Password strength meter */
.strength-track {
  width: 100%;
  height: 6px;
  background: var(--border-warm);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.strength-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  border-radius: 999px;
  transition: width var(--t-base), background var(--t-base);
}
.strength-fill.weak   { width: 33%; background: var(--red); }
.strength-fill.medium { width: 66%; background: var(--amber); }
.strength-fill.strong { width: 100%; background: var(--emerald); }

.strength-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 11.5px;
}
.strength-label { font-weight: 600; color: var(--text-subtle); }
.strength-label.weak   { color: var(--red); }
.strength-label.medium { color: var(--amber); }
.strength-label.strong { color: var(--emerald); }
.strength-pct  { color: var(--text-subtle); font-family: var(--font-mono); }

/* Password requirements box */
.req-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 14px 0;
}
.req-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.req-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color var(--t-base);
}
.req-row .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--border-warm);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--t-base);
}
.req-row.ok { color: var(--emerald); font-weight: 500; }
.req-row.ok .check { background: var(--emerald); color: #fff; }

/* Match indicator */
.match-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.match-indicator.ok { color: var(--emerald); }
.match-indicator.bad { color: var(--red); }
.match-indicator .check {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}


/* ────────────────────────────────────────────────────────────────────
 * 23. LEGAL PAGE LAYOUT (Privacy, Terms — TOC + content)
 * ──────────────────────────────────────────────────────────────────── */
.legal-shell {
  background: var(--bg-warm);
  min-height: 100vh;
}

.legal-hero {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 48px 0 32px;
}
.legal-hero h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .legal-hero h1 { font-size: 44px; letter-spacing: -1.6px; } }
.legal-hero .legal-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.legal-hero .legal-meta strong { color: var(--text); font-weight: 600; }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0 80px;
}
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 240px 1fr; gap: 48px; align-items: flex-start; }
}

.legal-toc {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 16px;
  height: fit-content;
}
.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 8px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}
.legal-toc ol li {
  counter-increment: toc-counter;
}
.legal-toc ol li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--t-base);
  line-height: 1.5;
}
.legal-toc ol li a::before {
  content: counter(toc-counter);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 14px;
}
.legal-toc ol li a:hover { background: var(--bg-warm); color: var(--text); }

.legal-content {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.legal-content > p { margin-bottom: 14px; color: var(--text-muted); }
.legal-content > p strong { color: var(--text); font-weight: 600; }

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 40px 0 14px;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--border-warm);
  padding-top: 32px;
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal-content ul, .legal-content ol {
  margin: 8px 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 6px;
  line-height: 1.65;
}
.legal-content ul { list-style-type: disc; }
.legal-content ol { list-style-type: decimal; }
.legal-content ul li::marker, .legal-content ol li::marker { color: var(--pacco-coral); }
.legal-content a {
  color: var(--pacco-coral);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--pacco-coral-dark); }

.legal-content .highlight-box {
  background: var(--pacco-coral-soft);
  border: 1px solid #FED7C0;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 16px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.legal-content .highlight-box strong { color: var(--pacco-coral-darker); font-weight: 700; }

.legal-content .contact-cta {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}
.legal-content .contact-cta h3 {
  font-size: 18px;
  margin: 0 0 6px;
  border: none;
  padding: 0;
}
.legal-content .contact-cta p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 14px;
}

.legal-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background var(--t-base), color var(--t-base);
}
.legal-back-top:hover { background: var(--bg-warm-deep); color: var(--text); text-decoration: none; }


/* ════════════════════════════════════════════════════════════════════
 * END OF SHARED-V4.CSS
 * Total: ~23 sections, ~35 component patterns
 * ════════════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────────────────
 * ONBOARDING WIDGET (floating checklist di dashboard)
 * ──────────────────────────────────────────────────────────────────── */
.onb-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-warm);
  padding: 18px;
  z-index: 100;
  animation: onb-slideup 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes onb-slideup {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.onb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.onb-title {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.onb-icon {
  font-size: 17px;
}
.onb-close {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.onb-close:hover {
  background: var(--bg-warm);
  color: var(--text);
}

.onb-progress {
  margin-bottom: 14px;
}
.onb-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.onb-progress-text strong {
  color: var(--pacco-coral);
  font-weight: 700;
}
.onb-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-warm);
  border-radius: 999px;
  overflow: hidden;
}
.onb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pacco-coral), var(--pacco-coral-dark));
  border-radius: 999px;
  transition: width 0.5s ease-out;
  width: 0%;
}

.onb-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--text);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.onb-step:hover {
  background: var(--bg-warm);
}
.onb-step.completed {
  cursor: default;
}
.onb-step.completed:hover {
  background: transparent;
}

.onb-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.onb-step.completed .onb-step-icon {
  background: #10B981;
  color: white;
  font-size: 13px;
}
.onb-step:not(.completed) .onb-step-icon {
  background: var(--bg-warm);
  border: 2px solid var(--border-warm);
  color: var(--text-muted);
}
.onb-step:not(.completed):hover .onb-step-icon {
  border-color: var(--pacco-coral);
  color: var(--pacco-coral);
}

.onb-step-text {
  flex: 1;
}
.onb-step-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.onb-step.completed .onb-step-title {
  color: var(--text-muted);
  text-decoration: line-through;
}
.onb-step-arrow {
  color: var(--pacco-coral);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.15s ease;
}
.onb-step:hover .onb-step-arrow {
  transform: translateX(3px);
}

/* Reopen floating button (saat widget di-dismiss) */
.onb-reopen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pacco-coral);
  color: white;
  font-size: 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 93, 47, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.onb-reopen:hover {
  background: var(--pacco-coral-dark);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(232, 93, 47, 0.5);
}

/* Celebration state — semua complete */
.onb-widget.celebrating {
  background: linear-gradient(135deg, #FFF1EB 0%, var(--surface) 70%);
  border: 2px solid var(--pacco-coral);
  box-shadow: 0 16px 48px rgba(232, 93, 47, 0.25);
}
.onb-celebration {
  text-align: center;
  padding: 8px 0;
}
.onb-celebration-emoji {
  font-size: 36px;
  margin-bottom: 8px;
}
.onb-celebration-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--pacco-coral-dark);
  margin-bottom: 4px;
}
.onb-celebration-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .onb-widget {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
  .onb-reopen {
    bottom: 16px;
    right: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   PAGINATION (.pg-* classes used by renderPagination() in shared.js)
   Used by: admin.html (User Management), dashboard.html (Riwayat langganan), 
            riwayat.html, etc.
═══════════════════════════════════════════════════════════════════ */
.pagination {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--bg-warm-subtle, #FAF6F2);
  border: 1px solid var(--border-warm, #EBE3DB);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted, #6B7280);
}

.pg-info { 
  flex-shrink: 0;
  white-space: nowrap;
}
.pg-info strong { 
  color: var(--text, #1A1A2E);
  font-weight: 700;
}

.pg-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pg-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-warm-strong, #D6CCBE);
  background: var(--surface, #FFFFFF);
  color: var(--text, #1A1A2E);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.pg-btn:hover:not(:disabled):not(.active) {
  border-color: var(--pacco-coral, #E85D2F);
  color: var(--pacco-coral, #E85D2F);
}

.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pg-btn.pg-num {
  min-width: 32px;
  padding: 6px 10px;
  text-align: center;
}

.pg-btn.pg-num.active {
  background: var(--pacco-coral, #E85D2F);
  border-color: var(--pacco-coral, #E85D2F);
  color: #FFFFFF;
}

.pg-ellipsis {
  padding: 6px 4px;
  color: var(--text-muted, #6B7280);
  font-weight: 600;
  user-select: none;
}

.pg-size {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pg-size-label {
  color: var(--text-muted, #6B7280);
  font-size: 12px;
  white-space: nowrap;
}
.pg-size-select {
  padding: 5px 8px;
  border: 1px solid var(--border-warm-strong, #D6CCBE);
  border-radius: 5px;
  font-size: 12px;
  background: var(--surface, #FFFFFF);
  color: var(--text, #1A1A2E);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.pg-size-select:hover { border-color: var(--text-muted, #6B7280); }
.pg-size-select:focus {
  outline: none;
  border-color: var(--pacco-coral, #E85D2F);
}

/* Mobile responsive — stack vertically pada layar kecil */
@media (max-width: 640px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pg-info, .pg-size {
    text-align: center;
    justify-content: center;
  }
  .pg-controls {
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   FILTER INPUTS & SELECTS (shared base styling)
   Used by: admin.html, dashboard.html, riwayat.html, app.html
   Pages that define their own .filter-select inline will override this.
═══════════════════════════════════════════════════════════════════ */
.filter-select, select.filter-select {
  padding: 7px 12px;
  border: 1px solid var(--border-warm-strong, #D6CCBE);
  border-radius: 6px;
  font-size: 12.5px;
  background: var(--surface, #FFFFFF);
  color: var(--text, #1A1A2E);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-select:hover {
  border-color: var(--text-muted, #6B7280);
}
.filter-select:focus {
  border-color: var(--pacco-coral, #E85D2F);
  box-shadow: 0 0 0 3px var(--pacco-coral-soft, rgba(232, 93, 47, 0.16));
}

/* ═════════════════════════════════════════════════════════════
   SECTION HYBRID — Full Dark Wrapper (Pendekatan A)
   Pattern untuk section penting yang butuh visual emphasis:
   FULL background dark navy dengan coral radial glow.
   Stat cards / buttons di dalamnya pakai semi-transparent dark.
   Class name "hybrid" historical — sekarang full dark wrapper.
   ═════════════════════════════════════════════════════════════ */
.section-hybrid {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}
.section-hybrid::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,93,47,0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.section-hybrid > * { position: relative; z-index: 1; }

.section-hybrid-header {
  background: transparent;
  color: inherit;
  padding: 22px 24px 14px;
  position: relative;
}

.section-hybrid-header .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.section-hybrid-header h2,
.section-hybrid-header h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
  color: var(--text-on-dark);
  line-height: 1.3;
}
.section-hybrid-header .meta,
.section-hybrid-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.section-hybrid-body {
  padding: 10px 24px 22px;
  position: relative;
}

/* Badge overrides di dalam dark header — kontras OK */
.section-hybrid-header .tier-badge,
.section-hybrid .tier-badge {
  background: rgba(232,93,47,0.22);
  color: #F0997B;
}
.section-hybrid-header .admin-access-badge,
.section-hybrid .admin-access-badge {
  background: rgba(55,138,221,0.18);
  color: #85B7EB;
  border-color: rgba(55,138,221,0.3);
}

/* ─── Stat cards di dark wrapper (packer .pk-stat-card, riwayat .stat-card) ─── */
.section-hybrid .pk-stat-card,
.section-hybrid .stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-hybrid .pk-stat-label,
.section-hybrid .stat-card .label {
  color: rgba(255,255,255,0.55);
}
.section-hybrid .pk-stat-value,
.section-hybrid .stat-card .value {
  color: var(--text-on-dark);
}
.section-hybrid .stat-card .sub {
  color: rgba(255,255,255,0.5);
}

/* ─── Quota progress bar (packer.html) ─── */
.section-hybrid .quota-progress-wrap {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.section-hybrid .quota-progress-head .label,
.section-hybrid .quota-progress-meta {
  color: rgba(255,255,255,0.55);
}
.section-hybrid .quota-progress-head .pct {
  color: var(--text-on-dark);
}
.section-hybrid .quota-progress-bar {
  background: rgba(255,255,255,0.08);
}
/* fill colors (.warn .danger emerald) tetap pakai variabel existing — OK di dark */

/* ─── Type cards (app.html Packing/Unboxing) ─── */
.section-hybrid .type-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-on-dark);
}
.section-hybrid .type-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}
.section-hybrid .type-card.active {
  background: rgba(232,93,47,0.18);
  border-color: var(--pacco-coral);
}
.section-hybrid .type-card-title {
  color: var(--text-on-dark);
}
.section-hybrid .type-card-tagline {
  color: rgba(255,255,255,0.6);
}
.section-hybrid .type-card-icon {
  background: rgba(255,255,255,0.08);
}
.section-hybrid .type-card-check {
  border-color: rgba(255,255,255,0.25);
}

/* Active state overrides (existing pakai !important + gradient ke putih,
   tidak cocok di dark wrapper. Override dengan dark-friendly versions.) */
.section-hybrid .type-card.active[data-rec-type="packing"] {
  background: rgba(232, 93, 47, 0.22) !important;
  border-color: var(--pacco-coral) !important;
  box-shadow: 0 4px 16px rgba(232, 93, 47, 0.25), 0 1px 3px rgba(232, 93, 47, 0.12) !important;
}
.section-hybrid .type-card.active[data-rec-type="packing"] .type-card-title {
  color: #fff !important;
}
.section-hybrid .type-card.active[data-rec-type="packing"] .type-card-tagline {
  color: rgba(255,255,255,0.75);
}
.section-hybrid .type-card.active[data-rec-type="unboxing"] {
  background: rgba(55, 138, 221, 0.22) !important;
  border-color: var(--admin-blue) !important;
  box-shadow: 0 4px 16px rgba(55, 138, 221, 0.25), 0 1px 3px rgba(55, 138, 221, 0.12) !important;
}
.section-hybrid .type-card.active[data-rec-type="unboxing"] .type-card-icon {
  background: var(--admin-blue) !important;
}
.section-hybrid .type-card.active[data-rec-type="unboxing"] .type-card-title {
  color: #fff !important;
}
.section-hybrid .type-card.active[data-rec-type="unboxing"] .type-card-tagline {
  color: rgba(255,255,255,0.75);
}

/* ─── Mode buttons (app.html Loop/Single) ─── */
.section-hybrid .mode-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-on-dark);
}
.section-hybrid .mode-btn:hover {
  background: rgba(232, 93, 47, 0.15);
  border-color: var(--pacco-coral);
}
/* Unboxing mode override hover (existing pakai blue-soft + var(--text) yang invisible di dark) */
body.mode-unboxing .section-hybrid .mode-btn:hover {
  background: rgba(55, 138, 221, 0.18);
  border-color: var(--admin-blue);
  box-shadow: 0 4px 12px rgba(55, 138, 221, 0.15);
}
.section-hybrid .mode-btn-header {
  color: var(--text-on-dark);
}
.section-hybrid .mode-btn-tagline {
  color: rgba(255,255,255,0.6);
}
.section-hybrid .mode-btn-features li {
  color: rgba(255,255,255,0.7);
}
/* CTA button "Pilih" tetap coral solid — works di dark */

/* ─── Sub-title "Pilih mode rekam" di body (app.html) ─── */
.section-hybrid .mode-selector-title {
  color: var(--text-on-dark);
}
.section-hybrid .mode-selector-sub {
  color: rgba(255,255,255,0.65);
}

/* Responsive: kurangi padding di mobile */
@media (max-width: 640px) {
  .section-hybrid-header { padding: 20px 18px 12px; }
  .section-hybrid-body { padding: 8px 18px 20px; }
}

/* ═════════════════════════════════════════════════════════════
   SECTION HYBRID — Recording Panel Overrides
   Untuk <div class="card section-hybrid"> di app.html Panel 1 & 1b.
   Override semua inner elements supaya readable di dark wrapper.
   ═════════════════════════════════════════════════════════════ */

/* Override .card kalau combined dengan .section-hybrid.
   CRITICAL: app.html page-level .card { background: var(--surface) } declared
   AFTER shared-v4.css .section-hybrid, dengan specificity sama (0,1,0).
   Cascade rule: later declaration wins → .card (putih) menang → text putih invisible.
   Solusi: pakai compound selector .card.section-hybrid (0,2,0) untuk menang. */
.card.section-hybrid {
  background: var(--surface-dark);
  border: none;
  overflow: hidden;
  position: relative;
  color: var(--text-on-dark);
}

/* Card title (h2 di dalam) */
.section-hybrid .card-title {
  color: var(--text-on-dark);
}

/* Back button "← Ganti mode" */
.section-hybrid .btn-back-mode {
  color: rgba(255,255,255,0.65);
}
.section-hybrid .btn-back-mode:hover {
  color: #F0997B;
}

/* How-steps "Cara kerja" section */
.section-hybrid .how-steps {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.section-hybrid .how-step-num {
  box-shadow: 0 4px 12px rgba(232, 93, 47, 0.25), 0 0 0 4px rgba(255,255,255,0.04);
}
.section-hybrid .how-step-text {
  color: rgba(255,255,255,0.85);
}
.section-hybrid .how-step-text strong {
  color: #F0997B;
}
.section-hybrid .how-step-foot {
  color: rgba(255,255,255,0.5);
  border-top-color: rgba(255,255,255,0.12);
}

/* Form labels & inputs */
.section-hybrid .form-label {
  color: rgba(255,255,255,0.55);
}
.section-hybrid select,
.section-hybrid input[type="text"],
.section-hybrid input[type="date"],
.section-hybrid input[type="number"] {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-on-dark);
}
.section-hybrid select option {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.section-hybrid select:focus,
.section-hybrid input:focus {
  border-color: var(--pacco-coral);
  box-shadow: 0 0 0 3px rgba(232,93,47,0.2);
}

/* Method cards (Kamera / Barcode Scanner) */
.section-hybrid .method-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.section-hybrid .method-card:hover:not(.locked) {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.25);
}
.section-hybrid .method-card.active {
  background: rgba(232,93,47,0.18);
  border-color: var(--pacco-coral);
}
.section-hybrid .method-card-title {
  color: var(--text-on-dark);
}
.section-hybrid .method-card-sub {
  color: rgba(255,255,255,0.55);
}
.section-hybrid .method-card.locked {
  background: rgba(255,255,255,0.03);
}
.section-hybrid .method-locked-badge {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Tier camera hint info box (pakai !important untuk override inline style HTML) */
.section-hybrid #tier-camera-hint,
.section-hybrid #tier-camera-hint-single {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.7) !important;
}

/* Single unboxing banner (info biru) — pakai !important untuk override inline style */
.section-hybrid #single-unboxing-banner {
  background: rgba(55, 138, 221, 0.15) !important;
  border-color: rgba(55, 138, 221, 0.35) !important;
}
.section-hybrid #single-unboxing-banner > div {
  color: #85B7EB !important;
}

/* Platform cards (app.html Shopee / TikTok Shop selector) di dark wrapper */
.section-hybrid .platform-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.section-hybrid .platform-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.25);
}
.section-hybrid .platform-card.active {
  background: rgba(232,93,47,0.18);
  border-color: var(--pacco-coral);
  box-shadow: 0 3px 12px rgba(232, 93, 47, 0.18);
}
.section-hybrid .platform-card-title {
  color: var(--text-on-dark);
}

/* ═════════════════════════════════════════════════════════════
   SIDEBAR ADMIN PANEL BUTTON
   Tombol "Admin Panel" di dalam .sidebar-sub-card (bawah tier info).
   Muncul HANYA kalau user admin (display:none default, JS toggle).
   Pattern: solid admin-blue button penuh lebar dengan shield icon.
   ═════════════════════════════════════════════════════════════ */
.sidebar-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--admin-blue);
  border-radius: 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.sidebar-admin-btn:hover {
  background: #2E76C2;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(55, 138, 221, 0.35);
}
.sidebar-admin-btn:active {
  transform: translateY(0);
}
.sidebar-admin-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ═════════════════════════════════════════════════════════════
   PASSWORD TOGGLE — Eye icon to show/hide password
   Universal pattern dipakai di semua form yang punya password input
   (daftar, masuk, reset-password, profile, packer gate, riwayat gate).
   ═════════════════════════════════════════════════════════════ */
.password-toggle-wrap {
  position: relative;
}
.password-toggle-wrap .input {
  padding-right: 44px;
}
.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.password-toggle-btn:hover {
  color: var(--text);
  background: rgba(232, 93, 47, 0.06);
}
.password-toggle-btn:focus {
  outline: none;
  color: var(--pacco-coral);
  background: var(--pacco-coral-soft);
}
.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.password-toggle-btn .icon-eye-slash {
  display: none;
}
.password-toggle-btn.shown .icon-eye {
  display: none;
}
.password-toggle-btn.shown .icon-eye-slash {
  display: block;
}
