/* ════════════════════════════════════════
   DESIGN TOKENS — Obsidian Premium
════════════════════════════════════════ */
:root {
  --bg-base:     #050508;
  --bg-raised:   #0c0c12;
  --bg-overlay:  #111118;
  --bg-elevated: #18181f;
  --bg-float:    #1e1e28;

  --glass-10: rgba(255,255,255,0.04);
  --glass-20: rgba(255,255,255,0.07);
  --glass-30: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border-hi: rgba(255,255,255,0.15);

  --brand:       #6366f1;
  --brand-light: #818cf8;
  --brand-glow:  rgba(99,102,241,0.35);
  --brand-soft:  rgba(99,102,241,0.12);

  --emerald:     #10b981;
  --emerald-soft:rgba(16,185,129,0.12);
  --amber:       #f59e0b;
  --amber-soft:  rgba(245,158,11,0.12);
  --rose:        #f43f5e;
  --rose-soft:   rgba(244,63,94,0.12);
  --violet:      #a855f7;
  --violet-soft: rgba(168,85,247,0.12);
  --sky:         #0ea5e9;
  --sky-soft:    rgba(14,165,233,0.12);

  --text-1: #f0f0f8;
  --text-2: #9898b8;
  --text-3: #4a4a68;
  --text-4: #2e2e42;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #f43f5e;
  --info:    #6366f1;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 999px;

  --font-body:  'Outfit', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono:  'JetBrains Mono', monospace;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --shadow-brand: 0 8px 32px rgba(99,102,241,0.3);
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { height:100%; font-size:16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-1);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: var(--font-body); }
::selection { background: var(--brand-soft); color: var(--brand-light); }
select option { background: #111118; color: var(--text-1); }
html.light select option { background: #ffffff; color: #0f0f1a; }

/* ════════════════════════════════════════
   LOADING SCREEN
════════════════════════════════════════ */
#loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}
.loading-logo { display: flex; align-items: center; gap: 14px; animation: fadeUp .6s ease both; }
.loading-mark {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: var(--shadow-brand);
}
.loading-wordmark { font-size: 28px; font-weight: 800; letter-spacing: -1.5px; color: var(--text-1); }
.loading-wordmark em { font-style: normal; color: var(--brand-light); }
.loading-bar-wrap {
  width: 120px; height: 3px; background: var(--bg-float);
  border-radius: var(--r-full); overflow: hidden; animation: fadeUp .6s .2s ease both;
}
.loading-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  border-radius: var(--r-full); animation: loadBar 1.4s .3s ease forwards;
}
.loading-label { font-size: 13px; color: var(--text-3); font-weight: 500; animation: fadeUp .6s .3s ease both; letter-spacing: .3px; }
@keyframes loadBar { to { width: 100%; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
#loading.out { animation: fadeOut .4s ease forwards; }
@keyframes fadeOut { to { opacity:0; pointer-events:none; } }

/* ════════════════════════════════════════
   AUTH SCREEN
════════════════════════════════════════ */
#auth {
  position: fixed; inset: 0; z-index: 800;
  display: none; align-items: center; justify-content: center;
  padding: max(env(safe-area-inset-top), 24px) max(env(safe-area-inset-right), 20px) max(env(safe-area-inset-bottom), 24px) max(env(safe-area-inset-left), 20px);
  background: var(--bg-base); overflow-y: auto;
}
#auth.show { display: flex; }
#auth::before, #auth::after {
  content: ''; position: fixed; border-radius: 50%;
  pointer-events: none; filter: blur(80px); opacity: .35;
}
#auth::before { width: 400px; height: 400px; background: radial-gradient(circle, #6366f1, transparent 70%); top: -100px; left: -100px; }
#auth::after  { width: 300px; height: 300px; background: radial-gradient(circle, #a855f7, transparent 70%); bottom: -80px; right: -80px; }

.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-overlay);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-xl); padding: 36px 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,.08);
  position: relative; z-index: 1; animation: fadeUp .5s ease;
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.auth-mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--shadow-brand); }
.auth-wordmark { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.auth-wordmark em { font-style: normal; color: var(--brand-light); }
.auth-heading { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 4px; }
.auth-sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--bg-elevated); border-radius: var(--r-md); padding: 4px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 9px 0; border-radius: 10px; border: none; background: none; color: var(--text-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s; font-family: var(--font-body); }
.auth-tab.on { background: var(--bg-float); color: var(--text-1); box-shadow: 0 1px 4px rgba(0,0,0,.4); }

