:root {
  --teal-950: #062524;
  --teal-900: #0b3d3a;
  --teal-800: #0f524d;
  --teal-700: #12665f;
  --teal-600: #1a7f76;
  --amber-500: #e6a23c;
  --amber-400: #f0b652;
  --amber-100: #fff1d6;
  --ink: #1a2221;
  --muted: #5c6b68;
  --line: rgba(11, 61, 58, 0.12);
  --surface: #e8eeec;
  --danger: #b42318;
  --ok: #0f6b4c;
  --shadow: 0 18px 50px rgba(6, 37, 36, 0.14);
  --radius: 18px;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --pad: clamp(1rem, 2.5vw, 1.5rem);
  --container: min(1120px, calc(100% - 2 * var(--pad)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(230, 162, 60, 0.18), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(18, 102, 95, 0.18), transparent 45%),
    linear-gradient(180deg, #f4f8f7 0%, var(--surface) 45%, #e3ebe8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img, svg { max-width: 100%; height: auto; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { margin-bottom: 1.25rem; max-width: 40rem; }
.section-head h2,
.panel h3,
.cta-band h2,
.topbar h1,
.cek-hero h1,
.dash-greet h1 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-500);
}

/* Landing */
.landing { min-height: 100vh; min-height: 100dvh; }
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
  position: relative;
  z-index: 20;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  letter-spacing: -0.03em;
  color: var(--teal-900);
}
.brand span { color: var(--amber-500); }
.nav-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-link {
  font-weight: 700;
  color: var(--teal-900);
  padding: 0.45rem 0.55rem;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  color: white;
  box-shadow: 0 10px 30px rgba(18, 102, 95, 0.28);
}
.btn-accent {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: var(--teal-950);
  box-shadow: 0 10px 30px rgba(230, 162, 60, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border: 1px solid var(--line);
}
.btn-on-dark {
  color: white !important;
  border-color: rgba(255,255,255,.35) !important;
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 0.9rem; min-height: 38px; font-size: 0.92rem; }

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 37, 36, 0.9) 0%, rgba(11, 61, 58, 0.75) 42%, rgba(230, 162, 60, 0.38) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath d='M0 80c40-30 80-30 160 0-40 30-80 30-160 0z' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  border-radius: clamp(18px, 4vw, 28px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { filter: saturate(1); transform: scale(1); }
  to { filter: saturate(1.08); transform: scale(1.02); }
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  width: min(720px, 100%);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  animation: rise .8s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 0 0.85rem;
}
.hero-brand span { color: var(--amber-400); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  font-weight: 700;
  max-width: 18ch;
}
.hero p {
  margin: 0 0 1.35rem;
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  max-width: 38ch;
  line-height: 1.55;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wave {
  position: absolute;
  right: -10%;
  bottom: -12%;
  width: min(58vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(240,182,82,.55), rgba(240,182,82,0) 60%);
  filter: blur(4px);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: white;
  box-shadow: var(--shadow);
}
.cta-band p { margin: 0.35rem 0 0; color: rgba(255,255,255,.84); max-width: 42ch; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.55rem; }
.landing-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  z-index: 30;
  color: #eef7f5;
  padding: 1.15rem 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(240, 182, 82, 0.28), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(26, 127, 118, 0.55), transparent 50%),
    linear-gradient(165deg, #041918 0%, #0b3d3a 42%, #12665f 78%, #0f524d 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
}
.sidebar-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(90deg, transparent, rgba(230,162,60,0.08), transparent);
  opacity: 0.9;
}
.sidebar-head,
.side-nav,
.sidebar-foot { position: relative; z-index: 1; }
.sidebar-head { padding: 0.2rem 0.35rem 0.55rem; }
.sidebar .brand {
  color: white;
  margin: 0;
  display: inline-block;
  text-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sidebar-tag {
  margin: 0.25rem 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  font-weight: 600;
}
.side-nav { display: grid; gap: 0.18rem; flex: 1; }
.side-nav a, .side-nav .nav-label {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.94rem;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.side-nav a:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(230,162,60,0.12));
  color: white;
  transform: translateX(2px);
}
.side-nav a.active {
  background: linear-gradient(135deg, rgba(230,162,60,0.28), rgba(26,127,118,0.35));
  border-color: rgba(240,182,82,0.28);
  color: white;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.nav-ico {
  width: 1.35rem;
  display: inline-flex;
  justify-content: center;
  opacity: 0.9;
}
.nav-label {
  margin-top: 0.7rem;
  font-size: 0.7rem !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.58;
  padding-bottom: 0.15rem !important;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(230,162,60,0.1));
  color: white;
  border-radius: 16px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  text-align: left;
}
.sidebar-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--teal-950);
}
.sidebar-user-meta { display: grid; gap: 0.1rem; min-width: 0; }
.sidebar-user-meta strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-meta small {
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
}
.sidebar-logout {
  width: 100%;
  color: white !important;
  border-color: rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,0.04);
}
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 37, 36, 0.45);
  z-index: 25;
}
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,251,250,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem var(--pad);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.main {
  padding: var(--pad);
  padding-bottom: 2.5rem;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.topbar h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin: 0;
  letter-spacing: -0.03em;
}
.muted { color: var(--muted); }
.panel {
  background: rgba(247, 251, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.2rem);
  box-shadow: var(--shadow);
  min-width: 0;
}
.grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: 1.15fr 1fr; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  color: var(--teal-900);
}
.stat-value.accent { color: var(--amber-500); }

