/* ==========================================================================
   FINKU GEN-Z — UI COMPONENTS SYSTEM (components.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CARDS & PANELS
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
body.light-mode .card:hover {
  border-color: #D8D5D2;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stat Card (for widgets & KPI overview) */
.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--stat-glow, rgba(0, 229, 160, 0.1)) 0%, transparent 70%);
  pointer-events: none;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 229, 160, 0.12);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 229, 160, 0.22);
}

.btn-danger {
  background: var(--gradient-danger);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.25);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.15);
  background-color: var(--bg-secondary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Text entry: caret grows to the right. Parents may use text-align:right for
   Rupiah display (.money-value) — that must NOT set direction:rtl on inputs. */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
textarea {
  direction: ltr;
  unicode-bidi: plaintext;
}
input[type="number"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   BADGES & TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green {
  background: rgba(0, 229, 160, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 229, 160, 0.3);
}

.badge-yellow {
  background: rgba(255, 181, 71, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 181, 71, 0.3);
}

.badge-red {
  background: rgba(255, 71, 87, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-blue {
  background: rgba(78, 205, 196, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Light mode badges — dark ink on soft pastel (avoid neon-on-neon) */
body.light-mode .badge-green {
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
  border-color: rgba(4, 120, 87, 0.35);
}
body.light-mode .badge-yellow {
  background: rgba(180, 83, 9, 0.12);
  color: #92400E;
  border-color: rgba(180, 83, 9, 0.35);
}
body.light-mode .badge-red {
  background: rgba(225, 29, 72, 0.1);
  color: #BE123C;
  border-color: rgba(225, 29, 72, 0.32);
}
body.light-mode .badge-purple {
  background: rgba(109, 40, 217, 0.1);
  color: #5B21B6;
  border-color: rgba(109, 40, 217, 0.32);
}
body.light-mode .badge-blue {
  background: rgba(3, 105, 161, 0.1);
  color: #0369A1;
  border-color: rgba(3, 105, 161, 0.32);
}
body.light-mode .badge-pink {
  background: rgba(219, 39, 119, 0.1);
  color: #BE185D;
  border-color: rgba(219, 39, 119, 0.32);
}
body.light-mode .btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.18);
}
body.light-mode .btn-ghost {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   PROGRESS BARS
   -------------------------------------------------------------------------- */
.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  border-radius: var(--border-radius-pill);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gradient-primary);
}

.progress-bar.danger  { background: var(--gradient-danger); }
.progress-bar.warning { background: linear-gradient(90deg, #FFB547, #FF8C00); }
.progress-bar.purple  { background: var(--gradient-goals); }
.progress-bar.success { background: var(--gradient-primary); }
.progress-bar.blue    { background: linear-gradient(90deg, #4ECDC4, #00B4D8); }

/* --------------------------------------------------------------------------
   MODALS & DIALOGS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 400;
  /* v25: hide with display — opacity-only caused "active but invisible" paint bugs */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  pointer-events: none;
}

.modal-backdrop.active {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

/* v28 diagnostic/force: survive CSS specificity wars after nest fix */
.modal-backdrop.modal-force-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
}

/* Nested modals (Setup AI / confirm from Profil) must stack above profile */
.modal-backdrop.modal-on-top {
  z-index: 110000 !important;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(1) translateY(0);
  padding: 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}

.modal-close:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES (Gap fillers used by modules)
   -------------------------------------------------------------------------- */
.font-bold { font-weight: 700; }
.font-xl   { font-size: 24px; }
.badge-pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Pulse animations for status indicators */
.pulse-danger {
  animation: pulse-red 1.5s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.pulse-success {
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Navigation Section Label (sidebar grouping) */
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 16px 4px;
  margin-top: 4px;
}

/* Nav badge counter (e.g., BNPL danger count) */
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Alert items (used in dashboard upcoming alerts widget) */
.alert-widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}
.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-tertiary);
  gap: 12px;
  transition: background-color var(--transition-fast);
}
.alert-item:hover { background-color: var(--bg-glass-hover); }
.alert-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.alert-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Dashboard KPI Grid */
.dashboard-grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* Dashboard Main Two-Column Split */
.dashboard-main-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) {
  .dashboard-main-split {
    grid-template-columns: 1fr;
  }
}

/* Chart container wrapper inside cards */
.chart-container-wrapper {
  position: relative;
  width: 100%;
}

/* --------------------------------------------------------------------------
   UI TOGGLE SWITCH
   -------------------------------------------------------------------------- */
.finku-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.finku-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.finku-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 34px;
}
.finku-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.finku-toggle input:checked + .finku-toggle-slider {
  background-color: var(--accent-green);
}
.finku-toggle input:checked + .finku-toggle-slider:before {
  transform: translateX(20px);
}

/* ==========================================================================
   ZEN COMPACT DASHBOARD STYLES
   ========================================================================== */
.zen-compact-card {
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 0;
}

.zen-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  min-height: 40px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.zen-list-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.zen-list-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zen-list-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.zen-list-item-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.zen-list-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1px 0;
}

.zen-list-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.zen-list-item-right {
  text-align: right;
}

.zen-list-item-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.zen-list-item-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}
.zen-list-item-action:hover {
  background: rgba(255,255,255,0.1);
}