.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.field-input { width: 100%; padding: 13px 16px; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 14px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s; }
.field-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-input::placeholder { color: var(--text-4); }
.pw-wrap { position: relative; }
.pw-wrap .field-input { padding-right: 46px; }
.pw-eye { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 17px; border-radius: 0 var(--r-md) var(--r-md) 0; transition: color .2s; }
.pw-eye:hover { color: var(--text-1); }
.auth-error { font-size: 13px; color: var(--rose); background: var(--rose-soft); border: 1px solid rgba(244,63,94,.2); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; animation: shake .3s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.auth-success { font-size: 13px; color: var(--emerald); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 14px; display: none; line-height: 1.5; }
.auth-success.show { display: block; animation: fadeUp .3s ease; }
.auth-link-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.auth-link { font-size: 12px; font-weight: 600; color: var(--brand-light); cursor: pointer; background: none; border: none; padding: 4px 0; transition: opacity .2s; font-family: var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.auth-back { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; background: none; border: none; padding: 0 0 16px; font-family: var(--font-body); }
.auth-back::before { content: '←'; font-size: 15px; }
.pass-strength { height: 4px; border-radius: 2px; margin-top: 6px; background: var(--bg-elevated); overflow: hidden; display: none; }
.pass-strength.show { display: block; }
.pass-strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, #4f46e5 100%);
  border: none; border-radius: var(--r-md); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: -.2px;
  box-shadow: var(--shadow-brand); transition: all .2s; font-family: var(--font-body); position: relative; overflow: hidden;
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-danger { width: 100%; padding: 13px; background: var(--rose-soft); border: 1.5px solid rgba(244,63,94,.25); border-radius: var(--r-md); color: var(--rose); font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 10px; font-family: var(--font-body); transition: all .2s; }
.btn-danger:active { transform: scale(.98); }
.btn-secondary { width: 100%; padding: 12px; background: var(--glass-10); border: 1.5px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: all .2s; }
.btn-secondary:active { transform: scale(.98); }

/* ════════════════════════════════════════
   APP SHELL
════════════════════════════════════════ */
#shell { display: none; flex-direction: column; height: 100dvh; }
#shell.show { display: flex; }

.header {
  flex-shrink: 0;
  padding-top: max(env(safe-area-inset-top), 12px);
  padding-bottom: 10px;
  padding-left: max(env(safe-area-inset-left), 18px);
  padding-right: max(env(safe-area-inset-right), 18px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(5,5,8,.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  position: relative; z-index: 40;
}
.header-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.header-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--violet)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.header-name { font-size: 17px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.header-name em { font-style: normal; color: var(--brand-light); }
.header-right { display: flex; align-items: center; gap: 7px; flex-shrink: 1; min-width: 0; }
.pill-user { display: flex; align-items: center; gap: 6px; background: var(--glass-10); border: 1px solid var(--glass-border); border-radius: var(--r-full); padding: 5px 12px 5px 5px; cursor: default; flex-shrink: 0; }
.pill-avatar { width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pill-uname { font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-role { display: none; }
.pill-role.admin { background: var(--rose-soft); color: var(--rose); }


.hbtn { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--glass-10); border: 1px solid var(--glass-border); color: var(--text-2); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; position: relative; flex-shrink: 0; }
.hbtn:active { transform: scale(.88); }
.notif-pip { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 1.5px solid var(--bg-base); display: none; animation: popIn .3s cubic-bezier(.34,1.56,.64,1); }
.notif-pip.show { display: block; }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

.scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.scroll-area::-webkit-scrollbar { width: 3px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }
.scroll-area::-webkit-scrollbar-thumb { background: var(--bg-float); border-radius: 2px; }

.tabbar { flex-shrink: 0; background: rgba(5,5,8,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid var(--glass-border); display: flex; padding-bottom: max(env(safe-area-inset-bottom), 4px); padding-left: max(env(safe-area-inset-left), 0px); padding-right: max(env(safe-area-inset-right), 0px); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border: none; background: none; color: var(--text-4); font-size: 10px; font-weight: 600; cursor: pointer; transition: color .2s; font-family: var(--font-body); letter-spacing: .3px; min-width: 44px; }
.tab-ico { font-size: 22px; transition: transform .25s cubic-bezier(.34,1.56,.64,1); display: block; }
.tab.on { color: var(--brand-light); }
.tab.on .tab-ico { transform: translateY(-2px) scale(1.1); }

/* ════════════════════════════════════════
   PAGES
════════════════════════════════════════ */
.page { display: none; padding-bottom: 20px; }
.page.on { display: block; animation: pageIn .3s ease; }
@keyframes pageIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ════════════════════════════════════════
   DASHBOARD
════════════════════════════════════════ */
.dash-hero { padding: 28px max(env(safe-area-inset-right), 20px) 24px max(env(safe-area-inset-left), 20px); position: relative; overflow: hidden; background: var(--bg-raised); }
.dash-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 10% 50%, rgba(99,102,241,.18) 0%, transparent 60%), radial-gradient(ellipse at 90% 20%, rgba(168,85,247,.12) 0%, transparent 50%); pointer-events: none; }
.dash-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent); }
.hero-content { position: relative; z-index: 1; }
.hero-greeting { font-size: 13px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.hero-name { font-size: 26px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 24px; background: linear-gradient(135deg, var(--text-1), var(--text-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-name .accent { -webkit-text-fill-color: var(--brand-light); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-tile { background: var(--glass-10); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 16px 14px; backdrop-filter: blur(12px); position: relative; overflow: hidden; transition: transform .2s; }
.stat-tile:active { transform: scale(.97); }
.stat-tile::before { content: ''; position: absolute; bottom: -20px; right: -10px; width: 70px; height: 70px; border-radius: 50%; opacity: .08; pointer-events: none; }
.stat-tile.t-brand::before { background: var(--brand); }
.stat-tile.t-emerald::before { background: var(--emerald); }
.stat-tile.t-amber::before { background: var(--amber); }
.stat-tile.t-violet::before { background: var(--violet); }
.tile-label { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 8px; letter-spacing: .3px; }
.tile-value { font-size: 32px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -2px; line-height: 1; }
.tile-sub { font-size: 10px; color: var(--text-4); margin-top: 6px; font-weight: 500; }
.t-brand .tile-value  { color: var(--brand-light); }
.t-emerald .tile-value { color: var(--emerald); }
.t-amber .tile-value  { color: var(--amber); }
.t-violet .tile-value { color: var(--violet); }

.live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--emerald); background: var(--emerald-soft); border: 1px solid rgba(16,185,129,.2); border-radius: var(--r-full); padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: livePulse 2s ease infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); } }

.section { padding: 20px max(env(safe-area-inset-right), 20px) 0 max(env(safe-area-inset-left), 20px); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 14px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 7px; }
.section-title .sticon { font-size: 16px; }
.section-link { font-size: 12px; color: var(--brand-light); font-weight: 600; cursor: pointer; transition: opacity .2s; padding: 4px 0; }
.section-link:active { opacity: .6; }

.pipe-scroll { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pipe-scroll::-webkit-scrollbar { display: none; }
.pipe-card { flex-shrink: 0; width: 108px; background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-md); padding: 13px 12px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; }
.pipe-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px 2px 0 0; }
.pipe-card:active { transform: scale(.95); }
.pipe-num { font-size: 24px; font-weight: 800; font-family: var(--font-mono); line-height: 1; letter-spacing: -2px; margin-bottom: 5px; }
.pipe-label { font-size: 10px; color: var(--text-3); font-weight: 600; letter-spacing: .3px; }
.pc-booking .pipe-card::before { background: var(--brand); }
.pc-booking .pipe-num { color: var(--brand-light); }
.pc-dp .pipe-card::before { background: var(--amber); }
.pc-dp .pipe-num { color: var(--amber); }
.pc-berkas .pipe-card::before { background: var(--violet); }
.pc-berkas .pipe-num { color: var(--violet); }
.pc-selesai .pipe-card::before { background: var(--emerald); }
.pc-selesai .pipe-num { color: var(--emerald); }
.pc-batal .pipe-card::before { background: var(--rose); }
.pc-batal .pipe-num { color: var(--rose); }

.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; cursor: pointer; border-bottom: 1px solid var(--glass-border); transition: background .15s; }
.feed-item:last-child { border-bottom: none; }
.feed-item:active { background: var(--glass-10); border-radius: var(--r-sm); margin: 0 -8px; padding: 13px 8px; }
.feed-av { width: 40px; height: 40px; border-radius: var(--r-md); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-info { flex: 1; min-width: 0; }
.feed-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.feed-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
.feed-time { font-size: 10px; color: var(--text-4); font-family: var(--font-mono); flex-shrink: 0; }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.team-tile { background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-md); padding: 13px; display: flex; align-items: center; gap: 10px; }
.team-av { width: 36px; height: 36px; border-radius: var(--r-sm); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-sub  { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* ════════════════════════════════════════
   KONSUMEN PAGE
════════════════════════════════════════ */
.search-zone { padding: 14px max(env(safe-area-inset-right), 18px) 8px max(env(safe-area-inset-left), 18px); position: sticky; top: 0; z-index: 30; background: rgba(5,5,8,.87); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.search-box { position: relative; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-3); pointer-events: none; }
.search-field { width: 100%; padding: 12px 14px 12px 42px; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 14px; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s; }
.search-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-field::placeholder { color: var(--text-4); }
.filter-row { display: flex; gap: 7px; padding: 10px max(env(safe-area-inset-right), 18px) 14px max(env(safe-area-inset-left), 18px); overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.ftag { flex-shrink: 0; padding: 6px 14px; border-radius: var(--r-full); border: 1.5px solid var(--glass-border); background: transparent; color: var(--text-3); font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s; letter-spacing: .3px; font-family: var(--font-body); }
.ftag.on { background: var(--brand-soft); border-color: rgba(99,102,241,.4); color: var(--brand-light); }
.admin-bar { display: none; align-items: center; gap: 9px; padding: 0 max(env(safe-area-inset-right), 18px) 12px max(env(safe-area-inset-left), 18px); }
.admin-bar.show { display: flex; }
.admin-bar-label { font-size: 11px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.admin-select { flex: 1; padding: 7px 11px; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); border-radius: var(--r-sm); color: var(--text-1); font-size: 12px; outline: none; font-family: var(--font-body); }
.kons-feed { padding: 0 max(env(safe-area-inset-right), 18px) 120px max(env(safe-area-inset-left), 18px); display: flex; flex-direction: column; gap: 10px; }
.kons-card { background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 16px; cursor: pointer; position: relative; overflow: hidden; transition: all .2s; }
.kons-card:active { transform: scale(.98); }
.kons-card::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; }
.kons-card.st-booking::before  { background: var(--brand); }
.kons-card.st-dp::before       { background: var(--amber); }
.kons-card.st-berkas::before   { background: var(--violet); }
.kons-card.st-selesai::before  { background: var(--emerald); }
.kons-card.st-batal::before    { background: var(--rose); }
.kons-card.st-booking  { background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, var(--bg-overlay) 60%); }
.kons-card.st-selesai  { background: linear-gradient(135deg, rgba(16,185,129,.04) 0%, var(--bg-overlay) 60%); }
.kons-card.st-batal    { background: linear-gradient(135deg, rgba(244,63,94,.03) 0%, var(--bg-overlay) 60%); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-name { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.card-unit { font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 500; }
.card-owner { font-size: 10px; color: var(--text-4); margin-top: 2px; }
.s-badge { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); letter-spacing: .4px; }
.s-booking { background: var(--brand-soft);  color: var(--brand-light); }
.s-dp      { background: var(--amber-soft);  color: var(--amber); }
.s-berkas  { background: var(--violet-soft); color: var(--violet); }
.s-selesai { background: var(--emerald-soft);color: var(--emerald); }
.s-batal   { background: var(--rose-soft);   color: var(--rose); }
.card-footer { display: flex; background: var(--glass-10); border-radius: var(--r-sm); padding: 9px 12px; gap: 14px; }
.card-stat { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); font-weight: 500; }

/* ════════════════════════════════════════
   FAB
════════════════════════════════════════ */
.fab { position: fixed; bottom: calc(max(env(safe-area-inset-bottom), 4px) + 64px + 16px); right: max(env(safe-area-inset-right), 20px); z-index: 50; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #4f46e5); border: none; color: #fff; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(99,102,241,.5); transition: all .25s cubic-bezier(.34,1.56,.64,1); font-family: var(--font-body); }
.fab:active { transform: scale(.88) rotate(45deg); }

/* ════════════════════════════════════════
   MODAL SYSTEM
════════════════════════════════════════ */
.modal-bg { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-end; }
.modal-bg.open { display: flex; }
.modal-sheet { width: 100%; max-height: 94dvh; background: var(--bg-overlay); border-radius: 24px 24px 0 0; border-top: 1px solid var(--glass-border-hi); overflow-y: auto; animation: sheetUp .32s cubic-bezier(.22,1,.36,1); scrollbar-width: none; }
.modal-sheet::-webkit-scrollbar { display: none; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-pill { width: 32px; height: 4px; background: var(--bg-float); border-radius: 2px; margin: 10px auto 0; }
.sheet-head { padding: 14px 20px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--glass-border); }
.sheet-title { font-size: 16px; font-weight: 700; letter-spacing: -.4px; }
.sheet-close { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--glass-border); color: var(--text-3); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.sheet-close:active { transform: scale(.9); }
.sheet-body { padding: 18px max(env(safe-area-inset-right), 18px) max(env(safe-area-inset-bottom), 18px) max(env(safe-area-inset-left), 18px); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-select { width: 100%; padding: 13px 16px; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 14px; font-weight: 500; outline: none; transition: border-color .2s; appearance: none; cursor: pointer; }
.field-select:focus { border-color: var(--brand); }
.field-textarea { width: 100%; padding: 13px 16px; resize: vertical; min-height: 80px; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 14px; font-weight: 500; outline: none; transition: border-color .2s; }
.field-textarea:focus { border-color: var(--brand); }
.field-textarea::placeholder { color: var(--text-4); }

/* ════════════════════════════════════════
   DETAIL SHEET
════════════════════════════════════════ */
.det-hero { padding: 24px 18px 20px; display: flex; align-items: center; gap: 16px; background: var(--bg-raised); position: relative; overflow: hidden; }
.det-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(99,102,241,.12), transparent 60%); pointer-events: none; }
.det-avatar { width: 60px; height: 60px; border-radius: 18px; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.det-name { font-size: 20px; font-weight: 800; letter-spacing: -.8px; }
.det-unit { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.qa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 16px 20px; }
.qa-btn { padding: 12px 8px; background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: var(--r-md); color: var(--text-1); font-size: 12px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: all .2s; font-family: var(--font-body); }
.qa-btn:active { transform: scale(.94); }
.qa-ico { font-size: 20px; }
.qa-btn.qa-call  { border-color: rgba(16,185,129,.3); background: var(--emerald-soft); color: var(--emerald); }
.qa-btn.qa-wa    { border-color: rgba(16,185,129,.3); background: var(--emerald-soft); color: var(--emerald); }
.qa-btn.qa-edit  { border-color: rgba(99,102,241,.3); background: var(--brand-soft);   color: var(--brand-light); }
.qa-btn.qa-log   { border-color: rgba(245,158,11,.3); background: var(--amber-soft);   color: var(--amber); }
.qa-btn.qa-cal   { border-color: rgba(14,165,233,.3); background: var(--sky-soft);     color: var(--sky); }
.det-section { padding: 4px 20px 14px; }
.det-section + .det-section { padding-top: 0; }
.det-sec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-4); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); }
.det-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; gap: 12px; }
.det-key { font-size: 12px; color: var(--text-3); font-weight: 500; flex-shrink: 0; }
.det-val { font-size: 12px; font-weight: 700; text-align: right; flex: 1; }
.berkas-grid { display: flex; flex-direction: column; gap: 0; }
.berkas-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--glass-border); cursor: pointer; transition: opacity .1s; }
.berkas-item:last-child { border-bottom: none; }
.berkas-item:active { opacity: .7; }
.berkas-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--bg-float); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; transition: all .2s; }
.berkas-check.done { background: var(--emerald); border-color: var(--emerald); }
.berkas-label { font-size: 13px; flex: 1; font-weight: 500; }
.berkas-label.done { color: var(--text-3); text-decoration: line-through; }
.tl { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 1.5px; background: var(--glass-border); }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 1; background: var(--bg-elevated); border: 1.5px solid var(--glass-border); }
.tl-body { flex: 1; }
.tl-action { font-size: 13px; font-weight: 600; letter-spacing: -.2px; }
.tl-time { font-size: 10px; color: var(--text-4); font-family: var(--font-mono); margin-top: 2px; }
.tl-note { font-size: 12px; color: var(--text-2); background: var(--bg-elevated); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 6px; line-height: 1.5; }

