/* ==========================================================================
   WIJAYAPREMIUM — iOS GLASS DESIGN SYSTEM (Light & Dark)
   ========================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  --blue: #0a84ff;
  --blue-2: #2563eb;
  --blue-3: #5ac8fa;
  --indigo: #4f46e5;
  --grad: linear-gradient(135deg, #0a84ff 0%, #2f6bff 45%, #5b8cff 75%, #5ac8fa 100%);
  --grad-deep: linear-gradient(140deg, #0b3fd9 0%, #0a84ff 55%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(10,132,255,.14), rgba(90,200,250,.12));
  --green: #30d158; --green-d: #16a34a;
  --orange: #ff9f0a; --red: #ff453a; --yellow: #ffd60a; --purple: #bf5af2;

  --bg: #eef3fb;
  --bg-2: #f7f9fd;
  --text: #0b1220;
  --text-2: #334155;
  --muted: #6b7a90;
  --hairline: rgba(15, 23, 42, .08);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shadow: 0 10px 30px -12px rgba(30, 64, 175, .22), 0 2px 6px rgba(15, 23, 42, .04);
  --card: rgba(255, 255, 255, .78);
  --fill: rgba(118, 118, 128, .10);
  --fill-2: rgba(118, 118, 128, .16);
  --tint: rgba(10, 132, 255, .10);
  --radius-xs: 10px; --radius-sm: 14px; --radius: 20px; --radius-lg: 26px; --radius-xl: 32px;
  --blur: saturate(180%) blur(22px);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 74px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #04060c;
  --bg-2: #0b0f19;
  --text: #f5f7fb;
  --text-2: #cbd5e1;
  --muted: #8a96aa;
  --hairline: rgba(255, 255, 255, .08);
  --glass: rgba(24, 28, 40, .55);
  --glass-strong: rgba(26, 31, 45, .82);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-shadow: 0 14px 40px -14px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
  --card: rgba(22, 27, 40, .72);
  --fill: rgba(118, 118, 128, .20);
  --fill-2: rgba(118, 118, 128, .28);
  --tint: rgba(10, 132, 255, .18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.45; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.text-blue { color: var(--blue); } .text-green { color: var(--green-d); } .text-red { color: var(--red); } .text-orange { color: var(--orange); }
[data-theme="dark"] .text-green { color: var(--green); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(10, 132, 255, .25); }

/* ---------- Background orbs (Liquid glass ambience) ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orbFloat 22s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; background: #8ec5ff; top: -180px; left: -160px; }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; background: #a5b4fc; top: 30%; right: -200px; animation-delay: -7s; }
.bg-orbs span:nth-child(3) { width: 420px; height: 420px; background: #7dd3fc; bottom: -200px; left: 20%; animation-delay: -14s; }
[data-theme="dark"] .bg-orbs span { opacity: .22; }
[data-theme="dark"] .bg-orbs span:nth-child(1) { background: #0a84ff; }
[data-theme="dark"] .bg-orbs span:nth-child(2) { background: #4f46e5; }
[data-theme="dark"] .bg-orbs span:nth-child(3) { background: #0891b2; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,30px) scale(1.08); } 66% { transform: translate(-30px,20px) scale(.95); } }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius);
}
.glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius); }
.card { background: var(--card); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-pad-lg { padding: 24px; }
@media (min-width: 768px) { .card-pad { padding: 22px; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 640px; }
.container-md { max-width: 860px; }
.page { padding-top: 14px; padding-bottom: 24px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .grid-3-sm1 { grid-template-columns: minmax(0, 1fr); } }
.center-screen { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60; padding-top: var(--safe-t);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .3s var(--ease), background .3s;
}
.topbar.scrolled { box-shadow: 0 6px 24px -14px rgba(15, 23, 42, .35); }
.topbar-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.03em; user-select: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--tint); color: var(--blue); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; position: relative; transition: transform .25s var(--spring), background .2s;
}
.icon-btn:active { transform: scale(.88); }
.icon-btn .dot-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.avatar-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .25s var(--spring); }
.avatar-pill:active { transform: scale(.95); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pill .name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (min-width: 640px) { .avatar-pill .name { display: inline; } }
.only-mobile { display: initial; } .only-desktop { display: none; }
@media (min-width: 900px) { .only-mobile { display: none !important; } .only-desktop { display: initial; } }

/* Dropdown menu (iOS context menu) */
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; border-radius: 18px; z-index: 80;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .45); transform-origin: top right; transform: scale(.85); opacity: 0; pointer-events: none;
  transition: transform .35s var(--spring), opacity .2s; }
.menu-pop.open { transform: scale(1); opacity: 1; pointer-events: auto; }
.menu-pop .menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--fill); }
.menu-pop i { width: 18px; text-align: center; color: var(--blue); }
.menu-pop .danger, .menu-pop .danger i { color: var(--red); }