.form { display: grid; gap: 0.85rem; }
label { font-weight: 700; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  min-height: 44px;
}
textarea { min-height: 140px; resize: vertical; }

.alert {
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.015em;
  line-height: 1.45;
}
.alert-error {
  background: linear-gradient(135deg, #fff6eb 0%, #fdecea 100%);
  color: #8a3b18;
  border: 1px solid rgba(180, 90, 40, 0.18);
}
.alert-ok { background: #e8f7f0; color: var(--ok); }
.alert-warn { background: var(--amber-100); color: #8a5a00; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge-ok { background: #e8f7f0; color: var(--ok); }
.badge-warn { background: #fff4e5; color: #a65d00; }
.badge-info { background: #e8f1f7; color: #1a5f7a; }
.badge-fail { background: #fdecea; color: var(--danger); }
.badge-info { background: var(--amber-100); color: #8a5a00; }

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.auth-card {
  width: min(420px, 100%);
  background: rgba(247,251,250,0.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
  animation: rise .5s ease both;
}
.auth-card-wide {
  width: min(480px, 100%);
}
.auth-card h1 {
  font-family: var(--font-display);
  margin: 0.2rem 0 0.35rem;
}
.auth-steps {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.auth-step {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 999px;
  background: #eef3f2;
  color: var(--muted);
}
.auth-step.is-active {
  background: var(--teal-800);
  color: #fff;
}
.auth-otp-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
}
.auth-otp-box[hidden] { display: none !important; }
.auth-otp-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.auth-otp-box input {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(6, 37, 36, 0.46);
}
.auth-modal[hidden] { display: none !important; }
.auth-modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: var(--shadow);
}
.auth-modal-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}
.auth-modal-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}
.google-btn-slot {
  display: grid;
  place-items: center;
  min-height: 44px;
}
.codebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.stack { display: grid; gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* Dashboard */
.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.dash-hello {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.dash-sub { margin: 0.35rem 0 0; }
.link-id {
  border: 0;
  background: linear-gradient(135deg, rgba(18,102,95,0.1), rgba(230,162,60,0.18));
  color: var(--teal-900);
  font: inherit;
  font-weight: 800;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.link-id:hover {
  background: linear-gradient(135deg, rgba(230,162,60,0.28), rgba(18,102,95,0.14));
}
.dash-top-actions {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}
.clock-card {
  min-width: min(220px, 70vw);
  background: linear-gradient(145deg, rgba(11,61,58,0.95), rgba(18,102,95,0.88));
  color: white;
  border-radius: 18px;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 14px 34px rgba(6,37,36,0.18);
}
.clock-time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.clock-meta {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  color: var(--teal-900);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--teal-950);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(320px, 86vw);
  background: rgba(247,251,250,0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 40;
  overflow: hidden;
}
.notif-panel-head,
.notif-empty { padding: 0.85rem 0.95rem; }
.notif-panel-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.notif-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }
.notif-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
}
.notif-list a:hover { background: rgba(18,102,95,0.06); }
.notif-list span { color: var(--muted); font-size: 0.88rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: rgba(247,251,250,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.stat-balance {
  background:
    linear-gradient(145deg, rgba(255,241,214,0.75), rgba(247,251,250,0.95)),
    white;
  border-color: rgba(230,162,60,0.28);
}
.stat-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(18,102,95,0.12);
  color: var(--teal-800);
}
.shortcut-panel h2,
.panel h2,
.tip-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.2rem;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}
.section-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.shortcut-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(232,238,236,0.65));
  transition: transform .18s ease, box-shadow .18s ease;
}
.shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6,37,36,0.12);
}
.shortcut-card span:last-child { color: var(--muted); font-size: 0.9rem; }
.shortcut-ico {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}
.shortcut-ico-status { background: rgba(18,102,95,0.12); color: var(--teal-700); }
.shortcut-ico-history { background: rgba(230,162,60,0.16); color: #9a6408; }
.shortcut-ico-scan { background: rgba(18,102,95,0.14); color: var(--teal-800); }
.shortcut-ico-carrier { background: rgba(11,61,58,0.12); color: var(--teal-900); }

.dash-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.activity-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-400), var(--teal-600));
  box-shadow: 0 0 0 4px rgba(230,162,60,0.15);
}
.activity-list strong { display: block; }
.activity-list p { margin: 0.15rem 0; }
.activity-list time,
.table time {
  color: var(--muted);
  font-size: 0.82rem;
}
.empty-state { margin: 0.4rem 0 0; }
.tip-panel {
  background:
    linear-gradient(120deg, rgba(11,61,58,0.95), rgba(18,102,95,0.88) 55%, rgba(230,162,60,0.55)),
    var(--teal-900);
  color: white;
  border: 0;
}
.tip-panel .muted { color: rgba(255,255,255,0.78); }
.tip-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.tip-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.tip-panel .btn-ghost {
  color: white !important;
  border-color: rgba(255,255,255,0.35) !important;
}