/* ════════════════════════════════════════
   LAPORAN PAGE
════════════════════════════════════════ */
.lap-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); }
.kpi-card { background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden; }
.kpi-card::after { content: ''; position: absolute; bottom: -16px; right: -8px; width: 64px; height: 64px; border-radius: 50%; opacity: .06; pointer-events: none; }
.kpi-card.kc-blue::after   { background: var(--brand); }
.kpi-card.kc-green::after  { background: var(--emerald); }
.kpi-card.kc-amber::after  { background: var(--amber); }
.kpi-card.kc-violet::after { background: var(--violet); }
.kpi-icon { font-size: 20px; margin-bottom: 8px; }
.kpi-label { font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.kpi-value { font-size: 22px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -1.5px; }
.kc-blue   .kpi-value { color: var(--brand-light); }
.kc-green  .kpi-value { color: var(--emerald); }
.kc-amber  .kpi-value { color: var(--amber); }
.kc-violet .kpi-value { color: var(--violet); }

/* Period filter */
.period-bar { display: flex; gap: 6px; padding: 14px max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); overflow-x: auto; scrollbar-width: none; }
.period-bar::-webkit-scrollbar { display: none; }
.ptag { flex-shrink: 0; padding: 5px 12px; border-radius: var(--r-full); border: 1.5px solid var(--glass-border); background: transparent; color: var(--text-3); font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: var(--font-body); }
.ptag.on { background: var(--brand-soft); border-color: rgba(99,102,241,.4); color: var(--brand-light); }

/* Chart container */
.chart-wrap { margin: 0 max(env(safe-area-inset-right), 18px); background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 16px; }
.chart-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }

.prog-list { display: flex; flex-direction: column; gap: 12px; padding: 0 max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); }
.prog-item { }
.prog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prog-name { font-size: 12px; font-weight: 600; }
.prog-meta { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.prog-track { height: 6px; background: var(--bg-elevated); border-radius: var(--r-full); overflow: hidden; }
.prog-fill { height: 100%; border-radius: var(--r-full); transition: width .8s cubic-bezier(.22,1,.36,1); }

.target-card { margin: 0 max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(168,85,247,.06)); border: 1px solid rgba(99,102,241,.2); border-radius: var(--r-lg); padding: 18px; }
.target-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.target-label { font-size: 13px; font-weight: 700; }
.target-num { font-size: 22px; font-weight: 800; font-family: var(--font-mono); color: var(--brand-light); letter-spacing: -1px; }
.target-track { height: 8px; background: var(--bg-float); border-radius: var(--r-full); overflow: hidden; }
.target-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--violet)); border-radius: var(--r-full); transition: width .8s cubic-bezier(.22,1,.36,1); }
.target-pct { font-size: 11px; color: var(--text-3); margin-top: 6px; }

