@font-face {
  font-family: 'Inter';
  src: url('../font/inter/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary:       #1a56db;
  --primary-dark:  #1341a8;
  --primary-light: #e8f0fe;
  --danger:        #e53e3e;
  --warning:       #d69e2e;
  --success:       #38a169;
  --muted:         #718096;
  --border:        #e2e8f0;
  --bg-light:      #f7f9fc;
  --text:          #2d3748;
  --text-light:    #718096;
  --sidebar-w:     260px;
  --topbar-h:      60px;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Semua input minimal 16px agar tidak ada auto-zoom di iPhone */
input, select, textarea, button {
  font-family: inherit;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ============================================================
   AUTH PAGE (login / daftar)
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(320px, 480px);
  align-items: center;
  justify-content: center;
  gap: 34px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, #0f766e 0%, #1a56db 52%, #172554 100%);
  padding: 42px 18px;
}

.auth-showcase {
  color: #fff;
  max-width: 560px;
}

.auth-showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-showcase-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 9px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.auth-showcase-brand span {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.auth-kicker,
.section-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-kicker { color: #bff7ee; }

.auth-showcase h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 850;
}

.auth-showcase p {
  max-width: 500px;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-points span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  padding: 30px 34px 22px;
  text-align: center;
  color: var(--text);
}

.auth-header img.auth-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 12px;
}

.auth-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.3px;
}

.auth-header p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-body { padding: 28px 32px; }

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.auth-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

@media (min-width: 992px) {
  .auth-wrapper {
    align-items: start;
  }

  .auth-showcase {
    position: sticky;
    top: 42px;
    min-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-card {
    align-self: start;
  }
}

/* OTP Input */
.otp-group {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.otp-input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
}

.otp-input:focus { border-color: var(--primary); }

/* ============================================================
   LAYOUT DASHBOARD
   ============================================================ */
/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transition: transform .25s ease;
}

.sidebar-brand {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand img { height: 36px; }

.sidebar-brand strong {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  display: block;
}

.sidebar-brand span {
  font-size: 0.7rem;
  color: var(--muted);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
  transition: background .15s, color .15s;
  position: relative;
}

.sidebar-item:hover { background: var(--bg-light); color: var(--primary); }

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.sidebar-item i { width: 18px; text-align: center; font-size: 1rem; }

.sidebar-item.verification-hidden,
.sidebar.open .sidebar-item.verification-hidden {
  display: none;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-name {
  font-weight: 700;
  color: var(--text);
  font-size: .82rem;
}

.sidebar-role {
  font-size: .73rem;
  color: var(--muted);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  gap: 12px;
}

.topbar > div {
  min-width: 0;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

.dashboard-view {
  display: none;
  padding: 24px;
}

.dashboard-view.active {
  display: block;
}

.dashboard-view.verification-locked {
  position: relative;
  opacity: .28;
  filter: grayscale(.35);
  user-select: none;
}

.dashboard-view.verification-locked::before {
  content: 'Fitur ini aktif setelah akun diverifikasi admin';
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  z-index: 5;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid #fef08a;
  border-radius: 8px;
  background: #fffbeb;
  color: #854d0e;
  font-size: .82rem;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.welcome-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.hero-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border: 1px solid #dbeafe;
}

.hero-dashboard img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.section-kicker {
  color: #0f766e;
}

.welcome-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.welcome-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-bars {
  min-height: 180px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
}

.chart-item {
  min-width: 54px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
}

.chart-item div {
  width: 24px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #14b8a6, var(--primary));
}

.chart-item strong {
  color: var(--text);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 4px;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

/* ============================================================
   CARDS & STATS
   ============================================================ */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue   { background: #e8f0fe; color: var(--primary); }
.stat-icon.yellow { background: #fef9c3; color: #b7791f; }
.stat-icon.green  { background: #f0fff4; color: #276749; }
.stat-icon.red    { background: #fff5f5; color: var(--danger); }

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

/* Card umum */
.card-siparu {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-siparu-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.card-siparu-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.card-siparu-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.table-tools {
  align-items: flex-start;
  flex-wrap: wrap;
}

.filter-grid {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 8px;
}

.card-siparu-body { padding: 20px; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge-status {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-menunggu   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.badge-diproses   { background: #fffbeb; color: #92400e; border: 1px solid #fef08a; }
.badge-selesai    { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.badge-ditolak    { background: #fafafa; color: #718096; border: 1px solid #e2e8f0; }

/* ============================================================
   TABLE
   ============================================================ */
.table-siparu {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table-siparu th {
  background: var(--bg-light);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-siparu td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  overflow-wrap: anywhere;
}

.table-siparu tbody tr:hover { background: var(--bg-light); }

.table-siparu tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form-control-siparu {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-control-siparu:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.form-control-siparu.is-invalid { border-color: var(--danger); }
.form-control-siparu.is-valid   { border-color: var(--success); }

.date-helper {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
}

.input-group-siparu {
  position: relative;
}

.input-group-siparu .input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
}

.input-group-siparu .form-control-siparu { padding-left: 36px; }

.input-group-siparu .input-eye {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-siparu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  outline: none;
  line-height: 1.4;
}

.btn-siparu:active { transform: scale(.97); }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); }

.btn-secondary { background: #475569; color: #fff; }
.btn-secondary:hover { background: #334155; }

.btn-muted { background: #e2e8f0; color: #64748b; }
.btn-muted:hover { background: #e2e8f0; }
.btn-siparu:disabled {
  cursor: not-allowed;
  opacity: .76;
  transform: none;
}

.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover   { background: #c53030; }

.btn-warning  { background: var(--warning); color: #fff; }
.btn-warning:hover  { background: #b7791f; }

.btn-sm { padding: 5px 10px; font-size: .78rem; border-radius: 6px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============================================================
   NOTIFIKASI DISPLACEMENT (perangkat lain login)
   ============================================================ */
.displaced-alert,
#displaced-alert {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 340px;
  background: #1a202c;
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  z-index: 9999;
  display: none;
  animation: slideUp .3s ease;
}

.displaced-alert .da-close,
#displaced-alert .da-close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  color: #a0aec0;
  font-size: 1rem;
  line-height: 1;
}

.displaced-alert .da-close:hover,
#displaced-alert .da-close:hover { color: #fff; }

.displaced-alert h6,
#displaced-alert h6 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fef08a;
}

.displaced-alert p,
#displaced-alert p {
  margin: 0;
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.5;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted   { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-danger  { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: 0.82rem; }
.d-flex { display: flex; }
.d-none { display: none !important; }
.align-items-center { align-items: center; }
.rounded { border-radius: var(--radius); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-panel .card-siparu-body {
  display: grid;
  gap: 16px;
}

.face-check {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
  font-size: .9rem;
}

.face-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.face-check-head strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.face-check-head span:not(.verify-badge) {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.verify-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: .75rem;
  font-weight: 700;
}

.verify-badge.verified {
  background: #dcfce7;
  color: #166534;
}

.verification-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, .85fr);
  gap: 14px;
  align-items: start;
}

.camera-box,
.media-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.camera-box {
  min-height: 260px;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.camera-box video,
.camera-box img,
.media-preview img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.camera-box video,
.camera-box img {
  display: none;
}

.camera-box video {
  filter: brightness(1.08) contrast(1.06) saturate(1.04);
}

.ios-camera .camera-box video {
  transform: scaleX(-1);
}

.camera-guide {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 46% / 38%;
  box-shadow:
    0 0 0 999px rgba(15,23,42,.18),
    0 0 28px rgba(56,161,105,.35);
  z-index: 2;
}

.camera-guide::before,
.camera-guide::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}

.camera-guide::before { top: 30%; }
.camera-guide::after { bottom: 26%; }

.camera-box > span:not(.camera-guide) {
  position: relative;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}

.camera-box video[style*="block"] ~ .camera-guide,
.camera-box img[style*="block"] ~ .camera-guide {
  display: block;
}

.verification-actions {
  display: grid;
  gap: 10px;
}

.verification-actions .btn-siparu {
  justify-content: center;
}

.verification-meta {
  margin: 4px 0 0;
  font-size: .82rem;
  line-height: 1.5;
}

.media-preview {
  margin-top: 8px;
  min-height: 180px;
}

.media-preview img {
  min-height: 180px;
}

.dashboard-notice {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fef08a;
  color: #854d0e;
  background: #fffbeb;
}

.status-list {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.history-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.history-summary strong {
  color: var(--text);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 750;
}

.badge-soft.success { background: #dcfce7; color: #166534; }
.badge-soft.warning { background: #fef3c7; color: #92400e; }
.badge-soft.danger  { background: #fee2e2; color: #991b1b; }

.report-toolbar {
  margin-bottom: 16px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.report-stats-grid {
  margin-bottom: 16px;
}

.report-analytics {
  margin-bottom: 16px;
}

.report-chart {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: start;
  padding: 18px 20px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr 42px;
  gap: 12px;
  align-items: center;
  font-size: .82rem;
}

.report-bar-row span {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-bar-row div {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.report-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #1a56db);
}

.report-bar-row strong {
  text-align: right;
  color: var(--text);
}

.status-card {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.status-card strong,
.status-card span,
.status-card small {
  display: block;
}

.status-card span,
.status-card small {
  color: var(--muted);
}

.status-card small {
  margin-top: 4px;
  font-size: .76rem;
}

.profile-list {
  display: grid;
  gap: 8px;
}

.profile-list p {
  margin: 0;
}

.action-cell {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.detail-popup {
  text-align: left;
}

.detail-popup p {
  margin: 0 0 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.detail-wide {
  grid-column: 1 / -1;
}

.detail-thumb {
  display: block;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.detail-thumb img,
.swal-image-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f8fafc;
}

.account-verification-box {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
}

.account-update-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.account-password-accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.account-accordion-toggle {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  background: #f8fafc;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 750;
  cursor: pointer;
}

.account-accordion-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-accordion-toggle .fa-chevron-down {
  transition: transform .2s ease;
}

.account-accordion-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.account-accordion-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.account-accordion-body > div:first-child {
  grid-column: 1 / -1;
}

.account-selfie-preview {
  width: min(220px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.account-selfie-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 150;
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show { display: block; }

  .main-content { margin-left: 0; }
  .topbar       { left: 0; padding: 0 16px; }
  .topbar-title { font-size: 0.9rem; }

  .page-inner   { padding: 16px; }
  .dashboard-view { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verification-grid { grid-template-columns: 1fr; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-card { max-width: 560px; }

  .stat-card    { padding: 14px 16px; }
  .stat-value   { font-size: 1.4rem; }
}

@media (max-width: 575px) {
  .auth-wrapper { padding: 18px 12px; }
  .auth-card { border-radius: 16px; }
  .auth-body    { padding: 20px 18px; }
  .auth-header  { padding: 20px 18px; }
  .topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding: 8px 12px;
  }
  .topbar h1 { font-size: 1rem; }
  .topbar p { font-size: .74rem; }
  .dashboard-view { padding: 12px; }
  .dashboard-notice { margin: 12px 12px 0; }
  .card-siparu-header {
    align-items: stretch;
    flex-direction: column;
  }
  .form-grid,
  .filter-grid,
  .report-filter-grid,
  .status-card { grid-template-columns: 1fr; }
  .account-accordion-body { grid-template-columns: 1fr; }
  .hero-dashboard { align-items: flex-start; }
  .hero-dashboard img { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .otp-input    { width: 40px; height: 48px; font-size: 1.3rem; }
  .table-responsive { overflow: visible; }
  .table-siparu.responsive-cards,
  .table-siparu.responsive-cards thead,
  .table-siparu.responsive-cards tbody,
  .table-siparu.responsive-cards tr,
  .table-siparu.responsive-cards td {
    display: block;
    width: 100%;
  }
  .table-siparu.responsive-cards {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .84rem;
  }
  .table-siparu.responsive-cards thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table-siparu.responsive-cards tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }
  .table-siparu.responsive-cards tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .table-siparu.responsive-cards td {
    display: grid;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }
  .table-siparu.responsive-cards td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .table-siparu.responsive-cards td[colspan] {
    display: block;
    text-align: center;
  }
  .table-siparu.responsive-cards td[colspan]::before {
    content: none;
  }
  .stats-grid { grid-template-columns: 1fr; }
}
