﻿/* ==========================================================================
   STAR FUEL STATION - INDIAN OIL DEALER THUVARANKURICHI
   Official Smart Forecourt Operations Suite & Web Application Style System
   Location: No 11G/5, Trichy Main Rd, Adhigaram, Thuvarankurichi - 621305
   ========================================================================== */

:root {
  /* Color Palette - Default Light Theme Matching 'nitt' */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;

  --border-subtle: rgba(226, 232, 240, 0.95);
  --border-card: rgba(226, 232, 240, 0.95);
  --border-focus: #f59e0b;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --amber-primary: #f59e0b;
  --amber-light: #d97706;
  --amber-dark: #b45309;
  --amber-glow: rgba(245, 158, 11, 0.25);

  --iocl-saffron: #f97316;
  --iocl-saffron-dark: #ea580c;
  --iocl-blue: #0284c7;

  --emerald-500: #10b981;
  --emerald-400: #059669;
  --emerald-600: #047857;

  --ruby-500: #ef4444;
  --ruby-600: #dc2626;

  --cyan-500: #06b6d4;
  --indigo-500: #6366f1;
  --purple-500: #a855f7;

  /* Multi-point Radial Glow UI Background (from nitt) */
  --bg-gradient: 
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(99, 102, 241, 0.05) 0%, transparent 48%),
    radial-gradient(circle at 78% 85%, rgba(244, 63, 94, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e8edf5 100%);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-amber: 0 4px 20px rgba(245, 158, 11, 0.22);
}