.rank-list { padding: 0 max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.rank-item:last-child { border-bottom: none; }
.rank-pos { font-size: 14px; width: 24px; flex-shrink: 0; text-align: center; }
.rank-av { width: 36px; height: 36px; border-radius: var(--r-sm); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.rank-sub  { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.rank-val  { font-size: 12px; font-weight: 700; color: var(--brand-light); font-family: var(--font-mono); flex-shrink: 0; }

/* ════════════════════════════════════════
   KALENDER PAGE
════════════════════════════════════════ */
.cal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px max(env(safe-area-inset-right), 18px) 12px max(env(safe-area-inset-left), 18px); }
.cal-nav-btn { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--glass-10); border: 1px solid var(--glass-border); color: var(--text-2); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.cal-nav-btn:active { transform: scale(.9); }
.cal-month-label { font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 max(env(safe-area-inset-right), 12px) 8px max(env(safe-area-inset-left), 12px); }
.cal-day-name { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-4); padding: 6px 0; letter-spacing: .5px; }
.cal-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .15s; }
.cal-day:hover { background: var(--glass-10); }
.cal-day:active { transform: scale(.9); }
.cal-day.today { background: var(--brand-soft); color: var(--brand-light); font-weight: 800; }
.cal-day.selected { background: var(--brand); color: #fff; font-weight: 800; }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
.cal-day.today.has-event::after { background: #fff; }
.cal-day.other-month { color: var(--text-4); opacity: .5; }
.cal-events { padding: 8px max(env(safe-area-inset-right), 18px) 20px max(env(safe-area-inset-left), 18px); }
.cal-events-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.cal-event-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.cal-event-item:active { transform: scale(.98); }
.cal-event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-event-info { flex: 1; min-width: 0; }
.cal-event-name { font-size: 13px; font-weight: 600; }
.cal-event-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cal-event-time { font-size: 11px; font-family: var(--font-mono); color: var(--text-4); flex-shrink: 0; }
.cal-add-follow-up { width: 100%; padding: 12px; border-radius: var(--r-md); background: var(--brand-soft); border: 1.5px dashed rgba(99,102,241,.4); color: var(--brand-light); font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: all .2s; margin-bottom: 8px; }
.cal-add-follow-up:active { transform: scale(.98); }

/* ════════════════════════════════════════
   PENGATURAN PAGE
════════════════════════════════════════ */
.set-profile-hero { padding: 24px 20px 20px; background: var(--bg-raised); display: flex; align-items: center; gap: 16px; margin-bottom: 4px; position: relative; overflow: hidden; }
.set-profile-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.1), transparent 60%); pointer-events: none; }
.set-big-av { width: 60px; height: 60px; border-radius: 18px; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.set-email { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.set-group { padding: 0 max(env(safe-area-inset-right), 18px) 4px max(env(safe-area-inset-left), 18px); }
.set-group-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-4); padding: 16px 0 10px; }
.set-form { background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-lg); overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; border-bottom: 1px solid var(--glass-border); cursor: pointer; transition: background .15s; }
.set-row:last-child { border-bottom: none; }
.set-row:active { background: var(--glass-10); }
.set-row-info { flex: 1; }
.set-row-name { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.set-row-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.set-arrow { color: var(--text-4); font-size: 16px; }
.conn-card { background: var(--bg-overlay); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.conn-title { font-size: 13px; font-weight: 700; }
.conn-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.conn-status { font-size: 12px; font-weight: 700; color: var(--emerald); display: flex; align-items: center; gap: 5px; }
.install-card { margin: 14px max(env(safe-area-inset-right), 18px) 0 max(env(safe-area-inset-left), 18px); background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(168,85,247,.07)); border: 1px solid rgba(99,102,241,.2); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 14px; }
.install-icon { font-size: 28px; flex-shrink: 0; }
.install-text { flex: 1; }
.install-title { font-size: 13px; font-weight: 700; }
.install-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.btn-install { padding: 8px 16px; border-radius: var(--r-sm); background: var(--brand); border: none; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; font-family: var(--font-body); transition: all .2s; }
.btn-install:active { transform: scale(.95); }

/* Theme toggle */
.theme-toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.theme-toggle-info { flex: 1; }
.theme-toggle-name { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.theme-toggle-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.toggle-pill { position: relative; width: 52px; height: 28px; flex-shrink: 0; cursor: pointer; }
.toggle-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--bg-float); border: 1.5px solid var(--glass-border); border-radius: var(--r-full); transition: background .3s, border-color .3s; }
.toggle-pill input:checked + .toggle-track { background: var(--brand); border-color: var(--brand); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.toggle-pill input:checked + .toggle-track .toggle-thumb { transform: translateX(24px); background: #fff; }

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast { position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-4px); background: var(--bg-elevated); border: 1px solid var(--glass-border-hi); border-radius: var(--r-full); padding: 10px 18px; font-size: 13px; font-weight: 600; z-index: 9000; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); white-space: nowrap; opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.22,1,.36,1); }
.toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.empty-state { text-align: center; padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ico { font-size: 48px; opacity: .5; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text-2); letter-spacing: -.4px; }
.empty-sub { font-size: 13px; color: var(--text-4); }

