/* BOS CLEAN — Mobile App Shell (CI3) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue: #2563EB; --blue2: #1D4ED8; --blue-soft: #EFF6FF; --blue-light: #DBEAFE;
  --ink: #0F172A; --muted: #64748B; --muted2: #94A3B8; --border: #E2E8F0;
  --bg: #F8FAFC; --white: #FFFFFF; --green: #16A34A; --green-soft: #DCFCE7;
  --orange: #EA580C; --orange-soft: #FEF3C7; --red: #DC2626; --red-soft: #FEE2E2;
  --yellow: #D97706; --navy: #0F172A; --nav-h: 72px; --max-w: 430px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; }

.app-shell { max-width: var(--max-w); margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.app-body { flex: 1; overflow-y: auto; padding-bottom: var(--nav-h); }
.app-body.no-nav { padding-bottom: 0; }

/* Hero headers */
.hero-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%); padding: 76px 20px 24px; color: #fff; }
.hero-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--blue2) 100%); padding: 76px 20px 24px; color: #fff; }
.hero-gold { background: linear-gradient(135deg, #78350F, var(--yellow)); padding: 76px 20px 24px; color: #fff; }
.hero-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 8px; }

.stat-row { display: flex; gap: 10px; margin-top: 16px; }
.stat-box { flex: 1; background: rgba(255,255,255,0.15); border-radius: 14px; padding: 12px 10px; border: 1px solid rgba(255,255,255,0.2); }
.stat-box .val { font-size: 20px; font-weight: 900; }
.stat-box .lbl { font-size: 11px; opacity: 0.75; margin-top: 2px; }

.page-white { background: var(--white); padding: 16px 20px; }
.page-pad { padding: 16px 20px; }
.section-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }

