/* E-Brielle Water Refilling Station Stylesheet */

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

:root {
    --bg-dark: #07192f;
    --bg-card: #0d233e;
    --bg-panel: #091d35;
    --bg-surface-elevated: #133357;
    --bg-input: #061527;
    --border-color: #1a4574;
    --border-subtle: #14355a;
    --border-glow: rgba(56, 189, 248, 0.35);
    
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --primary-glow: rgba(56, 189, 248, 0.35);
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    
    --secondary: #0ea5e9;
    --secondary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --warning: #f59e0b;
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --danger: #ef4444;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sky: #7dd3fc;
    --text-dark: #07192f;
    
    --shadow-main: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 4px 10px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.18);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(14, 165, 233, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.4);
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Gradient Effect */
.text-gradient-cyan {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-indigo {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Cards (Solid Surface, High Contrast, Crisp Borders) */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow-main), 0 0 25px rgba(56, 189, 248, 0.12);
}

/* Landing Page Styles */
.landing-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: #091d35;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.landing-header.scrolled {
    padding: 14px 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
    background: #07192f;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo i {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--secondary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-danger {
    background: var(--danger-gradient);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: var(--success-gradient);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Landing Hero Section */
.hero {
    padding: 160px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Water Refilling Container Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-backdrop {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
}

.visual-image {
    width: 280px;
    height: 280px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-main), 0 0 25px var(--primary-glow);
    animation: rotate-border 20s linear infinite;
}