/* Profile drawer */
body.drawer-open { overflow: hidden; }
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 25, 24, 0.45);
  z-index: 50;
}
.drawer-backdrop.show { display: block; }
.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100dvh;
  background: linear-gradient(180deg, #f7fbfa, #e8eeec);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(6,37,36,0.18);
  z-index: 60;
  transform: translateX(105%);
  transition: transform .22s ease;
  padding: 1.1rem;
  overflow: auto;
}
.profile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.drawer-head h2 {
  font-family: var(--font-display);
  margin: 0.15rem 0 0;
}

/* Cek Status / History */
.cek-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.cek-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0.15rem 0 0.35rem;
  letter-spacing: -0.03em;
}
.cek-hero > div > .muted { margin: 0; max-width: 46ch; }
.cek-price-chip {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(11,61,58,0.95), rgba(18,102,95,0.85));
  color: white;
  min-width: 10rem;
  box-shadow: 0 12px 28px rgba(6,37,36,0.16);
}
.cek-price-chip span { font-weight: 800; }
.cek-price-chip small { color: rgba(255,255,255,0.75); }
.cek-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.15fr);
  gap: 1rem;
  align-items: start;
}
.cek-form-panel textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.cek-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.cek-label-row label { margin: 0; }
.cek-count {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(18,102,95,0.1);
  color: var(--teal-800);
  white-space: nowrap;
}
.cek-count.is-ok {
  background: #e8f7f0;
  color: var(--ok);
}
.cek-count.is-bad {
  background: #fdecea;
  color: var(--danger);
}
.cek-hint { margin: 0.35rem 0 0; font-size: 0.9rem; }
.cek-summary {
  margin: 0.55rem 0 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--teal-900);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(18,102,95,0.08);
  border: 1px solid rgba(18,102,95,0.12);
}
.cek-summary.is-ok {
  background: #e8f7f0;
  color: var(--ok);
  border-color: rgba(15,107,76,0.18);
}
.cek-summary.is-bad {
  background: #fdecea;
  color: var(--danger);
  border-color: rgba(180,35,24,0.18);
}
.cek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
  align-items: center;
}
.cek-actions form { margin: 0; }

