@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #E8590C;
  --primary-dark: #B8420A;
  --primary-light: #FFF0E4;
  --primary-grad: linear-gradient(135deg, #FF8A3D 0%, #E8590C 55%, #C2410C 100%);
  --secondary: #211B2E;
  --success: #16A34A;
  --success-light: #E7FAEE;
  --success-grad: linear-gradient(135deg, #4ADE80 0%, #16A34A 100%);
  --warning: #D97706;
  --warning-light: #FFF5E0;
  --warning-grad: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --danger: #E11D48;
  --danger-light: #FFECF1;
  --danger-grad: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
  --info: #2563EB;
  --info-light: #E9F1FF;
  --info-grad: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
  --purple: #7C3AED;
  --purple-light: #F3ECFF;
  --purple-grad: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%);
  --bg: #FBF5EE;
  --card: #FFFFFF;
  --border: #EEE2D4;
  --text: #221B15;
  --text-muted: #857A6C;
  --shadow: 0 2px 10px rgba(194,83,31,0.07), 0 1px 3px rgba(23,20,15,0.05);
  --shadow-lg: 0 22px 48px rgba(194,83,31,0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== ICONS ===== */
.i { vertical-align: -3px; flex-shrink: 0; margin-right: 5px; }
svg.i { display: inline-block; }
.i:last-child { margin-right: 0; }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #FFF4EA 0%, #FBF5EE 35%, #F8F1E8 100%) fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }

a { text-decoration: none; color: inherit; }

/* ===== BUTTON ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-grad); color: white; box-shadow: 0 4px 14px rgba(232,89,12,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,89,12,0.4); filter: brightness(1.04); }
.btn-secondary { background: linear-gradient(135deg, #342A47 0%, var(--secondary) 100%); color: white; }
.btn-secondary:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-success { background: var(--success-grad); color: white; box-shadow: 0 4px 14px rgba(22,163,74,0.28); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22,163,74,0.38); }
.btn-danger { background: var(--danger-grad); color: white; box-shadow: 0 4px 14px rgba(225,29,72,0.28); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(225,29,72,0.38); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== CARD ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary-grad);
}
.card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(232,89,12,0.05) 0%, rgba(232,89,12,0) 60%);
}
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--secondary); }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; background: #FCF9F5; color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(232,89,12,0.14); background: white; }
.form-control::placeholder { color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent;
}
.badge-success { background: var(--success-light); color: var(--success); border-color: rgba(22,163,74,0.2); }
.badge-danger { background: var(--danger-light); color: var(--danger); border-color: rgba(225,29,72,0.2); }
.badge-warning { background: var(--warning-light); color: var(--warning); border-color: rgba(217,119,6,0.2); }
.badge-info { background: var(--info-light); color: var(--info); border-color: rgba(37,99,235,0.2); }
.badge-secondary { background: #F1EDFB; color: var(--text-muted); }
.badge-primary { background: var(--primary-light); color: var(--primary); border-color: rgba(232,89,12,0.2); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg); padding: 12px 16px; text-align: left;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--primary-light); }

/* ===== SIDEBAR LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width); background: linear-gradient(180deg, #2A2140 0%, var(--secondary) 100%);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; height: 100vh; z-index: 100; transition: transform 0.3s;
}
.sidebar-brand {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand .logo {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .logo-icon {
  width: 40px; height: 40px; background: var(--primary-grad);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 12px rgba(232,89,12,0.4);
}
.sidebar-brand .logo-text { color: white; }
.sidebar-brand .logo-text h3 { font-size: 16px; font-weight: 700; }
.sidebar-brand .logo-text span { font-size: 11px; color: rgba(255,255,255,0.5); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 1px; padding: 0 8px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.6);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  margin-bottom: 2px; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-item.active { background: var(--primary-grad); color: white; box-shadow: 0 4px 14px rgba(232,89,12,0.35); }
.nav-item .nav-icon { width: 20px; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.nav-item .nav-icon svg { width: 17px; height: 17px; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--primary); color: white;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.nav-item.active .nav-badge { background: white; color: var(--primary); }

.sidebar-footer {
  padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); cursor: pointer;
}
.sidebar-user:hover { background: rgba(255,255,255,0.08); }
.user-avatar {
  width: 36px; height: 36px; background: var(--primary-grad);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .user-name { color: white; font-size: 13px; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.user-info .user-role { color: rgba(255,255,255,0.4); font-size: 11px; }

/* ===== MAIN CONTENT (app shell, no sidebar) ===== */
.app-shell { display: flex; min-height: 100vh; }
.main { margin-left: 0; flex: 1; display: flex; flex-direction: column; min-height: 100vh; width: 100%; }

.topbar {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(194,83,31,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.page-title {
  font-size: 17px; font-weight: 800;
  background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-resto-name { font-size: 13px; font-weight: 700; color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary-grad);
  color: white; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,89,12,0.35); overflow: hidden;
}

.content { padding: 20px; padding-bottom: 100px; flex: 1; }

/* ===== BOTTOM NAVIGATION (app-style) ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(194,83,31,0.08);
  width: 100%;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 2px; color: var(--text-muted); text-decoration: none;
  font-size: 10.5px; font-weight: 600; position: relative; background: none; border: none;
  cursor: pointer; font-family: inherit;
}
.bottom-nav-item .bn-icon { display: flex; align-items: center; justify-content: center; line-height: 1; padding: 4px 14px; border-radius: 10px; transition: all 0.2s; }
.bottom-nav-item .bn-icon svg { width: 21px; height: 21px; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active .bn-icon { background: var(--primary-light); }
.bottom-nav-item .bn-badge {
  position: absolute; top: 0; right: 24%; background: var(--danger-grad); color: white;
  font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ===== "LAINNYA" BOTTOM SHEET ===== */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(33,20,10,0.5); z-index: 400;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.25s;
}
.sheet-overlay.active { opacity: 1; visibility: visible; }
.sheet-panel {
  background: white; border-radius: 24px 24px 0 0; width: 100%; max-width: 720px;
  padding: 8px 8px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.25s;
  box-shadow: 0 -10px 40px rgba(194,83,31,0.15);
}
.sheet-overlay.active .sheet-panel { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 8px auto 14px; }
.sheet-user-row { display: flex; align-items: center; gap: 12px; padding: 6px 14px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.user-avatar-lg {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary-grad); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,89,12,0.35); overflow: hidden;
}
.sheet-resto-name { font-weight: 700; font-size: 15px; }
.sheet-user-email { font-size: 12px; color: var(--text-muted); }
.sheet-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.sheet-link:hover { background: var(--primary-light); }
.sheet-link.sheet-logout { color: var(--danger); }

@media (min-width: 900px) {
  .content { padding: 28px; padding-bottom: 100px; }
}

/* ===== STATS CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: white;
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-icon.orange { background: var(--primary-grad); box-shadow: 0 4px 12px rgba(232,89,12,0.3); }
.stat-icon.green { background: var(--success-grad); box-shadow: 0 4px 12px rgba(22,163,74,0.3); }
.stat-icon.blue { background: var(--info-grad); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.stat-icon.yellow { background: var(--warning-grad); box-shadow: 0 4px 12px rgba(217,119,6,0.3); }
.stat-info .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-info .stat-value { font-size: 22px; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-info .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(33,20,10,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: white; border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(232,89,12,0.06) 0%, rgba(232,89,12,0) 60%);
}
.modal-header h3 { font-size: 18px; }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg); border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: linear-gradient(135deg, #342A47, var(--secondary)); color: white; padding: 12px 20px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  transform: translateY(100px); opacity: 0; transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--success-grad); }
.toast-error { background: var(--danger-grad); }
.toast-info { background: var(--info-grad); }

/* ===== SPINNER ===== */
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  margin: 0 auto 16px;
}
.empty-state .empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 13.5px; margin-bottom: 20px; }

