:root {
  --primary: #0f4c81;
  --primary-d: #0a3460;
  --primary-l: #e8f0fe;
  --accent: #1e88e5;
  --green: #2e7d32;
  --red: #c62828;
  --orange: #e65100;
  --yellow: #f57f17;
  --bg: #f5f7fa;
  --sur: #ffffff;
  --brd: #e0e7ef;
  --txt: #1a1a2e;
  --mut: #7a8fa6;
  --sh: rgba(0,0,0,0.08);
}
[data-theme="dark"] {
  --primary: #1e88e5;
  --primary-d: #1565c0;
  --primary-l: #0d1117;
  --accent: #42a5f5;
  --green: #66bb6a;
  --red: #ef5350;
  --orange: #ff7043;
  --yellow: #ffca28;
  --bg: #000000;
  --sur: #0d1117;
  --brd: #1f2937;
  --txt: #e9ecef;
  --mut: #8b96a5;
  --sh: rgba(0,0,0,0.3);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
.screen {
  display: none;
  min-height: 100vh;
  padding-bottom: 80px;
}
.screen.active {
  display: block;
}
.page {
  display: none;
  padding: 16px;
  animation: fadeIn 0.2s;
}
.page.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sur);
  border-top: 1px solid var(--brd);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px var(--sh);
}
.navbar button {
  background: none;
  border: none;
  color: var(--mut);
  font-size: 24px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  font-family: inherit;
}
.navbar button span {
  font-size: 11px;
  font-weight: 600;
}
.navbar button.active {
  color: var(--primary);
}
.header {
  background: var(--primary);
  color: white;
  padding: 20px 16px;
  padding-top: calc(20px + env(safe-area-inset-top));
}
.header h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
.header p {
  font-size: 14px;
  opacity: 0.9;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px var(--sh);
}
.topbar-title {
  font-size: 18px;
  font-weight: 800;
}
.topbar-subtitle {
  font-size: 12px;
  opacity: 0.85;
}
.topbar-actions {
  display: flex;
  gap: 8px;
}
.topbar-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  background: var(--sur);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--sh);
  border: 1px solid var(--brd);
}
.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--txt);
}
.card p {
  font-size: 14px;
  color: var(--mut);
  line-height: 1.5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: var(--sur);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px var(--sh);
  border: 1px solid var(--brd);
}
.stat-label {
  font-size: 12px;
  color: var(--mut);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--txt);
}
.stat-unit {
  font-size: 14px;
  color: var(--mut);
  margin-left: 4px;
}
.btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.btn-sec {
  background: var(--sur);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-danger {
  background: var(--red);
}
.btn-success {
  background: var(--green);
}
.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
  min-height: 36px;
  width: auto;
}
.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--brd);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--sur);
  color: var(--txt);
  margin-bottom: 12px;
  transition: border 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
}
.input::placeholder {
  color: var(--mut);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 6px;
}
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--brd);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--sur);
  color: var(--txt);
  margin-bottom: 12px;
  cursor: pointer;
}
.sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.3s;
}
.sheet.active {
  display: flex;
  align-items: flex-end;
}
.sheet-content {
  background: var(--sur);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  animation: slideUp 0.3s;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.sheet-header h2 {
  font-size: 20px;
  font-weight: 800;
}
.sheet-close {
  background: var(--brd);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  background: var(--txt);
  color: var(--sur);
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(-150%);
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast.show {
  transform: translateY(0);
}
.toast.success {
  background: var(--green);
  color: white;
}
.toast.error {
  background: var(--red);
  color: white;
}
.list-item {
  background: var(--sur);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--brd);
}
.list-item-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.list-item-content {
  flex: 1;
  min-width: 0;
}
.list-item-title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 15px;
}
.list-item-desc {
  font-size: 13px;
  color: var(--mut);
}
.list-item-action {
  flex-shrink: 0;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge-green {
  background: var(--green);
  color: white;
}
.badge-red {
  background: var(--red);
  color: white;
}
.badge-yellow {
  background: var(--yellow);
  color: white;
}
.badge-orange {
  background: var(--orange);
  color: white;
}
.progress {
  width: 100%;
  height: 8px;
  background: var(--brd);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar {
  height: 100%;
  background: var(--green);
  transition: width 0.3s;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
}
.qty-control button {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-control input {
  flex: 1;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  width: 60px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mut);
}
.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-text {
  font-size: 16px;
  font-weight: 600;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-tab {
  background: var(--sur);
  border: 2px solid var(--brd);
  color: var(--txt);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  background: #060d1f;
  position: relative;
  overflow: hidden;
}
.login-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(30,136,229,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(15,76,129,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(66,165,245,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.login-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.login-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  z-index: 1;
  animation: loginBoxIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes loginBoxIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.logo {
  text-align: center;
  margin-bottom: 36px;
  animation: logoIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.logo-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e88e5 0%, #0f4c81 100%);
  box-shadow: 0 8px 24px rgba(30,136,229,0.4), 0 0 0 1px rgba(255,255,255,0.15) inset;
  margin-bottom: 16px;
  font-size: 36px;
}
.logo-icon { font-size: 64px; margin-bottom: 8px; }
.logo-text {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.logo-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}
.login-box .input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.login-box .input:focus {
  border-color: rgba(30,136,229,0.7);
  background: rgba(255,255,255,0.1);
  outline: none;
}
.login-box .input::placeholder { color: rgba(255,255,255,0.3); }
.login-box label { color: rgba(255,255,255,0.6); font-size: 13px; }
.login-box select {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #ffffff;
  border-radius: 12px;
}
.login-box .btn {
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #1e88e5 0%, #0f4c81 100%);
  box-shadow: 0 4px 16px rgba(30,136,229,0.35);
  transition: all 0.2s;
}
.login-box .btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(30,136,229,0.25);
}
.login-box .btn-sec {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  box-shadow: none;
}
.login-version {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.product-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
}
.trip-card {
  background: var(--sur);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px var(--sh);
}
.trip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.trip-agent {
  font-size: 18px;
  font-weight: 800;
}
.trip-date {
  font-size: 13px;
  color: var(--mut);
}
.trip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.trip-stat {
  text-align: center;
}
.trip-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
}
.trip-stat-label {
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
}
.warning {
  background: var(--orange);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.table th {
  background: var(--bg);
  padding: 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--mut);
  border-bottom: 2px solid var(--brd);
}
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--brd);
  font-size: 14px;
}
.install-prompt {
  background: var(--primary);
  color: white;
  padding: 16px;
  border-radius: 12px;
  margin: 16px;
  display: none;
}
.install-prompt.show {
  display: block;
}
.day-btn {
  background: var(--sur);
  border: 2px solid var(--brd);
  color: var(--txt);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.day-btn.on {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.day-all {
  width: auto;
  border-radius: 20px;
  padding: 0 12px;
}
.client-card {
  background: var(--sur);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--brd);
  box-shadow: 0 2px 6px var(--sh);
  cursor: pointer;
  transition: transform 0.15s;
}
.client-card:active { transform: scale(0.98); }
.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.day-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-l);
  color: var(--primary);
  margin-right: 3px;
}

/* ===== STAT-GRID / STAT-CARD ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--sur);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px var(--sh);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brd);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-color, var(--primary));
}
.stat-card .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.stat-card .stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-color, var(--primary));
  line-height: 1;
}
.stat-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 3px;
}

/* ===== PROGRESS BAR (fill variant) ===== */
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 0.4s ease;
}