/* ════════════════════════════════════════
   AVATAR COLORS
════════════════════════════════════════ */
.av0 { background: linear-gradient(135deg,#6366f1,#4338ca); }
.av1 { background: linear-gradient(135deg,#10b981,#059669); }
.av2 { background: linear-gradient(135deg,#f59e0b,#d97706); }
.av3 { background: linear-gradient(135deg,#a855f7,#7c3aed); }
.av4 { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.av5 { background: linear-gradient(135deg,#0ea5e9,#0284c7); }
.av6 { background: linear-gradient(135deg,#f97316,#ea580c); }
.av7 { background: linear-gradient(135deg,#ec4899,#db2777); }

/* ════════════════════════════════════════
   LIGHT THEME
════════════════════════════════════════ */
html.light {
  --bg-base:     #f5f5fa;
  --bg-raised:   #eeeef6;
  --bg-overlay:  #ffffff;
  --bg-elevated: #f9f9fd;
  --bg-float:    #ededf5;
  --glass-10: rgba(0,0,0,0.03);
  --glass-20: rgba(0,0,0,0.05);
  --glass-30: rgba(0,0,0,0.07);
  --glass-border: rgba(0,0,0,0.08);
  --glass-border-hi: rgba(0,0,0,0.14);
  --brand:       #4f46e5;
  --brand-light: #6366f1;
  --brand-glow:  rgba(79,70,229,0.25);
  --brand-soft:  rgba(79,70,229,0.10);
  --emerald:      #059669;
  --emerald-soft: rgba(5,150,105,0.10);
  --amber:        #d97706;
  --amber-soft:   rgba(217,119,6,0.10);
  --rose:         #e11d48;
  --rose-soft:    rgba(225,29,72,0.10);
  --violet:       #7c3aed;
  --violet-soft:  rgba(124,58,237,0.10);
  --sky:          #0284c7;
  --sky-soft:     rgba(2,132,199,0.10);
  --text-1: #0f0f1a;
  --text-2: #4a4a6a;
  --text-3: #9090b0;
  --text-4: #b8b8cc;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.13);
  --shadow-brand: 0 8px 32px rgba(79,70,229,0.20);
}
html.light .dash-hero { background: linear-gradient(160deg, #dde0ff 0%, #f5f5fa 70%); }
html.light .dash-hero::after { background-image: linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px); }
html.light .hero-name { background: linear-gradient(135deg, var(--text-1), var(--text-2)); -webkit-background-clip: text; background-clip: text; }
html.light .header { background: rgba(245,245,250,.92); }
html.light .tabbar { background: rgba(245,245,250,.96); }
html.light .search-zone { background: rgba(245,245,250,.93); }
html.light .modal-bg { background: rgba(0,0,0,.4); }
html.light #auth::before { opacity: .18; }
html.light #auth::after  { opacity: .12; }
html.light .kons-card.st-booking { background: linear-gradient(135deg, rgba(79,70,229,.05) 0%, var(--bg-overlay) 60%); }
html.light .kons-card.st-selesai { background: linear-gradient(135deg, rgba(5,150,105,.05) 0%, var(--bg-overlay) 60%); }
html.light .kons-card.st-batal   { background: linear-gradient(135deg, rgba(225,29,72,.04) 0%, var(--bg-overlay) 60%); }
html.light .det-hero { background: var(--bg-raised); }
html.light .set-profile-hero { background: var(--bg-raised); }

html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease, opacity .3s ease !important;
}

/* ════════════════════════════════════════
   IMPORT DROPZONE
════════════════════════════════════════ */
#importDropzone.dragover {
  border-color: var(--emerald) !important;
  background: var(--emerald-soft);
}
#importDropzone:hover {
  border-color: var(--glass-border-hi);
  background: var(--glass-10);
}

/* ════════════════════════════════════════
   DESKTOP LAYOUT (≥ 768px)
   Sidebar kiri + konten tengah (max 680px)
   + panel samping kanan (detail/laporan)
════════════════════════════════════════ */

/* ════════════════════════════════════════════════════
   DESKTOP LAYOUT  (≥ 768px)
   Struktur: Sidebar kiri tetap + Content area scrollable
   Max-width keseluruhan shell dibatasi agar tidak melebar
════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   DESKTOP LAYOUT  (≥ 768px)
   Layout: Sidebar kiri + konten kanan
   Sidebar: 220px (tablet: 68px icon-only, wide: 240px)
   Konten : max 740px, centered di area kanan
════════════════════════════════════════════════ */

/* ── CSS variables sidebar width ── */
:root {
  --sidebar-w: 220px;
}

@media (min-width: 768px) and (max-width: 1023px) { :root { --sidebar-w: 68px; } }
@media (min-width: 1280px) { :root { --sidebar-w: 240px; } }

/* Sidebar logo: mobile hidden, desktop shown */
.sidebar-logo { display: none; }

@media (min-width: 768px) {

  /* ── Body: background gelap di sisi luar ── */
  body {
    background: var(--bg-base);
    align-items: stretch;
    justify-content: center;
  }
  body::before {
    content: '';
    position: fixed; inset: 0;
    background: var(--bg-base);
    z-index: -1;
  }

  /* ── Shell: full height, max 1280px, tengah layar ── */
  #shell {
    flex-direction: row;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: 100dvh;
    overflow: hidden;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }

  /* ── Header mobile: sembunyikan ── */
  .header { display: none; }

  /* ════════════════════
     SIDEBAR / NAV KIRI
  ════════════════════ */
  .tabbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex-shrink: 0;
    height: 100dvh;
    border-top: none;
    border-right: 1px solid var(--glass-border);
    padding: 0;
    order: -1;
    background: var(--bg-raised);
    overflow: hidden;
    z-index: 40;
  }

  /* Logo area di atas sidebar */
  .sidebar-logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: 60px;
    min-height: 60px;
    padding: 0 18px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
  }
  .sidebar-logo-mark {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 1;
  }
  .sidebar-logo-text {
    font-size: 16px; font-weight: 800; letter-spacing: -1px;
    color: var(--text-1);
  }
  .sidebar-logo-text em { font-style: normal; color: var(--brand-light); }

  /* Nav item */
  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.2px;
    border-radius: 0;
    min-width: unset;
    width: 100%;
    color: var(--text-3);
    text-align: left;
    transition: background .15s, color .15s;
    position: relative;
  }
  .tab:hover { background: var(--glass-10); color: var(--text-2); }
  .tab.on { color: var(--brand-light); background: var(--brand-soft); }
  .tab.on::before {
    content: '';
    position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; background: var(--brand);
    border-radius: 0 3px 3px 0;
  }
  .tab-ico { font-size: 18px; transform: none !important; }
  .tab.on .tab-ico { transform: none !important; }

  /* User card di sidebar */
  .sidebar-user {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 8px 8px 4px;
    background: var(--glass-10);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    flex-shrink: 0;
  }
  .sidebar-user-av {
    width: 32px; height: 32px; border-radius: 10px;
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sidebar-user-info { flex: 1; min-width: 0; }
  .sidebar-user-name {
    font-size: 12px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .sidebar-user-role { font-size: 10px; color: var(--text-3); margin-top: 1px; }

  /* Bottom actions (theme, notif, logout) */
  .sidebar-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding: 8px;
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
  }
  .sidebar-action {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--r-sm);
    font-size: 12px; font-weight: 600; color: var(--text-3);
    cursor: pointer; border: none; background: none;
    width: 100%; font-family: var(--font-body);
    transition: background .15s, color .15s; text-align: left;
  }
  .sidebar-action:hover { background: var(--glass-10); color: var(--text-2); }
  .sidebar-action.danger { color: var(--rose); }
  .sidebar-action.danger:hover { background: var(--rose-soft); }

  /* ════════════════════
     AREA KONTEN KANAN
  ════════════════════ */
  .scroll-area {
    flex: 1;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    background: var(--bg-base);
  }

  /* Setiap page: centered, max 740px */
  .page {
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 40px;
  }

  /* ── Dashboard hero ── */
  .dash-hero {
    border-radius: var(--r-lg);
    margin: 20px 20px 0;
    padding: 28px 24px 24px;
  }
  .stat-row { grid-template-columns: repeat(4, 1fr); }

  /* ── Laporan KPI ── */
  .lap-kpi { grid-template-columns: repeat(4, 1fr); }

  /* ── Padding konsisten semua section ── */
  .section,
  .search-zone,
  .filter-row,
  .admin-bar,
  .kons-feed,
  .lap-kpi,
  .period-bar,
  .prog-list,
  .rank-list,
  .cal-header,
  .cal-grid,
  .cal-events,
  .set-profile-hero,
  .set-group { padding-left: 20px; padding-right: 20px; }

  .target-card,
  .chart-wrap,
  .install-card { margin-left: 20px; margin-right: 20px; }

  .kons-feed { padding-bottom: 80px; }

  /* Import button */
  #pg-konsumen > div[style*="18px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ── FAB ── */
  .fab {
    position: fixed;
    bottom: 28px;
    right: max(calc(50vw - 640px + 24px), 24px);
    left: auto;
  }

  /* ── Modal: dialog centered, bukan bottom sheet ── */
  .modal-bg {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .modal-sheet {
    border-radius: var(--r-xl);
    max-width: 560px;
    width: 100%;
    max-height: 88dvh;
    border: 1px solid var(--glass-border-hi);
    animation: modalIn .25s cubic-bezier(.22,1,.36,1);
  }
  @keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  #modalImport .modal-sheet { max-width: 640px; }

  /* ── Toast ── */
  .toast { top: 20px; }

  /* ── Hover effects ── */
  .kons-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
  }
  .feed-item:hover {
    background: var(--glass-10);
    border-radius: var(--r-sm);
    margin: 0 -8px;
    padding: 13px 8px;
  }
}

/* ════════════════════════════════════════════════
   TABLET  (768px – 1023px) — sidebar icon-only
════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {

  .tabbar {
    width: 68px;
    min-width: 68px;
  }
  .sidebar-logo {
    justify-content: center;
    height: 56px;
    min-height: 56px;
    padding: 0;
  }
  .sidebar-logo-text { display: none; }
  .sidebar-logo-mark { margin: 0; }
  .tab {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 4px;
    gap: 3px;
    font-size: 9px;
    letter-spacing: 0;
  }
  .tab-ico { font-size: 20px; }

  /* Tooltip hover */
  .tab::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%; transform: translateY(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border-hi);
    color: var(--text-1);
    font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: var(--r-sm);
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .15s;
    z-index: 100; box-shadow: var(--shadow-sm);
  }
  .tab:hover::after { opacity: 1; }
  .tab.on::before { top: 6px; bottom: 6px; }

  .sidebar-user   { display: none !important; }
  .sidebar-bottom { display: none !important; }
  .page { max-width: 100%; }
  .fab { right: 20px; }
}

/* ════════════════════════════════════════════════
   WIDE DESKTOP  (≥ 1280px)
════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .tabbar { width: 240px; min-width: 240px; }
  .page { max-width: 800px; }
  .tile-value { font-size: 36px; }
  .fab { right: max(calc(50vw - 640px + 32px), 32px); bottom: 32px; }
}

/* ════════════════════════════════════════════════
   LIGHT MODE — Desktop overrides
════════════════════════════════════════════════ */
@media (min-width: 768px) {
  html.light body::before { background: #e8e8f2; }
  html.light .tabbar { background: rgba(245,245,250,.99); border-right-color: var(--glass-border); }
  html.light .tabbar::before { color: var(--text-1); }
  html.light .scroll-area { background: var(--bg-tertiary, var(--bg-base)); }
  html.light .tab:hover { background: rgba(0,0,0,.04); }
  html.light .sidebar-user { background: rgba(0,0,0,.04); }
  html.light .kons-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
}

/* ════════════════════════════════════════
   BERKAS DENGAN FOTO DOKUMEN
════════════════════════════════════════ */

/* Wrap per berkas item */
.berkas-item-wrap {
  border-bottom: 1px solid var(--glass-border);
}
.berkas-item-wrap:last-child { border-bottom: none; }

/* Override: hapus border bottom dari .berkas-item langsung
   karena wrap sudah handle border */
.berkas-item-wrap .berkas-item {
  border-bottom: none;
  padding-bottom: 8px;
}

/* Sisi kanan checklist: count + upload button */
.berkas-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.berkas-foto-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-light);
  background: var(--brand-soft);
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.berkas-upload-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.berkas-upload-btn:hover { background: var(--brand-soft); border-color: rgba(99,102,241,.3); }
.berkas-upload-btn:active { transform: scale(.88); }

/* Thumbnail strip */
.berkas-thumbs {
  display: flex;
  gap: 6px;
  padding: 0 0 10px 34px;
  flex-wrap: wrap;
}
.berkas-thumb {
  width: 60px; height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  transition: all .2s;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.berkas-thumb:hover {
  border-color: var(--brand);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.berkas-thumb-pdf {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: var(--rose); background: var(--rose-soft);
  border-color: rgba(244,63,94,.25);
  letter-spacing: .5px;
}
.berkas-thumb-more {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--text-3); background: var(--bg-elevated);
  cursor: pointer;
}
.berkas-thumb-more:hover { background: var(--brand-soft); color: var(--brand-light); }

/* Skeleton loader */
.berkas-loading {
  display: flex; flex-direction: column; gap: 0;
}
.berkas-skeleton {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-float) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  margin-bottom: 2px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Viewer image */
.viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer-pdf-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 40px;
  text-align: center;
}
.viewer-pdf-icon { font-size: 64px; }
.viewer-pdf-name {
  font-size: 14px; font-weight: 600; color: #fff;
  max-width: 300px; word-break: break-all;
}
.viewer-pdf-open {
  padding: 10px 24px; background: var(--brand);
  border-radius: var(--r-md); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.viewer-pdf-open:hover { opacity: .85; }

/* Swipe gesture hint on mobile */
@media (max-width: 767px) {
  .berkas-thumb { width: 52px; height: 52px; }
}

/* ── Tombol edit & hapus per berkas item ── */
.berkas-edit-btn,
.berkas-del-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: var(--glass-10);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
}
.berkas-item-wrap:hover .berkas-edit-btn,
.berkas-item-wrap:hover .berkas-del-btn {
  opacity: 1;
  pointer-events: auto;
}
.berkas-edit-btn:hover { background: var(--brand-soft); border-color: rgba(99,102,241,.3); }
.berkas-del-btn:hover  { background: var(--rose-soft);  border-color: rgba(244,63,94,.3); }
.berkas-del-btn:active,
.berkas-edit-btn:active { transform: scale(.88); }

/* Mobile: always visible (no hover) */
@media (max-width: 767px) {
  .berkas-edit-btn,
  .berkas-del-btn { opacity: 1; pointer-events: auto; }
}

/* ── Tombol tambah item berkas ── */
.berkas-add-row {
  padding: 10px 0 4px;
}
.berkas-add-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1.5px dashed var(--glass-border);
  color: var(--text-3);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.berkas-add-btn:hover {
  border-color: rgba(99,102,241,.4);
  background: var(--brand-soft);
  color: var(--brand-light);
}
.berkas-add-btn:active { transform: scale(.98); }

/* Active state: highlight border saat filter nama aktif */
.nama-filter-bar.active .admin-select {
  border-color: rgba(99,102,241,.5);
  background: var(--brand-soft);
  color: var(--brand-light);
}
.nama-filter-clear {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--rose-soft);
  border: 1px solid rgba(244,63,94,.25);
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.nama-filter-clear:hover  { background: var(--rose); color: #fff; }
.nama-filter-clear:active { transform: scale(.9); }

@media (min-width: 768px) {
  .nama-filter-bar { padding-left: 20px; padding-right: 20px; }
}

/* ════════════════════════════════════════
   SORT BUTTON & FILTER DIVIDER
════════════════════════════════════════ */
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  flex-shrink: 0;
  align-self: center;
  margin: 0 2px;
}
.sort-btn {
  font-family: var(--font-mono);
  letter-spacing: 0;
  padding: 6px 12px;
}
.sort-btn.on {
  background: var(--amber-soft);
  border-color: rgba(245,158,11,.4);
  color: var(--amber);
}

/* ════════════════════════════════════════
   CUSTOM DATE RANGE PICKER
════════════════════════════════════════ */
.ptag-custom {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.35);
  color: var(--brand-light);
}
.ptag-custom.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.quick-preset {
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--glass-border);
  background: var(--bg-elevated);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.quick-preset:hover {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.4);
  color: var(--brand-light);
}
.quick-preset:active { transform: scale(.95); }

/* input[type=date] dark mode fix */
input[type="date"] {
  color-scheme: dark;
}
html.light input[type="date"] {
  color-scheme: light;
}

/* ════════════════════════════════════════
   FILTER LANJUTAN
════════════════════════════════════════ */
#filterAdvBtn {
  position: relative;
  gap: 4px;
}
#filterAdvBtn.on {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.4);
  color: var(--brand-light);
}
.fadv-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 9px; font-weight: 800; margin-left: 2px;
}

.fadv-panel {
  margin: 0 18px 10px;
  background: var(--bg-overlay);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 14px;
  animation: pageIn .2s ease;
}
.fadv-group { display: flex; flex-direction: column; gap: 7px; }
.fadv-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .8px;
}
.fadv-row { display: flex; align-items: center; gap: 8px; }
.fadv-input {
  flex: 1; padding: 8px 10px;
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1); font-size: 12px;
  font-family: var(--font-body);
  outline: none; min-width: 0;
  transition: border-color .2s;
}
.fadv-input:focus { border-color: rgba(99,102,241,.5); }
input[type="date"].fadv-input { color-scheme: dark; }
html.light input[type="date"].fadv-input { color-scheme: light; }
.fadv-sep { color: var(--text-4); font-size: 13px; flex-shrink: 0; }