/* ===== STATUS DOT ===== */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.status-dot.green { background: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
.status-dot.red { background: var(--danger); box-shadow: 0 0 0 3px rgba(225,29,72,0.15); }
.status-dot.yellow { background: var(--warning); box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }

/* ===== TOGGLE ===== */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); border-radius: 24px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute; width: 18px; height: 18px;
  background: white; border-radius: 50%; bottom: 3px; left: 3px; transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input:checked + .toggle-slider { background: var(--success-grad); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ===== SEARCH BOX ===== */
.search-box { position: relative; }
.search-box input { padding-left: 38px; }
.search-box .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ===== REALTIME PULSE ===== */
.realtime-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--success); font-weight: 500;
}
.pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* ===== MOBILE HAMBURGER ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; font-size: 20px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(33,20,10,0.5); z-index: 99; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== ORDER CARD (untuk notif realtime) ===== */
.order-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; background: white;
  transition: all 0.3s; cursor: pointer;
}
.order-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.order-card.new { border-color: var(--warning); background: var(--warning-light); animation: slideIn 0.4s ease; }
@keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-items { font-size: 13px; color: var(--text-muted); }
.order-item-row { display: flex; justify-content: space-between; padding: 3px 0; }

/* ===== SELECT ===== */
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23857A6C' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ===== IMAGE UPLOAD ===== */
.img-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s;
  background: var(--bg);
}
.img-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.img-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 12px; }