/* M2 — Mobile readability overrides (desktop dense rules above stay intact) */
@media (max-width: 768px) {
  .zen-list-item {
    min-height: 48px;
    padding: 12px;
    gap: 8px;
  }
  .zen-list-item-icon {
    width: 36px;
    height: 36px;
  }
  .zen-list-item-icon svg {
    width: 18px;
    height: 18px;
  }
  .zen-list-item-title {
    font-size: 0.98rem;
  }
  .zen-list-item-subtitle {
    font-size: 0.82rem;
  }
  .zen-list-item-value {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }
  .zen-list-item-action {
    min-height: 44px;
    padding: 8px 12px;
  }
  .zen-list-item-value.money-value {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   MONEY VALUE — Option A: full Rp, never mid-break / never abbreviated
   -------------------------------------------------------------------------- */
.money-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   PAGE KPI GRID — class-based (not fragile attribute selectors)
   -------------------------------------------------------------------------- */
.page-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   CALM ALERT (Style Y) — soft borders, keep info, less siren aesthetic
   -------------------------------------------------------------------------- */
.calm-alert {
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  margin-bottom: 16px;
}
.calm-alert__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
}
.calm-alert__body {
  flex: 1;
  min-width: 0;
}
.calm-alert__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.35;
}
.calm-alert__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.calm-alert.safe {
  background: rgba(0, 229, 160, 0.07);
  border-color: rgba(0, 229, 160, 0.22);
}
.calm-alert.warning {
  background: rgba(255, 181, 71, 0.08);
  border-color: rgba(255, 181, 71, 0.28);
}
.calm-alert.danger {
  background: rgba(244, 63, 94, 0.07);
  border-color: rgba(244, 63, 94, 0.22);
}
.calm-alert.info {
  background: rgba(78, 205, 196, 0.08);
  border-color: rgba(78, 205, 196, 0.25);
}
body.light-mode .calm-alert.safe {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.28);
}
body.light-mode .calm-alert.warning {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.28);
}
body.light-mode .calm-alert.danger {
  background: rgba(190, 18, 60, 0.07);
  border-color: rgba(190, 18, 60, 0.24);
}
body.light-mode .calm-alert.info {
  background: rgba(14, 116, 144, 0.07);
  border-color: rgba(14, 116, 144, 0.24);
}

/* TX filter rows + Top Kategori */
.tx-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tx-filter-search {
  flex: 1;
  min-width: 180px;
}
.tx-filter-select {
  width: 150px;
}
.tx-date-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.tx-date-input {
  width: 145px;
  font-size: 12px;
}
.top-cat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.top-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-cat-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 100px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.top-cat-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(128, 128, 128, 0.12);
  border-radius: 4px;
  overflow: hidden;
  min-width: 40px;
}
.top-cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}
.top-cat-amt {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

/* Alloc preview rows */
.alloc-preview-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.alloc-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}
.alloc-preview-label {
  color: var(--text-secondary);
  min-width: 0;
}
.alloc-preview-amt {
  font-size: 12px;
  flex-shrink: 0;
  text-align: right;
}

/* Forecast amount block */
.forecast-amount-block {
  text-align: right;
  flex-shrink: 0;
}
.forecast-amount-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

/* BNPL banner actions */
.bnpl-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: flex-start;
}
.bnpl-banner-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