.fadv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  padding: 5px 11px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--glass-border);
  background: transparent;
  color: var(--text-2);
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s; white-space: nowrap;
}
.fchip:hover { background: var(--glass-10); color: var(--text-1); }
.fchip.on {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.45);
  color: var(--brand-light);
}
.fchip:active { transform: scale(.94); }

.fadv-reset {
  width: 100%; padding: 9px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-3);
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.fadv-reset:hover {
  background: var(--rose-soft);
  border-color: rgba(244,63,94,.25);
  color: var(--rose);
}

#konsResultCount {
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  padding: 4px 20px 0;
  letter-spacing: .3px;
}

@media (min-width: 768px) {
  .fadv-panel { margin-left: 20px; margin-right: 20px; }
}

/* ════════════════════════════════════════
   TARGET PENJUALAN BULANAN
════════════════════════════════════════ */

/* History bar per marketing */
.target-history { display: flex; flex-direction: column; gap: 8px; }
.th-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-md);
  background: var(--glass-10); border: 1px solid var(--glass-border);
}
.th-row-now {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.25);
}
.th-bulan { font-size: 11px; font-weight: 700; color: var(--text-3); width: 56px; flex-shrink: 0; }
.th-bar-wrap { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.th-bar-track { flex: 1; height: 6px; background: var(--bg-float); border-radius: var(--r-full); overflow: hidden; }
.th-bar-fill { height: 100%; border-radius: var(--r-full); transition: width .6s cubic-bezier(.22,1,.36,1); }
.th-pct { font-size: 10px; color: var(--text-3); font-family: var(--font-mono); width: 32px; text-align: right; flex-shrink: 0; }
.th-nums { font-size: 12px; font-weight: 700; font-family: var(--font-mono); width: 42px; text-align: right; flex-shrink: 0; }

/* Grid history admin */
.th-header-row, .th-grid-row {
  display: grid;
  grid-template-columns: 120px repeat(6, 1fr);
  gap: 4px; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--glass-border);
}
.th-header-row { border-bottom: 2px solid var(--glass-border-hi); }
.th-col-name {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-col-month {
  font-size: 10px; font-weight: 700; color: var(--text-4);
  text-align: center; letter-spacing: .3px;
}
.th-col-cell {
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
  text-align: center;
}
.th-av {
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}

/* ════════════════════════════════════════
   STATUS CEK LOKASI
════════════════════════════════════════ */
/* Stat tile */
.t-sky { }
.t-sky .tile-value { color: #0ea5e9; }

/* Badge */
.s-cek-lokasi { background: rgba(14,165,233,.12); color: #0ea5e9; }

/* Kartu konsumen */
.kons-card.st-cek-lokasi::before { background: #0ea5e9; }
.kons-card.st-cek-lokasi { background: linear-gradient(135deg, rgba(14,165,233,.04) 0%, var(--bg-overlay) 60%); }
html.light .kons-card.st-cek-lokasi { background: linear-gradient(135deg, rgba(14,165,233,.05) 0%, var(--bg-overlay) 60%); }

/* Pipeline card */
.pc-cek-lokasi .pipe-card::before { background: #0ea5e9; }
.pc-cek-lokasi .pipe-num { color: #0ea5e9; }

/* Kalender event dot */
.cal-event-cek-lokasi { background: #0ea5e9; }

/* ════════════════════════════════════════
   STATUS SP3K / ACC
════════════════════════════════════════ */
.t-rose .tile-value { color: #ec4899; }
.s-acc { background: rgba(236,72,153,.12); color: #ec4899; }
.kons-card.st-acc::before { background: #ec4899; }
.kons-card.st-acc { background: linear-gradient(135deg, rgba(236,72,153,.04) 0%, var(--bg-overlay) 60%); }
html.light .kons-card.st-acc { background: linear-gradient(135deg, rgba(236,72,153,.05) 0%, var(--bg-overlay) 60%); }
.pc-acc .pipe-card::before { background: #ec4899; }
.pc-acc .pipe-num { color: #ec4899; }

/* ════════════════════════════════════════
   FILTER BULAN
════════════════════════════════════════ */
.month-filter-bar {
  padding: 8px 18px 10px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--glass-border);
  animation: pageIn .2s ease;
}
.month-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.month-filter-left { display: flex; align-items: center; gap: 8px; }
.month-filter-label {
  font-size: 11px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .7px;
}
.month-filter-field {
  font-size: 11px; font-weight: 700;
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text-2);
  padding: 3px 10px;
  font-family: var(--font-body);
  outline: none; cursor: pointer;
}
.month-filter-clear {
  font-size: 11px; font-weight: 700;
  color: var(--rose); background: var(--rose-soft);
  border: 1px solid rgba(244,63,94,.2);
  border-radius: var(--r-full);
  padding: 3px 10px;
  cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; gap: 4px;
  transition: all .15s;
}
.month-filter-clear:hover { background: var(--rose); color: #fff; }

/* Chips bulan */
.month-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mchip {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--glass-border);
  background: var(--bg-overlay);
  color: var(--text-2);
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s; white-space: nowrap;
}
.mchip:hover { background: var(--glass-10); color: var(--text-1); border-color: var(--glass-border-hi); }
.mchip.on {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.45);
  color: var(--brand-light);
}
.mchip:active { transform: scale(.94); }
.mchip-count {
  background: var(--glass-10);
  border-radius: var(--r-full);
  padding: 1px 6px;
  font-size: 10px;
  font-family: var(--font-mono);
}
.mchip.on .mchip-count {
  background: rgba(99,102,241,.2);
}

/* Badge pada tombol filter */
.mfilter-badge {
  background: var(--brand);
  color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--r-full);
  margin-left: 2px;
}

@media (min-width: 768px) {
  .month-filter-bar { padding-left: 20px; padding-right: 20px; }
}

/* ════════════════════════════════════════
   MODE OFFLINE
════════════════════════════════════════ */
#offlineBar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px max(env(safe-area-inset-right),16px) 8px max(env(safe-area-inset-left),16px);
  background: #412402;
  border-bottom: 1px solid rgba(239,159,39,.3);
  font-size: 12px;
  font-weight: 600;
  color: #EF9F27;
  flex-shrink: 0;
  z-index: 50;
}
html.light #offlineBar {
  background: #FAEEDA;
  color: #854F0B;
  border-color: rgba(186,117,23,.3);
}
.offline-icon { font-size: 14px; flex-shrink: 0; }
#offlineBanner { flex: 1; font-size: 11px; }
.offline-sync-btn {
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(239,159,39,.2);
  border: 1px solid rgba(239,159,39,.4);
  color: #EF9F27;
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  flex-shrink: 0;
}
html.light .offline-sync-btn {
  background: rgba(186,117,23,.1);
  border-color: rgba(186,117,23,.3);
  color: #854F0B;
}

/* Badge antrian sync di header */
.offline-queue-btn {
  position: relative;
}
.offline-queue-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 15px; height: 15px;
  border-radius: var(--r-full);
  background: var(--amber);
  color: #fff;
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--bg-base);
}

/* Kartu konsumen dengan perubahan offline pending */
.kons-card[data-pending="true"] {
  border-style: dashed;
  border-color: var(--amber);
  opacity: .85;
}
.kons-card[data-pending="true"]::after {
  content: '⏳';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 10px;
}

/* Indikator offline di status bar */
html.is-offline .live-badge {
  background: rgba(239,159,39,.15);
  color: var(--amber);
  border-color: rgba(239,159,39,.3);
}
html.is-offline .live-dot {
  background: var(--amber);
  animation: none;
}

/* ════════════════════════════════════════
   BACKUP & RESTORE
════════════════════════════════════════ */
.backup-section { padding: 4px 0 12px; }
.backup-section-title {
  font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.backup-section-desc {
  font-size: 12px; color: var(--text-3); line-height: 1.6; margin-bottom: 10px;
}
.backup-last {
  font-size: 11px; color: var(--text-4); margin-bottom: 10px;
}
.backup-includes {
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.bi-item {
  font-size: 12px; color: var(--text-2);
}
.backup-divider {
  height: 1px; background: var(--glass-border); margin: 16px 0;
}
.backup-preview {
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.bp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--glass-border);
  font-size: 12px;
}
.bp-row:last-child { border-bottom: none; }
.bp-key { color: var(--text-3); }
.bp-val { font-weight: 700; color: var(--text-1); text-align: right; }

/* Restore mode */
.restore-mode-group {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
}
.restore-mode-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--glass-10);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s;
}
.restore-mode-item:has(input:checked) {
  border-color: rgba(99,102,241,.45);
  background: var(--brand-soft);
}
.restore-mode-item input[type="radio"] {
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--brand);
}

/* Upload area */
.restore-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
}
.restore-upload-area:hover {
  border-color: rgba(99,102,241,.4);
  background: var(--brand-soft);
}

/* Warning */
.restore-warning {
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.2);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--rose);
  margin-top: 8px;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   OPTIMISTIC LOCKING — CONFLICT MODAL