/* ===== TAB (segmented pill style) ===== */
.tabs {
  display: flex; gap: 4px; border-bottom: none; margin-bottom: 24px;
  background: var(--bg); padding: 5px; border-radius: 999px; border: 1px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  padding: 9px 18px; border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  border-bottom: none; margin-bottom: 0; transition: all 0.25s; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0;
}
.tab-btn.active { color: white; background: var(--primary-grad); box-shadow: 0 4px 14px rgba(232,89,12,0.35); }
.tab-btn:hover:not(.active) { color: var(--text); background: rgba(232,89,12,0.08); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 20px;
  border-left-width: 4px; border-left-style: solid;
}
.alert-warning { background: var(--warning-light); border: 1px solid #F6E05E; border-left: 4px solid var(--warning); color: #744210; }
.alert-info { background: var(--info-light); border: 1px solid #90CDF4; border-left: 4px solid var(--info); color: #2C5282; }
.alert-success { background: var(--success-light); border: 1px solid #9AE6B4; border-left: 4px solid var(--success); color: #22543D; }
.alert-danger { background: var(--danger-light); border: 1px solid #FEB2B2; border-left: 4px solid var(--danger); color: #742A2A; }

/* ===== GOOGLE BUTTON ===== */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: white; color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-google:hover { background: var(--bg); box-shadow: var(--shadow); border-color: var(--primary); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== RESPONSIVE LEBAR LAYAR (HP, iPad, Tablet, Laptop, Komputer) ===== */
/* Default (di atas) sudah pas untuk HP (iPhone dkk, layar sampai ~700px).
   Aturan di bawah ini melebarkan tampilan secara bertahap supaya di layar
   yang lebih besar aplikasi tidak cuma jadi kolom sempit di tengah dengan
   banyak ruang kosong di kiri-kanan. */
@media (min-width: 700px) {
  .sheet-panel { max-width: 760px; }
}
@media (min-width: 900px) {
  .sheet-panel { max-width: 940px; }
}
@media (min-width: 1200px) {
  .sheet-panel { max-width: 1100px; }
}
@media (min-width: 1600px) {
  .sheet-panel { max-width: 1240px; }
}

/* ===== LAYAR LEBAR (tablet landscape, iPad, laptop, komputer):
   ubah bottom-nav jadi rail navigasi di sisi kiri supaya tidak
   membuang ruang layar dan terasa seperti aplikasi desktop, bukan
   cuma kolom HP yang dilebarkan. Tidak butuh perubahan HTML sama
   sekali karena dipakai ulang markup .bottom-nav yang sudah ada. ===== */
@media (min-width: 1024px) {
  .app-shell { align-items: stretch; }
  .bottom-nav {
    top: 0; bottom: 0; left: 0; right: auto; height: 100vh;
    width: 96px; max-width: 96px;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: calc(20px + env(safe-area-inset-top)) 8px 20px;
    gap: 4px; border-top: none; border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(194,83,31,0.06);
  }
  .bottom-nav-item { flex: none; padding: 12px 4px; font-size: 10.5px; border-radius: var(--radius-sm); }
  .bottom-nav-item:hover { background: var(--primary-light); color: var(--primary); }
  .bottom-nav-item .bn-icon { padding: 4px; margin-bottom: 2px; }
  .main {
    margin-left: 96px; margin-right: 0; width: auto;
    max-width: none !important; min-height: 100vh;
  }
  .content { padding-bottom: 28px; max-width: 1320px; margin: 0 auto; width: 100%; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .sheet-overlay { justify-content: flex-start; padding-left: 96px; }
  .sheet-panel { max-width: 340px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: 0; }
}
