/* ==========================================================================
   Start-Mail — Premium UI (tema silver–oranye, efek timbul)
   Latar silver logam (brushed metal), panel & tombol timbul,
   aksen oranye seperti logo, ikon kecil yang rapi.
   ========================================================================== */

/* ---------- Font (self-hosted, variable 200–800) ---------- */
@font-face {
  font-family: "Jakarta";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --font: "Jakarta", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #D9DDE2;
  --ink: #15181D;
  --ink-2: #2B3038;
  --muted: #535B66;
  --muted-2: #6E7681;
  --line: rgba(40, 48, 60, .1);
  --line-2: rgba(40, 48, 60, .17);

  --or: #FF7A00;
  --or-hi: #FFA53D;
  --or-deep: #E86400;
  --or-dark: #B04800;
  --or-ink: #BF5000;
  --or-soft: rgba(255, 122, 0, .12);
  --or-glow: rgba(255, 122, 0, .42);

  --ok: #14A04A; --ok-ink: #0B7536; --ok-soft: rgba(20, 160, 74, .12);
  --warn: #E59A06; --warn-ink: #8F5A00; --warn-soft: rgba(229, 154, 6, .15);
  --bad: #E03A3E; --bad-ink: #B1232A; --bad-soft: rgba(224, 58, 62, .12);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* permukaan logam */
  --g-silver: linear-gradient(160deg, #FFFFFF 0%, #F1F2F4 34%, #E3E6E9 70%, #D6DADF 100%);
  --g-silver-soft: linear-gradient(160deg, #FAFBFC 0%, #ECEEF1 60%, #E1E4E8 100%);
  --g-inset: linear-gradient(160deg, #D3D7DC 0%, #E0E3E7 45%, #EBEDF0 100%);
  --g-chrome: linear-gradient(180deg, #FFFFFF 0%, #F2F3F5 18%, #CDD1D6 46%, #A9AFB7 53%, #D9DCE0 78%, #FFFFFF 100%);
  --g-orange: linear-gradient(180deg, #FFC27A 0%, #FF9B30 28%, #FF7A00 60%, #E25E00 100%);
  --g-graphite: linear-gradient(160deg, #42474F 0%, #2A2E34 42%, #17191D 100%);

  /* efek timbul (raised) & tertekan (inset) */
  --raise:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(118, 126, 138, .26),
    0 1px 1px rgba(60, 66, 76, .1),
    6px 8px 18px -7px rgba(80, 88, 100, .46),
    -5px -5px 14px -5px rgba(255, 255, 255, .95);
  --raise-hover:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(118, 126, 138, .26),
    0 1px 1px rgba(60, 66, 76, .1),
    9px 13px 26px -8px rgba(80, 88, 100, .5),
    -6px -6px 16px -5px rgba(255, 255, 255, .95),
    0 14px 30px -20px rgba(255, 122, 0, .45);
  --raise-sm:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(118, 126, 138, .3),
    2px 3px 7px -2px rgba(80, 88, 100, .5),
    -2px -2px 6px -2px rgba(255, 255, 255, .95);
  --press:
    inset 2px 3px 6px rgba(80, 88, 100, .3),
    inset -2px -2px 5px rgba(255, 255, 255, .9);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --dock-h: 62px;
  --side-w: 248px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: rgba(60, 66, 76, .35) transparent;
}

body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  word-spacing: .05em;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg.i { display: block; flex: none; }
b, strong { font-weight: 800; }
::selection { background: rgba(255, 122, 0, .28); color: var(--ink); }
:focus-visible { outline: 2px solid rgba(255, 122, 0, .7); outline-offset: 2px; border-radius: 10px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(60, 66, 76, .3); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Latar silver logam ---------- */
.scene {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 8% -6%, #FBFCFD 0%, rgba(251, 252, 253, 0) 62%),
    radial-gradient(80% 70% at 104% 108%, #BEC3CA 0%, rgba(190, 195, 202, 0) 62%),
    linear-gradient(162deg, #EEF0F3 0%, #DFE2E6 42%, #D2D6DB 72%, #C8CDD3 100%);
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .82' numOctaves='3' seed='11'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: 560px 560px;
}
.scene::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .42) 47%, rgba(255, 255, 255, .08) 52%, rgba(255, 255, 255, 0) 60%);
  translate: calc(var(--px, 0) * 60px) calc(var(--py, 0) * 40px);
  transition: translate 1s var(--ease-out);
}
.scene .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.scene .g1 { width: 46vmax; height: 46vmax; right: -16vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(255, 140, 30, .55), rgba(255, 140, 30, 0)); animation: glowA 18s ease-in-out infinite; animation-delay: calc(var(--t, 0) * -1s); }
.scene .g2 { width: 38vmax; height: 38vmax; left: -18vmax; bottom: -16vmax; background: radial-gradient(closest-side, rgba(255, 170, 80, .35), rgba(255, 170, 80, 0)); animation: glowA 22s ease-in-out infinite reverse; animation-delay: calc(var(--t, 0) * -1s); }
.scene .sheen {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 26%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  transform: rotate(20deg);
  animation: sweep 14s ease-in-out infinite;
  animation-delay: calc(var(--t, 0) * -1s);
}
@keyframes glowA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3vmax, 3vmax) scale(1.08); } }
@keyframes sweep { 0%, 58% { left: -60%; } 100% { left: 160%; } }
@media (max-width: 1023px) { .scene .sheen, .scene .glow { animation: none; } }

/* ---------- App shell ---------- */
.app {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-h) + 30px + var(--safe-b));
}
.content {
  padding: 14px 13px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.content > *, .stack > * { min-width: 0; }

.content > *, .stack > * { animation: rise .65s var(--ease-out) backwards; }
.content > :nth-child(1), .stack > :nth-child(1) { animation-delay: .03s; }
.content > :nth-child(2), .stack > :nth-child(2) { animation-delay: .08s; }
.content > :nth-child(3), .stack > :nth-child(3) { animation-delay: .13s; }
.content > :nth-child(4), .stack > :nth-child(4) { animation-delay: .18s; }
.content > :nth-child(5), .stack > :nth-child(5) { animation-delay: .23s; }
.content > :nth-child(6), .stack > :nth-child(6) { animation-delay: .28s; }
.content > :nth-child(n+7), .stack > :nth-child(n+7) { animation-delay: .33s; }
@keyframes rise {
  from { opacity: 0; transform: perspective(900px) translate3d(0, 18px, 0) rotateX(8deg) scale(.985); }
  to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateX(0) scale(1); }
}