.visual-image i {
    font-size: 7.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features Grid Section */
.features-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 35px 25px;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing Grid Section */
.pricing-section {
    padding: 80px 0;
    background-color: #080c17;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 35px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.pricing-card.featured {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: var(--shadow-main), 0 0 25px rgba(0, 242, 254, 0.1);
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.pricing-features li i {
    color: var(--primary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(4, 7, 15, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    background: #121a2c;
    border: 1px solid #1e2a44;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal p.desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.auth-back:hover {
    color: var(--primary);
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Forms UI */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

input, select, textarea {
    width: 100%;
    background-color: #080d1a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px 12px 42px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #0b1324;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

input:focus + i {
    color: var(--primary);
}

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

.form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}


.demo-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.demo-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

/* App Core Interface Styles */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-navbar {
    background: #0e1526;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: relative;
    z-index: 1100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.customer-module-menu,
.dashboard-module-menu {
    position: relative;
    margin-left: auto;
    margin-right: 24px;
}

.module-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    padding: 8px;
    background: #121a2c;
    border: 1px solid #222f46;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.module-menu[hidden],
.customer-module-panel[hidden],
.dashboard-overlay-panel[hidden] {
    display: none;
}

.module-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.module-menu button:hover {
    background: rgba(0, 242, 254, 0.08);
    color: var(--text-main);
}

.module-menu button i {
    width: 18px;
    color: var(--primary);
}

.customer-overlay-panel:not([hidden]) {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    width: min(90vw, 620px);
    max-height: calc(100vh - 128px);
}

.dashboard-overlay-panel:not([hidden]) {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    width: min(90vw, 900px);
    max-height: calc(100vh - 128px);
}

.customer-overlay-panel:not([hidden]) .dash-card,
.dashboard-overlay-panel:not([hidden]) {
    max-height: calc(100vh - 128px);
    overflow: hidden;
}

.module-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.module-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.navbar-user-info {
    text-align: right;
    min-width: 0;
}

.navbar-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-user-role {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-main {
    flex: 1;
    padding: 30px 0;
}

/* Dashboard Frameworks */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.dash-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.dash-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
}

/* Component Layout Blocks */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 992px) {
    .col-8, .col-4, .col-6, .col-3 { grid-column: span 12; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
}

.dash-card {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-wrap h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-wrap h3 i {
    color: var(--primary);
}

/* Customer Panel: Create Order Map Pinning & Tracking */
.map-container {
    width: 100%;
    height: 320px;
    min-height: 220px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #dfe7ef;
    position: relative;
    overflow: hidden;
    z-index: 5;
    display: block;
}

.map-help {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-main);
    pointer-events: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Water Types Grid Selector */
.water-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.water-option {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #080d1a;
}

.water-option:hover {
    border-color: rgba(0, 242, 254, 0.35);
    background: #0e1628;
}

.water-option.active {
    border-color: var(--primary);
    background: #102137;
}

.water-option i {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.water-option.active i {
    color: var(--primary);
}

.water-option div.name {
    font-size: 0.8rem;
    font-weight: 700;
}

.water-option div.price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.water-option.active div.price {
    color: var(--primary);
}

/* Stepper for Order Progress */
.stepper-wrap {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 25px 0;
    padding: 0 10px;
}

.stepper-line {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #1a253b;
    z-index: 1;
}

.stepper-progress {
    position: absolute;
    top: 15px;
    left: 40px;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 2;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-circle {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.step.completed .step-circle {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.step-label {
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
}

.step.active .step-label {
    color: var(--primary);
}

.step.completed .step-label {
    color: var(--text-main);
}

/* Orders List Layout */
.list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

.list-item {
    border: 1px solid var(--border-color);
    background: #0c1220;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: #141f35;
}

.list-item.selected {
    border-color: var(--primary);
    background: #102137;
}

.list-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Badges for Statuses */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-verified { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.35); }
.badge-refilling { background: rgba(0, 242, 254, 0.15); color: #38bdf8; border: 1px solid rgba(0, 242, 254, 0.35); }
.badge-refilled { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-dispatched { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); }
.badge-delivered { background: rgba(16, 185, 129, 0.18); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-completed { background: rgba(16, 185, 129, 0.22); color: #059669; border: 1px solid rgba(16, 185, 129, 0.45); }

/* QR and Receipts details */
.receipt-box {
    background: #080d1a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    margin-top: 15px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.receipt-row.total {
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    width: 2.2in;
    height: 2.2in;
    min-width: 200px;
    min-height: 200px;
    margin: 15px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 254, 0.15);
    border: 3px solid rgba(0, 242, 254, 0.3);
    transition: var(--transition);
}

.qr-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.25);
}

.qr-wrapper img, .qr-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 192px;
    max-height: 192px;
    display: block;
}

.qr-badge-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.qr-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
    transition: var(--transition);
    margin-top: 8px;
}

.qr-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    filter: brightness(1.1);
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    padding: 20px;
    text-align: left;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Leaflet Map Theme Adjustments for Dark Mode */
.leaflet-container {
    background-color: #dfe7ef !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px;
    display: block;
    position: relative;
}

.dark-leaflet-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.map-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker-pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary);
}

.map-marker-pulse::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: -6px;
    left: -6px;
    animation: marker-pulse 1.5s ease-out infinite;
}

@keyframes marker-pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Rider Tracking Details on Map */
.rider-schedule-panel {
    background: #121a2c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.rider-schedule-list {
    max-height: 260px;
    overflow-y: auto;
}

.rider-gps-status {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rider-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.1rem;
}

.rider-meta {
    flex: 1;
}

.rider-meta-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.rider-meta-status {
    font-size: 0.72rem;
    color: var(--primary);
}

/* Camera Scanning UI for Rider */
.scanner-viewport {
    width: 100%;
    max-width: 320px;
    height: 240px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px auto;
    border: 2px solid var(--border-color);
    position: relative;
}

#reader {
    width: 100% !important;
    height: 100% !important;
}

#reader video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Charts Wrapper */
.chart-container {
    position: relative;
    height: 240px;
    width: 100%;
}

/* Tables in Dashboards */
.app-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.app-table th, .app-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.app-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.app-table tr:last-child td {
    border-bottom: none;
}

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

/* General Layout Utilities */
.mb-3 { margin-bottom: 15px; }
.mt-3 { margin-top: 15px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-2 { gap: 10px; }
.align-center { align-items: center; }
.flex-1 { flex: 1; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ====================================================
   Universal Confirmation Dialog & Pop-up System
   ==================================================== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.confirm-modal-card {
    background: #121a2c;
    border: 1px solid #1e2a44;
    border-radius: 20px;
    padding: 32px 28px;
    width: min(90vw, 420px);
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    transform: scale(0.9) translateY(15px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.confirm-modal-overlay.active .confirm-modal-card {
    transform: scale(1) translateY(0);
}

.confirm-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.confirm-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.confirm-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.confirm-icon-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.confirm-icon-primary {
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.confirm-icon-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.confirm-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.confirm-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
}

.confirm-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn-group .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: #151f33;
    border: 1px solid #283754;
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-item.toast-success {
    border-left: 4px solid var(--success);
}
.toast-item.toast-success i {
    color: var(--success);
}

.toast-item.toast-error {
    border-left: 4px solid var(--danger);
}
.toast-item.toast-error i {
    color: var(--danger);
}

.toast-item.toast-info {
    border-left: 4px solid var(--primary);
}
.toast-item.toast-info i {
    color: var(--primary);
}

.toast-item.toast-warning {
    border-left: 4px solid var(--warning);
}
.toast-item.toast-warning i {
    color: var(--warning);
}

.toast-body {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-main);
}

/* ====================================================
   System Admin Dashboard Styles
   ==================================================== */
.badge-admin {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-staff {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-cashier {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-refiller {
    background: rgba(0, 242, 254, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-rider {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-customer {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-tab-btn.active {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

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

.admin-table-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-table-search-bar input {
    max-width: 280px;
}

.admin-table-search-bar select {
    max-width: 180px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-icon-primary:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--warning);
    color: var(--warning);
}

/* ====================================================
   Google Maps-Style Navigation Platform for Rider
   ==================================================== */
.gmap-platform-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: #0d1527;
}

/* Emerald In-App Navigation Top Turn Banner */
.gmap-nav-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
}

.gmap-nav-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.nav-turn-icon-wrap {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.nav-instruction-wrap {
    display: flex;
    flex-direction: column;
}

.nav-instruction-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.nav-instruction-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.btn-voice-toggle {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: var(--transition);
}

.btn-voice-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Map Containers */
.map-container {
    width: 100% !important;
    height: 240px;
    min-height: 200px;
    background: #e5e3df !important;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#orderMap, #regMap {
    height: 220px !important;
    min-height: 220px !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden;
}

/* Rider Map Viewport */
.rider-gmap-container {
    background: #e5e3df !important;
    height: 340px !important;
    min-height: 340px !important;
    width: 100% !important;
    border-radius: 0 !important;
    display: block !important;
    position: relative;
    z-index: 1;
}

.leaflet-container {
    background-color: #e5e3df !important;
    font-family: inherit;
    width: 100% !important;
    height: 100% !important;
}

.leaflet-tile {
    visibility: inherit !important;
}

/* Bottom Telemetry Bar */
.gmap-nav-bottom-bar {
    background: #0b1120;
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-telemetry-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-eta-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}

.nav-eta-badge .lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-eta-badge .val {
    font-size: 0.88rem;
    font-weight: 800;
}

.nav-speed-meter {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 800;
}

.nav-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-recenter {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-guide-toggle {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.25);
    transition: var(--transition);
}

.btn-guide-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

/* Mindanao Quick Address Presets */
.mindanao-presets-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
}

.mindanao-presets-container .preset-label {
    display: block;
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mindanao-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mindanao-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.mindanao-chip:hover {
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary);
    border-color: rgba(0, 242, 254, 0.35);
}

.mindanao-chip.active {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3);
}

/* Custom Google Maps style map markers */
.gmap-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.gmap-station-pin {
    width: 36px;
    height: 36px;
    background: #1a73e8;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 3px #ffffff;
}

.gmap-customer-pin {
    position: relative;
    width: 36px;
    height: 42px;
    color: #ea4335;
    font-size: 2.2rem;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.pin-pulse {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 6px;
    background: rgba(234, 67, 53, 0.4);
    border-radius: 50%;
    animation: pinShadowPulse 1.8s infinite ease-out;
}

@keyframes pinShadowPulse {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(2.2); opacity: 0; }
}

.gmap-rider-nav-marker {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}

.rider-icon-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff9f43 0%, #ff5252 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 0 0 3px #ffffff, 0 6px 16px rgba(0, 0, 0, 0.45);
    z-index: 3;
    position: relative;
}

.rider-headlight-cone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    background: radial-gradient(circle at 50% 10%, rgba(255, 230, 0, 0.45) 0%, rgba(0, 242, 254, 0.15) 50%, transparent 80%);
    clip-path: polygon(50% 50%, 15% 0%, 85% 0%);
    pointer-events: none;
    z-index: 1;
    transform-origin: 50% 50%;
    transition: transform 0.4s ease-out;
}

.rider-beam {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 159, 67, 0.3);
    animation: radarWave 2s infinite ease-out;
    z-index: 2;
}

@keyframes radarWave {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}

.badge-3d-mode {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #00f2fe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.btn-xs.active {
    background: var(--primary-gradient) !important;
    color: var(--bg-dark) !important;
    font-weight: 800 !important;
    border-color: transparent !important;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4) !important;
}

.rider-3d-toolbar button, .customer-3d-toolbar button {
    font-size: 0.72rem;
    font-weight: 700;
}

.live-dot-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: liveDotPulse 1.2s infinite ease-in-out;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.rider-status-delivered-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

/* ====================================================
   Customer Real-Time Status Milestone Tracker Styles
   ==================================================== */
.customer-status-highlight-card {
    margin: 20px 0 10px 0;
}

.status-highlight-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.status-highlight-inner i {
    font-size: 2rem;
    flex-shrink: 0;
}

.status-highlight-inner.pending {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
}
.status-highlight-inner.pending i { color: var(--warning); }

.status-highlight-inner.refilling {
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.25);
}
.status-highlight-inner.refilling i { color: var(--primary); }

.status-highlight-inner.refilled {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.25);
}
.status-highlight-inner.refilled i { color: #818cf8; }

.status-highlight-inner.dispatched {
    background: rgba(255, 159, 67, 0.08);
    border-color: rgba(255, 159, 67, 0.3);
    box-shadow: 0 0 20px rgba(255, 159, 67, 0.1);
}
.status-highlight-inner.dispatched i { color: #ff9f43; }

.status-highlight-inner.delivered {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}
.status-highlight-inner.delivered i { color: var(--success); }

.status-highlight-inner.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.status-highlight-inner.completed i { color: var(--success); }

.status-highlight-inner .status-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.status-highlight-inner .status-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.customer-rider-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.customer-rider-card .rider-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.customer-rider-card .rider-meta {
    flex: 1;
}

.customer-rider-card .rider-meta-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.customer-rider-card .rider-meta-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-price-pill {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ====================================================
   Dedicated Delivery Rider QR Scanner Pop-Up Modal
   ==================================================== */
.rider-qr-modal-card {
    max-width: 480px !important;
    padding: 24px 22px !important;
}

.rider-qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.rider-qr-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rider-qr-order-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.scanner-viewport-wrap {
    position: relative;
}

.scanner-viewport {
    width: 100%;
    max-width: 360px;
    height: 240px;
    background: #050811;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    position: relative;
}

.scanner-laser-line {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary), 0 0 20px var(--primary);
    animation: scanLaserLine 2.2s infinite ease-in-out;
    z-index: 5;
    pointer-events: none;
}

@keyframes scanLaserLine {
    0% { top: 10%; opacity: 0.9; }
    50% { top: 90%; opacity: 1; }
    100% { top: 10%; opacity: 0.9; }
}

.scanner-corner-frame {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--primary);
    border-style: solid;
    z-index: 4;
    pointer-events: none;
}

.scanner-corner-frame.top-left {
    top: 15px;
    left: 15px;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.scanner-corner-frame.top-right {
    top: 15px;
    right: 15px;
    border-width: 3px 3px 0 0;
    border-radius: 0 4px 0 0;
}

.scanner-corner-frame.bottom-left {
    bottom: 15px;
    left: 15px;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 4px;
}

.scanner-corner-frame.bottom-right {
    bottom: 15px;
    right: 15px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

.manual-code-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
}

/* ====================================================
   Turn-by-Turn Road & Distance Guide Component
   ==================================================== */
.rider-road-guide-card {
    background: #121a2c;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-top: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.road-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.road-guide-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.road-guide-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.2px;
}

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

.road-guide-total-badge {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.road-steps-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: max-height 0.3s ease;
}

.rider-road-guide-card.collapsed .road-steps-list {
    display: none;
}

.road-step-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.road-step-item.active {
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.road-step-item.completed {
    opacity: 0.68;
}

.road-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 28px;
    flex-shrink: 0;
}

.road-step-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition);
}

.road-step-item.active .road-step-bullet {
    background: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.8), 0 0 20px rgba(96, 165, 250, 0.4);
    animation: bulletPulse 2s infinite ease-in-out;
}

@keyframes bulletPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(37, 99, 235, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 18px rgba(96, 165, 250, 0.9); }
}

.road-step-item.completed .road-step-bullet {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.road-step-connector {
    width: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    margin: 4px 0;
    min-height: 24px;
    z-index: 1;
}

.road-step-item.completed .road-step-connector {
    background: rgba(16, 185, 129, 0.4);
}

.road-step-item.active .road-step-connector {
    background: linear-gradient(180deg, #2563eb 0%, rgba(255, 255, 255, 0.12) 100%);
}

.road-step-body {
    flex: 1;
    min-width: 0;
}

.road-step-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.road-step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.road-step-item.active .road-step-title {
    color: #60a5fa;
    font-weight: 800;
}

.road-step-dist-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.road-step-dist-badge.active-dist {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
    font-weight: 800;
}

.road-step-road-name {
    font-size: 0.76rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.road-step-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ====================================================
   Cross-Device Responsive System (Phones, Tablets, Desktops)
   ==================================================== */

/* Medium Devices: Tablets & Small Desktops (<= 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .navbar-wrap {
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-user {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-module-menu {
        margin-left: 0;
        margin-right: 0;
    }

    .dash-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .col-12, .col-8, .col-6, .col-4, .col-3 {
        grid-column: span 1 / -1;
    }

    .rider-gmap-container {
        height: 300px !important;
        min-height: 300px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Small Devices: Mobile Phones & Phablets (<= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .app-navbar {
        padding: 8px 0;
    }

    .navbar-wrap {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .customer-module-menu, .dashboard-module-menu {
        margin-right: 0;
    }

    .module-menu-toggle {
        justify-content: center;
    }

    .module-menu {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .navbar-user {
        justify-content: flex-end;
        width: auto;
        gap: 6px;
    }

    .nav-btn-secondary-hide-mobile {
        display: none !important;
    }

    .navbar-user-info {
        display: none;
    }

    .navbar-user .btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .navbar-user-name,
    .navbar-user-role {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-card {
        padding: 16px 12px;
    }

    .gmap-nav-banner {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .gmap-nav-banner-left {
        width: 100%;
        gap: 10px;
    }

    .gmap-nav-banner-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .rider-schedule-panel {
        padding: 14px 12px;
    }

    .nav-instruction-title {
        font-size: 0.95rem;
    }

    .nav-turn-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }

    .gmap-nav-bottom-bar {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-telemetry-left {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .nav-actions-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .nav-actions-right .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .water-selector-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .presets-chips-row {
        gap: 6px;
    }

    .preset-chip {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .btn-lg {
        width: 100%;
        padding: 12px 18px;
    }

    .modal-content {
        padding: 24px 18px;
        max-width: 95%;
        margin: 15px auto;
    }

    .rider-qr-modal-card {
        padding: 18px 14px !important;
        max-width: 95% !important;
    }

    .scanner-viewport {
        max-width: 100%;
        height: 200px;
    }

    .road-step-item {
        padding: 8px 6px;
        gap: 10px;
    }

    .road-step-title {
        font-size: 0.82rem;
    }

    .rider-gps-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rider-gps-status > div:last-child {
        width: 100%;
    }

    .rider-gps-status .btn {
        width: 100%;
    }

    .rider-schedule-list .list-item {
        padding: 12px 10px;
        gap: 8px;
    }

    .rider-schedule-list .list-item-title {
        flex-wrap: wrap;
        font-size: 0.82rem;
    }

    .rider-schedule-list .list-item-desc {
        font-size: 0.72rem;
    }
}

/* Extra Small Devices: Compact Smart Phones (<= 480px) */
@media (max-width: 480px) {
    .rider-gmap-container {
        height: 260px !important;
        min-height: 260px !important;
    }

    .logo {
        font-size: 1.1rem;
        width: 100%;
    }

    .navbar-user {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .navbar-user-info {
        width: 100%;
        flex: 1 1 100%;
    }

    .navbar-user .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-eta-badge .val {
        font-size: 0.78rem;
    }

    .nav-speed-meter {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .road-step-bullet {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
    }

    .road-step-dist-badge {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
}

/* ----------------------------------------------------
   SYSTEM POLICIES & GUIDELINES STYLES
   ---------------------------------------------------- */
.auth-policy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.btn-auth-policy {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-auth-policy:hover {
    color: #fff;
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-1px);
}

.auth-policy-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.auth-link-sm {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-link-sm:hover {
    text-decoration: underline;
    color: #fff;
}

/* Policy Viewer Modal */
.policy-modal-card {
    max-width: 760px !important;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.policy-modal-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.policy-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.policy-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.policy-role-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.policy-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.7;
}

.policy-markdown h1, .policy-markdown h2, .policy-markdown h3, .policy-markdown h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #f3f4f6;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.policy-markdown h3 {
    font-size: 1.15rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.policy-markdown ul {
    margin: 12px 0 20px 20px;
    padding-left: 10px;
}

.policy-markdown li {
    margin-bottom: 8px;
    color: #d1d5db;
}

.policy-markdown strong {
    color: #fff;
}

.policy-modal-footer {
    padding: 16px 28px;
    background: #0d1424;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----------------------------------------------------
   EMAIL VERIFICATION OTP & SECURITY MODALS
   ---------------------------------------------------- */
.email-verify-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.12);
    border: 2px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
    animation: float 3s ease-in-out infinite;
}

.otp-input-wrap {
    display: flex;
    justify-content: center;
    margin: 15px 0 5px 0;
}

.otp-input-box {
    width: 220px !important;
    height: 58px;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    letter-spacing: 10px !important;
    color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 2px solid rgba(0, 242, 254, 0.4) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    transition: var(--transition);
}

.otp-input-box:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3) !important;
    outline: none;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-text-link:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

/* ----------------------------------------------------
   ADMIN SYSTEM POLICIES MANAGER
   ---------------------------------------------------- */
.admin-policy-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-policy-pill-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.admin-policy-pill-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-policy-pill-btn.active {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.policy-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.policy-editor-textarea {
    width: 100%;
    min-height: 380px;
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #f3f4f6;
    resize: vertical;
}

.policy-editor-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.policy-live-preview {
    min-height: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #0d1424;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 20px;
}



/* Customer GPS Detect Button & Address Search */
.btn-detect-gps {
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #00f2fe;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detect-gps:hover {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.address-search-wrapper {
    position: relative;
}

.btn-search-pin {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    color: var(--bg-dark);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-search-pin:hover {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.pin-status-pill {
    font-size: 0.68rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* Customer Live Tracking Card */
.customer-live-tracking-card {
    background: var(--bg-card);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.customer-live-map-viewport {
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cust-telemetry-item {
    display: flex;
    flex-direction: column;
}

.cust-telemetry-item .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cust-telemetry-item .val {
    font-size: 1rem;
    font-weight: 800;
}

.text-cyan {
    color: #38bdf8 !important;
}



/* ====================================================
   ORDER MODE SELECTOR TABS & CART / BUNDLE SYSTEM
   ==================================================== */
.order-mode-tabs {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
}

.mode-tab-btn, .order-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mode-tab-btn:hover, .order-mode-btn:hover {
    color: var(--text-main);
    background: rgba(56, 189, 248, 0.08);
}

.mode-tab-btn.active, .order-mode-btn.active {
    background: var(--primary-gradient);
    color: #0b1528 !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
    font-weight: 800;
}

.mode-tab-btn.active i, .order-mode-btn.active i {
    color: #0b1528 !important;
}

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
}

/* Bundles Grid & Cards */
.bundles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.bundle-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.bundle-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.bundle-card.selected {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.bundle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bundle-badge.sky {
    background: var(--primary-gradient);
    color: var(--text-dark);
}

.bundle-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    padding-right: 70px;
}

.bundle-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-sky);
    margin-bottom: 8px;
}

.bundle-gallon-pill {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bundle-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.bundle-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.bundle-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bundle-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.bundle-orig-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Custom Cart Builder */
.cart-builder-container {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.cart-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.cart-items-table th, .cart-items-table td {
    padding: 8px 6px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-items-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 4px;
}

.cart-qty-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-qty-btn:hover {
    background: rgba(56, 189, 248, 0.2);
}

.cart-qty-val {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 18px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.cart-summary-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-total-gallons {
    font-size: 0.8rem;
    color: var(--text-sky);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-total-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

/* Item breakdown badge on order details & dispatch table */
.order-bundle-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.order-items-breakdown {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.order-items-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

/* ==========================================================================
   UNIVERSAL DEVICE RESPONSIVENESS & MOBILE-FIRST APPLICATION SYSTEM
   ========================================================================== */

/* 1. Universal Touch & Accessibility Enhancements */
button, input, select, textarea, a, .mindanao-chip, .order-mode-btn, .bundle-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 2. Universal Quick Actions & Command Hub Bar (Shown on Small Devices Only) */
.quick-actions-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: var(--shadow-main);
}
.quick-actions-bar::-webkit-scrollbar {
    display: none;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.quick-action-btn i {
    color: var(--primary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.quick-action-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.quick-action-btn.active {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.quick-action-btn.active i {
    color: var(--bg-dark);
}
.quick-action-btn .badge-counter {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 800;
    margin-left: 2px;
}

/* 3. Universal Module Modal Drawers & Large Modal System */
.modal-dialog-large {
    max-width: 820px !important;
    width: min(94vw, 820px) !important;
}
.modal-dialog-xl {
    max-width: 1040px !important;
    width: min(96vw, 1040px) !important;
}
.modal-dialog-medium {
    max-width: 600px !important;
    width: min(92vw, 600px) !important;
}

.modal-header-styled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.modal-header-styled h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-header-styled h3 i {
    color: var(--primary);
}

.modal-scrollable-body {
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    padding-right: 4px;
}

/* 4. Native-Style Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(13, 35, 62, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 1050;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    min-width: 58px;
}
.mobile-nav-btn i {
    font-size: 1.15rem;
    transition: var(--transition);
}
.mobile-nav-btn.active, .mobile-nav-btn:active {
    color: var(--primary);
}
.mobile-nav-btn.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}
.mobile-nav-btn .nav-dot {
    position: absolute;
    top: 4px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
}

/* 5. Mobile Floating Action Button (FAB) */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 78px;
    right: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
    border: none;
    cursor: pointer;
    z-index: 1040;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: var(--transition);
}
.mobile-fab:active {
    transform: scale(0.92);
}

/* 6. Landing Page Mobile Hamburger & Drawer */
.landing-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.15rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.landing-mobile-toggle:active {
    background: rgba(255, 255, 255, 0.08);
}

.landing-drawer-card {
    max-width: 360px !important;
    width: 90vw !important;
}

.landing-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}
.landing-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
}
.landing-drawer-item:hover, .landing-drawer-item:active {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}
.landing-drawer-item i {
    width: 20px;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 7. Printable Digital Receipt Card */
.printable-receipt-card {
    background: #ffffff;
    color: #111827;
    border-radius: 16px;
    padding: 24px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-body);
}
.receipt-header-brand {
    text-align: center;
    border-bottom: 2px dashed #d1d5db;
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.receipt-header-brand h2 {
    color: #0284c7;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}
.receipt-header-brand p {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 3px;
}
.receipt-paper-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
    color: #374151;
}
.receipt-paper-row strong {
    color: #111827;
}
.receipt-paper-row.total-payable {
    border-top: 2px dashed #d1d5db;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0284c7;
}

/* 8. Comprehensive Responsive Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    body {
        padding-bottom: 74px; /* Space for mobile bottom bar */
    }
    .app-wrapper {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    .app-main {
        padding: 12px 0 28px 0;
        overflow-x: hidden;
    }
    .landing-header .nav-links {
        display: none;
    }
    .landing-mobile-toggle {
        display: flex;
    }
    .mobile-bottom-nav {
        display: block;
    }
    .mobile-fab {
        display: flex;
    }
    .navbar-user-info {
        display: none; /* Hide verbose text on mobile navbar */
    }
    .navbar-user {
        gap: 6px;
    }
    .navbar-user .btn-sm {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    .logo {
        font-size: 1.15rem;
    }
    .logo i {
        font-size: 1.3rem;
    }

    /* Stack layout columns cleanly */
    .dash-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 14px !important;
        box-sizing: border-box !important;
    }
    .col-12, .col-8, .col-6, .col-4, .col-3, .customer-module-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-column: span 12 !important;
        box-sizing: border-box !important;
    }

    /* Purpose-focused single view on small devices */
    .customer-module-panel.mobile-hidden {
        display: none !important;
    }
    .customer-module-panel.mobile-active {
        display: block !important;
    }

    .dash-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 12px !important;
        overflow-x: hidden !important;
    }

    /* Quick Actions Bar - Touch Scrollable */
    .quick-actions-bar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        margin-bottom: 14px !important;
        gap: 6px !important;
    }
    .quick-action-btn {
        padding: 7px 11px !important;
        font-size: 0.78rem !important;
    }

    /* Customer Mindanao Quick Preset Chips */
    .mindanao-presets-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .mindanao-presets-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .mindanao-chip {
        flex: 1 1 calc(50% - 6px) !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.74rem !important;
        padding: 6px 8px !important;
    }

    /* Customer Order Receipt & QR Badge Stacking */
    .receipt-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 10px !important;
    }
    .qr-wrapper {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .qr-download-btn {
        width: 100% !important;
        max-width: 260px !important;
        font-size: 0.78rem !important;
        padding: 8px 12px !important;
    }

    /* Order Mode Tabs */
    .order-mode-tabs {
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 3px !important;
        padding: 3px !important;
    }
    .mode-tab-btn, .order-mode-btn {
        font-size: 0.76rem !important;
        padding: 8px 6px !important;
    }

    /* Grids & Cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .stat-box {
        padding: 12px;
    }
    .stat-val {
        font-size: 1.4rem;
    }
    .stat-lbl {
        font-size: 0.7rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        padding: 10px 12px 10px 36px;
    }
    .btn {
        min-height: 42px; /* Touch target */
    }

    /* Modals convert into smooth bottom sheets / mobile cards */
    .modal {
        align-items: flex-end;
    }
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 22px 16px;
        overflow-y: auto;
        transform: translateY(100%);
    }
    .modal.active .modal-content {
        transform: translateY(0);
    }
    .modal-close {
        top: 14px;
        right: 14px;
        font-size: 1.3rem;
        padding: 6px;
    }

    /* Landing Hero */
    .hero {
        padding: 100px 0 50px 0;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.1rem;
        letter-spacing: -0.5px;
    }
    .hero-text p {
        font-size: 0.92rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .visual-image {
        width: 180px;
        height: 180px;
    }
    .visual-image i {
        font-size: 4.5rem;
    }
    .visual-backdrop {
        width: 210px;
        height: 210px;
    }

    /* Admin Tabs */
    .admin-nav-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 6px;
    }
    .admin-tab-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Tables */
    .app-table th, .app-table td {
        padding: 9px 7px;
        font-size: 0.76rem;
    }
    .app-table-wrapper {
        box-shadow: inset -8px 0 8px -8px rgba(0,0,0,0.5);
    }

    /* Stepper */
    .stepper-wrap {
        padding: 4px 0 !important;
        margin: 12px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .step-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    .step-label {
        font-size: 0.56rem !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .quick-action-btn {
        padding: 6px 10px !important;
        font-size: 0.74rem !important;
    }
    .water-selector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .mindanao-chip {
        flex: 1 1 100% !important;
    }
}

/* Desktop screen overrides (> 768px): All desktop panels stay visible side-by-side, quick actions bar is hidden */
@media (min-width: 769px) {
    .quick-actions-bar {
        display: none !important;
    }
    .customer-module-panel {
        display: block !important;
    }
    .customer-module-panel.mobile-hidden {
        display: block !important;
    }
}

/* ==========================================================================
   Google Maps Platform Places Autocomplete Styling
   ========================================================================== */
.pac-container {
    z-index: 100005 !important;
    background-color: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15)) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55) !important;
    font-family: inherit !important;
    margin-top: 6px !important;
    overflow: hidden !important;
}
.pac-item {
    padding: 10px 14px !important;
    color: var(--text-color, #e2e8f0) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    cursor: pointer !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    transition: background 0.15s ease !important;
}
.pac-item:first-child {
    border-top: none !important;
}
.pac-item:hover, .pac-item-selected {
    background-color: rgba(0, 242, 254, 0.15) !important;
}
.pac-item-query {
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding-right: 4px !important;
}
.pac-matched {
    color: var(--primary, #00f2fe) !important;
    font-weight: 700 !important;
}
.pac-icon {
    margin-top: 4px !important;
    filter: invert(0.8) hue-rotate(160deg);
}