/* ---------- Bottom tab bar (floating glass) ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); z-index: 70;
  width: min(calc(100% - 24px), 460px); height: var(--tabbar-h); padding: 0 8px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  background: var(--glass-strong); -webkit-backdrop-filter: saturate(200%) blur(26px); backdrop-filter: saturate(200%) blur(26px);
  border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .4);
}
@media (min-width: 900px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 30px; } }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; height: 100%; position: relative; transition: color .25s; }
.tab i { font-size: 19px; transition: transform .4s var(--spring); }
.tab.active { color: var(--blue); }
.tab.active i { transform: translateY(-2px) scale(1.08); }
.tab.active::before { content: ""; position: absolute; top: 9px; width: 46px; height: 34px; border-radius: 14px; background: var(--tint); z-index: -1; animation: pillIn .45s var(--spring); }
@keyframes pillIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tab:active i { transform: scale(.85); }
.tab-fab { display: flex; justify-content: center; }
.tab-fab button { width: 58px; height: 58px; margin-top: -26px; border-radius: 20px; border: 0; background: var(--grad); color: #fff; font-size: 21px; cursor: pointer; position: relative;
  box-shadow: 0 12px 26px -8px rgba(10, 132, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .35s var(--spring); }
.tab-fab button:active { transform: scale(.88) rotate(-6deg); }
.tab-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid var(--glass-strong); }
.tab .tab-badge { top: 6px; right: calc(50% - 22px); }
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: 16px; line-height: 1.1; text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s, opacity .2s, background .2s; user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 132, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(10, 132, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-tint { background: var(--tint); color: var(--blue); }
.btn-glass { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-fill { background: var(--fill); color: var(--text); }
.btn-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .7); }
.btn-danger { background: rgba(255, 69, 58, .12); color: var(--red); }
.btn-dark { background: #0b1220; color: #fff; }
[data-theme="dark"] .btn-dark { background: #fff; color: #0b1220; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 12px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 10px; }
.btn-lg { padding: 16px 22px; font-size: 16px; border-radius: 18px; }
.btn .spin { width: 16px; height: 16px; border: 2.4px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .35); }
[data-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }

/* ---------- Chips / badges / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--fill); color: var(--text-2); }
.chip-blue { background: var(--tint); color: var(--blue); }
.chip-green { background: rgba(48, 209, 88, .14); color: var(--green-d); }
.chip-orange { background: rgba(255, 159, 10, .15); color: #c2410c; }
.chip-red { background: rgba(255, 69, 58, .13); color: var(--red); }
.chip-glass { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
[data-theme="dark"] .chip-green { color: var(--green); }
[data-theme="dark"] .chip-orange { color: var(--orange); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { background: rgba(255, 159, 10, .15); color: #c2410c; }
.st-process { background: var(--tint); color: var(--blue); }
.st-done { background: rgba(48, 209, 88, .15); color: var(--green-d); }
.st-cancel { background: rgba(255, 69, 58, .12); color: var(--red); }
[data-theme="dark"] .st-pending { color: var(--orange); }
[data-theme="dark"] .st-done { color: var(--green); }
.soon-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 7px 4px; }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--fill); color: var(--text);
  font-family: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, .15); background: var(--glass-strong); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.textarea { resize: vertical; min-height: 90px; }
.search-bar { position: relative; }
.search-bar i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-bar .input { padding-left: 44px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--fill-2); border-radius: 31px; cursor: pointer; transition: background .25s; }
.switch span::before { content: ""; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); transition: transform .35s var(--spring); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); gap: 2px; }
.seg button, .seg label { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.seg .on, .seg input:checked + label { background: var(--glass-strong); color: var(--text); box-shadow: 0 3px 8px rgba(0, 0, 0, .1); }

/* ---------- iOS grouped list ---------- */
.list { border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); background: transparent; border: 0; width: 100%; text-align: left; font-size: 15px; font-weight: 600; cursor: pointer; position: relative; transition: background .15s; }
.list-item + .list-item::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--hairline); }
.list-item:active { background: var(--fill); }
.list-item .li-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.list-item .li-chev { color: var(--muted); font-size: 13px; opacity: .6; }
.list-title { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 8px 16px; }
.bg-blue { background: linear-gradient(135deg, #0a84ff, #2563eb); } .bg-green { background: linear-gradient(135deg, #34d399, #16a34a); }
.bg-orange { background: linear-gradient(135deg, #fbbf24, #f97316); } .bg-red { background: linear-gradient(135deg, #fb7185, #ef4444); }
.bg-purple { background: linear-gradient(135deg, #c084fc, #7c3aed); } .bg-gray { background: linear-gradient(135deg, #94a3b8, #64748b); }
.bg-teal { background: linear-gradient(135deg, #5eead4, #0891b2); } .bg-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }

/* ---------- Sheets / modals ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 23, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; overscroll-behavior: contain; padding: 10px 20px calc(22px + var(--safe-b));
  background: var(--glass-strong); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid var(--glass-border); border-radius: 30px 30px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
  transform: translateY(100%); transition: transform .5s var(--spring); }
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { font-size: 19px; }
.sheet-close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); color: var(--muted); cursor: pointer; font-size: 14px; }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 28px; transform: translateY(30px) scale(.94); opacity: 0; transition: transform .5s var(--spring), opacity .25s; padding-bottom: 22px; }
  .sheet-backdrop.open .sheet { transform: none; opacity: 1; }
  .sheet-grabber { display: none; }
}
body.lock { overflow: hidden; }

/* ---------- Dynamic-island toast ---------- */
.island { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; z-index: 200; transform: translate(-50%, -140%) scale(.6);
  min-width: 200px; max-width: min(92vw, 420px); padding: 12px 16px 12px 12px; border-radius: 26px; background: rgba(10, 10, 14, .92); color: #fff;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: transform .6s var(--spring), opacity .3s; opacity: 0; }
.island.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.island .is-icon { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--grad); font-size: 15px; }
.island .is-icon.ok { background: linear-gradient(135deg, #34d399, #16a34a); }
.island .is-icon.err { background: linear-gradient(135deg, #fb7185, #ef4444); }
.island .is-title { font-size: 13.5px; font-weight: 700; }
.island .is-text { font-size: 12.5px; color: rgba(255, 255, 255, .72); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.page-enter { animation: pageEnter .6s var(--spring) both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.press { transition: transform .3s var(--spring); }
.press:active { transform: scale(.97); }
.float-y { animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.shimmer { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-2) 37%, var(--fill) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70% { box-shadow: 0 0 0 10px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 26px 2px 12px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.sec-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sec-head a { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------- Install banner ---------- */
.install-banner { display: none; margin: 10px 0 0; padding: 10px 10px 10px 12px; border-radius: 20px; align-items: center; gap: 12px; }
.install-banner.show { display: flex; animation: pageEnter .6s var(--spring); }
.install-banner .ib-icon { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.install-banner .ib-icon img { width: 100%; height: 100%; object-fit: contain; }
.install-banner .ib-text { flex: 1; min-width: 0; }
.install-banner b { font-size: 14px; display: block; }
.install-banner span { font-size: 12px; color: var(--muted); }
.install-steps { counter-reset: st; display: grid; gap: 10px; margin: 14px 0; }
.install-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--fill); font-size: 14px; }
.install-step::before { counter-increment: st; content: counter(st); width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-step i { color: var(--blue); }

/* ---------- HOME ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px 20px; color: #fff; background: var(--grad-deep);
  box-shadow: 0 24px 50px -24px rgba(10, 80, 255, .75);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); filter: blur(2px); }
.hero::before { width: 260px; height: 260px; right: -80px; top: -110px; }
.hero::after { width: 180px; height: 180px; left: -60px; bottom: -110px; background: rgba(90, 200, 250, .35); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.hero p { color: rgba(255, 255, 255, .82); font-size: 14px; margin-top: 6px; }
.hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero .btn-white { background: #fff; color: var(--blue-2); }
.hero .btn-white-glass { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-stats { display: flex; gap: 18px; margin-top: 18px; }
.hero-stats div b { display: block; font-size: 18px; font-weight: 800; }
.hero-stats div span { font-size: 11.5px; color: rgba(255, 255, 255, .75); }
@media (min-width: 768px) { .hero { padding: 34px 34px; } .hero h1 { font-size: 34px; } .hero p { font-size: 15.5px; max-width: 520px; } }

.live-order { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; color: var(--text); }
.live-order .lo-icon { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; position: relative; }
.live-order .lo-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 17px; border: 2px solid currentColor; opacity: .35; animation: ring 2s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.25); opacity: 0; } }
.live-order .lo-body { flex: 1; min-width: 0; }
.live-order .lo-body b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-order .lo-body span { font-size: 12.5px; font-weight: 600; }

/* Poster slider — gambar ditampilkan utuh (tidak dicrop) */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--glass-shadow); background: var(--card); }
.slider-track { display: flex; transition: transform .7s var(--spring); touch-action: pan-y; }
.slide { min-width: 100%; }
.slide img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.slider-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .4s var(--spring), background .3s; cursor: pointer; }
.slider-dots span.on { width: 18px; background: #fff; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .7); color: #0b1220; cursor: pointer; display: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.slider:hover .slider-nav { display: block; }
.slider-nav.prev { left: 12px; } .slider-nav.next { right: 12px; }

.reseller-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 60%, #0a84ff 130%); box-shadow: 0 20px 44px -22px rgba(15, 23, 42, .8); }
.reseller-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: radial-gradient(circle, rgba(90, 200, 250, .45), transparent 70%); }
.reseller-card > * { position: relative; z-index: 1; }
.reseller-card .rc-balance { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 12px; }
.ref-row { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); }
.ref-row input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font-size: 13px; font-family: inherit; outline: none; }
.ref-row button { flex-shrink: 0; }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trust { padding: 14px 6px; text-align: center; border-radius: 18px; }
.trust i { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; margin-bottom: 7px; }
.trust b { display: block; font-size: 12px; }
.trust span { font-size: 10.5px; color: var(--muted); }
@media (max-width: 380px) { .trust b { font-size: 11px; } }

.promo-strip { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; color: var(--text); }
.promo-strip .ps-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; }
.promo-strip .ps-body { flex: 1; min-width: 0; }
.promo-strip .ps-body b { display: block; font-size: 14px; }
.promo-strip .ps-body span { font-size: 12.5px; color: var(--muted); }

/* Flash sale */
.flash { position: relative; overflow: hidden; padding: 18px 16px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #1d4ed8 0%, #0a84ff 50%, #22d3ee 120%); box-shadow: 0 22px 46px -22px rgba(29, 78, 216, .8); }
.flash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .3), transparent 45%); }
.flash > * { position: relative; }
.flash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flash-title { display: flex; align-items: center; gap: 10px; }
.flash-title .ft-icon { width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 18px; animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(-6deg); } }
.flash-title h3 { font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.flash-title p { font-size: 12px; color: rgba(255, 255, 255, .8); }
.countdown { display: flex; gap: 6px; margin: 14px 0 12px; }
.countdown div { min-width: 52px; padding: 7px 6px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.countdown b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.fs-card { scroll-snap-align: start; min-width: 132px; max-width: 132px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .95); color: #0b1220; text-align: center; position: relative; transition: transform .3s var(--spring); }
[data-theme="dark"] .fs-card { background: rgba(15, 20, 32, .85); color: #f5f7fb; }
.fs-card:active { transform: scale(.95); }
.fs-card .save { position: absolute; top: 8px; left: 8px; font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: #ff3b30; color: #fff; }
.fs-card img, .fs-card .ph { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; margin: 10px auto 8px; }
.fs-card h4 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-card s { font-size: 11px; color: #94a3b8; display: block; margin-top: 4px; }
.fs-card b { font-size: 14px; color: var(--blue); }

/* Catalog */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 12px -2px 4px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass); color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: all .3s var(--spring); }
.cat-pill.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(10, 132, 255, .8); }
.cat-pill:active { transform: scale(.94); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.app-card { position: relative; display: flex; flex-direction: column; padding: 14px; border-radius: 22px; color: var(--text); transition: transform .35s var(--spring), box-shadow .3s; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(30, 64, 175, .4); }
.app-card:active { transform: scale(.97); }
.app-icon { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--fill); box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--blue); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { font-size: 14.5px; font-weight: 700; margin: 12px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card .from { font-size: 11px; color: var(--muted); }
.app-card .price { font-size: 15px; font-weight: 800; color: var(--blue); }
.app-card s { font-size: 11.5px; color: var(--muted); margin-right: 4px; }
.app-card .get { margin-top: 12px; align-self: stretch; text-align: center; padding: 9px; border-radius: 999px; background: var(--tint); color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.app-card .save-badge { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #ff3b30; color: #fff; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty i { font-size: 34px; opacity: .45; margin-bottom: 10px; display: block; }
.empty b { color: var(--text); display: block; margin-bottom: 4px; }

.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-card { padding: 16px; border-radius: 20px; }
.step-card .num { font-size: 12px; font-weight: 800; color: var(--blue); background: var(--tint); padding: 4px 9px; border-radius: 999px; }
.step-card b { display: block; margin: 12px 0 4px; font-size: 14.5px; }
.step-card p { font-size: 12.5px; color: var(--muted); }

.cta { text-align: center; padding: 28px 20px; border-radius: var(--radius-lg); }
.cta h2 { font-size: 21px; margin-bottom: 14px; }

.footer { text-align: center; padding: 26px 16px 10px; color: var(--muted); font-size: 12.5px; }
.footer .f-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.footer .f-links a { color: var(--text-2); font-weight: 600; }

/* ---------- Page header (sub pages) ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.page-head h1 { font-size: 26px; font-weight: 800; flex: 1; }
.back-btn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .3s var(--spring); }
.back-btn:active { transform: scale(.88); }

/* ---------- PRODUCT ---------- */
.pd-head { display: flex; gap: 16px; align-items: center; }
.pd-icon { width: 92px; height: 92px; border-radius: 24px; overflow: hidden; flex-shrink: 0; box-shadow: 0 14px 30px -12px rgba(15, 23, 42, .45); background: var(--fill); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: var(--blue); }
.pd-icon img { width: 100%; height: 100%; object-fit: cover; }
.pd-head h1 { font-size: 23px; font-weight: 800; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.pd-price b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.pd-price s { color: var(--muted); font-size: 15px; }
.feature-list { display: grid; gap: 10px; margin: 16px 0 0; }
.feature-list div { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.feature-list i { color: var(--green-d); }
[data-theme="dark"] .feature-list i { color: var(--green); }
.pkg-list { display: grid; gap: 10px; }
.pkg { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 18px; cursor: pointer; border: 2px solid transparent; background: var(--card); box-shadow: var(--glass-shadow); transition: transform .3s var(--spring), border-color .25s, background .25s; }
.pkg:active { transform: scale(.98); }
.pkg .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fill-2); flex-shrink: 0; position: relative; transition: border-color .2s; }
.pkg .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .35s var(--spring); }
.pkg.on { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--card)); }
.pkg.on .radio { border-color: var(--blue); }
.pkg.on .radio::after { transform: scale(1); }
.pkg .pk-body { flex: 1; min-width: 0; }
.pkg .pk-body b { display: block; font-size: 15px; }
.pkg .pk-body span { font-size: 12.5px; color: var(--muted); }
.pkg .pk-price { text-align: right; font-weight: 800; font-size: 15px; white-space: nowrap; }
.pkg .pk-price s { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pkg.empty-stock { opacity: .5; cursor: not-allowed; }
.buy-bar { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); z-index: 30; display: flex; gap: 10px; padding: 10px; margin-top: 18px; border-radius: 22px; }
@media (min-width: 900px) { .buy-bar { position: static; } }

/* ---------- CHECKOUT ---------- */
.stepper { display: flex; justify-content: space-between; position: relative; margin: 6px 6px 22px; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 16%; right: 16%; height: 3px; background: var(--fill-2); border-radius: 2px; }
.stepper .bar { position: absolute; top: 15px; left: 16%; height: 3px; background: var(--grad); border-radius: 2px; transition: width .6s var(--spring); width: 0; }
.stepper .st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stepper .st i { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; background: var(--card); border: 2px solid var(--fill-2); font-size: 13px; transition: all .4s var(--spring); }
.stepper .st.on { color: var(--blue); }
.stepper .st.on i { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); box-shadow: 0 6px 14px -4px rgba(10, 132, 255, .6); }
.stepper .st.done i { background: var(--green); color: #fff; border-color: transparent; }
.co-item { display: flex; gap: 12px; align-items: center; }
.co-item .app-icon { width: 54px; height: 54px; border-radius: 15px; }
.co-item .ci-body { flex: 1; min-width: 0; }
.co-item .ci-body b { display: block; font-size: 15px; }
.co-item .ci-body span { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: var(--fill); }
.qty button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--glass-strong); color: var(--text); font-size: 16px; font-weight: 700; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-weight: 800; }
.pay-group-title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 16px 4px 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; cursor: pointer; border: 2px solid transparent; background: var(--card); box-shadow: var(--glass-shadow); margin-bottom: 10px; transition: transform .3s var(--spring), border-color .2s; position: relative; }
.pay-opt:active { transform: scale(.98); }
.pay-opt .po-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.pay-opt .po-icon img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.pay-opt .po-body { flex: 1; min-width: 0; }
.pay-opt .po-body b { display: block; font-size: 14.5px; }
.pay-opt .po-body > span { font-size: 12px; color: var(--muted); }
.pay-opt .soon-tag { color: #fff; font-size: 10px; margin-left: 4px; vertical-align: 2px; }
.pay-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fill-2); position: relative; flex-shrink: 0; }
.pay-opt .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .35s var(--spring); }
.pay-opt.on { border-color: var(--blue); }
.pay-opt.on .radio { border-color: var(--blue); }
.pay-opt.on .radio::after { transform: scale(1); }
.pay-opt.is-soon { cursor: not-allowed; }
.pay-opt.is-soon .po-icon, .pay-opt.is-soon .po-body > span { opacity: .55; filter: saturate(.6); }
.pay-opt.is-soon .radio { display: none; }
.sub-channels { display: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: -2px 0 12px; }
.sub-channels.show { display: grid; animation: pageEnter .4s var(--spring); }
.ch-btn { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; border: 2px solid transparent; background: var(--fill); cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text); text-align: left; }
.ch-btn img { width: 34px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.ch-btn.on { border-color: var(--blue); background: var(--tint); }
.total-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 18px; margin: 14px 0; }
.total-bar span { color: var(--muted); font-weight: 600; font-size: 14px; }
.total-bar b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.qr-box { background: #fff; border-radius: 22px; padding: 14px; display: inline-block; box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .35); }
.qr-box img { width: 250px; max-width: 70vw; height: auto; border-radius: 12px; }
.bank-box { padding: 18px; border-radius: 20px; background: var(--grad-soft); border: 1px dashed rgba(10, 132, 255, .35); }
.bank-box .num { font-size: 24px; font-weight: 800; letter-spacing: .04em; margin: 6px 0; font-variant-numeric: tabular-nums; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; background: rgba(255, 159, 10, .12); color: #9a3412; }
[data-theme="dark"] .note { color: #fdba74; }
.note-blue { background: var(--tint); color: var(--blue-2); }
[data-theme="dark"] .note-blue { color: #93c5fd; }
.success-mark { width: 84px; height: 84px; margin: 4px auto 14px; }
.success-mark circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 166; stroke-dashoffset: 166; animation: dash .7s var(--ease) forwards; }
.success-mark path { stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: dash .45s .55s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.receipt { background: #fff; color: #0b1220; border-radius: 20px; padding: 18px; text-align: left; box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .4); position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 16px; background: radial-gradient(circle at 8px 0, transparent 8px, #fff 8.5px) repeat-x; background-size: 16px 16px; }
.receipt .rc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; margin-bottom: 10px; }
.receipt .rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; }
.receipt .rc-row span { color: #64748b; }
.receipt .rc-row b { text-align: right; }
.proof-slot { margin-top: 12px; border: 2px dashed #cbd5e1; border-radius: 16px; padding: 18px; text-align: center; color: #64748b; cursor: pointer; font-size: 12.5px; }
.proof-slot img { width: 100%; border-radius: 12px; display: none; }

/* ---------- ORDERS ---------- */
.order-card { padding: 16px; border-radius: 22px; }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-card .code { font-weight: 800; font-size: 14px; color: var(--blue); }
.order-card .time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.order-card .oc-body { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.order-card .oc-body .app-icon { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
.order-card .oc-info { flex: 1; min-width: 0; }
.order-card .oc-info b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .oc-info span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card .oc-price { font-weight: 800; font-size: 15px; }
.timer-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 159, 10, .12); font-size: 12.5px; color: #9a3412; margin-top: 12px; }
[data-theme="dark"] .timer-banner { color: #fdba74; }
.timer-banner b.tm { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 14px; background: rgba(255, 159, 10, .2); padding: 3px 8px; border-radius: 8px; }

/* ---------- CHAT (iMessage) ---------- */
.chat-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); position: sticky; top: 0; z-index: 5; }
.chat-top .ct-body { flex: 1; min-width: 0; }
.chat-top b { display: block; font-size: 15.5px; }
.chat-top span { font-size: 12px; color: var(--muted); }
.chat-info { margin: 10px 14px 0; padding: 10px 12px; border-radius: 14px; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 20px; font-size: 15px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; position: relative; animation: msgIn .35s var(--spring); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.msg .t { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, #2b8fff, #0a7aff); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--card); color: var(--text); border: 1px solid var(--glass-border); border-bottom-left-radius: 6px; }
.msg-gap { height: 8px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 75%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.chat-input textarea { flex: 1; resize: none; max-height: 120px; min-height: 42px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--hairline); background: var(--glass-strong); color: var(--text); font-family: inherit; font-size: 16px; outline: none; line-height: 1.3; }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; transition: transform .3s var(--spring); }
.chat-input button:active { transform: scale(.85); }
.quick-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }

/* ---------- ACCOUNT ---------- */
.profile-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 22px; text-align: center; }
.profile-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: var(--grad); opacity: .95; }
.profile-hero > * { position: relative; }
.profile-photo { width: 116px; height: 116px; aspect-ratio: 1 / 1; margin: 30px auto 12px; border-radius: 32px; overflow: hidden; border: 4px solid var(--glass-strong); box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .5); background: var(--grad); color: #fff; font-size: 44px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.profile-hero h2 { font-size: 22px; font-weight: 800; }
.profile-hero .uname { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.profile-stats div { padding: 12px 6px; border-radius: 16px; background: var(--fill); }
.profile-stats b { display: block; font-size: 16px; font-weight: 800; }
.profile-stats span { font-size: 11px; color: var(--muted); }
.google-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--fill); font-size: 12px; font-weight: 700; margin-top: 10px; }

/* ---------- LOGIN ---------- */
.login-wrap { width: 100%; max-width: 420px; }
.login-card { padding: 30px 24px 24px; border-radius: var(--radius-xl); text-align: center; }
.login-logo { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -14px rgba(10, 132, 255, .6); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-logo img { width: 70%; height: 70%; object-fit: contain; }
.login-card h1 { font-size: 26px; font-weight: 800; }
.login-card p.sub { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.login-perks { display: grid; gap: 8px; text-align: left; margin: 20px 0 6px; }
.login-perks div { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); font-weight: 600; }
.login-perks i { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--blue); flex-shrink: 0; }
.alert { padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-bottom: 14px; }
.alert-err { background: rgba(255, 69, 58, .12); color: var(--red); }
.alert-ok { background: rgba(48, 209, 88, .14); color: var(--green-d); }
[data-theme="dark"] .alert-ok { color: var(--green); }
.alert-info { background: var(--tint); color: var(--blue); }

/* ---------- AI widget ---------- */
.ai-fab { position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); z-index: 65; width: 52px; height: 52px; border-radius: 18px; border: 0; cursor: pointer; color: #fff; font-size: 20px;
  background: linear-gradient(135deg, #6366f1, #0a84ff); box-shadow: 0 14px 30px -10px rgba(79, 70, 229, .7); transition: transform .35s var(--spring); }
.ai-fab:active { transform: scale(.88); }
@media (min-width: 900px) { .ai-fab { bottom: 26px; right: 26px; } }
.ai-panel { position: fixed; right: 12px; left: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 88px); z-index: 66; max-width: 380px; margin-left: auto; height: min(520px, 62vh); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  transform-origin: bottom right; transform: scale(.6) translateY(30px); opacity: 0; pointer-events: none; transition: transform .45s var(--spring), opacity .25s; }
.ai-panel.open { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .ai-panel { bottom: 92px; right: 26px; left: auto; width: 380px; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #4f46e5, #0a84ff); color: #fff; }
.ai-head b { display: block; font-size: 14.5px; }
.ai-head span { font-size: 11.5px; opacity: .85; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ai-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--hairline); }
.ai-input input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 20px; border: 1px solid var(--hairline); background: var(--fill); color: var(--text); font-size: 16px; font-family: inherit; outline: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- FAQ ---------- */
.faq-item { border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: none; border: 0; color: var(--text); font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-q i { transition: transform .4s var(--spring); color: var(--blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--spring); }
.faq-a div { padding: 0 16px 16px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- Downloader ---------- */
.dl-hero { text-align: center; padding: 26px 18px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(140deg, #0b1220 0%, #1e293b 40%, #0a84ff 140%); position: relative; overflow: hidden; }
.dl-hero::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 244, 238, .35), transparent 70%); left: -60px; top: -80px; }
.dl-hero::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 44, 85, .3), transparent 70%); right: -60px; bottom: -100px; }
.dl-hero > * { position: relative; z-index: 1; }
.dl-hero h1 { font-size: 26px; font-weight: 800; margin: 12px 0 6px; }
.dl-hero p { color: rgba(255, 255, 255, .78); font-size: 14px; }
.dl-result { display: none; }
.dl-result.show { display: block; animation: pageEnter .5s var(--spring); }
.dl-thumb { width: 86px; height: 120px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--fill); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--hairline); margin: 14px 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.icon-hero { width: 70px; height: 70px; margin: 0 auto; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(10, 132, 255, .7); font-size: 28px; }
.stat-mini { padding: 14px; border-radius: 18px; }
.stat-mini span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-mini b { display: block; font-size: 18px; font-weight: 800; margin-top: 3px; }
.hist-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.hist-row:last-child { border-bottom: 0; }
.hist-row b { font-size: 14px; display: block; }
.hist-row span { font-size: 12px; color: var(--muted); }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .app-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 18px; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-body b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item .ci-body span { font-size: 12px; color: var(--muted); }
.cart-item .ci-del { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 69, 58, .1); color: var(--red); cursor: pointer; }
.welcome-check { width: 76px; height: 76px; margin: 6px auto 10px; }
.wa-btn { background: linear-gradient(135deg, #34d399, #16a34a); color: #fff; }

/* Home top layout (desktop: hero + slider berdampingan) */
.home-top { display: grid; gap: 14px; }
@media (min-width: 1000px) {
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; }
  .home-top .hero { display: flex; flex-direction: column; justify-content: center; }
  .home-top .slider { align-self: center; }
}

/* ==========================================================================
   DESKTOP & TABLET POLISH
   ========================================================================== */
/* Menu akun: lebih solid & jelas (tidak tembus pandang) */
.menu-pop { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45), 0 4px 14px rgba(15, 23, 42, .08); z-index: 120; min-width: 250px; }
[data-theme="dark"] .menu-pop { background: rgba(24, 28, 40, .97); border-color: rgba(255, 255, 255, .1); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
.menu-pop a, .menu-pop button { font-size: 14.5px; color: var(--text); }
.menu-pop .menu-head b { color: var(--text); }
.topbar { z-index: 110; }

.order-grid { display: grid; gap: 14px; }
.pd-layout, .co-grid, .acc-grid, .rs-grid { display: block; }
.pd-left > * + *, .pd-right > * + * { margin-top: 0; }
.rs-col > * + * { margin-top: 14px; }
.rs-col + .rs-col { margin-top: 14px; }

@media (min-width: 900px) {
  .install-banner, .install-banner.show { display: none !important; }
  .container { max-width: 1200px; padding: 0 28px; }
  .page { padding-top: 22px; }
  main { padding-top: 10px; }
  .page-head h1 { font-size: 30px; }

  /* Home */
  .reseller-card.rc-home { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 40px; align-items: center; padding: 24px 28px; }
  .reseller-card.rc-home > .row-between { grid-column: 1 / -1; margin-bottom: 6px; }
  .reseller-card.rc-home > .tiny { grid-column: 1; grid-row: 2; margin-top: 4px !important; }
  .reseller-card.rc-home > .rc-balance { grid-column: 1; grid-row: 3; margin: 0; font-size: 32px; }
  .reseller-card.rc-home > .ref-row { grid-column: 2; grid-row: 2 / span 2; }
  .trust { padding: 20px 10px; }
  .trust b { font-size: 14px; } .trust span { font-size: 12px; }
  .trust i { width: 46px; height: 46px; font-size: 19px; border-radius: 14px; }
  .promo-strip { padding: 18px 20px; }
  .sec-head h2 { font-size: 28px; }
  .search-bar { max-width: 560px; }
  .flash { padding: 24px 26px; }
  .fs-card { min-width: 160px; max-width: 160px; }
  .app-card { padding: 18px; }
  .app-icon { width: 66px; height: 66px; border-radius: 18px; }
  .app-card h3 { font-size: 15.5px; }
  .cta { padding: 40px; }

  /* Produk: 2 kolom */
  .pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
  .pd-left { position: sticky; top: 86px; }
  .pd-pkg-head { margin-top: 0 !important; }
  .pd-icon { width: 108px; height: 108px; border-radius: 28px; }
  .pd-head h1 { font-size: 28px; }

  /* Checkout: konten kiri + ringkasan kanan */
  .co-wrap { max-width: 1040px; }
  .co-wrap .stepper { max-width: 560px; margin-left: auto; margin-right: auto; }
  .co-grid:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .co-side { position: sticky; top: 86px; }
  .co-side .total-bar { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; }
  .co-side .total-bar b { font-size: 30px; }
  .co-main .pay-group-title:first-of-type { margin-top: 20px; }
  .co-narrow { max-width: 560px; margin: 0 auto; }

  /* Pesanan: 2 kolom */
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .orders-wrap .search-bar { max-width: 100%; }

  /* Akun: profil kiri, menu kanan */
  .acc-wrap { max-width: 1040px; }
  .acc-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 26px; align-items: start; }
  .acc-left { position: sticky; top: 86px; }
  .acc-right .list-title:first-child { margin-top: 4px; }

  /* Reseller: 2 kolom */
  .rs-wrap { max-width: 1100px; }
  .rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .rs-col + .rs-col { margin-top: 0; }
  .rs-first { margin-top: 0 !important; }

  /* Downloader & FAQ lebih lebar */
  .dl-hero { padding: 40px 30px; }
  .dl-hero h1 { font-size: 34px; }

  /* Sheet di desktop sedikit lebih besar */
  .sheet { max-width: 560px; padding: 22px 26px 26px; }

  .footer { padding-top: 40px; }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero h1 { font-size: 38px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .container { padding: 0 22px; }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { gap: 12px; }
}
@media (min-width: 900px) {
  .container.container-sm { max-width: 760px; }
  .container.container-md { max-width: 920px; }
}

/* ==========================================================================
   V3 — PREMIUM GLASS THEME (dark mode diperbarui total + animasi halus)
   ========================================================================== */
:root { --ring: rgba(10, 132, 255, .35); --glow: 0 0 0 1px rgba(10,132,255,.25), 0 18px 40px -18px rgba(10,132,255,.55); }
[data-theme="dark"] {
  --bg: #04060d;
  --bg-2: #080c18;
  --text: #f3f6fc;
  --text-2: #c3cbe0;
  --muted: #8b95ad;
  --hairline: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .045);
  --glass-strong: rgba(16, 20, 34, .72);
  --glass-border: rgba(255, 255, 255, .085);
  --card: rgba(255, 255, 255, .035);
  --fill: rgba(255, 255, 255, .06);
  --fill-2: rgba(255, 255, 255, .1);
  --tint: rgba(10, 132, 255, .16);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -28px rgba(0, 0, 0, .9);
}

/* ---------- Background: aurora bergerak + noise halus ---------- */
[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(6, 182, 212, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.bg-orbs::after { content: ""; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="dark"] .bg-orbs::after { opacity: .06; }
.bg-orbs span { filter: blur(90px); will-change: transform; }
[data-theme="dark"] .bg-orbs span { opacity: .35; mix-blend-mode: screen; }
[data-theme="dark"] .bg-orbs span:nth-child(1) { background: radial-gradient(circle, #1d4ed8, transparent 70%); width: 680px; height: 680px; }
[data-theme="dark"] .bg-orbs span:nth-child(2) { background: radial-gradient(circle, #7c3aed, transparent 70%); width: 560px; height: 560px; }
[data-theme="dark"] .bg-orbs span:nth-child(3) { background: radial-gradient(circle, #0891b2, transparent 70%); width: 600px; height: 600px; }
@keyframes orbFloat { 0%,100% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(60px,40px,0) scale(1.12); } 66% { transform: translate3d(-40px,30px,0) scale(.92); } }

/* ---------- Kaca: gradient lembut + garis sorot atas ---------- */
.card, .glass { position: relative; isolation: isolate; }
[data-theme="dark"] .card,
[data-theme="dark"] .glass {
  background: linear-gradient(180deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 50px -30px rgba(0,0,0,.95);
  -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
}
[data-theme="dark"] .glass-strong { background: linear-gradient(180deg, rgba(22,27,44,.86), rgba(12,15,26,.86)); border-color: rgba(255,255,255,.09); }
.card::after, .glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%); opacity: .35; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
[data-theme="dark"] .card::after, [data-theme="dark"] .glass::after { background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 35%, rgba(90,160,255,.0) 70%, rgba(90,160,255,.18)); opacity: 1; }

/* ---------- Spotlight mengikuti kursor (diaktifkan JS) ---------- */
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(10,132,255,.14), transparent 60%); }
[data-theme="dark"] .spot::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(56,140,255,.22), transparent 62%); }
.spot:hover::before { opacity: 1; }

/* ---------- Topbar & tab bar ---------- */
[data-theme="dark"] .topbar { background: rgba(4, 6, 13, .55); border-bottom-color: rgba(255,255,255,.06); }
[data-theme="dark"] .nav-links a { color: var(--text-2); }
[data-theme="dark"] .nav-links a.active, [data-theme="dark"] .nav-links a:hover { background: rgba(10,132,255,.16); color: #7cc0ff; }
[data-theme="dark"] .icon-btn, [data-theme="dark"] .avatar-pill, [data-theme="dark"] .back-btn { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
.icon-btn:hover, .back-btn:hover { box-shadow: var(--glow); }
[data-theme="dark"] .tabbar { background: linear-gradient(180deg, rgba(24,29,46,.78), rgba(12,15,26,.82)); border-color: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px -18px rgba(0,0,0,.9); }
[data-theme="dark"] .tab.active { color: #6db8ff; }
[data-theme="dark"] .tab.active::before { background: rgba(10,132,255,.2); box-shadow: 0 0 22px rgba(10,132,255,.35); }

/* ---------- Tombol: kilau berjalan ---------- */
.btn-primary { position: relative; overflow: hidden; background-size: 160% 160%; animation: gradShift 8s ease infinite; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transition: left .7s var(--ease); }
.btn-primary:hover::after { left: 130%; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
[data-theme="dark"] .btn-tint { background: rgba(10,132,255,.15); color: #7cc0ff; }
[data-theme="dark"] .btn-fill { background: rgba(255,255,255,.07); }
[data-theme="dark"] .btn-glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

/* ---------- Kartu aplikasi (katalog) ---------- */
.app-card { overflow: hidden; }
.app-card .app-icon { box-shadow: 0 10px 24px -10px rgba(15,23,42,.45); transition: transform .5s var(--spring); }
.app-card:hover .app-icon { transform: translateY(-3px) rotate(-3deg) scale(1.04); }
[data-theme="dark"] .app-card .app-icon { box-shadow: 0 12px 28px -10px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
.app-card .price { font-size: 16px; letter-spacing: -.02em; }
[data-theme="dark"] .app-card .price { color: #6db8ff; }
.app-card .get { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--spring); }
.app-card .get i { transition: transform .35s var(--spring); }
.app-card:hover .get { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(10,132,255,.8); }
.app-card:hover .get i { transform: translateX(4px); }
[data-theme="dark"] .app-card .get { background: rgba(10,132,255,.1); border-color: rgba(10,132,255,.25); color: #8cc8ff; }
[data-theme="dark"] .app-card:hover .get { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(10,132,255,.9); }
[data-theme="dark"] .app-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(10,132,255,.55); }

/* ---------- Pills & input ---------- */
[data-theme="dark"] .cat-pill { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.09); color: var(--text-2); }
[data-theme="dark"] .cat-pill:hover { border-color: rgba(10,132,255,.4); }
[data-theme="dark"] .input, [data-theme="dark"] .select, [data-theme="dark"] .textarea { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); }
[data-theme="dark"] .search-bar .input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
[data-theme="dark"] .input:focus, [data-theme="dark"] .select:focus { background: rgba(255,255,255,.07); }

/* ---------- Hero, flash, reseller: border gradient berputar ---------- */
.hero, .flash, .omzet { isolation: isolate; }
.hero > .hero-glint, .omzet > .hero-glint { position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 20% -10%, rgba(255,255,255,.35), transparent 60%); opacity: .7; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0b2a8a 0%, #1d4ed8 40%, #0a84ff 75%, #22d3ee 130%); box-shadow: 0 30px 70px -30px rgba(29,78,216,.8), inset 0 1px 0 rgba(255,255,255,.18); }
[data-theme="dark"] .reseller-card { background: linear-gradient(140deg, #0a0f24 0%, #111a3d 55%, #1e3a8a 120%); border: 1px solid rgba(255,255,255,.08); }
[data-theme="dark"] .flash { box-shadow: 0 30px 70px -30px rgba(29,78,216,.85), inset 0 1px 0 rgba(255,255,255,.2); }
[data-theme="dark"] .fs-card { background: rgba(10, 14, 28, .72); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
[data-theme="dark"] .trust i, [data-theme="dark"] .li-icon, [data-theme="dark"] .k-icon { box-shadow: 0 8px 22px -8px currentColor; }
.trust i { transition: transform .5s var(--spring); }
.trust:hover i { transform: translateY(-4px) scale(1.08); }

/* ---------- Status, chip, note di dark ---------- */
[data-theme="dark"] .chip { background: rgba(255,255,255,.07); }
[data-theme="dark"] .chip-blue { background: rgba(10,132,255,.16); color: #7cc0ff; }
[data-theme="dark"] .note { background: rgba(255,159,10,.1); }
[data-theme="dark"] .note-blue { background: rgba(10,132,255,.12); }
[data-theme="dark"] .st-process { color: #7cc0ff; }

/* ---------- Paket & metode bayar ---------- */
.pkg, .pay-opt { overflow: hidden; }
[data-theme="dark"] .pkg, [data-theme="dark"] .pay-opt { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.pkg.on, .pay-opt.on { box-shadow: var(--glow); }
[data-theme="dark"] .pkg.on, [data-theme="dark"] .pay-opt.on { background: linear-gradient(180deg, rgba(10,132,255,.16), rgba(10,132,255,.05)); }

/* ---------- Chat bubble dark ---------- */
[data-theme="dark"] .msg.them { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .chat-top, [data-theme="dark"] .chat-input { background: rgba(4,6,13,.6); }

/* ---------- Sheet & dynamic island dark ---------- */
[data-theme="dark"] .sheet { background: linear-gradient(180deg, rgba(22,27,44,.92), rgba(10,13,24,.95)); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .sheet-backdrop { background: rgba(0,0,0,.55); }
[data-theme="dark"] .list-item + .list-item::before { background: rgba(255,255,255,.06); }

/* ---------- Teks heading gradien lembut di dark ---------- */
[data-theme="dark"] .sec-head h2, [data-theme="dark"] .page-head h1 {
  background: linear-gradient(180deg, #ffffff 30%, #a9b6d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .sec-head h2 .grad-text { background: linear-gradient(90deg, #4aa3ff, #7dd3fc); -webkit-background-clip: text; background-clip: text; }

/* ---------- Reveal lebih halus (blur-in) ---------- */
.reveal { filter: blur(6px); transition: opacity .8s var(--ease), transform .9s var(--spring), filter .8s var(--ease); }
.reveal.in { filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none; } .btn-primary { animation: none; } }
.app-card { transition: transform .25s ease-out, box-shadow .3s; }
[data-theme="dark"] .cat-pill.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(10,132,255,.9); }

/* ============================================================
 * V6 — ANTI KEPOTONG (iOS Chrome/Safari) & PAS DI SEMUA LAYAR
 * ============================================================ */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video, svg, canvas, iframe { max-width: 100%; }
input, select, textarea, .input, .select { min-width: 0; max-width: 100%; }
input[type="date"], input[type="datetime-local"], input[type="time"] { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; }
/* Item grid/flex tidak boleh melebarkan layar walau teksnya panjang */
.order-grid { grid-template-columns: minmax(0, 1fr); }
.order-grid > *, .product-grid > *, .grid-2 > *, .grid-3 > *, .steps-grid > *, .trust-row > *, .kpi-grid > *, .u-grid > *,
.pd-layout > *, .co-grid > *, .acc-grid > *, .rs-grid > *, .home-top > *, .profile-stats > * { min-width: 0; }
.container, .card, .sheet, .order-card, .chat-body, .bubble, .msg, .note, .alert, .timer-banner { overflow-wrap: anywhere; }
.order-card .oc-top > div:first-child, .order-card .oc-info { min-width: 0; }
.order-card .oc-top .status { flex-shrink: 0; white-space: nowrap; }
.order-card .oc-price { flex-shrink: 0; white-space: nowrap; }
.order-card .oc-body .app-icon { flex-shrink: 0; }
.timer-banner span { min-width: 0; flex: 1; }
.timer-banner i, .timer-banner b.tm { flex-shrink: 0; }
.row, .act-row, .toolbar { min-width: 0; }
.toolbar > * { min-width: 0; }
pre, code { white-space: pre-wrap; word-break: break-word; }
.sheet { max-width: 100%; }

/* HP kecil (iPhone SE / Android 320–360) */
@media (max-width: 360px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .product-grid { gap: 9px; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 24px; }
  .order-card { padding: 13px; }
  .order-card .oc-body { gap: 10px; }
  .order-card .oc-body .app-icon { width: 44px; height: 44px; }
  .btn-lg { padding-left: 14px; padding-right: 14px; }
  .tabbar a span, .tabbar .t-label { font-size: 10px; }
}
/* Tablet & iPad */
@media (min-width: 640px) and (max-width: 1023px) {
  .container { padding-left: 22px; padding-right: 22px; }
}
/* Layar besar: MacBook 1440, monitor 1920+ */
@media (min-width: 1440px) {
  .container:not(.container-sm):not(.container-md) { max-width: 1320px; }
  .order-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1900px) {
  html { font-size: 17px; }
  .container:not(.container-sm):not(.container-md) { max-width: 1480px; }
}