════════════════════════════════════════ */
.conflict-table {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 12px;
}
.ct-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 0;
  background: var(--bg-float);
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--glass-border);
}
.ct-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  padding: 9px 12px;
  border-bottom: 1px solid var(--glass-border);
  align-items: start;
  gap: 0;
}
.ct-row:last-child { border-bottom: none; }
.ct-field { font-weight: 700; color: var(--text-3); font-size: 11px; padding-top: 1px; }
.ct-server {
  color: var(--rose);
  font-weight: 600;
  padding: 0 8px;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  text-decoration: line-through;
  opacity: .75;
}
.ct-yours {
  color: var(--emerald);
  font-weight: 700;
  padding-left: 8px;
}

/* Action buttons */
.conflict-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.conflict-btn-reload {
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--glass-10);
  border: 1.5px solid var(--glass-border);
  color: var(--text-1);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  text-align: center; line-height: 1.3;
  transition: all .15s;
}
.conflict-btn-reload:hover {
  background: var(--brand-soft);
  border-color: rgba(99,102,241,.35);
}
.conflict-btn-force {
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--rose-soft);
  border: 1.5px solid rgba(244,63,94,.25);
  color: var(--rose);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  text-align: center; line-height: 1.3;
  transition: all .15s;
}
.conflict-btn-force:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