/* ===== BADGES (soft color variants) ===== */
.badge-blue   { background: var(--primary-l); color: var(--primary); }
[data-theme="dark"] .badge-blue   { background: rgba(30,136,229,0.15); color: #42a5f5; }
[data-theme="dark"] .badge-green  { background: rgba(102,187,106,0.15); color: var(--green); color: white; }
[data-theme="dark"] .badge-red    { background: rgba(239,83,80,0.18); color: var(--red); }
[data-theme="dark"] .badge-yellow { background: rgba(255,202,40,0.15); color: var(--yellow); }
[data-theme="dark"] .badge-orange { background: rgba(255,112,67,0.15); color: var(--orange); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--mut);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.5;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
}
.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ===== LIST ITEM (extended) ===== */
.list-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.list-body { flex: 1; min-width: 0; }
.list-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
}
.list-right { text-align: right; flex-shrink: 0; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--sur);
  border: 1.5px solid var(--brd);
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 12px;
  gap: 8px;
}
.search-bar input {
  flex: 1;
  padding: 12px 0;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--txt);
}
.search-bar input::placeholder { color: var(--mut); }
.search-icon { font-size: 18px; color: var(--mut); }

/* ===== PILLS / FILTER PILLS ===== */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: var(--brd);
  color: var(--mut);
  flex-shrink: 0;
  transition: all 0.15s;
}
.pill.active, .pill.on {
  background: var(--primary);
  color: white;
}

/* ===== EXPIRY INDICATORS ===== */
.expiry-ok     { color: #2e7d32; font-weight: 700; }
.expiry-warn   { color: #e65100; font-weight: 700; }
.expiry-danger { color: #c62828; font-weight: 700; }
.expiry-badge-ok     { background: #e8f5e9; color: #2e7d32; }
.expiry-badge-warn   { background: #fff3e0; color: #e65100; }
.expiry-badge-danger { background: #ffebee; color: #c62828; }
[data-theme="dark"] .expiry-ok     { color: #66bb6a; }
[data-theme="dark"] .expiry-warn   { color: #ff7043; }
[data-theme="dark"] .expiry-danger { color: #ef5350; }
[data-theme="dark"] .expiry-badge-ok     { background: rgba(102,187,106,0.15); color: #66bb6a; }
[data-theme="dark"] .expiry-badge-warn   { background: rgba(255,112,67,0.15); color: #ff7043; }
[data-theme="dark"] .expiry-badge-danger { background: rgba(239,83,80,0.15); color: #ef5350; }

/* ===== TOAST WARNING ===== */
.toast.warning { background: var(--orange); color: white; }

/* ===== DARK THEME FIXES ===== */
[data-theme="dark"] .card { background: var(--sur); }
[data-theme="dark"] .input {
  background: var(--sur);
  border-color: var(--brd);
  color: var(--txt);
}
[data-theme="dark"] .input::placeholder { color: var(--mut); }
[data-theme="dark"] select {
  background: var(--sur);
  color: var(--txt);
  border-color: var(--brd);
}
[data-theme="dark"] textarea {
  background: var(--sur);
  color: var(--txt);
  border-color: var(--brd);
}
[data-theme="dark"] .sheet-content { background: var(--sur); }
[data-theme="dark"] .sheet-header { border-color: var(--brd); }
[data-theme="dark"] .sheet-close { background: var(--brd); color: var(--txt); }
[data-theme="dark"] .table th { background: var(--sur); }
[data-theme="dark"] .qty-control { background: var(--brd); }
[data-theme="dark"] .login-box { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .login-container {
  background: #060d1f;
}

/* ===== THEME TOGGLE BUTTON ===== */
#theme-toggle-btn, #theme-toggle-btn-van {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
#theme-toggle-btn:active, #theme-toggle-btn-van:active { opacity: 0.7; }