/* P0/P1 — sync banner, tips, PWA, start-here */
.axiom-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(247, 183, 49, 0.12);
  border: 1px solid rgba(247, 183, 49, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.axiom-sync-banner[hidden] { display: none !important; }
.axiom-sync-banner-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
  flex: 1;
  min-width: 180px;
}

/* v66 — Mode Pemula hide (disabled Fase 2: tips → semua menu terlihat)
   Keep selectors for rollback; body.beginner-mode no longer applied. */
body.beginner-mode .nav-item[data-nav-tier="power"],
body.beginner-mode .nav-section-label[data-nav-tier="power"],
body.beginner-mode .bottom-nav-more-item[data-nav-tier="power"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   FASE 2 — Feature tips + onboarding carousel
   -------------------------------------------------------------------------- */
#feature-tip-host {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120000;
  pointer-events: none;
}
#feature-tip-host.is-open {
  display: block;
  pointer-events: auto;
}
.feature-tip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.feature-tip-card {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(300px, calc(100vw - 24px));
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: auto;
}
.feature-tip-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.feature-tip-body {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.feature-tip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.feature-tip-target {
  outline: 2px solid var(--accent-yellow) !important;
  outline-offset: 3px;
  position: relative;
  z-index: 120001;
}

#onboarding-carousel {
  text-align: center;
}
.onboard-carousel-track {
  position: relative;
  min-height: 220px;
  margin-bottom: 14px;
}
.onboard-carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease-out;
}
.onboard-carousel-slide.active {
  display: flex;
}
.onboard-carousel-slide img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
.onboard-carousel-slide h3 {
  font-size: 1.15rem;
  margin: 4px 0 0;
}
.onboard-carousel-slide p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  max-width: 340px;
}
.onboard-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 14px;
}
.onboard-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-color);
  cursor: pointer;
}
.onboard-carousel-dot.active {
  background: var(--accent-yellow);
  transform: scale(1.15);
}
.onboard-carousel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item[data-nav-tier="merged"],
.nav-merged-hidden {
  display: none !important;
}
.sync-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.sync-health-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sync-health-badge[data-level="red"] {
  background: rgba(255, 71, 87, 0.12);
  color: #ff6b7a;
  border: 1px solid rgba(255, 71, 87, 0.35);
}
.sync-health-badge[data-level="red"]::before { background: #ff4757; }
.sync-health-badge[data-level="yellow"] {
  background: rgba(247, 183, 49, 0.12);
  color: #e0a800;
  border: 1px solid rgba(247, 183, 49, 0.4);
}
.sync-health-badge[data-level="yellow"]::before { background: #F7B731; }
.sync-health-badge[data-level="green"] {
  background: rgba(0, 229, 160, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 229, 160, 0.35);
}
.sync-health-badge[data-level="green"]::before { background: var(--accent-green); }
.beranda-arus-kas {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}
.beranda-arus-kas:empty { display: none; }
.sync-advanced-details {
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
}
.sync-advanced-details > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  user-select: none;
}
.sync-advanced-details[open] > summary { margin-bottom: 12px; }
.sync-advanced-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.zen-start-here {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 229, 160, 0.25);
  background: rgba(0, 229, 160, 0.06);
}
.zen-start-here[hidden] { display: none !important; }
.zen-start-here-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zen-empty-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 2px;
}
.zen-empty-cta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.axiom-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue, #00a3ff);
  cursor: help;
  position: relative;
  vertical-align: middle;
  line-height: 1;
}
.axiom-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(240px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-tertiary, #1a1a24);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.axiom-tip:hover::after,
.axiom-tip:focus::after {
  opacity: 1;
}
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 980;
  pointer-events: none;
}
.pwa-install-banner-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-secondary, #12121a);
  border: 1px solid rgba(0, 229, 160, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.pwa-install-banner-copy {
  flex: 1;
  min-width: 160px;
}
.pwa-guide-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pwa-guide-panel {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-tertiary, rgba(255,255,255,0.03));
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pwa-guide-panel.is-preferred {
  opacity: 1;
  border-color: rgba(0, 229, 160, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 229, 160, 0.12);
}
.pwa-guide-heading {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pwa-guide-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pwa-guide-steps li + li {
  margin-top: 4px;
}
#qa-type-lainnya[hidden] { display: none !important; }