/* ════════════════════════════════════════
   GOOGLE LOGIN BUTTON
════════════════════════════════════════ */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0;
  color: var(--text-4); font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1;
  height: 0.5px; background: var(--glass-border);
}

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  background: var(--color-background-primary, #fff);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.btn-google:hover {
  background: var(--glass-10);
  border-color: var(--glass-border-hi);
  transform: translateY(-1px);
}
.btn-google:active { transform: scale(.98); }
html.light .btn-google {
  background: #ffffff;
  border-color: #e0e0e8;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
html.light .btn-google:hover {
  background: #f8f8fc;
  border-color: #c8c8d8;
}

/* ════════════════════════════════════════
   PANEL KONFIRMASI EMAIL
════════════════════════════════════════ */
.verify-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0 4px; text-align: center;
}
.verify-icon-wrap {
  position: relative; width: 80px; height: 80px; margin-bottom: 4px;
}
.verify-icon-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--brand-soft);
  border: 2px solid rgba(99,102,241,.25);
  display: flex; align-items: center; justify-content: center;
  animation: verifyPulse 2.5s ease-in-out infinite;
}
.verify-icon { font-size: 34px; line-height: 1; }
.verify-checkmark {
  position: absolute; bottom: 0; right: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--emerald); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-card);
}
@keyframes verifyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,.2); }
  50%      { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
}
.verify-email {
  font-size: 14px; font-weight: 700;
  color: var(--brand-light);
  background: var(--brand-soft);
  padding: 6px 14px; border-radius: var(--r-full);
  margin: 8px 0 18px;
  max-width: 100%; word-break: break-all;
}
.verify-steps {
  width: 100%; text-align: left;
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.vstep {
  display: flex; align-items: flex-start; gap: 10px;
}
.vstep-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.vstep-text {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.vstep-text strong { color: var(--text-1); }
.vstep-text em { font-style: normal; color: var(--amber); }

/* ════════════════════════════════════════
   MONETISASI — PLAN & UPGRADE
════════════════════════════════════════ */

/* Trial banner */
#trialBanner {
  align-items: center; gap: 8px;
  padding: 8px max(env(safe-area-inset-right),16px) 8px max(env(safe-area-inset-left),16px);
  background: rgba(99,102,241,.1);
  border-bottom: 1px solid rgba(99,102,241,.2);
  font-size: 12px; font-weight: 600; color: var(--brand-light);
  flex-shrink: 0;
}
html.light #trialBanner { background: rgba(99,102,241,.07); }
.trial-ico { font-size: 14px; flex-shrink: 0; }
.trial-msg { flex: 1; }
.trial-upgrade-btn {
  padding: 3px 12px; border-radius: var(--r-full);
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  border: none; cursor: pointer; font-family: var(--font-body);
  flex-shrink: 0;
}

/* Plan info card di pengaturan */
.plan-info-card {
  padding: 14px 16px;
  background: var(--bg-overlay);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
}
.plan-info-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.plan-info-name { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
.plan-info-sub { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.plan-usage-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-3); margin-bottom: 6px;
}
.plan-usage-bar {
  height: 6px; background: var(--bg-float);
  border-radius: var(--r-full); overflow: hidden; margin-bottom: 12px;
}
.plan-usage-fill { height: 100%; border-radius: var(--r-full); transition: width .5s; }
.plan-locked-title { font-size: 11px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.plan-locked-list { display: flex; flex-wrap: wrap; gap: 5px; }
.plan-locked-item {
  font-size: 10px; padding: 3px 8px;
  background: var(--glass-10); border: 1px solid var(--glass-border);
  border-radius: var(--r-full); color: var(--text-3);
}

/* Modal Upgrade */
.upgrade-locked-feature {
  font-size: 13px; font-weight: 700;
  color: var(--brand-light);
  background: var(--brand-soft);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--r-md);
  padding: 10px 14px; margin-bottom: 6px;
}
.upgrade-current {
  font-size: 12px; color: var(--text-3); margin-bottom: 14px; padding: 0 2px;
}
.upgrade-plans { display: flex; flex-direction: column; gap: 12px; }
.upgrade-plan-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 16px;
  position: relative;
}
.upgrade-plan-featured {
  border: 2px solid rgba(99,102,241,.4);
  background: var(--brand-soft);
}
.upc-badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--brand); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 10px;
  border-radius: var(--r-full);
}
.upc-name { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.upc-price { font-size: 20px; font-weight: 800; color: var(--brand-light); }
.upc-price span { font-size: 12px; font-weight: 400; color: var(--text-3); }
.upc-desc { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.upc-features { display: flex; flex-direction: column; gap: 4px; }
.upc-feat { font-size: 12px; color: var(--text-2); }

/* Modal Checkout */
.checkout-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--r-md);
  font-size: 14px;
}
.checkout-payment-info {
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 14px 16px; margin-top: 12px;
  display: flex; flex-direction: column; gap: 5px;
}
.cpi-title { font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cpi-bank { font-size: 16px; font-weight: 800; color: var(--text-1); margin-top: 4px; }
.cpi-name { font-size: 12px; color: var(--text-2); }
.cpi-note { font-size: 11px; color: var(--text-3); line-height: 1.6; margin-top: 6px; }

/* ── Aktivasi Panel ──────────────────────────────── */
.order-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.order-info { flex: 1; min-width: 0; }
.order-user { font-size: 13px; font-weight: 700; color: var(--text-1); }
.order-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.order-ref  { font-size: 10px; color: var(--text-4); font-family: var(--font-mono); margin-top: 2px; }
.order-btn-approve {
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25);
  color: var(--emerald); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body); white-space: nowrap;
}
.order-btn-approve:hover { background: var(--emerald); color: #fff; }
.order-btn-reject {
  padding: 5px 8px; border-radius: var(--r-sm);
  background: var(--rose-soft); border: 1px solid rgba(244,63,94,.2);
  color: var(--rose); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
}

/* ── Copy rekening ───────────────────────────────── */
.cpi-bank-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  margin-bottom: 4px;
}
.cpi-copy-btn {
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--glass-10);
  border: 1px solid var(--glass-border);
  color: var(--text-2); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  white-space: nowrap; flex-shrink: 0;
  transition: all .15s;
}
.cpi-copy-btn:hover { background: var(--brand-soft); color: var(--brand-light); }
.cpi-divider { height: 1px; background: var(--glass-border); margin: 10px 0; }
.cpi-order-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.cpi-label { font-size: 10px; color: var(--text-4); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.cpi-order-id {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  font-family: var(--font-mono); letter-spacing: .5px;
}

/* ── Template KPR button ─────────────────────────── */
.berkas-template-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  color: var(--emerald); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.berkas-template-btn:hover {
  background: var(--emerald); color: #fff;
}
.berkas-add-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 4px;
}