.barcode-tabs { display: flex; gap: 0.45rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.barcode-reader {
  width: 100%;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1f1e;
  border: 1px solid var(--line);
  position: relative;
}
.barcode-reader video,
.barcode-reader img {
  display: block;
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 16px;
  background: #0b1f1e;
}
.barcode-preview {
  margin: 0.85rem 0 0.4rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}
.barcode-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #f2f6f5;
}
.upload-box {
  display: grid;
  gap: 0.75rem;
}
.file-input-native {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.upload-drop {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  text-align: center;
  min-height: 120px;
  border: 1.5px dashed rgba(18,102,95,0.35);
  border-radius: 18px;
  padding: 1.1rem;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  user-select: none;
}
.upload-drop-main {
  min-height: 160px;
  padding: 1.4rem 1.1rem;
}
.upload-drop.is-drag {
  border-color: var(--amber-500);
  background: rgba(255,241,214,0.55);
}
.upload-drop input { margin-top: 0.5rem; max-width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bulk-list-tall {
  max-height: min(52vh, 480px);
  min-height: 220px;
}

.imei-detail-grid {
  display: grid;
  gap: 0.85rem;
}
.imei-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.72);
}
.imei-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.imei-dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.imei-dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(11,61,58,0.08);
}
.imei-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}
.imei-dl dd {
  margin: 0;
  font-weight: 600;
}
@media (max-width: 600px) {
  .imei-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
.bulk-box {
  width: 100%;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
  resize: vertical;
}
.harga-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr)) auto;
  gap: 0.45rem;
  align-items: center;
}
.harga-form-4 {
  grid-template-columns: repeat(4, minmax(80px, 1fr)) auto;
}
.harga-form-5 {
  grid-template-columns: repeat(5, minmax(72px, 1fr)) auto;
}
.harga-form-6 {
  grid-template-columns: repeat(6, minmax(68px, 1fr)) auto;
}
.harga-form input {
  min-height: 40px;
  padding: 0.55rem 0.65rem;
}
.bulk-list {
  display: grid;
  gap: 0.45rem;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 0.85rem;
  padding-right: 0.15rem;
}
.bulk-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
}
.bulk-imei {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bulk-remove {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 10px;
}
.cek-result-panel h2,
.cek-hist-block h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.cek-result-panel h2 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.cek-hist-block { margin-top: 1rem; }
.cek-hist-block h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.carrier-report {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.5)),
    rgba(232, 238, 236, 0.55);
}
.carrier-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.carrier-report-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.carrier-report-grid {
  margin: 0;
  display: grid;
  gap: 0.55rem 1rem;
}
.carrier-report-grid > div {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(11, 61, 58, 0.08);
}
.carrier-report-grid dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.carrier-report-grid dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.cek-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  background: rgba(255,255,255,0.45);
}
.cek-empty .muted { margin: 0.35rem 0 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(247,251,250,0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }
  .nav-actions.open { display: flex; }
  .nav-actions .btn { width: 100%; }

  .app-shell { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 300px);
    transform: translateX(-105%);
    transition: transform .22s ease;
    height: 100dvh;
  }
  .sidebar.open { transform: translateX(0); }
  .side-backdrop.show { display: block; }
  .grid-3, .grid-2, .dash-split, .shortcut-grid, .cek-layout { grid-template-columns: 1fr; }
  .hero { min-height: min(72vh, 640px); }
  .cta-band { align-items: flex-start; }
  .topbar .btn { width: 100%; }
  .dash-top-actions { width: 100%; }
  .clock-card { flex: 1; }
  .section-row .btn { width: 100%; }
  .cek-actions .btn { width: 100%; }
  .harga-form,
  .harga-form-4,
  .harga-form-5,
  .harga-form-6 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .table { min-width: 460px; }
  .tip-actions .btn { width: 100%; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .app-shell { grid-template-columns: 240px 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Global waiting overlay (proses lama / massal) */
.wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 28, 26, 0.48);
  backdrop-filter: blur(6px);
}
.wait-overlay[hidden] { display: none !important; }
.wait-card {
  width: min(100%, 320px);
  text-align: center;
  padding: 1.35rem 1.2rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 102, 95, 0.18);
  box-shadow: 0 18px 48px rgba(8, 28, 26, 0.22);
  animation: wait-card-in 0.28s ease;
}
.wait-title {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--font-display, "Sora", sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #12362f;
}
.wait-sub { margin: 0; font-size: 0.86rem; line-height: 1.4; }
.wait-spinner {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(18, 102, 95, 0.18);
  border-top-color: #12665f;
  border-right-color: #e8a317;
  animation: wait-spin 0.85s linear infinite;
}
body.is-waiting {
  overflow: hidden;
  cursor: progress;
}
@keyframes wait-spin {
  to { transform: rotate(360deg); }
}
@keyframes wait-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