/* ---------- Wordmark START-MAIL ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-style: italic;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .005em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: .12em;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .95)) drop-shadow(0 2px 2px rgba(40, 46, 56, .22));
}
.wordmark b, .wordmark i {
  font-style: italic;
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.wordmark b { background-image: linear-gradient(180deg, #6A717B 0%, #3A4048 40%, #15181C 52%, #3E444C 78%, #5E656E 100%); }
.wordmark i { background-image: linear-gradient(180deg, #FFC27A 0%, #FF8F1C 42%, #E45F00 54%, #FF8A12 80%, #FFB04F 100%); }

/* ---------- Header & page head ---------- */
.header, .page-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(9px + var(--safe-t)) 13px 9px;
  background: linear-gradient(180deg, rgba(250, 251, 252, .94), rgba(234, 237, 240, .9));
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(118, 126, 138, .28), 0 8px 20px -14px rgba(50, 56, 66, .5);
  transition: box-shadow .3s ease;
}
.header.scrolled, .page-head.scrolled { box-shadow: 0 1px 0 rgba(118, 126, 138, .3), 0 14px 28px -16px rgba(50, 56, 66, .6); }

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; margin-right: auto; }
.brand-tile {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 12px;
  background: var(--g-chrome);
  box-shadow: var(--raise-sm), 0 6px 14px -8px rgba(255, 122, 0, .55);
}
.brand-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.brand-tile::after { content: ""; position: absolute; inset: 2px; border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 45%); pointer-events: none; }
.brand-tile.sm { width: 36px; height: 36px; border-radius: 11px; }
.brand-tile.sm img, .brand-tile.sm::after { border-radius: 9px; }
.brand-word { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.brand-word .greet { margin-top: 3px; font-size: 11px; line-height: 1.3; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet-sub { display: none; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }

.ph-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.ph-title { min-width: 0; }
.page-head h2 {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.ph-sub { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.back, .round-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--or-deep);
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.back svg, .round-btn svg { width: 16px; height: 16px; stroke-width: 2.6; filter: drop-shadow(0 1px 0 #fff); }
.back:hover { transform: translateX(-2px); }
.back:active, .round-btn:active { transform: scale(.96); box-shadow: var(--press); }

.wa-btn {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise-sm);
  transition: transform .2s var(--ease-out);
  white-space: nowrap;
}
.wa-btn svg { width: 15px; height: 15px; color: #17A55A; filter: drop-shadow(0 1px 0 #fff); }
.wa-btn:active { transform: scale(.97); box-shadow: var(--press); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #1FBF62; box-shadow: 0 0 0 0 rgba(31, 191, 98, .6); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(31, 191, 98, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(31, 191, 98, 0); } }

.icon-out {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .95);
  background: var(--g-silver);
  color: var(--bad-ink);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--raise-sm);
  transition: transform .2s var(--ease-out);
}
.icon-out::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 4H6.1a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3.1'/%3E%3Cpath d='m15.6 16.6 4.6-4.6-4.6-4.6'/%3E%3Cpath d='M20.2 12H9.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 4H6.1a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3.1'/%3E%3Cpath d='m15.6 16.6 4.6-4.6-4.6-4.6'/%3E%3Cpath d='M20.2 12H9.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.icon-out:active { transform: scale(.97); box-shadow: var(--press); }

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .95);
  background: var(--g-silver);
  box-shadow: var(--raise-sm);
}
.badge svg { width: 13px; height: 13px; }
.badge-ok { color: var(--ok-ink); }
.badge-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s ease-out infinite; }
.badge-live { color: var(--or-ink); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--or); animation: livePulseOr 1.8s ease-out infinite; }
@keyframes livePulseOr { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(255, 122, 0, 0); } }
.badge-soft { color: var(--ink-2); }
.badge-dark { color: #fff; background: var(--g-graphite); border-color: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 3px 4px 9px -3px rgba(30, 34, 40, .55), -2px -2px 6px -2px rgba(255, 255, 255, .9); }
.badge-dark svg { color: var(--or-hi); }

.lock-toggle {
  flex: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px 0 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .95);
  background: var(--g-silver);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--raise-sm);
  transition: transform .2s var(--ease-out), color .3s;
}
.lock-toggle::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='10.4' width='14.8' height='10.2' rx='2.4'/%3E%3Cpath d='M8.1 10.4V7.6a3.9 3.9 0 0 1 7.8 0v2.8'/%3E%3Cpath d='M12 14.6v2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='10.4' width='14.8' height='10.2' rx='2.4'/%3E%3Cpath d='M8.1 10.4V7.6a3.9 3.9 0 0 1 7.8 0v2.8'/%3E%3Cpath d='M12 14.6v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.lock-toggle[data-open="1"] {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: var(--g-orange);
  text-shadow: 0 1px 1px rgba(130, 45, 0, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 3px 5px 12px -4px var(--or-glow), -2px -2px 6px -2px rgba(255, 255, 255, .9);
}
.lock-toggle[data-open="1"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='10.4' width='14.8' height='10.2' rx='2.4'/%3E%3Cpath d='M8.1 10.4V7.6a3.9 3.9 0 0 1 7.4-1.7'/%3E%3Cpath d='M12 14.6v2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='10.4' width='14.8' height='10.2' rx='2.4'/%3E%3Cpath d='M8.1 10.4V7.6a3.9 3.9 0 0 1 7.4-1.7'/%3E%3Cpath d='M12 14.6v2'/%3E%3C/svg%3E"); }
.lock-toggle:active { transform: scale(.97); }

/* ---------- Kartu (panel logam timbul) ---------- */
.card {
  position: relative;
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: var(--r-lg);
  box-shadow: var(--raise);
}
a.card, .card[data-tilt] { transition: transform .5s var(--ease-out), box-shadow .35s ease; }
@media (hover: hover) {
  a.card:hover { box-shadow: var(--raise-hover); transform: translateY(-2px); }
}
a.card:active { transform: translateY(1px) scale(.995); box-shadow: var(--raise-sm); transition-duration: .12s; }
[data-tilt] { transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
[data-tilt].tilting { transition: transform .12s linear, box-shadow .35s ease; }
@media (hover: hover) {
  a.card[data-tilt]:hover, .card[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translateY(-2px);
    box-shadow: var(--raise-hover);
  }
}

.pad { padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.card-head .ch-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-head h3, .section-title { font-size: 13.5px; line-height: 1.3; font-weight: 800; letter-spacing: -.005em; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.card-head p, .card-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or-ink); }
.muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.lead-text { font-size: 12.5px; line-height: 1.6; color: var(--muted); font-weight: 600; }

/* ---------- Ikon timbul (kecil & rapi) ---------- */
.ico3d {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--or-deep);
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(118, 126, 138, .2), 2px 3px 7px -2px rgba(80, 88, 100, .5), -2px -2px 6px -2px rgba(255, 255, 255, .95);
  transition: transform .3s var(--ease-spring), box-shadow .25s;
}
.ico3d svg { width: 17px; height: 17px; stroke-width: 2.3; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .95)); }
.ico3d.or {
  color: #fff;
  background: var(--g-orange);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(150, 50, 0, .22), 0 2px 0 -1px var(--or-dark), 3px 5px 10px -3px var(--or-glow), -2px -2px 6px -2px rgba(255, 255, 255, .95);
}
.ico3d.or svg { filter: drop-shadow(0 1px 1px rgba(120, 40, 0, .45)); }
.ico3d.dk {
  color: var(--or-hi);
  background: var(--g-graphite);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 -1px #0B0C0E, 3px 5px 10px -3px rgba(30, 34, 40, .55), -2px -2px 6px -2px rgba(255, 255, 255, .9);
}
.ico3d.dk svg { filter: drop-shadow(0 0 4px rgba(255, 140, 30, .45)); }
.ico3d.ok { color: var(--ok); }
.ico3d.warn { color: var(--warn); }
.ico3d.bad { color: var(--bad); }
.ico3d.wa { color: #17A55A; }
.ico3d.sm { width: 30px; height: 30px; border-radius: 9px; }
.ico3d.sm svg { width: 15px; height: 15px; }
.ico3d.xs { width: 24px; height: 24px; border-radius: 7px; }
.ico3d.xs svg { width: 13px; height: 13px; stroke-width: 2.4; }
.ico3d.lg { width: 44px; height: 44px; border-radius: 13px; }
.ico3d.lg svg { width: 21px; height: 21px; }

/* ---------- Tombol timbul ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  color: var(--ink);
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise-sm);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .14s var(--ease-out), box-shadow .14s ease, filter .2s, opacity .2s;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(255, 122, 0, .2);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.btn.rpl::after { animation: zRipple .65s ease-out; }
@keyframes zRipple { from { transform: scale(0); opacity: 1; } to { transform: scale(38); opacity: 0; } }
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); box-shadow: var(--press); }

.btn-gold, .btn-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: var(--g-orange);
  text-shadow: 0 1px 1px rgba(130, 45, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(150, 50, 0, .25), 0 3px 0 -1px var(--or-dark), 4px 8px 16px -6px var(--or-glow), -3px -3px 8px -3px rgba(255, 255, 255, .9);
}
.btn-gold::before, .btn-primary::before, .btn-white::before, .btn-dark::before, .btn-success::before, .btn-danger::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6%;
  right: 6%;
  top: 2px;
  height: 44%;
  border-radius: 9px 9px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn-gold::after, .btn-primary::after, .btn-success::after, .btn-danger::after, .btn-dark::after { background: rgba(255, 255, 255, .4); }
.btn-gold:active, .btn-primary:active { box-shadow: inset 0 2px 4px rgba(150, 50, 0, .35), 0 1px 0 -1px var(--or-dark); }

.btn-white {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .9);
  background: var(--g-chrome);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(60, 66, 76, .15), 0 3px 0 -1px #6C737D, 0 10px 18px -10px rgba(0, 0, 0, .7);
}
.btn-white::before { background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.btn-white svg { color: var(--or-deep); }
.btn-white:active { box-shadow: inset 0 2px 4px rgba(60, 66, 76, .3), 0 1px 0 -1px #6C737D; }

.btn-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  background: var(--g-graphite);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 3px 0 -1px #0A0B0D, 4px 8px 16px -6px rgba(30, 34, 40, .55), -3px -3px 8px -3px rgba(255, 255, 255, .9);
}
.btn-dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); }
.btn-dark svg { color: var(--or-hi); }
.btn-dark:active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), 0 1px 0 -1px #0A0B0D; }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 -1px rgba(0, 0, 0, .55), 0 10px 18px -12px rgba(0, 0, 0, .7);
}
.btn-ghost svg { color: var(--or-hi); }
.btn-ghost::after { background: rgba(255, 255, 255, .3); }
.btn-ghost:active { box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45), 0 1px 0 -1px rgba(0, 0, 0, .55); }

.btn-success {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, #5BE08F 0%, #1FB45C 50%, #0E8A42 100%);
  text-shadow: 0 1px 1px rgba(0, 50, 25, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 -1px #0A6A33, 4px 7px 14px -6px rgba(31, 180, 92, .5), -3px -3px 8px -3px rgba(255, 255, 255, .9);
}
.btn-success:active { box-shadow: inset 0 2px 4px rgba(0, 60, 30, .35), 0 1px 0 -1px #0A6A33; }
.btn-danger {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, #FF7F83 0%, #E8424A 50%, #B92530 100%);
  text-shadow: 0 1px 1px rgba(90, 0, 10, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 3px 0 -1px #8E1621, 4px 7px 14px -6px rgba(232, 66, 74, .5), -3px -3px 8px -3px rgba(255, 255, 255, .9);
}
.btn-soft-danger { color: var(--bad-ink); }
.btn-soft-danger svg { color: var(--bad); }
.btn-soft-danger::after { background: rgba(224, 58, 62, .18); }
.btn-soft-amber { color: var(--warn-ink); }
.btn-soft-amber::after { background: rgba(229, 154, 6, .2); }

.btn-full { width: 100%; min-height: 44px; font-size: 13px; border-radius: 13px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 0 10px; font-size: 11px; border-radius: 9px; gap: 5px; }
.btn-xs svg { width: 13px; height: 13px; }
.btn-icon { width: 38px; min-width: 38px; padding: 0; border-radius: 50%; }
.btn-icon.btn-sm { width: 32px; min-width: 32px; border-radius: 50%; }
.btn-icon svg { color: var(--or-deep); }
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  filter: none;
  color: #8A919B !important;
  background: var(--g-inset) !important;
  border-color: rgba(255, 255, 255, .6) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85) !important;
  box-shadow: var(--press) !important;
}
.btn:disabled::before, .btn[aria-disabled="true"]::before { display: none; }
.btn:disabled svg, .btn[aria-disabled="true"] svg { color: currentColor; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 0; }

/* ---------- Kartu saldo / banner (grafit + cahaya oranye) ---------- */
.balance, .hero-banner {
  position: relative;
  color: #F2F3F5;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background:
    radial-gradient(380px circle at var(--mx, 86%) var(--my, 0%), rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 46%),
    radial-gradient(110% 90% at 100% 0%, rgba(255, 122, 0, .45) 0%, rgba(255, 122, 0, 0) 52%),
    radial-gradient(80% 70% at 0% 100%, rgba(255, 160, 60, .16) 0%, rgba(255, 160, 60, 0) 60%),
    var(--g-graphite);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -12px 26px -14px rgba(0, 0, 0, .7),
    0 3px 0 -1px #0B0C0E,
    8px 12px 26px -8px rgba(40, 44, 52, .6),
    -6px -6px 16px -6px rgba(255, 255, 255, .95),
    0 22px 44px -26px rgba(255, 122, 0, .55);
}
.balance { padding: 16px 15px 15px; overflow: visible; }
.bal-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.bal-fx::before {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  width: 30%;
  left: -70%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  animation: sheen 7.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.bal-fx::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: rgba(255, 150, 40, .95);
  border-bottom-color: rgba(220, 224, 230, .65);
  filter: drop-shadow(0 0 6px rgba(255, 130, 20, .8));
  transform: rotate(-12deg);
}
@keyframes sheen { 0%, 52% { left: -70%; } 82%, 100% { left: 140%; } }
.balance > *:not(.bal-fx):not(.coin3d), .hero-banner > *:not(.bal-fx) { position: relative; z-index: 1; }
.balance .label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or-hi); }
.balance .label svg { width: 14px; height: 14px; filter: drop-shadow(0 0 4px rgba(255, 140, 30, .6)); }
.balance .amount {
  margin: 5px 0 3px;
  font-size: clamp(25px, 7.6vw, 33px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDEFF2 38%, #A9B0B8 52%, #E6E8EB 72%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(255, 130, 20, .28));
}
.balance .sub { font-size: 12px; font-weight: 600; color: rgba(242, 243, 245, .82); }
.balance .sub b { color: var(--or-hi); }
.row-btns { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.row-btns .btn { min-height: 36px; }

/* Koin chrome 3D */
.coin3d { position: absolute; z-index: 2; right: 12px; top: -14px; width: 66px; height: 66px; perspective: 700px; pointer-events: none; }
.coin { position: absolute; inset: 0; transform-style: preserve-3d; animation: coinSwing 10s cubic-bezier(.45, .05, .55, .95) infinite; }
.coin > i { position: absolute; inset: 0; border-radius: 50%; }
.coin .edge { background: linear-gradient(90deg, #4E5560 0%, #C9CED5 35%, #FFFFFF 50%, #9EA6B1 65%, #444B55 100%); }
.coin .edge:nth-child(1) { transform: translateZ(-5px); }
.coin .edge:nth-child(2) { transform: translateZ(-4px); }
.coin .edge:nth-child(3) { transform: translateZ(-3px); }
.coin .edge:nth-child(4) { transform: translateZ(-2px); }
.coin .edge:nth-child(5) { transform: translateZ(-1px); }
.coin .edge:nth-child(6) { transform: translateZ(0); }
.coin .edge:nth-child(7) { transform: translateZ(1px); }
.coin .edge:nth-child(8) { transform: translateZ(2px); }
.coin .edge:nth-child(9) { transform: translateZ(3px); }
.coin .edge:nth-child(10) { transform: translateZ(4px); }
.coin .edge:nth-child(11) { transform: translateZ(5px); }
.coin .face {
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #16181B;
  box-shadow: inset 0 0 0 3px #EEF0F3, inset 0 0 0 4px #8A929C, inset 0 0 0 5px #FF8A12, inset 0 -8px 14px rgba(0, 0, 0, .45);
}
.coin .face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: scale(.86); }
.coin .face::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: linear-gradient(130deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.coin .front { transform: translateZ(6px); }
.coin .back { transform: rotateY(180deg) translateZ(6px); }
.coin3d .coin-shadow { position: absolute; left: 18%; right: 18%; bottom: -13px; height: 11px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); animation: coinShadow 10s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes coinSwing {
  0% { transform: translateY(0) rotateX(10deg) rotateY(-26deg); }
  28% { transform: translateY(-5px) rotateX(6deg) rotateY(24deg); }
  54% { transform: translateY(0) rotateX(10deg) rotateY(-26deg); }
  80%, 100% { transform: translateY(0) rotateX(10deg) rotateY(334deg); }
}
@keyframes coinShadow { 0%, 54%, 100% { transform: scaleX(1); opacity: 1; } 28% { transform: scaleX(.82); opacity: .75; } }

/* ---------- Menu ---------- */
.menu-card { padding: 13px 8px 14px; }
.menu-card .card-head { padding: 0 6px; margin-bottom: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px 4px; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0; text-align: center; border-radius: 12px; color: var(--ink-2); }
.menu-item .mi-lbl { font-size: clamp(10px, 2.85vw, 11.5px); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
@media (hover: hover) {
  .menu-item:hover { color: var(--or-ink); }
  .menu-item:hover .ico3d { transform: translateY(-3px) scale(1.05); }
}
.menu-item:active .ico3d { transform: translateY(1px) scale(.94); box-shadow: var(--press); }
.menu-grid .menu-item .ico3d.or:active { box-shadow: inset 0 2px 5px rgba(150, 50, 0, .4); }
@media (max-width: 419px) {
  .menu-grid.soft { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px 6px; }
  .menu-grid.soft > * { grid-column: span 2; }
  .menu-grid.soft > :nth-child(4) { grid-column: 2 / span 2; }
}

/* ---------- Status & limit ---------- */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.status { padding: 12px 11px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.status small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status .num { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 1px 0 #fff; }

.limit-card { padding: 13px 14px 14px; display: grid; gap: 10px; }
.limit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; }
.limit-row > span:first-child { display: flex; align-items: center; gap: 7px; color: var(--ink-2); min-width: 0; }
.limit-row > span:first-child svg { width: 15px; height: 15px; color: var(--or-deep); }
.limit-row > span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.limit-row > span:last-child span, .limit-sisa { color: var(--muted) !important; font-weight: 600 !important; }
.meter { position: relative; height: 10px; border-radius: 99px; background: var(--g-inset); box-shadow: var(--press); overflow: hidden; }
.meter i { position: relative; display: block; height: 100%; width: calc(var(--p, 0) * 1%); min-width: 10px; border-radius: inherit; background: linear-gradient(90deg, #FFC27A 0%, #FF8A12 50%, #E25E00 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 8px rgba(255, 122, 0, .5); transition: width 1.2s var(--ease-out); overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .26) 0 7px, rgba(255, 255, 255, 0) 7px 14px); background-size: 19.8px 19.8px; animation: stripes 1.1s linear infinite; }
.is-full .meter i { background: linear-gradient(90deg, #FF9A8F, #E8424A 55%, #B92530); }
@keyframes stripes { to { background-position: 19.8px 0; } }

/* ---------- Pengumuman ---------- */
.ann-card { padding: 14px; display: grid; gap: 11px; }
.ann-head { display: flex; align-items: center; gap: 9px; }
.ann-head h3 { flex: 1; font-size: 13.5px; font-weight: 800; text-shadow: 0 1px 0 #fff; }
.ann-count { font-size: 11px; font-weight: 800; color: var(--or-ink); padding: 3px 9px; border-radius: 99px; background: var(--g-inset); box-shadow: var(--press); font-variant-numeric: tabular-nums; }
#ann-text {
  font-size: 12.5px;
  line-height: 1.65;
  min-height: 62px;
  color: var(--ink-2);
  font-weight: 600;
  padding: 11px 13px;
  border-radius: 13px;
  background: var(--g-inset);
  box-shadow: var(--press);
  white-space: pre-line;
}
#ann-text.swap { animation: annSwap .5s var(--ease-out); }
@keyframes annSwap { from { opacity: 0; transform: translateX(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.ann-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ann-foot .hint { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.ann-foot .btn-row { flex: none; }

/* ---------- Link rows ---------- */
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px; }
.link-row .left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.link-row h4 { font-size: 13px; line-height: 1.3; font-weight: 800; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.link-row p { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 1px; overflow-wrap: anywhere; }
.chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--or-deep);
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise-sm);
  transition: transform .3s var(--ease-spring);
}
.chev svg { width: 14px; height: 14px; stroke-width: 2.6; filter: drop-shadow(0 1px 0 #fff); }
@media (hover: hover) { a:hover .chev { transform: translateX(3px); } }

/* ---------- Catatan / callout ---------- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 15px;
  background: var(--g-silver-soft);
  border: 1px solid rgba(255, 255, 255, .92);
  border-left: 3px solid var(--or);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
  box-shadow: var(--raise-sm);
}
.note::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 11v5M12 7.9h.01'/%3E%3C/svg%3E") center / 13px no-repeat, var(--g-orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 2px 3px 6px -2px var(--or-glow);
}
.callout { display: flex; gap: 11px; align-items: flex-start; padding: 13px; }
.callout p { font-size: 12px; line-height: 1.55; margin-top: 2px; color: var(--muted); font-weight: 600; }
.callout b { font-size: 13px; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.callout-warn { background: linear-gradient(160deg, #FFF9EC 0%, #FDEFD2 100%); }
.callout-warn b { color: var(--warn-ink); }
.callout-blue { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 0, .1), rgba(255, 122, 0, 0) 60%), var(--g-silver); }

/* ---------- Form ---------- */
.form-card { padding: 15px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-2); text-shadow: 0 1px 0 rgba(255, 255, 255, .85); }
.field .help { font-size: 11px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  background: var(--g-inset);
  border: 1px solid rgba(150, 158, 170, .45);
  border-radius: 12px;
  outline: none;
  box-shadow: inset 2px 3px 6px rgba(80, 88, 100, .22), inset -2px -2px 4px rgba(255, 255, 255, .8), 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s, box-shadow .25s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 110px; line-height: 1.55; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #848B96; font-weight: 500; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(120, 128, 140, .6); }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #F6F7F9;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .18), inset 1px 2px 4px rgba(80, 88, 100, .16);
}
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #ECEEF1 inset;
  caret-color: var(--ink);
  transition: background-color 9999s ease 0s;
}
.field select {
  padding-right: 40px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E86400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.2 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat, var(--g-inset);
}
.field select:focus { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B04800' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.2 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat, #F6F7F9; }
.field select option { background: #fff; color: var(--ink); }
.field input[type="date"] { min-width: 0; color-scheme: light; }
.field input[type="file"] { padding: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--g-orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 -1px var(--or-dark);
}
.input-wrap { position: relative; }
.input-wrap .lead { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; color: var(--or-deep); font-size: 12.5px; font-weight: 800; pointer-events: none; }
.input-wrap .lead svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 0 #fff); }
.input-wrap input { padding-left: 40px; }
.input-wrap.has-toggle input { padding-right: 46px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: transparent; transition: background .2s, color .2s; }
.pass-toggle:hover { background: var(--or-soft); color: var(--or-ink); }
.pass-toggle svg { width: 17px; height: 17px; }
.pass-toggle .eye-off, .pass-toggle.is-shown .eye { display: none; }
.pass-toggle.is-shown .eye-off { display: block; }
.field input:disabled, .field select:disabled, .field textarea:disabled {
  cursor: not-allowed;
  color: #6E7681;
  border-style: dashed;
  border-color: rgba(120, 128, 140, .5);
  background: repeating-linear-gradient(-45deg, rgba(214, 218, 223, .9) 0 10px, rgba(228, 231, 235, .9) 10px 20px);
  box-shadow: none;
}
.admin-lock-form { position: relative; }
.admin-lock-form:has(button[type="submit"]:disabled)::before {
  content: "Terkunci — tekan \"Buka kunci\" untuk mengedit";
  display: flex;
  align-items: center;
  padding: 9px 12px 9px 36px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E86400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='10.4' width='14.8' height='10.2' rx='2.4'/%3E%3Cpath d='M8.1 10.4V7.6a3.9 3.9 0 0 1 7.8 0v2.8'/%3E%3Cpath d='M12 14.6v2'/%3E%3C/svg%3E") 12px center / 15px no-repeat, var(--g-inset);
  box-shadow: var(--press);
}

/* ---------- Switch timbul ---------- */
.switch { flex: none; position: relative; width: 48px; height: 28px; border-radius: 99px; cursor: pointer; background: var(--g-inset); border: 1px solid rgba(150, 158, 170, .4); box-shadow: var(--press); transition: background .3s, box-shadow .3s, border-color .3s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 99px; background: radial-gradient(circle at 35% 28%, #FFFFFF 0%, #F0F2F4 45%, #B9C0C9 100%); box-shadow: 0 2px 5px rgba(50, 56, 66, .45), inset 0 -2px 3px rgba(80, 88, 100, .15); transition: transform .45s var(--ease-spring), width .2s ease; }
.switch.on { background: var(--g-orange); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 2px 4px rgba(150, 50, 0, .35), 0 0 0 3px rgba(255, 122, 0, .14), 0 4px 12px -6px var(--or-glow); }
.switch.on i { transform: translateX(20px); }
.switch:active i { width: 26px; }
.switch.on:active i { transform: translateX(16px); }
.switch-card { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-card .sc-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.switch-card b { display: block; font-size: 13px; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.switch-card p { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.switch-card.inner { padding: 11px 13px; border-radius: 14px; background: var(--g-inset); box-shadow: var(--press); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row .sc-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.switch-row b { display: block; font-size: 12.5px; }
.switch-row p { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- Dock bawah (HP) / Sidebar (desktop) ---------- */
.nav {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(8px + var(--safe-b));
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 540px;
  height: var(--dock-h);
  padding: 0 4px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 252, 253, .96), rgba(228, 231, 235, .94));
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(118, 126, 138, .25), 0 2px 0 -1px rgba(118, 126, 138, .45), 0 18px 36px -14px rgba(40, 46, 56, .55);
  view-transition-name: dock;
}
.nav-brand, .nav-extra, .nav-card { display: none; }
.nav-main { height: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.role-admin .nav-main { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nav-main > a { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-weight: 700; transition: color .25s; }
.nav .ni { width: 34px; height: 26px; border-radius: 99px; display: grid; place-items: center; transition: transform .35s var(--ease-spring), background .3s, box-shadow .3s, color .3s; }
.nav .ni svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 0 #fff); }
.nav .nl { font-size: clamp(9.5px, 2.7vw, 10.5px); letter-spacing: -.005em; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.role-admin .nav .nl { font-size: clamp(9px, 2.55vw, 10.5px); }
.nav-main > a:active .ni { transform: scale(.9); }
.nav-main > a.active { color: var(--or-ink); }
.nav-main > a.active .ni { color: #fff; transform: translateY(-2px); background: var(--g-orange); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 2px 4px 9px -3px var(--or-glow); }
.nav-main > a.active .ni svg { filter: drop-shadow(0 1px 1px rgba(120, 40, 0, .45)); }
.nav-main > a.active .nl { font-weight: 800; }
.nav-fab .fab {
  position: relative;
  width: 50px;
  height: 50px;
  margin-top: -28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 34% 26%, #FFD9A8 0%, #FFA53D 30%, #FF7A00 58%, #C95200 100%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .55), inset 0 -5px 9px rgba(120, 40, 0, .4), 0 0 0 4px #F3F4F6, 0 0 0 5px rgba(118, 126, 138, .35), 0 14px 24px -8px var(--or-glow);
  transition: transform .35s var(--ease-spring);
}
.nav-fab .fab::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 122, 0, .55); animation: fabPulse 2.6s ease-out infinite; }
.nav-fab .fab::after { content: ""; position: absolute; left: 18%; right: 18%; top: 7%; height: 38%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
.nav-fab .fab svg { position: relative; z-index: 1; width: 21px; height: 21px; transform: translate(-1px, 1px); filter: drop-shadow(0 2px 2px rgba(120, 40, 0, .45)); }
.nav-fab .nl { color: var(--ink-2); font-weight: 800; }
.nav-fab:active .fab { transform: scale(.92); }
.nav-fab.active .fab { transform: translateY(-2px); }
.nav-fab.active .nl { color: var(--or-ink); }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 5px; padding: 5px; border-radius: 99px; overflow-x: auto; scrollbar-width: none; background: var(--g-inset); box-shadow: var(--press); border: 1px solid rgba(255, 255, 255, .6); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); transition: color .3s, background .3s, box-shadow .3s, transform .15s; }
.tab:hover { color: var(--or-ink); }
.tab:active { transform: scale(.97); }
.tab.on { color: #fff; background: var(--g-orange); text-shadow: 0 1px 1px rgba(130, 45, 0, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 2px 4px 10px -4px var(--or-glow); }

/* ---------- Daftar ---------- */
#history-list, #leader-list, #wd-admin { display: grid; gap: 10px; }
#history-list > *, #leader-list > *, #wd-admin > *, #wd-list > *, #admin-deposits > *, #admin-wd-preview > * { animation: rise .6s var(--ease-out) backwards; }
#history-list > :nth-child(2), #leader-list > :nth-child(2), #wd-admin > :nth-child(2), #admin-deposits > :nth-child(2) { animation-delay: .05s; }
#history-list > :nth-child(3), #leader-list > :nth-child(3), #wd-admin > :nth-child(3), #admin-deposits > :nth-child(3) { animation-delay: .1s; }
#history-list > :nth-child(4), #leader-list > :nth-child(4), #wd-admin > :nth-child(4), #admin-deposits > :nth-child(4) { animation-delay: .15s; }
#history-list > :nth-child(n+5), #leader-list > :nth-child(n+5), #wd-admin > :nth-child(n+5), #admin-deposits > :nth-child(n+5) { animation-delay: .2s; }

.item { padding: 13px; }
.card.item { padding: 12px 13px 11px 17px; overflow: hidden; }
.card.item::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 4px; border-radius: 0 5px 5px 0; background: var(--g-orange); }
.card.item[data-status="ok"]::before { background: linear-gradient(180deg, #62E596, #14A04A); box-shadow: 0 0 8px rgba(20, 160, 74, .45); }
.card.item[data-status="wait"]::before { background: linear-gradient(180deg, #FFD27E, #E59A06); box-shadow: 0 0 8px rgba(229, 154, 6, .45); }
.card.item[data-status="fail"]::before { background: linear-gradient(180deg, #FF8A8E, #E03A3E); box-shadow: 0 0 8px rgba(224, 58, 62, .45); }
.item .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item .top > div { min-width: 0; }
.item .date { font-size: 11px; font-weight: 600; color: var(--muted); }
.item .mail { margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; text-shadow: 0 1px 0 #fff; }
.item .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); font-weight: 600; }
.item .foot b { font-size: 13.5px; color: var(--ink); }

.pill { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--ink-2); background: var(--g-silver); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 1px 2px 4px -1px rgba(80, 88, 100, .4); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 5px currentColor; }
.pill.ok { color: var(--ok-ink); background: linear-gradient(160deg, #F1FBF4, #DDF3E5); }
.pill.wait { color: var(--warn-ink); background: linear-gradient(160deg, #FFF9EC, #FDEDCB); }
.pill.fail { color: var(--bad-ink); background: linear-gradient(160deg, #FFF3F3, #FBDEDE); }

.empty-state { padding: 24px 16px 20px; text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 700; display: grid; justify-items: center; gap: 11px; }
.empty-state::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E86400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 13h5l1.6 3h4.4l1.6-3h5'/%3E%3Cpath d='M5.6 5h12.8l2.8 8v5.2a1.8 1.8 0 0 1-1.8 1.8H4.6a1.8 1.8 0 0 1-1.8-1.8V13z'/%3E%3C/svg%3E") center / 22px no-repeat, var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise-sm);
}
.empty-inline { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 2px; }
.skeleton { pointer-events: none; }
.sk-line { height: 11px; border-radius: 7px; background: linear-gradient(90deg, rgba(80, 88, 100, .1) 0%, rgba(80, 88, 100, .2) 45%, rgba(80, 88, 100, .1) 90%); background-size: 220% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-line + .sk-line { margin-top: 9px; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.skeleton.card { padding: 15px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Stat ---------- */
.stat-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.stat-box { min-width: 0; padding: 12px 6px 11px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-box small { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.stat-box b { display: block; margin-top: auto; font-size: clamp(15px, 4.5vw, 20px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.tone-ok { color: var(--ok-ink) !important; } .tone-warn { color: var(--warn-ink) !important; } .tone-bad { color: var(--bad-ink) !important; } .tone-brand { color: var(--or-ink) !important; }
.bump { animation: zBump .7s var(--ease-spring); }
@keyframes zBump { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Tabel ---------- */
.table-card { padding: 6px; }
.table-card .card-head { padding: 9px 9px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 13px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.table-wrap table { min-width: 560px; }
.table-wrap.compact table { min-width: 380px; }
th { position: sticky; top: 0; text-align: left; padding: 9px 12px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--or-ink); white-space: nowrap; background: var(--g-inset); text-shadow: 0 1px 0 #fff; }
th:first-child { border-radius: 11px 0 0 11px; }
th:last-child { border-radius: 0 11px 11px 0; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 600; vertical-align: middle; }
td:first-child { font-weight: 800; color: var(--ink); }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(255, 122, 0, .05); }
tbody tr:last-child td { border-bottom: 0; }
td small { font-size: 11px; color: var(--muted); font-weight: 700; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
td[data-st] { font-weight: 800; text-transform: capitalize; white-space: nowrap; }
td[data-st]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 5px currentColor; vertical-align: 1px; }
td[data-st="accepted"], td[data-st="paid"] { color: var(--ok-ink); }
td[data-st="pending"] { color: var(--warn-ink); }
td[data-st="rejected"] { color: var(--bad-ink); }

/* ---------- Antrean admin & saldo ---------- */
.queue-item { padding: 11px 12px; border-radius: 14px; background: var(--g-silver-soft); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise-sm); }
.queue-item + .queue-item { margin-top: 9px; }
.q-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.q-top > div { min-width: 0; }
.q-top b { font-size: 13px; overflow-wrap: anywhere; color: var(--ink); }
.q-top .date { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.q-amt { flex: none; font-size: 13.5px; font-weight: 800; color: var(--or-ink) !important; white-space: nowrap; }
.q-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 10px; }
.q-actions .btn { min-height: 36px; padding: 0 10px; white-space: nowrap; }
.card.queue-card { padding: 13px; }
.kv { display: grid; gap: 8px; }
.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; }
.kv-row span { color: var(--muted); font-weight: 600; }
.kv-row b { text-align: right; overflow-wrap: anywhere; color: var(--ink); }
.kv-note { font-size: 11px; color: var(--muted); font-weight: 600; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.kv-lg .kv-row { font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.kv-lg .kv-row:last-child { border-bottom: 0; }
.kv-lg .kv-row b { font-size: 15px; }
.rekening-box { padding: 11px 13px; border-radius: 13px; background: var(--g-inset); box-shadow: var(--press); }
.wd-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.wd-row:last-child { border-bottom: 0; }
.wd-row b { font-size: 13.5px; color: var(--ink); }
.wd-row .date { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.mail-cell { font-size: 12.5px; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
#saldo-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
#saldo-meta span { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 13px; font-size: 11px; font-weight: 600; color: rgba(242, 243, 245, .82); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 6px rgba(0, 0, 0, .25); }
#saldo-meta b { font-size: 14.5px; color: #fff; font-variant-numeric: tabular-nums; }
#wd-status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 13px; font-size: 12.5px; font-weight: 800; text-align: center; color: var(--ink-2); }
#wd-status::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.6'/%3E%3Cpath d='M12 7.4V12l3.2 2'/%3E%3C/svg%3E") center / 12px no-repeat, var(--g-graphite); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 -1px #0A0B0D; }
#wd-status.is-open { color: var(--ok-ink) !important; }
#wd-status.is-open::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.2 12.6 4.4 4.4L18.8 7.6'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(180deg, #5BE08F, #1FB45C 50%, #0E8A42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 -1px #0A6A33, 0 0 8px rgba(20, 160, 74, .45); }
#wd-status.is-closed { color: var(--bad-ink) !important; }
#wd-status.is-closed::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6'/%3E%3C/svg%3E") center / 12px no-repeat, linear-gradient(180deg, #FF7F83, #E8424A 50%, #B92530); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 -1px #8E1621, 0 0 8px rgba(224, 58, 62, .45); }

/* ---------- Leaderboard ---------- */
.hero-banner { display: flex; align-items: center; gap: 13px; padding: 15px; overflow: hidden; }
.hero-banner h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.hb-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or-hi); }
.lb-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.lb-rank { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: var(--g-silver); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise-sm); text-shadow: 0 1px 0 #fff; }
.lb-1 .lb-rank { color: #5A3400; background: linear-gradient(160deg, #FFF1C2 0%, #FFCB4A 45%, #D99200 100%); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 -1px #A06A00, 2px 4px 10px -3px rgba(255, 190, 40, .6); }
.lb-2 .lb-rank { color: #2B3038; background: var(--g-chrome); box-shadow: inset 0 1px 0 #fff, 0 2px 0 -1px #6C737D, 2px 4px 9px -3px rgba(80, 88, 100, .55); }
.lb-3 .lb-rank { color: #fff; background: var(--g-orange); text-shadow: 0 1px 1px rgba(120, 40, 0, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 2px 4px 10px -3px var(--or-glow); }
.lb-top { background: radial-gradient(90% 140% at 0% 50%, rgba(255, 122, 0, .1), rgba(255, 122, 0, 0) 60%), var(--g-silver); }
.lb-meta { flex: 1; min-width: 0; }
.lb-meta h4 { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.lb-meta p { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lb-reward { flex: none; font-size: 13px; font-weight: 800; color: var(--or-ink); white-space: nowrap; }
.vip-chip { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 99px; vertical-align: 2px; font-size: 9px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--g-orange); text-shadow: 0 1px 1px rgba(120, 40, 0, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 0 var(--or-dark); }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; }

/* ---------- Profil ---------- */
.profile-hero { padding: 15px; display: flex; align-items: center; gap: 13px; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 0, .14) 0%, rgba(255, 122, 0, 0) 55%), var(--g-silver); }
.avatar3d {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 2px rgba(120, 40, 0, .5);
  background: var(--g-orange);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .5), inset 0 -6px 10px rgba(150, 50, 0, .35), 0 3px 0 -1px var(--or-dark), 5px 8px 16px -6px var(--or-glow), -4px -4px 10px -4px rgba(255, 255, 255, .95);
}
.avatar3d svg { width: 22px; height: 22px; }
.tier-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--g-graphite); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 -1px #0A0B0D; }
.tier-chip svg { width: 11px; height: 11px; color: var(--or-hi); }
#profil-nama { font-size: 17px; font-weight: 800; letter-spacing: -.015em; margin-top: 5px; line-height: 1.2; overflow-wrap: anywhere; color: var(--ink); text-shadow: 0 1px 0 #fff; }
#profil-user { font-size: 12px; color: var(--muted); font-weight: 600; }
.ph-info { min-width: 0; }

/* ---------- Generate ---------- */
.gen-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.gen-grid .btn { min-height: 42px; padding: 0 4px; font-size: 14px; border-radius: 12px; }
.code-box { margin-top: 10px; min-height: 86px; max-height: 340px; overflow: auto; padding: 12px 13px; border-radius: 13px; font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; color: #FFD8A8; background: linear-gradient(160deg, #22252A 0%, #16181B 100%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 2px 3px 8px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .9); }
.inline-alert { padding: 9px 12px; border-radius: 11px; font-size: 12px; font-weight: 700; color: var(--bad-ink); background: var(--bad-soft); border: 1px solid rgba(224, 58, 62, .28); }

/* ---------- Stor ---------- */
.secret-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 7px 7px 13px; border-radius: 13px; background: linear-gradient(160deg, #26292E, #16181B); border: 1px dashed rgba(255, 150, 40, .55); box-shadow: inset 2px 3px 8px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .9); }
#stor-password-view { font-family: var(--mono); font-size: 14px; font-weight: 800; color: #fff; letter-spacing: .02em; overflow-wrap: anywhere; text-shadow: 0 0 12px rgba(255, 140, 30, .5); }
.counter-chip { font-size: 11px; font-weight: 800; color: var(--or-ink); padding: 3px 9px; border-radius: 99px; background: var(--g-inset); box-shadow: var(--press); }

/* ---------- Dokumen ---------- */
.doc-card { padding: 16px 15px; }
.doc-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px dashed var(--line-2); }
.doc-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin-top: 2px; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.doc-body { font-size: 13px; line-height: 1.8; color: var(--ink-2); font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Pengaturan admin ---------- */
.settings-list { display: grid; }
.settings-list a { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-bottom: 1px dashed var(--line-2); transition: transform .25s var(--ease-out); }
.settings-list a:last-child { border-bottom: 0; }
.settings-list a:active { transform: scale(.99); }
.sl-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sl-txt b { font-size: 13px; font-weight: 800; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.sl-txt small { font-size: 11px; font-weight: 600; color: var(--muted); }

#payout-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.payout-row { padding: 13px; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 11px; border-radius: 17px; background: var(--g-silver); border: 1px solid rgba(255, 255, 255, .92); box-shadow: var(--raise); }
.payout-row .pay-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.payout-row .pay-top input[name="pname"] { flex: 1 1 0; width: 0; min-width: 0; min-height: 38px; padding: 7px 11px; font-size: 13.5px; font-weight: 800; color: var(--ink); border-radius: 10px; border: 1px solid rgba(150, 158, 170, .45); background: var(--g-inset); box-shadow: inset 2px 2px 5px rgba(80, 88, 100, .2), inset -2px -2px 4px rgba(255, 255, 255, .8); outline: none; }
.payout-row .pay-top input[name="pname"]:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(255, 122, 0, .18); }
.payout-row .pay-top input[name="pname"]:disabled { border-style: dashed; background: transparent; box-shadow: none; color: var(--ink); cursor: default; }
.pay-check { flex: none; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pay-check input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 23px; border-radius: 99px; cursor: pointer; background: var(--g-inset); border: 1px solid rgba(150, 158, 170, .4); box-shadow: var(--press); transition: background .3s; }
.pay-check input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #FFFFFF, #F0F2F4 45%, #B9C0C9); box-shadow: 0 2px 4px rgba(50, 56, 66, .4); transition: transform .4s var(--ease-spring); }
.pay-check input[type="checkbox"]:checked { background: var(--g-orange); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 2px 4px rgba(150, 50, 0, .3), 0 0 8px rgba(255, 122, 0, .3); }
.pay-check input[type="checkbox"]:checked::before { transform: translateX(17px); }
.pay-check input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }
.payout-row .pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.payout-row .field label { font-size: 11px; color: var(--muted); }
.payout-row .field input { min-height: 40px; font-size: 15px; }
.cache-item { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.cache-total { margin-top: 10px; font-size: 12px; font-weight: 800; }
#cache-list { font-size: 12.5px; color: var(--muted); font-weight: 600; }
#ann-list { display: grid; gap: 12px; counter-reset: slide; }
#ann-list .field { counter-increment: slide; }
#ann-list .field::before { content: "Slide " counter(slide); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--or-ink); }
#ann-list textarea { min-height: 86px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(var(--dock-h) + 26px + var(--safe-b));
  transform: translate(-50%, 24px) scale(.96);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(92vw, 440px);
  padding: 9px 16px 9px 9px;
  border-radius: 99px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--g-graphite);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 0 -1px #0A0B0D, 0 22px 40px -14px rgba(20, 22, 26, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .5s var(--ease-spring);
}
.toast::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.8V11a6 6 0 0 1 12 0v5.8l1.6 1.8H4.4z'/%3E%3Cpath d='M10 20.6a2.2 2.2 0 0 0 4 0'/%3E%3C/svg%3E") center / 13px no-repeat, var(--g-orange); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 10px rgba(255, 122, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Pop up iklan ---------- */
body.ad-locked .app { filter: blur(3px); }
.ad-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(20, 22, 26, .55) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: adFade .3s ease; }
.ad-modal { position: relative; width: 100%; max-width: 360px; text-align: center; padding: 22px 18px 18px !important; border-radius: 24px !important; background: var(--g-silver) !important; color: var(--ink); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 40px 80px -24px rgba(0, 0, 0, .6); animation: adUp .5s var(--ease-spring); }
.ad-modal img { border-radius: 14px !important; }
.ad-modal h3 { font-size: 17px; font-weight: 800; margin: 4px 0 8px; }
.ad-modal p { font-size: 13px; line-height: 1.6; color: var(--muted) !important; margin-bottom: 16px; }
.ad-modal .btn + .btn { margin-top: 8px !important; background: var(--g-silver) !important; }
.ad-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .95); border-radius: 50%; font-size: 17px; font-weight: 800; color: var(--ink-2); background: var(--g-silver) !important; box-shadow: var(--raise-sm); cursor: pointer; }
@keyframes adFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adUp { from { transform: translateY(30px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* Helper lama */
.lock-wrap { display: inline-flex; align-items: center; gap: 8px; }
.lock-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--or-soft); cursor: pointer; }
.lock-btn svg { width: 14px; height: 14px; }
.secret.locked { filter: blur(5px); user-select: none; pointer-events: none; }
.info-locked-box { padding: 18px 16px; border-radius: 14px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--g-inset); box-shadow: var(--press); }
.list-user { display: grid; gap: 10px; }

/* ---------- Login / Daftar ---------- */
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(18px + var(--safe-t)) 15px calc(24px + var(--safe-b)); overflow-x: hidden; overflow-x: clip; }
.auth-shell { width: 100%; max-width: 410px; display: grid; gap: 16px; }
.auth-hero { display: grid; justify-items: center; text-align: center; gap: 12px; animation: rise .8s var(--ease-out) backwards; }
.hero-stage { position: relative; width: min(300px, 82vw); perspective: 1000px; }
.hero-plate {
  position: relative;
  padding: 3px;
  border-radius: 24px;
  background: var(--g-chrome);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 -1px #7A818B, 10px 16px 30px -10px rgba(40, 44, 52, .55), -8px -8px 20px -8px rgba(255, 255, 255, .95), 0 24px 46px -24px rgba(255, 122, 0, .65);
  transform-style: preserve-3d;
  animation: plateFloat 7s ease-in-out infinite;
}
.hero-plate img { width: 100%; aspect-ratio: 1416 / 1024; object-fit: cover; border-radius: 21px; }
.plate-glare { position: absolute; inset: 3px; border-radius: 21px; overflow: hidden; pointer-events: none; }
.plate-glare::before { content: ""; position: absolute; top: -50%; bottom: -50%; width: 28%; left: -60%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); transform: rotate(18deg); animation: sheen 6.5s ease-in-out infinite; animation-delay: .8s; }
.hero-shadow { position: absolute; left: 14%; right: 14%; bottom: -22px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 44, 52, .4), rgba(40, 44, 52, 0)); animation: heroShadow 7s ease-in-out infinite; }
.hero-tag { max-width: 340px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-2); font-weight: 700; text-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.hero-feats { display: none; }
@keyframes plateFloat { 0%, 100% { transform: translateY(0) rotateX(7deg) rotateY(-9deg); } 50% { transform: translateY(-8px) rotateX(-3deg) rotateY(9deg); } }
@keyframes heroShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .65; } }
.auth-card {
  width: 100%;
  padding: 20px 17px 18px;
  border-radius: 24px;
  background: var(--g-silver);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--raise), 0 30px 60px -32px rgba(40, 44, 52, .55);
  animation: rise .8s .12s var(--ease-out) backwards;
}
.auth-title { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.auth-sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.auth-sub .wordmark { font-size: 12.5px; vertical-align: -1px; filter: none; }
.auth-form { display: grid; gap: 13px; margin-top: 16px; }
.auth-form .btn-full { margin-top: 4px; }
.auth-alt { margin-top: 15px; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.auth-alt a { color: var(--or-ink); font-weight: 800; }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-auth .toast { bottom: calc(22px + var(--safe-b)); }
.page-register .hero-stage { width: min(240px, 66vw); }

/* ---------- Komponen lain ---------- */
.ref-card .amount { font-size: clamp(20px, 6.2vw, 28px); letter-spacing: .05em; white-space: normal; overflow-wrap: anywhere; }
.ref-card .label, .ref-card .amount, .page-saldo .balance .label { padding-right: 78px; }
.steps { list-style: none; display: grid; gap: 11px; }
.steps li { display: flex; align-items: flex-start; gap: 11px; }
.steps b { font-size: 13px; color: var(--ink); text-shadow: 0 1px 0 #fff; }
.steps p { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.5; }
.btn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.form-plain { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }

/* ---------- Responsif ---------- */
@media (max-width: 1279px) {
  .home > .stack:not(.side-stack) { display: contents; }
  .home > .stack:not(.side-stack) > * { grid-column: 1 / -1; }
  .home > .balance { order: 1; }
  .home > .side-stack { order: 2; }
  .home .menu-main { order: 3; }
  .home .ann-card { order: 4; }
  .home .menu-more { order: 5; }
  .home .sk-link { order: 6; }
}

@media (max-width: 599px) {
  .page-head h2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .q-top { flex-direction: column; gap: 5px; }
  .q-amt { align-self: flex-start; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--g-inset); box-shadow: var(--press); }

  /* Tabel admin → kartu */
  .users-table .table-wrap table, .report-table .table-wrap table { min-width: 0; }
  .users-table thead, .report-table thead { display: none; }
  .users-table tbody, .report-table tbody { display: grid; gap: 9px; padding: 4px; }
  .users-table tr, .report-table tr { display: grid; align-items: center; gap: 2px 10px; padding: 11px 12px; border-radius: 15px; background: var(--g-silver-soft); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise-sm); }
  .users-table td, .report-table td { display: block; padding: 0; border: 0; background: none !important; min-width: 0; }
  .users-table tr { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .users-table td:nth-child(1) { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; color: #fff; text-shadow: 0 1px 1px rgba(120, 40, 0, .45); background: var(--g-orange) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 -1px var(--or-dark), 2px 3px 7px -2px var(--or-glow); }
  .users-table td:nth-child(2) { font-size: 13px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
  .users-table td:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 11.5px; color: var(--muted); }
  .users-table td:nth-child(4) { grid-column: 3; grid-row: 1; font-size: 11px; color: var(--muted); text-align: right; }
  .users-table td:nth-child(5) { grid-column: 3; grid-row: 2; font-size: 11.5px; font-weight: 800; color: var(--or-ink); text-align: right; }
  .users-table td:nth-child(5)::after { content: " email"; font-weight: 600; color: var(--muted); }
  .users-table td:nth-child(6) { grid-column: 1 / -1; margin-top: 8px; }
  .report-table tr { grid-template-columns: minmax(0, 1fr) auto; }
  .report-table td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--muted); font-weight: 600; }
  .report-table td:nth-child(2) { grid-column: 1; grid-row: 3; font-size: 11.5px; color: var(--ink-2); }
  .report-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; font-size: 13px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
  .report-table td:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .users-table tr.skeleton td, .report-table tr.skeleton td { grid-column: 1 / -1; grid-row: auto; width: auto; height: auto; background: none !important; border: 0; box-shadow: none; }

  .stat-3.money-2 { grid-template-columns: 1fr 1fr; }
  .stat-3.money-2 > :nth-child(2) { grid-column: 1 / -1; order: -1; flex-direction: row; justify-content: flex-start; gap: 11px; padding: 12px 15px; text-align: left; }
  .stat-3.money-2 > :nth-child(2) small { order: 2; }
  .stat-3.money-2 > :nth-child(2) b { order: 3; margin: 0 0 0 auto; font-size: 19px; }
}

@media (max-width: 400px) {
  .header .wa-btn .wa-lbl { display: none; }
  .header .wa-btn { padding: 0; width: 32px; justify-content: center; }
  .header .wa-btn .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; }
  .icon-out { width: 32px; padding: 0; font-size: 0; gap: 0; }
  .lock-toggle { padding: 0 9px; gap: 4px; font-size: 11px; }
  .page-head h2 { font-size: 14.5px; }
  .content { padding: 12px 11px 18px; gap: 11px; }
  .menu-card { padding: 12px 5px 13px; }
  .status { padding: 11px 9px; gap: 8px; }
  .q-actions .btn { font-size: 12px; }
}
@media (max-width: 480px) {
  .page-head .badge-dark .bd-txt { display: none; }
  .page-head .badge-dark { width: 28px; padding: 0; justify-content: center; }
}
@media (max-width: 359px) {
  .menu-grid:not(.soft) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wordmark { font-size: 15px; }
}

@media (min-width: 600px) {
  body { font-size: 13.5px; }
  .app { max-width: 720px; }
  .content { padding: 18px 20px 26px; gap: 14px; }
  .header, .page-head { top: 10px; margin: calc(10px + var(--safe-t)) 20px 0; padding: 10px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise); }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .balance { padding: 20px 20px 18px; }
  .coin3d { width: 84px; height: 84px; right: 22px; top: -20px; }
  .menu-grid.soft { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .btn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-grid .btn-full { height: 100%; }
  .wordmark { font-size: 18px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { font-size: 14px; }
  .app { max-width: none; margin: 0; padding: 0 32px 52px calc(var(--side-w) + 54px); }
  .app > .header, .app > .page-head, .app > .content { max-width: 1140px; margin-left: auto; margin-right: auto; }
  .layout-narrow .app > .page-head, .layout-narrow .app > .content { max-width: 840px; }
  .header, .page-head { top: 14px; margin-top: 18px; margin-bottom: 4px; padding: 11px 16px; border-radius: 20px; }
  .page-head h2 { font-size: 17px; }
  .ph-sub { font-size: 12px; }
  .header .brand-tile, .header .brand-word .wordmark { display: none; }
  .header .brand-word .greet { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-shadow: 0 1px 0 #fff; }
  .header .brand-word .greet-sub { display: block; }
  .content { padding: 16px 0 22px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .content > * { grid-column: 1 / -1; }
  .stack { gap: 18px; }
  .card { border-radius: 20px; }
  .pad { padding: 17px; }
  .form-card { padding: 19px; gap: 15px; }
  .balance { padding: 22px 22px 20px; border-radius: 24px; }
  .balance .amount { font-size: 38px; }
  .coin3d { width: 104px; height: 104px; right: 26px; top: 50%; margin-top: -60px; }
  .coin .edge:nth-child(1) { transform: translateZ(-6px); }
  .coin .edge:nth-child(2) { transform: translateZ(-4.8px); }
  .coin .edge:nth-child(3) { transform: translateZ(-3.6px); }
  .coin .edge:nth-child(4) { transform: translateZ(-2.4px); }
  .coin .edge:nth-child(5) { transform: translateZ(-1.2px); }
  .coin .edge:nth-child(7) { transform: translateZ(1.2px); }
  .coin .edge:nth-child(8) { transform: translateZ(2.4px); }
  .coin .edge:nth-child(9) { transform: translateZ(3.6px); }
  .coin .edge:nth-child(10) { transform: translateZ(4.8px); }
  .coin .edge:nth-child(11) { transform: translateZ(6px); }
  .coin .front { transform: translateZ(7px); }
  .coin .back { transform: rotateY(180deg) translateZ(7px); }
  .page-saldo .coin3d, .ref-card .coin3d { top: -24px; margin-top: 0; right: 24px; width: 90px; height: 90px; }
  .ref-card .label, .ref-card .amount, .page-saldo .balance .label { padding-right: 124px; }
  .menu-card { padding: 17px 12px 17px; }
  .menu-grid { gap: 17px 8px; }
  .menu-item .mi-lbl { font-size: 12px; }
  .ico3d { width: 40px; height: 40px; border-radius: 12px; }
  .ico3d svg { width: 18px; height: 18px; }
  .ico3d.sm { width: 32px; height: 32px; border-radius: 10px; }
  .ico3d.sm svg { width: 16px; height: 16px; }
  .ico3d.xs { width: 26px; height: 26px; border-radius: 8px; }
  .ico3d.xs svg { width: 14px; height: 14px; }
  .ico3d.lg { width: 48px; height: 48px; border-radius: 14px; }
  .ico3d.lg svg { width: 22px; height: 22px; }
  .status { padding: 15px; gap: 11px; }
  .status .num { font-size: 24px; }
  .stat-box { padding: 15px 10px 13px; gap: 8px; }
  .stat-box b { font-size: 23px; }
  .stat-3 { gap: 14px; }
  .toast { bottom: 28px; left: calc(50% + var(--side-w) / 2 + 10px); }
  .layout-narrow #history-list { grid-template-columns: 1fr 1fr; }
  #payout-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-banner { padding: 19px 21px; }
  .hero-banner h3 { font-size: 19px; }

  .nav {
    left: 18px;
    top: 18px;
    bottom: 18px;
    transform: none;
    width: var(--side-w);
    max-width: none;
    height: auto;
    padding: 16px 13px 15px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: var(--g-silver);
    box-shadow: var(--raise);
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; padding: 2px 5px 8px; }
  .nav-brand .brand-tile { width: 44px; height: 44px; border-radius: 13px; }
  .nav-brand .brand-tile img, .nav-brand .brand-tile::after { border-radius: 11px; }
  .nav-brand .nb-word { display: flex; flex-direction: column; min-width: 0; }
  .nav-brand .wordmark { font-size: 18px; }
  .nav-brand small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted-2); letter-spacing: .04em; text-shadow: 0 1px 0 #fff; }
  .nav-main { display: flex; flex-direction: column; align-items: stretch; gap: 3px; height: auto; }
  .nav-main > a { flex-direction: row; justify-content: flex-start; gap: 10px; height: 42px; padding: 0 8px; border-radius: 13px; color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease-out); }
  .nav .nl, .role-admin .nav .nl { font-size: 13px; }
  .nav .ni { position: relative; width: 28px; height: 28px; border-radius: 9px; color: var(--or-deep); background: var(--g-silver); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise-sm); }
  .nav .ni svg { width: 14px; height: 14px; }
  .nav-main > a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); transform: translateX(2px); }
  .nav-main > a.active { color: var(--or-ink); background: var(--g-inset); box-shadow: var(--press); }
  .nav-main > a.active .ni { transform: none; }
  .nav-fab { order: -1; margin-bottom: 8px; height: 46px !important; padding: 0 10px !important; color: #fff !important; background: var(--g-orange) !important; border: 1px solid rgba(255, 255, 255, .5); border-radius: 15px !important; text-shadow: 0 1px 1px rgba(130, 45, 0, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 -1px var(--or-dark), 4px 8px 16px -6px var(--or-glow), -3px -3px 8px -3px rgba(255, 255, 255, .9) !important; }
  .nav-fab:hover { transform: translateY(-2px) !important; filter: brightness(1.05); }
  .nav-fab .fab { width: 30px; height: 30px; margin: 0; border-radius: 9px; background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 4px rgba(150, 50, 0, .25); }
  .nav-fab .fab::before, .nav-fab .fab::after { display: none; }
  .nav-fab .fab svg { width: 15px; height: 15px; }
  .nav-fab .nl { color: #fff; font-size: 13.5px; text-shadow: 0 1px 1px rgba(130, 45, 0, .45); }
  .nav-fab.active .nl { color: #fff; }
  .nav-fab .nl::after { content: " Gmail"; }
  .nav-extra { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
  .nav-sec { padding: 4px 8px 6px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); text-shadow: 0 1px 0 #fff; }
  .nav-extra a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; border-radius: 11px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-shadow: 0 1px 0 rgba(255, 255, 255, .9); transition: background .25s, color .25s, transform .25s var(--ease-out); }
  .nav-extra a .ni { width: 24px; height: 24px; border-radius: 8px; }
  .nav-extra a .ni svg { width: 12px; height: 12px; }
  .nav-extra a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); transform: translateX(2px); }
  .nav-extra a.active { background: var(--g-inset); box-shadow: var(--press); color: var(--or-ink); }
  .nav-card { display: grid; gap: 6px; margin-top: auto; padding: 14px; border-radius: 18px; color: #fff; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 0, .45), rgba(255, 122, 0, 0) 60%), var(--g-graphite); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 0 -1px #0A0B0D, 5px 9px 18px -8px rgba(40, 44, 52, .55); }
  .nav-card b { font-size: 13px; }
  .nav-card span { font-size: 11.5px; color: rgba(242, 243, 245, .82); font-weight: 600; line-height: 1.45; }
  .nav-card .btn { margin-top: 6px; min-height: 32px; }

  .auth-shell { max-width: 1040px; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .auth-hero { justify-items: start; text-align: left; gap: 16px; }
  .hero-stage { width: 460px; }
  .page-register .hero-stage { width: 420px; }
  .hero-plate { border-radius: 30px; padding: 4px; }
  .hero-plate img, .plate-glare { border-radius: 26px; }
  .plate-glare { inset: 4px; }
  .hero-shadow { bottom: -30px; }
  .hero-tag { font-size: 14px; max-width: 440px; margin-top: 14px; }
  .hero-feats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
  .hero-feats li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--g-silver); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--raise-sm); text-shadow: 0 1px 0 #fff; }
  .auth-card { padding: 28px 26px 24px; border-radius: 28px; }
  .auth-title { font-size: 24px; }

  .settings-list.grid-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .settings-list.grid-desk a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid rgba(255, 255, 255, .92); border-radius: 20px; background: var(--g-silver); box-shadow: var(--raise); transition: transform .4s var(--ease-out), box-shadow .3s; }
  .settings-list.grid-desk a:hover { transform: translateY(-3px); box-shadow: var(--raise-hover); }
  .settings-list.grid-desk a .chev { display: none; }
  .settings-card.card { background: transparent; border: 0; box-shadow: none; padding: 0 !important; }
}
@media (min-width: 1024px) and (max-height: 960px) { .nav-card { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .auth-shell { gap: 34px; padding: 0 12px; }
  .hero-stage { width: 380px; }
  .page-register .hero-stage { width: 350px; }
}
@media (min-width: 1280px) {
  .side-stack { align-self: stretch; grid-template-rows: 1fr auto; }
  .side-stack .status-grid { align-items: stretch; }
  .side-stack .status { height: 100%; }
  .d-4 { grid-column: span 4 !important; }
  .d-5 { grid-column: span 5 !important; }
  .d-6 { grid-column: span 6 !important; }
  .d-7 { grid-column: span 7 !important; }
  .d-8 { grid-column: span 8 !important; }
}
@media (min-width: 1440px) { :root { --side-w: 264px; } .app { padding-right: 44px; } }

/* ---------- Transisi halaman ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  @view-transition { navigation: none; }
}