/* Light Theme Variables */
body.theme-light {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;

  --border-subtle: rgba(226, 232, 240, 0.95);
  --border-card: rgba(226, 232, 240, 0.95);
  --border-focus: #f59e0b;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --amber-light: #d97706;

  --bg-gradient: 
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(99, 102, 241, 0.05) 0%, transparent 48%),
    radial-gradient(circle at 78% 85%, rgba(244, 63, 94, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #e8edf5 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.09);
  --shadow-amber: 0 4px 20px rgba(245, 158, 11, 0.22);
}

/* Dark Theme Variables */
body.theme-dark {
  --bg-base: #070d1e;
  --bg-surface: #0c1630;
  --bg-card: #111e40;
  --bg-card-hover: #162650;
  --bg-input: #080f24;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(245, 158, 11, 0.22);
  --border-focus: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --amber-light: #fbbf24;

  --bg-gradient:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 55%, rgba(99, 102, 241, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 78% 85%, rgba(244, 63, 94, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #070d1e 0%, #0c1630 45%, #050a17 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-amber: 0 4px 20px rgba(245, 158, 11, 0.28);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Universal Hidden State */
.hidden {
  display: none !important;
}

.modal-backdrop.hidden,
.ios-modal-backdrop.hidden,
.super-admin-fullscreen-screen.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--amber-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ffffff;
}

.text-amber { color: var(--amber-primary) !important; }
.text-emerald { color: var(--emerald-400) !important; }
.text-danger { color: var(--ruby-500) !important; }
.text-indigo { color: var(--indigo-500) !important; }
.text-cyan { color: var(--cyan-500) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ==========================================================================
   BROADCAST ANNOUNCEMENTS BANNER
   ========================================================================== */
.broadcast-banner {
  background: linear-gradient(90deg, #b45309 0%, #ea580c 50%, #d97706 100%);
  color: #ffffff;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1005;
}
.broadcast-banner.hidden { display: none !important; }
.broadcast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.broadcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.broadcast-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.broadcast-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.broadcast-close-btn:hover { opacity: 1; }

/* ==========================================================================
   HEADER & 2-TIER SWIGGY NAVIGATION SYSTEM (from nitt)
   - Tier 1: Brand & Top Actions Bar (.nav-top-bar)
   - Tier 2: Swiggy-Style Curved Tabs Navigation Strip (.navbar)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  width: 100%;
}

.nav-top-bar {
  width: 100%;
  padding: 8px 0 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: var(--shadow-amber);
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.brand-iocl-badge {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background: var(--iocl-saffron);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

body.theme-light .brand-title {
  background: linear-gradient(135deg, #0f172a 40%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-station-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-pulse {
  font-size: 0.5rem;
  color: var(--emerald-400);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Right Top Action Buttons with Text Below Icon */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav-action-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: all 0.22s ease;
  min-width: 48px;
}

.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body.theme-light .nav-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-action-btn .action-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.nav-action-btn:hover .action-icon-badge {
  transform: scale(1.1);
}

.action-btn-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.1;
}

.badge-rates { background: rgba(245, 158, 11, 0.2); color: var(--amber-light); border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-phone { background: rgba(16, 185, 129, 0.2); color: var(--emerald-400); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-maps { background: rgba(6, 182, 212, 0.2); color: var(--cyan-500); border: 1px solid rgba(6, 182, 212, 0.35); }
.badge-install { background: linear-gradient(135deg, var(--amber-primary), var(--iocl-saffron)); color: #071328; border: 1px solid rgba(245, 158, 11, 0.5); }
.badge-super-admin { background: rgba(99, 102, 241, 0.22); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4); }
.badge-theme { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-subtle); }

.action-text-compact { display: none; }
@media (max-width: 820px) {
  .action-text-full { display: none; }
  .action-text-compact { display: inline; }
  .brand-subtitle { display: none; }

  /* In mobile view only keep swiggy navi bar alone freezed at top while scrolling */
  .app-header {
    position: relative !important;
    top: auto !important;
    background: var(--bg-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: 100 !important;
  }

  .nav-top-bar {
    position: relative !important;
    top: auto !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .live-rates-bar {
    position: relative !important;
    top: auto !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .navbar.swiggy-navbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    background: var(--bg-surface) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 1.5px solid var(--border-subtle) !important;
  }
}

/* ==========================================================================
   LIVE FUEL RATES TICKER
   ========================================================================== */
.live-rates-bar {
  background: rgba(8, 15, 36, 0.95);
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 0;
}

body.theme-light .live-rates-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.rates-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.rates-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rates-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rate-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rate-chip:hover {
  transform: translateY(-1px);
  border-color: var(--amber-primary);
}

.rate-chip .fuel-name {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.rate-chip .fuel-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.rate-chip .fuel-unit {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.rate-chip.ms-chip { border-color: rgba(245, 158, 11, 0.35); }
.rate-chip.ms-chip .fuel-price { color: var(--amber-light); }

.rate-chip.hsd-chip { border-color: rgba(16, 185, 129, 0.35); }
.rate-chip.hsd-chip .fuel-price { color: var(--emerald-400); }

.rate-chip.xp95-chip { border-color: rgba(239, 68, 68, 0.35); }
.rate-chip.xp95-chip .fuel-price { color: var(--ruby-500); }

.rate-chip.cng-chip { border-color: rgba(6, 182, 212, 0.35); }
.rate-chip.cng-chip .fuel-price { color: var(--cyan-500); }

.btn-edit-rates {
  background: transparent;
  border: 1px dashed var(--amber-primary);
  color: var(--amber-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-edit-rates:hover {
  background: var(--amber-primary);
  color: #0b1329;
}

/* ==========================================================================
   SWIGGY-STYLE CURVED TABS NAVIGATION STRIP (.navbar) from nitt
   ========================================================================== */
.navbar.swiggy-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-top-height, 102px);
  z-index: 1000;
  width: 100%;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 0 0.15rem 0;
  border-bottom: 1.5px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.nav-tabs-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 8px;
}

/* Swiggy-Style Curved Tabs Navigation Strip */
.swiggy-nav-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  padding: 0 0.4rem 0 0;
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.swiggy-nav-tabs.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.swiggy-nav-tabs.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.swiggy-nav-tabs::-webkit-scrollbar {
  display: none;
}

/* Base Swiggy Tab */
.swiggy-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem 0.32rem 0.72rem;
  min-width: 66px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px 14px 8px 8px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

body.theme-light .swiggy-tab {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(203, 213, 225, 0.8);
}

.swiggy-tab * {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.swiggy-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.theme-light .swiggy-tab:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Tab Icon Badge (3D Vibrant Bubble) */
.tab-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  margin-bottom: 0.18rem;
  position: relative;
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.swiggy-tab:hover .tab-icon-badge {
  transform: scale(1.08);
}

/* Swiggy Hamburger Menu Tab (Sticky pinned directly at left) */
.swiggy-tab-menu {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 30;
  background: var(--bg-surface);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(245, 158, 11, 0.15);
  flex-shrink: 0;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-light .swiggy-tab-menu {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 4px 0 10px rgba(15, 23, 42, 0.08);
}

.swiggy-tab-menu:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

body.theme-light .swiggy-tab-menu:hover {
  background: #fffbeb;
}

.badge-menu {
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
  color: #071328;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.swiggy-tab-menu .tab-text {
  color: var(--amber-light);
  font-weight: 700;
}

/* 3D Vibrant Gradient Palettes for Each Tab Icon Badge */
.badge-dashboard {
  background: radial-gradient(circle at 30% 30%, #fed7aa 0%, #f97316 60%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.badge-density {
  background: radial-gradient(circle at 30% 30%, #a5f3fc 0%, #06b6d4 60%, #0e7490 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.badge-tank {
  background: radial-gradient(circle at 30% 30%, #a7f3d0 0%, #10b981 60%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.badge-meter {
  background: radial-gradient(circle at 30% 30%, #e9d5ff 0%, #a855f7 60%, #7e22ce 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.badge-shift {
  background: radial-gradient(circle at 30% 30%, #fde68a 0%, #eab308 60%, #a16207 100%);
  color: #071328;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
}

.badge-khata {
  background: radial-gradient(circle at 30% 30%, #c7d2fe 0%, #6366f1 60%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.badge-stock {
  background: radial-gradient(circle at 30% 30%, #fecdd3 0%, #f43f5e 60%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.badge-station {
  background: radial-gradient(circle at 30% 30%, #99f6e4 0%, #14b8a6 60%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.badge-admin {
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
  color: #071328;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Tab Text Label */
.tab-text {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.22s ease, font-weight 0.22s ease;
  line-height: 1.2;
}

/* ACTIVE TAB - SIGNATURE SWIGGY SCOOP FOLDER CURVE (from nitt) */
.swiggy-tab.active {
  background: var(--bg-card);
  border-top: 3px solid var(--amber-primary);
  border-left: 1.5px solid rgba(245, 158, 11, 0.4);
  border-right: 1.5px solid rgba(245, 158, 11, 0.4);
  border-bottom: 2px solid transparent;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 16px rgba(245, 158, 11, 0.22), 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  z-index: 5;
}

body.theme-light .swiggy-tab.active {
  background: #ffffff;
  border-top: 3px solid #d97706;
  border-left: 1.5px solid rgba(217, 119, 6, 0.4);
  border-right: 1.5px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 -4px 16px rgba(217, 119, 6, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.swiggy-tab.active .tab-text {
  color: var(--amber-light);
  font-weight: 800;
}

body.theme-light .swiggy-tab.active .tab-text {
  color: #b45309;
}

.swiggy-tab.active .tab-icon-badge {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* Signature Inverted Concave Scoop Outward Flares at Bottom Corners */
.swiggy-tab.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 0, transparent 0, transparent 9.5px, rgba(245, 158, 11, 0.4) 10px, var(--bg-card) 11px);
  pointer-events: none;
}

.swiggy-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 100% 0, transparent 0, transparent 9.5px, rgba(245, 158, 11, 0.4) 10px, var(--bg-card) 11px);
  pointer-events: none;
}

body.theme-light .swiggy-tab.active::before {
  background: radial-gradient(circle at 0 0, transparent 0, transparent 9.5px, rgba(217, 119, 6, 0.35) 10px, #ffffff 11px);
}

body.theme-light .swiggy-tab.active::after {
  background: radial-gradient(circle at 100% 0, transparent 0, transparent 9.5px, rgba(217, 119, 6, 0.35) 10px, #ffffff 11px);
}

/* ==========================================================================
   QUICK NAVIGATION DRAWER (for Swiggy Hamburger Menu)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.quick-nav-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 350px;
  max-width: 86vw;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1.5px solid var(--border-subtle);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
  z-index: 100060;
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.quick-nav-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #111e40 0%, #162650 100%);
  border-bottom: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

body.theme-light .drawer-header {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1.2;
}

body.theme-light .drawer-title {
  color: #b45309;
}

.drawer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-body {
  padding: 16px;
  flex: 1;
}

.drawer-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.drawer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

body.theme-light .drawer-link {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.drawer-link:hover {
  background: var(--bg-card);
  border-color: var(--amber-primary);
  transform: translateX(3px);
}

.drawer-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.drawer-link-text {
  display: flex;
  flex-direction: column;
}

.drawer-link-text strong {
  font-size: 0.82rem;
  color: var(--text-main);
}

.drawer-link-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.drawer-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-btn-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.drawer-btn-pill:hover {
  border-color: var(--amber-primary);
}

/* ==========================================================================
   MAIN CONTENT & TAB PANES
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 24px 20px 48px;
}

.tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--amber-primary), var(--iocl-saffron));
  color: #0b1329;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #000000;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--amber-primary);
  color: var(--amber-light);
  background: var(--bg-card-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby-500);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: var(--ruby-500);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-calculate-lg {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--amber-primary), var(--iocl-saffron));
  color: #0b1329;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
}

.btn-calculate-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.required {
  color: var(--ruby-500);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.form-control.input-lg {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 12px 14px;
}

.form-control.input-hero {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--amber-light);
  text-align: center;
}

.form-control.input-highlight {
  font-family: var(--font-mono);
  font-weight: 700;
}

.form-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .form-row-2, .form-row-3, .form-row-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 992px) {
  .grid-two-col, .grid-three-col {
    grid-template-columns: 1fr;
  }
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.calc-card.results-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(12, 22, 48, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.card-heading {
  font-size: 1.12rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   HERO CARD & KPI SUMMARY
   ========================================================================== */
.station-hero-card {
  background: linear-gradient(135deg, rgba(17, 30, 64, 0.95), rgba(7, 13, 30, 0.98)),
              radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 70%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  box-shadow: var(--shadow-md);
}

body.theme-light .station-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%),
              radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 70%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .station-hero-card {
    grid-template-columns: 1fr;
  }
}

.hero-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--amber-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ffffff 40%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .hero-title {
  background: linear-gradient(90deg, #0f172a 40%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-location-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

body.theme-light .hero-location-text {
  color: #334155;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.theme-light .hero-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.hero-quick-actions {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-light .hero-quick-actions {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.quick-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--amber-light);
  margin-bottom: 4px;
}

.btn-action-primary {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-primary i {
  color: var(--amber-primary);
  width: 18px;
}

.btn-action-primary:hover {
  background: var(--bg-card-hover);
  border-color: var(--amber-primary);
  color: var(--amber-light);
  transform: translateX(4px);
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kpi-fuel { background: rgba(245, 158, 11, 0.15); color: var(--amber-light); }
.kpi-money { background: rgba(16, 185, 129, 0.15); color: var(--emerald-400); }
.kpi-khata { background: rgba(99, 102, 241, 0.15); color: var(--indigo-500); }
.kpi-tanks { background: rgba(6, 182, 212, 0.15); color: var(--cyan-500); }

.kpi-details {
  flex: 1;
}

.kpi-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

.kpi-subtext {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Dashboard Columns */
.dashboard-columns-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

@media (max-width: 900px) {
  .dashboard-columns-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-pill.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-pill.iocl-pill {
  background: rgba(249, 115, 22, 0.15);
  color: var(--iocl-saffron);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.island-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.island-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.island-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.island-info {
  flex: 1;
}

.island-info strong {
  display: block;
  font-size: 0.9rem;
}

.island-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.island-badge.active {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.station-meta-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-k {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-v {
  text-align: right;
  word-break: break-word;
}

.link-tel {
  font-weight: 700;
  color: var(--amber-light);
}

/* ==========================================================================
   ASTM DENSITY CONVERTER STYLES
   ========================================================================== */
.density-output-hero {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.output-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.output-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.output-value {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1;
}

.output-unit {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.output-sub-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tolerance-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.tolerance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
}

.tolerance-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.verdict-banner {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.verdict-pass {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.verdict-pass .verdict-icon {
  color: var(--emerald-400);
  font-size: 1.6rem;
}

.verdict-fail {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

.verdict-fail .verdict-icon {
  color: var(--ruby-500);
  font-size: 1.6rem;
}

.verdict-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.verdict-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guidelines-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.guidelines-card h4 {
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.guidelines-card ul {
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ==========================================================================
   TANK DIP & VOLUME CALCULATOR STYLES
   ========================================================================== */
.custom-tank-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--amber-primary);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.dip-input-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.slider-group {
  margin-top: 14px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.range-slider {
  width: 100%;
  accent-color: var(--amber-primary);
  cursor: pointer;
}

.alert-banner {
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid var(--ruby-500);
  color: #ffffff;
}

.alert-danger i {
  color: var(--ruby-500);
  font-size: 1.3rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--emerald-500);
  color: #ffffff;
}

.tank-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 576px) {
  .tank-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.spec-k {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-v {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--amber-light);
}

.tank-visualizer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}

.svg-tank-graphic {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.volume-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.metric-occupied {
  border-color: rgba(245, 158, 11, 0.35);
}

.metric-ullage {
  border-color: rgba(6, 182, 212, 0.35);
}

.m-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.m-val-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 2px;
}

.m-val {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.metric-occupied .m-val { color: var(--amber-light); }
.metric-ullage .m-val { color: var(--cyan-500); }

.m-unit {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.m-sub {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ==========================================================================
   NOZZLE METER SALES & TABLES
   ========================================================================== */
.shift-info-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.nozzle-entry-table input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 6px 10px;
  width: 100%;
}

.nozzle-entry-table input:focus {
  border-color: var(--amber-primary);
  outline: none;
}

.table-total-row td {
  background: var(--bg-surface);
  font-size: 0.95rem;
  border-top: 2px solid var(--border-card);
  padding: 14px;
}

.nozzle-btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.history-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 24px;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-responsive {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* ==========================================================================
   SHIFT SETTLEMENT & DENOMINATIONS
   ========================================================================== */
.denom-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.denom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.denom-note {
  width: 60px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.denom-input {
  width: 90px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
}

.denom-subtotal {
  flex: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.denom-total-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.denom-total-box strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--emerald-400);
}

.settlement-summary-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(12, 22, 48, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.35);
}

.recon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
}

.recon-item.recon-sum {
  font-size: 1rem;
}

.recon-item.recon-sum strong {
  font-size: 1.25rem;
}

.recon-k {
  color: var(--text-muted);
}

.recon-v {
  font-family: var(--font-mono);
}

.recon-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 10px 0;
}

.balance-badge-box {
  margin-top: 18px;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.balance-badge-box.shortage {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}

.balance-badge-box.excess {
  background: rgba(2, 132, 199, 0.16);
  border-color: rgba(2, 132, 199, 0.45);
}

.balance-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 4px 0;
}

.balance-status-text {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   CUSTOMER KHATA & FLEET LEDGER
   ========================================================================== */
.customer-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.customer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.customer-card:hover, .customer-card.active {
  border-color: var(--amber-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.customer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.customer-card-header strong {
  font-size: 0.92rem;
}

.cust-balance {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.cust-balance.due { color: var(--ruby-500); }
.cust-balance.clear { color: var(--emerald-400); }

.customer-card-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

.customer-submeta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STOCK REGISTER STYLES
   ========================================================================== */
.calc-readonly-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.tolerance-evaluation-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.eval-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   STATION DIRECTORY & AMENITIES
   ========================================================================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

.amenity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.amenity-card i {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.amenity-card h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.amenity-card p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.map-action-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.map-text strong {
  display: block;
  font-size: 0.9rem;
}

.map-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.reviews-highlight-box {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.reviews-highlight-box h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.review-quote {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 3px solid var(--amber-primary);
  padding-left: 12px;
  margin-bottom: 12px;
  font-style: italic;
}

.quote-author {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-style: normal;
  margin-top: 4px;
}

/* ==========================================================================
   ADMIN SECURITY PORTAL
   ========================================================================== */
.admin-lock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
}

.lock-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 18px;
}

.lock-input-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-stack button, .btn-stack label {
  width: 100%;
  justify-content: center;
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100090 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease;
}

.modal-backdrop.hidden {
  display: none !important;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  position: relative;
  z-index: 100095;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.theme-light .modal-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.modal-box.modal-box-lg {
  max-width: 880px;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.theme-light .modal-header {
  border-bottom-color: #e2e8f0;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--text-main);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--ruby-500) !important;
  background: rgba(239, 68, 68, 0.1);
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dip-chart-scrollable {
  max-height: 480px;
  overflow-y: auto;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease;
  min-width: 260px;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-color: var(--emerald-500); }
.toast.toast-success i { color: var(--emerald-400); }

.toast.toast-warning { border-color: var(--amber-primary); }
.toast.toast-warning i { color: var(--amber-light); }

.toast.toast-info { border-color: var(--cyan-500); }
.toast.toast-info i { color: var(--cyan-500); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-pill {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-pill.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
}

.status-dot.online {
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.status-pill.offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby-500);
}

.status-dot.offline {
  background: var(--ruby-500);
}

/* ==========================================================================
   UNIVERSAL CELEBRATION CANVAS (Flowers, Crackers & Confetti) from nitt
   ========================================================================== */
.global-celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   PWA INSTALL FLOATING BANNER & MODALS (from nitt)
   ========================================================================== */
#pwa-install-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
  max-width: 440px;
  width: calc(100% - 3rem);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
  padding: 1.1rem;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

body.theme-light #pwa-install-banner {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18), 0 0 20px rgba(245, 158, 11, 0.15);
}

#pwa-install-banner.hidden {
  display: none !important;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.banner-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444, #10b981);
}

.banner-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
}

.banner-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.banner-app-icon {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.banner-verified-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--emerald-500);
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  border: 2px solid var(--bg-surface);
}

.banner-title-area {
  flex: 1;
  min-width: 0;
}

.banner-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-main);
}

.banner-pwa-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber-light);
  padding: 1px 6px;
  border-radius: 20px;
}

.banner-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.banner-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.banner-close-btn:hover {
  color: var(--ruby-500);
}

.banner-perks {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.perk-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.theme-light .perk-pill {
  background: #f1f5f9;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-primary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.banner-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.banner-later-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px 8px;
}

.banner-later-btn:hover {
  color: var(--text-main);
}

/* Floating Reopen Pill */
.pwa-reopen-pill {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--amber-primary), var(--iocl-saffron));
  color: #0b1329;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pwa-reopen-pill:hover {
  transform: translateY(-2px);
}

.pwa-reopen-pill.hidden {
  display: none !important;
}

/* iOS Safari & Chrome Multi-Browser Installation Modals */
.ios-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ios-modal-backdrop.hidden {
  display: none !important;
}

.ios-modal-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

body.theme-light .ios-modal-card {
  background: #ffffff;
}

.chrome-install-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
}

.chrome-install-close-btn:hover {
  color: var(--ruby-500);
}

.ios-app-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.ios-app-icon {
  border-radius: 14px;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-amber);
}

.ios-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
}

body.theme-light .ios-step-item {
  background: #f8fafc;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-primary);
  color: #0b1329;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.4;
}

.step-icon-badge, .chrome-dots-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  margin: 0 3px;
}

.pwa-guide-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.pwa-guide-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}

.pwa-guide-tab.active {
  background: var(--bg-card);
  color: var(--amber-light);
  border: 1px solid var(--border-card);
}

.chrome-dots-pointer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber-light);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

/* ==========================================================================
   SUPER ADMIN SECURITY SUITE & FULLSCREEN CONSOLE (from nitt)
   ========================================================================== */
.admin-auth-box {
  max-width: 440px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: var(--bg-card);
}

body.theme-light .admin-auth-box {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16), 0 0 30px rgba(245, 158, 11, 0.12);
}

.super-admin-auth-box {
  max-width: 440px;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  background: var(--bg-card);
}

body.theme-light .super-admin-auth-box {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16), 0 0 30px rgba(99, 102, 241, 0.1);
}

.auth-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-shield-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.auth-shield-badge.admin-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b1329;
}

.super-admin-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-input-wrap .form-control {
  padding-right: 40px;
}

.btn-pwd-eye {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
}

.btn-pwd-eye:hover {
  color: var(--text-main);
}

.auth-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--ruby-500);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-error-alert.hidden {
  display: none !important;
}

/* Fullscreen Super Admin Screen */
.super-admin-fullscreen-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  animation: adminScreenFadeIn 0.22s ease-out;
}

.super-admin-fullscreen-screen.hidden {
  display: none !important;
}

@keyframes adminScreenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.super-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  padding: 0.65rem 1.25rem;
}

body.theme-light .super-admin-topbar {
  background: #ffffff;
  border-color: #e2e8f0;
}

.super-admin-topbar-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.super-admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-admin-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-back:hover {
  background: var(--bg-card-hover);
  border-color: var(--amber-primary);
  transform: translateX(-2px);
}

.btn-admin-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: #a5b4fc !important;
  border: 1.5px solid rgba(99, 102, 241, 0.4) !important;
  background: rgba(99, 102, 241, 0.15) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-menu-toggle:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-1px);
}

.admin-menu-badge-count {
  background: #6366f1;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1;
}

.super-admin-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.super-admin-icon-halo-mini {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.super-admin-fullscreen-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.super-admin-fullscreen-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.super-admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.super-admin-fullscreen-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.super-admin-fullscreen-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--ruby-500);
  color: var(--ruby-500);
  transform: rotate(90deg);
}

/* Quick Horizontal Settings Tag Bar */
.super-admin-tag-bar {
  position: sticky;
  top: 57px;
  z-index: 45;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-light .super-admin-tag-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.tag-bar-scroll {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tag-bar-scroll::-webkit-scrollbar {
  display: none;
}

.tag-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tag-bar-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.tag-bar-btn.active {
  background: var(--amber-primary);
  color: #0b1329;
  border-color: var(--amber-primary);
  font-weight: 800;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Super Admin Drawer Overlay & Aside */
.super-admin-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100010;
  transition: opacity 0.3s ease;
}

.super-admin-drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.super-admin-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1.5px solid var(--border-subtle);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 100020;
  display: flex;
  flex-direction: column;
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.super-admin-drawer.active {
  left: 0;
}

.super-admin-drawer-header {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #172554;
  flex-shrink: 0;
}

.drawer-shield-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.drawer-header-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.drawer-header-subtitle {
  font-size: 0.72rem;
  opacity: 0.85;
}

.super-admin-drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.super-admin-drawer-search-box {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
}

.super-admin-drawer-search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 2rem 0.45rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
}

.super-admin-drawer-search-box .search-icon {
  position: absolute;
  left: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.drawer-search-clear {
  position: absolute;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

.super-admin-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.admin-drawer-nav-item:hover {
  background: var(--bg-card);
  border-color: var(--amber-primary);
  transform: translateX(3px);
}

.admin-drawer-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.super-admin-shield-gradient { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.celebration-burst-gradient { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.milestone-gradient { background: linear-gradient(135deg, #f59e0b, #d97706); }
.email-gradient { background: linear-gradient(135deg, #0284c7, #0369a1); }
.log-gradient { background: linear-gradient(135deg, #10b981, #059669); }
.tools-gradient { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.admin-drawer-item-content {
  flex: 1;
  min-width: 0;
}

.admin-drawer-tag-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}

.tag-root { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.tag-fx { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; }
.tag-popup { background: rgba(245, 158, 11, 0.2); color: var(--amber-light); }
.tag-email { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; }
.tag-audit { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.tag-tools { background: rgba(6, 182, 212, 0.2); color: #a5f3fc; }

.admin-drawer-item-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-drawer-item-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-drawer-jump-icon {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Super Admin Main Content Cards */
.super-admin-content-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-card-section {
  scroll-margin-top: 120px;
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  position: relative;
}

body.theme-light .admin-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.admin-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.admin-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Password Display Box */
.pwd-display-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.pwd-status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pwd-val-masked {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--amber-light);
  letter-spacing: 2px;
}

.btn-pwd-reveal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
  margin-left: auto;
}

.btn-pwd-reveal:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Switch Toggle Styling (from nitt) */
.switch-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #475569;
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider-round {
  background-color: #10b981;
}

input:checked + .slider-round:before {
  transform: translateX(22px);
}

.celebration-master-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.master-toggle-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.master-toggle-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.celebration-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.celebration-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

.group-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.group-icon-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.group-left strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
}

.group-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Audit Log List */
.audit-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.audit-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border-left: 3px solid var(--amber-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
}

.audit-item-time {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.7rem;
  white-space: nowrap;
}

.audit-item-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.audit-item-msg {
  color: var(--text-main);
  flex: 1;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--ruby-500);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: var(--ruby-500);
  color: #ffffff;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .app-header, .live-rates-bar, .main-nav, .app-footer, .section-actions, .nozzle-btn-row, .modal-backdrop {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .tab-pane {
    display: block !important;
  }
}