[data-wallet-balance].wallet-flash {
  animation: wallet-flash 0.85s ease;
}
@keyframes wallet-flash {
  0% { color: #b45309; transform: scale(1.06); }
  100% { color: inherit; transform: none; }
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.btn-danger {
  background: #fdecea;
  color: var(--danger, #b42318);
  border: 1px solid #f5c2c0;
}
.btn-danger:hover { filter: brightness(0.97); }
.ledger-credit { color: var(--ok, #0f7b4c); font-weight: 700; }
.ledger-debit { color: var(--danger, #b42318); font-weight: 700; }
.ledger-failed { color: #a65d00; font-weight: 700; }
.admin-user-create {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}
.admin-user-create-action { display: flex; align-items: end; }
tr.is-inactive td { opacity: 0.62; }
@media (max-width: 900px) {
  .admin-user-create { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-user-create { grid-template-columns: 1fr; }
}

.saldo-adjust {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
}
.saldo-adjust input[type="number"] {
  min-width: 6.5rem;
  width: 7rem;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.95rem;
}
.pager-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}
.pager-pages a,
.pager-pages span {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line, #d5e3df);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  color: inherit;
  background: #fff;
}
.pager-pages a:hover { background: rgba(18, 102, 95, 0.08); }
.pager-pages .is-current {
  background: var(--teal-800, #12665f);
  color: #fff;
  border-color: transparent;
}
.pager-pages .is-disabled,
.pager-pages .pager-gap {
  border-color: transparent;
  background: transparent;
  opacity: 0.45;
  font-weight: 700;
}
.book-guide ol {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.2rem;
}
.book-guide li { margin: 0.35rem 0; }
.laba-pos { color: var(--ok, #0f6b4c); font-weight: 700; }
.laba-neg { color: var(--danger, #b42318); font-weight: 700; }

.api-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.api-flow h3 { margin: 0.2rem 0 0.35rem; font-family: var(--font-display); }
.api-price-list {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.1rem;
}
.api-price-list li { margin: 0.35rem 0; }
.api-endpoint {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin: 0.55rem 0;
  background: #fff;
}
.api-endpoint-head { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.api-method {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-900, #0b3d3a);
  background: rgba(18, 102, 95, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
@media (max-width: 840px) {
  .api-flow { grid-template-columns: 1fr; }
}