/* Cards */
.card { background: var(--white); border-radius: 16px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.card-warn { border: 1.5px solid var(--orange-soft); }
.card-list { display: flex; align-items: center; gap: 12px; }
.card-list .info { flex: 1; min-width: 0; }
.card-list .name { font-size: 14px; font-weight: 700; }
.card-list .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Kartu bisa diklik */
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
a.card-link:active { transform: scale(0.98); }
a.card-link .chev { font-size: 18px; color: var(--muted2); flex-shrink: 0; margin-left: 4px; }
a.card-link.card-list-wrap .card-list { align-items: center; }

.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar.orange { background: var(--orange-soft); color: var(--orange); }

/* Tags */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-orange { background: var(--orange-soft); color: var(--orange); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-gray { background: var(--bg); color: var(--muted); }

/* Service split boxes */
.svc-grid { display: flex; gap: 10px; margin-bottom: 16px; }
.svc-box { flex: 1; border-radius: 14px; padding: 14px; }
.svc-box.blue { background: var(--blue-soft); }
.svc-box.orange { background: var(--orange-soft); }
.svc-box.green { background: #D1FAE5; }
.svc-box.gray { background: var(--bg); border: 1px solid var(--border); }
.svc-box .svc-label { font-size: 13px; font-weight: 700; }
.svc-box .svc-val { font-size: 18px; font-weight: 800; margin-top: 4px; }
.svc-box .svc-sub { font-size: 11px; color: var(--muted); }
.svc-label { display: flex; align-items: center; gap: 6px; }

.bc-jenis-ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; line-height: 0; }
.bc-jenis-ico--sm svg { width: 16px; height: 16px; }
.bc-jenis-ico--md svg { width: 22px; height: 22px; }
.bc-jenis-ico--lg svg { width: 28px; height: 28px; }
.menu-icon .bc-jenis-ico svg { width: 24px; height: 24px; }
.tag-with-ico { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; display: block; }
.form-control { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); padding: 0 14px; font-family: inherit; font-size: 15px; background: var(--bg); }
.form-control:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-light); }
textarea.form-control { height: auto; min-height: 80px; padding: 12px 14px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.cat-switch { display: flex; gap: 8px; background: var(--bg); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.cat-switch a { flex: 1; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 500; font-size: 14px; color: var(--muted); text-decoration: none; }
.cat-switch a.active { background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.1); font-weight: 700; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; font-weight: 600; border: none; border-radius: 14px; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }
.btn:active { opacity: 0.85; }
.btn-block { width: 100%; height: 52px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-success { background: var(--green-soft); color: var(--green); }

/* ═══════════════════════════════════════════
   INNER PAGE HERO HEADER  (replaces top-white)
   ═══════════════════════════════════════════ */
.top-white {
  background: linear-gradient(145deg, #0F2167 0%, #1D4ED8 55%, #3B82F6 100%);
  padding: 18px 20px 28px;
  border-bottom: none;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 6px 24px rgba(29,78,216,.30);
  position: relative;
  overflow: hidden;
  color: #fff;
}
/* Big decorative circle top-right */
.top-white::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -50px; right: -40px; pointer-events: none;
}
/* Small decorative circle bottom-left */
.top-white::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -25px; left: -15px; pointer-events: none;
}
/* Text overrides */
.top-white h1 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: #fff; position: relative; z-index: 1; }
.top-white p  { color: rgba(255,255,255,.75); position: relative; z-index: 1; }
.top-white .back-link { color: rgba(255,255,255,.80); font-weight: 600; text-decoration: none; position: relative; z-index: 1; }
.top-white .back-link:hover { color: #fff; }
/* Buttons inside hero */
.top-white .btn-primary { background: rgba(255,255,255,.20); color: #fff; border: 1.5px solid rgba(255,255,255,.30); backdrop-filter: blur(4px); }
.top-white .btn-primary:hover { background: rgba(255,255,255,.30); }
/* top-row */
.top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; position: relative; z-index: 1; }
/* Chips inside hero (layanan page) */
.top-white .master-chip { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.top-white .master-chip.active { background: rgba(255,255,255,.92); color: var(--blue2); border-color: transparent; font-weight: 700; }
.top-white .master-chip.active .bc-jenis-ico { color: var(--blue2) !important; }
.top-white .master-cabang-label { color: rgba(255,255,255,.75); }
/* Sub-text / helper text inside hero */
.top-white .sub { color: rgba(255,255,255,.70); }

/* ── Color variants ── */
.top-white--teal   { background: linear-gradient(145deg,#0f4c5c,#0d9488,#14b8a6); box-shadow: 0 6px 24px rgba(13,148,136,.30); }
.top-white--green  { background: linear-gradient(145deg,#14532d,#15803d,#16a34a); box-shadow: 0 6px 24px rgba(22,163,74,.30);  }
.top-white--violet { background: linear-gradient(145deg,#3b0764,#6d28d9,#8b5cf6); box-shadow: 0 6px 24px rgba(109,40,217,.30); }
.top-white--orange { background: linear-gradient(145deg,#7c2d12,#c2410c,#ea580c); box-shadow: 0 6px 24px rgba(194,65,12,.30);  }
.top-white--indigo { background: linear-gradient(145deg,#1e1b4b,#3730a3,#4f46e5); box-shadow: 0 6px 24px rgba(55,48,163,.30);  }
.top-white--rose   { background: linear-gradient(145deg,#881337,#be123c,#e11d48); box-shadow: 0 6px 24px rgba(190,18,60,.30);  }
.top-white--cyan   { background: linear-gradient(145deg,#0c4a6e,#0369a1,#0891b2); box-shadow: 0 6px 24px rgba(8,145,178,.30);  }
.top-white--dark   { background: linear-gradient(145deg,#0f172a,#1e293b,#334155); box-shadow: 0 6px 24px rgba(15,23,42,.40);   }

.back-link { font-size: 13px; color: var(--blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--max-w); height: var(--nav-h); background: var(--white); border-top: 1px solid var(--border); display: flex; align-items: center; padding-bottom: 8px; z-index: 200; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; text-decoration: none; color: var(--muted2); font-size: 9px; min-width: 0; }
.bottom-nav a .icon { font-size: 18px; }
.bottom-nav a.active { color: var(--blue); font-weight: 700; }
.bottom-nav a .icon { font-size: 20px; line-height: 1; }
.bottom-nav a.active .dot { width: 4px; height: 4px; border-radius: 2px; background: var(--blue); margin-top: 1px; }

/* Login */
.login-wrap { min-height: 100vh; max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; background: var(--white); }
.login-hero { background: linear-gradient(145deg, var(--blue), var(--blue2)); padding: 90px 28px 40px; position: relative; overflow: hidden; color: #fff; }
.login-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-top: 24px; }
.login-form { flex: 1; padding: 28px 24px; }
.login-footer { padding: 0 24px 32px; text-align: center; font-size: 12px; color: var(--muted2); }

/* Flash */
.flash { margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red); }
.flash-warning { background: var(--orange-soft); color: var(--orange); }

/* Menu list */
.menu-section { margin-bottom: 14px; }
.menu-section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.menu-list { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.menu-item:last-child { border-bottom: none; }
.menu-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.menu-item .label { font-size: 14px; font-weight: 500; }
.menu-item .sub { font-size: 12px; color: var(--muted2); }
.menu-item .chev { color: var(--muted2); margin-left: auto; }

/* Tracking steps */
.steps { display: flex; gap: 0; margin: 16px 0; }
.step { flex: 1; text-align: center; position: relative; }
.step::before { content: ''; position: absolute; top: 14px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.step:last-child::before { display: none; }
.step.done::before { background: var(--blue); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--muted); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; position: relative; z-index: 1; }
.step.done .step-dot { background: var(--blue); color: #fff; }
.step.active .step-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-light); }
.step-lbl { font-size: 10px; color: var(--muted); font-weight: 600; }

/* Payment methods */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.pay-opt { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; cursor: pointer; }
.pay-opt.selected { border-color: var(--blue); background: var(--blue-soft); }
.pay-opt input { display: none; }

/* Empty */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* Progress bar */
.progress { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--blue2)); }

/* Filter tabs */
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.filter-tabs a { padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--white); color: var(--muted); border: 1px solid var(--border); }
.filter-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.notif-unread { background: var(--blue-soft); }
.notif-time { font-size: 11px; color: var(--muted2); }

/* Table compact */
.table-wrap { overflow-x: auto; }
table.bc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.bc-table th, table.bc-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
table.bc-table th { font-size: 11px; color: var(--muted); text-transform: uppercase; }
