/* ==========================================================================
   Eco Kash - Comprehensive Design System & Stylesheet (v2.1)
   Optimized for High-FPS Rendering & Mobile/Desktop Responsiveness
   ========================================================================== */

:root {
    /* Brand Color Palette */
    --primary: #059669;          /* Radiant Emerald */
    --primary-light: #10b981;    /* Vibrant Mint Green */
    --primary-dark: #064e3b;     /* Deep Forest Pine */
    --primary-deep: #022c22;     /* Midnight Jungle */
    
    --secondary: #06b6d4;        /* Electric Cyan */
    --secondary-light: #67e8f9;
    
    --accent-amber: #f59e0b;     /* Solar Gold */
    --accent-amber-light: #fbbf24;
    
    --accent-purple: #8b5cf6;    /* Hardware Purple */
    --accent-purple-light: #a78bfa;
    
    --danger: #ef4444;           /* Rejection Crimson */
    --danger-light: #fca5a5;
    --danger-dark: #991b1b;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    
    /* Background & Surfaces */
    --bg-page: #f2f8f4;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-elevated: rgba(255, 255, 255, 0.95);
    --bg-kiosk: #0f172a;
    --bg-kiosk-screen: #0a0f1d;
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;
    
    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.65);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-kiosk: #1e293b;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(6, 78, 59, 0.08);
    --shadow-lg: 0 16px 40px rgba(6, 78, 59, 0.12);
    --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.3);
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-page);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* ==========================================================================
   Ambient Eco Background
   ========================================================================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: 
        radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        var(--bg-main);
    transform: translateZ(0);
}

/* Hide continuous floating orbs and falling leaves that cause severe GPU compositor lag */
.glow-orb,
.leaf {
    display: none !important;
}

/* ==========================================================================
   App Layout
   ========================================================================== */
#app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

/* High-Performance Surface Card - Replaces laggy multi-layer backdrop-filter with crisp shadow */
.glass-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    padding: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    contain: content;
}

.glass-card:hover {
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Main Top Header Navigation
   ========================================================================== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transform: translateZ(0);
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon-wrap {
    height: 48px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.official-logo-wrap {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 62px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.25));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .brand-logo-img {
    transform: scale(1.08) translateY(-1px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-main);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* Desktop Nav Links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px;
}
.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.62rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 1.08rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-dark);
}

.nav-link:hover i {
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary-dark);
    color: white;
}

.nav-link.active i {
    color: var(--primary-light);
}

.pulse-chip {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    background: #ef4444;
    color: white;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Corner Hamburger Menu Toggle Button */
.corner-menu-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.55rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.corner-menu-toggle-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--primary-light);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.corner-menu-toggle-btn:active {
    transform: scale(0.94);
}
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-action-btn:hover {
    background: var(--bg-page);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.cf-edge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    background: rgba(243, 128, 32, 0.08);
    border: 1px solid rgba(243, 128, 32, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
    cursor: pointer;
    white-space: nowrap !important;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cf-edge-status-pill:hover {
    background: rgba(243, 128, 32, 0.16);
    transform: translateY(-1px);
}

.cf-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

.cf-label {
    white-space: nowrap !important;
}

.pulse-emerald {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bin-indicator-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.admin-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #7c3aed;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.points-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.points-badge:hover {
    transform: scale(1.05);
}

.coin-icon { font-size: 1.2rem; }
.currency-label { font-size: 0.75rem; opacity: 0.9; }

.user-header-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: white;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.avatar-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.avatar-ring.admin-ring {
    background: #7c3aed;
}

.logout-btn:hover {
    color: var(--danger);
    border-color: var(--danger-light);
}

/* ==========================================================================
   Main Viewport & Views
   ========================================================================== */
#main-content {
    flex: 1;
    padding: 1.75rem;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.view {
    display: none;
    animation: viewFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view.active {
    display: block;
}

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

.view-header-strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header-strip h2 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.view-header-strip .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Typography & Helpers */
h1, h2, h3, h4, h5 {
    font-family: var(--font-main);
    line-height: 1.25;
}

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-amber { color: var(--accent-amber); }
.text-danger { color: var(--danger); }
.text-info { color: var(--secondary); }
.text-emerald { color: var(--primary); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.75rem; }
.hidden { display: none !important; }

/* Buttons System */
button {
    font-family: var(--font-main);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(6, 78, 59, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-page);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.06);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

.chip-btn {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn.active, .chip-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.admin-chip {
    border-color: #8b5cf6;
    color: #7c3aed;
}

.admin-chip:hover, .admin-chip.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

/* Mobile Login Header (Active on Mobile / Android APK) */
.mobile-login-header {
    display: none;
}

/* ==========================================================================
   VIEW 1: Login View
   ========================================================================== */
.login-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1050px;
    margin: 3rem auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.8rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    margin-bottom: 1.5rem;
}

/* Official Full Brand Hero Logo Card */
.official-hero-logo-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1.5px rgba(16, 185, 129, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.6rem;
    max-width: 440px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.official-hero-logo-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 48px rgba(16, 185, 129, 0.2), 0 0 0 1.5px rgba(16, 185, 129, 0.45);
}

.official-hero-logo-img {
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

/* 4 Official Features Grid Aligned with Logo */
.official-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 480px;
}

@media (max-width: 480px) {
    .official-features-grid {
        grid-template-columns: 1fr;
    }
}

.official-feature-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.official-feature-box:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.official-feature-box strong {
    font-size: 0.86rem;
    color: #0f172a;
    font-weight: 700;
}

.official-feature-box span {
    font-size: 0.73rem;
    color: #475569;
    line-height: 1.35;
}

.of-icon-pin i { color: #e11d48; font-size: 1.35rem; }
.of-icon-task i { color: #2563eb; font-size: 1.35rem; }
.of-icon-reward i { color: #d97706; font-size: 1.35rem; }
.of-icon-green i { color: #16a34a; font-size: 1.35rem; }

.brand-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.brand-hero h1 span { color: var(--primary-light); }
.hero-tagline { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.features-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.highlight-item i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.login-form-card { padding: 2.5rem; }

.card-header-compact h2 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.card-header-compact p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.8rem; }

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }

.input-field-wrap {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.input-field-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.input-field-wrap input, .input-field-wrap select, .input-field-wrap textarea {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    color: var(--text-primary);
    background: transparent;
}

.quick-demo-accounts {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   SIMPLIFIED LOGIN & AUTH STYLES
   ========================================================================== */
.auth-card-heading {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-card-heading h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-card-heading p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.clean-fast-demo-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.fast-demo-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.fast-demo-pill {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fast-demo-pill:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.fast-demo-admin {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
}

.fast-demo-admin:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #d97706;
    color: #92400e;
}

.auth-switch-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}

.auth-switch-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.auth-switch-link:hover {
    color: var(--primary-dark);
}

.auth-security-trust-card {
    margin-top: 1.25rem;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.sec-trust-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.sec-trust-header i {
    font-size: 1.15rem;
}

.sec-trust-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.35;
}

/* ==========================================================================
   SUPER.MONEY FINTECH HOMEPAGE STYLES
   ========================================================================== */
.super-hero-card {
    position: relative;
    background: linear-gradient(140deg, #064e3b 0%, #065f46 45%, #047857 100%);
    border-radius: 24px;
    padding: 2rem 2.2rem;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(6, 78, 59, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    margin-bottom: 1.8rem;
}

.super-hero-bg-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
    pointer-events: none;
}

.super-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.super-greeting {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a7f3d0;
    font-weight: 700;
}

.super-user-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.super-user-row h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.super-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.super-district-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.25);
    color: #d1fae5;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.super-balance-section {
    margin-bottom: 1.8rem;
}

.super-balance-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6ee7b7;
    display: block;
    margin-bottom: 0.4rem;
}

.super-balance-display h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.super-balance-display h1 small {
    font-size: 1.4rem;
    font-weight: 600;
    color: #a7f3d0;
}

.super-balance-sub {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.super-inr-equiv {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
}

.super-growth-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 4 Super Quick Action Pill Buttons */
.super-quick-actions-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .super-quick-actions-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.super-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.super-action-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.super-action-btn.super-action-primary {
    background: #10b981;
    color: #064e3b;
    font-weight: 800;
    border-color: #34d399;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.super-action-btn.super-action-primary:hover {
    background: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.super-action-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

/* Symmetrical 3-Card Metrics Row */
.super-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
    .super-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.super-metric-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.super-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sm-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sm-icon-wrap.emerald { background: rgba(16, 185, 129, 0.14); color: var(--primary); }
.sm-icon-wrap.mint { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.sm-icon-wrap.cyan { background: rgba(59, 130, 246, 0.14); color: #2563eb; }

.sm-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.sm-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.15rem 0;
    line-height: 1.15;
}

.sm-value small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.sm-sub {
    font-size: 0.74rem;
    font-weight: 600;
    display: block;
}

/* Balanced 2-Widget Grid (Radar & Quest) */
.super-widgets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

@media (max-width: 768px) {
    .super-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.super-widget-card {
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sw-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.sw-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sw-title i {
    font-size: 1.6rem;
}

.sw-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sw-title p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.sw-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-bin-info, .sw-quest-info {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem;
}

.sw-bin-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.sw-bin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sw-bin-main h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sw-gauge-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.4rem 0;
}

.sw-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.sw-gauge-meta, .sw-quest-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sw-footer-btn-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.6rem;
}

/* Super Quick Services Grid (4 Symmetric Cards) */
.super-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.super-section-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.super-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.8rem;
}

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

.super-service-tile {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.super-service-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.sst-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.sst-blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.sst-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.sst-purple { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.sst-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }

.super-service-tile strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.super-service-tile span {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Super Passbook Card */
.super-passbook-card {
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.8rem;
}

.super-footer-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 768px) {
    .super-footer-trust-grid {
        grid-template-columns: 1fr;
    }
}

.super-security-trust-strip {
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.05), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.sst-sec-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sst-sec-info strong {
    font-size: 0.88rem;
    color: var(--primary-dark);
    display: block;
}

.sst-sec-info p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    line-height: 1.35;
}

/* ==========================================================================
   VIEW 2: Dashboard / Citizen Impact
   ========================================================================== */
.welcome-text .greeting-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-tier {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
}

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

.metric-icon-wrap.emerald { background: rgba(16, 185, 129, 0.15); color: var(--primary); }
.metric-icon-wrap.mint { background: rgba(52, 211, 153, 0.18); color: #059669; }
.metric-icon-wrap.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.metric-icon-wrap.cyan { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }

.metric-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; display: block; }
.metric-value { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin: 0.1rem 0; line-height: 1.2; }
.metric-value small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.metric-sub { font-size: 0.72rem; font-weight: 600; display: block; }
.metric-sub a { color: var(--accent-amber); text-decoration: none; }

.dashboard-content-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.feature-banner {
    position: relative;
    background: linear-gradient(135deg, #064e3b, #047857);
    color: white;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.feature-banner:hover { transform: translateY(-3px); }

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.banner-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.banner-content p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1rem; max-width: 85%; }

.step-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-icon-round {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: var(--primary-dark);
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Challenge Card */
.challenge-card { margin-bottom: 1.5rem; }
.card-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.challenge-title { display: flex; align-items: center; gap: 0.75rem; }
.challenge-title i { font-size: 1.7rem; color: var(--primary); }
.challenge-title h4 { font-size: 1.05rem; color: var(--primary-dark); }
.challenge-title p { font-size: 0.8rem; color: var(--text-muted); }

.countdown-badge {
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.progress-container { margin: 1rem 0; }

.progress-bar-track {
    width: 100%;
    height: 10px;
    border-radius: var(--radius-full);
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.emerald-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-bar-fill.amber-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar-fill.cyan-fill { background: linear-gradient(90deg, #06b6d4, #67e8f9); }

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.participant-avatars {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.avatar-stack { display: flex; }
.mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    margin-left: -6px;
}
.mini-avatar:first-child { margin-left: 0; }
.participant-note { font-size: 0.8rem; color: var(--text-muted); }

.activity-feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease;
}

.activity-item:hover { transform: translateX(4px); }
.act-left { display: flex; align-items: center; gap: 0.8rem; }

.act-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.act-icon.deposit { background: rgba(16, 185, 129, 0.12); color: var(--primary); }
.act-icon.redeem { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.act-icon.bonus { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

.act-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.act-time { font-size: 0.75rem; color: var(--text-muted); }
.act-points { font-family: var(--font-main); font-weight: 800; font-size: 1rem; }
.act-points.plus { color: var(--primary); }
.act-points.minus { color: var(--danger); }

/* Right Column Widgets */
.bin-status-widget { margin-bottom: 1.5rem; }
.status-tag { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); }
.status-tag.status-online { background: rgba(16, 185, 129, 0.15); color: var(--primary); }

.bin-widget-body { display: flex; flex-direction: column; gap: 1rem; }
.bin-graphic-preview { display: flex; gap: 1rem; align-items: center; }

.mini-bin-model {
    width: 60px;
    height: 75px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #1e293b, #0f172a);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bin-lid-top {
    position: absolute;
    top: 0; left: -4px; width: 68px; height: 10px;
    border-radius: 4px; background: var(--primary-light);
}

.bin-sensor-eye {
    position: absolute;
    top: 20px; left: 24px; width: 12px; height: 12px;
    border-radius: 50%; background: #06b6d4; box-shadow: 0 0 8px #06b6d4;
}

.bin-chute {
    position: absolute;
    bottom: 12px; left: 12px; width: 36px; height: 24px;
    border-radius: 4px; background: #334155;
}

.bin-quick-stats h5 { font-size: 1rem; color: var(--primary-dark); }
.bin-quick-stats p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.capacity-gauge {
    width: 140px; height: 6px; background: #e2e8f0;
    border-radius: var(--radius-full); overflow: hidden;
}

.gauge-bar { height: 100%; background: var(--primary); }
.gauge-label { font-size: 0.75rem; color: var(--text-muted); }
.bin-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.daily-task-preview { margin-bottom: 1.5rem; }
.reward-pill {
    padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15); color: var(--accent-amber);
    font-weight: 700; font-size: 0.8rem;
}

.quest-text strong { font-size: 0.95rem; display: block; }
.quest-text p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.6rem; }

/* Help Promo Widget */
.help-promo-card {
    background: linear-gradient(135deg, rgba(254, 240, 248, 0.8), rgba(245, 243, 255, 0.8));
    border-color: rgba(236, 72, 153, 0.25);
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.help-promo-card:hover { transform: translateY(-2px); }

.hp-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.text-gradient-ig {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hp-header strong { font-size: 0.95rem; color: #831843; display: block; }
.hp-header p { font-size: 0.8rem; color: #9d174d; }
.hp-action { font-size: 0.8rem; font-weight: 700; color: #be185d; margin-top: 0.6rem; text-align: right; }

/* Eco Fact Card */
.eco-tip-card {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.7), rgba(253, 230, 138, 0.4));
    border-color: rgba(245, 158, 11, 0.3);
}

.tip-header { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #b45309; font-size: 0.85rem; margin-bottom: 0.5rem; }
.tip-icon { font-size: 1.2rem; }
.tip-text { font-size: 0.9rem; font-style: italic; color: #78350f; margin-bottom: 0.8rem; line-height: 1.4; }
.tip-footer { display: flex; justify-content: space-between; align-items: center; }
.tip-source { font-size: 0.75rem; color: #92400e; }
.next-tip-btn { width: 30px; height: 30px; padding: 0; background: white; color: #b45309; border-radius: 50%; box-shadow: var(--shadow-sm); }

/* Points Reference Card */
.points-ref-card { margin-bottom: 1.5rem; padding: 1.1rem 1.3rem; }
.points-ref-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.8rem; }
.prl-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.6rem; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600;
    background: rgba(100,116,139,0.07);
    transition: background 0.15s;
}
.prl-row:hover { background: rgba(100,116,139,0.14); }
.prl-row.high-val { background: rgba(251,191,36,0.1); border-left: 3px solid #f59e0b; }
.prl-row.high-val .prl-pts { color: #f59e0b; }
.prl-row.mid-val { background: rgba(16,185,129,0.09); border-left: 3px solid #10b981; }
.prl-row.mid-val .prl-pts { color: #10b981; }
.prl-row.base-val { border-left: 3px solid #3b82f6; }
.prl-row.base-val .prl-pts { color: #60a5fa; }
.prl-row.low-val { border-left: 3px solid #6b7280; }
.prl-row.low-val .prl-pts { color: #94a3b8; }
.prl-icon { font-size: 1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.prl-label { flex: 1; color: var(--text-primary); }
.prl-pts { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   VIEW 3: Behind The Scenes (Circular Material Lifecycle)
   ========================================================================== */
.lifecycle-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

.lifecycle-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.lifecycle-tab-btn.active, .lifecycle-tab-btn:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.lifecycle-tab-btn i { font-size: 1rem; }

/* Material Journey Card */
.material-journey-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.mj-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.mj-title-box h3 { font-size: 1.5rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }
.mj-title-box p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }

.mj-stats-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mj-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.mj-stat-badge.emerald { background: rgba(16, 185, 129, 0.15); color: #047857; }
.mj-stat-badge.amber { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.mj-stat-badge.blue { background: rgba(6, 182, 212, 0.15); color: #0369a1; }

/* 4-Step Process Flow */
.mj-process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mj-step-box {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.mj-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.mj-step-box h4 { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.mj-step-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* Interactive Impact Calculator */
.material-calculator-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 244, 0.9));
}

.calc-header h3 { font-size: 1.35rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }
.calc-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; margin-bottom: 1.5rem; }

.calc-sliders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.calc-slider-box {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.slider-label-row strong { color: var(--primary); font-family: var(--font-mono); }

.calc-slider-box input[type=range] {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    accent-color: var(--primary);
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.calc-result-card {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cr-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin: 0 auto 0.6rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cr-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--primary); }
.cr-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--secondary); }
.cr-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.cr-icon.purple { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }

.cr-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.calc-result-card h4 { font-size: 1.4rem; color: var(--primary-dark); font-weight: 800; margin: 0.2rem 0; font-family: var(--font-mono); }
.cr-note { font-size: 0.75rem; color: var(--text-muted); }

/* Upcycled Gallery */
.upcycled-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.up-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.up-img-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.up-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    margin-bottom: 0.4rem;
}

.up-product-card h4 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.up-product-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ==========================================================================
   VIEW 4: Smart Bin Hardware Simulator (Eco Kash Simulator Kiosk)
   ========================================================================== */
.bin-simulator-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

.kiosk-frame {
    background: var(--bg-kiosk);
    border: 2px solid var(--border-kiosk);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--text-inverse);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.kiosk-top-bezel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.2rem;
}

.bin-identity { display: flex; align-items: center; gap: 0.6rem; }
.led-light { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.kiosk-bin-id { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: #94a3b8; }
.kiosk-clock { font-family: var(--font-mono); font-size: 0.85rem; color: #38bdf8; }

.kiosk-screen-viewport {
    background: var(--bg-kiosk-screen);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    min-height: 440px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bin-stage-view { width: 100%; animation: stageFade 0.3s ease forwards; }

@keyframes stageFade {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.idle-visual { text-align: center; display: flex; flex-direction: column; align-items: center; }

.radar-scanner {
    width: 130px; height: 130px; border-radius: 50%;
    position: relative; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; border: 2px solid rgba(16, 185, 129, 0.4);
}

.radar-circle { position: absolute; border-radius: 50%; border: 1px dashed rgba(16, 185, 129, 0.3); }
.circle-1 { width: 90px; height: 90px; }
.circle-2 { width: 50px; height: 50px; }

.radar-sweep {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.4) 0deg, transparent 60deg);
    animation: radarSpin 3s linear infinite;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.idle-logo { font-size: 2.8rem; color: var(--primary-light); z-index: 2; }
.idle-logo-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    z-index: 2;
    animation: pulseKioskLogo 3s infinite ease-in-out;
}

@keyframes pulseKioskLogo {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.7); }
}
.idle-visual h3 { font-size: 1.6rem; color: white; margin-bottom: 0.4rem; }
.stage-desc { color: #94a3b8; font-size: 0.95rem; max-width: 80%; margin-bottom: 1.8rem; }
.standby-hint { margin-top: 1.2rem; font-size: 0.8rem; color: #64748b; font-family: var(--font-mono); }

/* Camera Viewfinder */
.camera-vision-box { display: flex; flex-direction: column; gap: 1rem; }
.camera-lens-header { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; color: #38bdf8; }

.viewfinder {
    width: 100%; height: 200px;
    border: 1px solid rgba(56, 189, 248, 0.4); background: rgba(15, 23, 42, 0.85);
    border-radius: var(--radius-md); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.laser-scanner {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
    box-shadow: 0 0 12px #38bdf8; animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% { top: 5%; }
    100% { top: 92%; }
}

.crosshair { position: absolute; width: 18px; height: 18px; border-color: #38bdf8; }
.crosshair.top-left { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.crosshair.top-right { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.crosshair.bottom-left { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.crosshair.bottom-right { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }

.ai-bounding-box {
    position: absolute; width: 150px; height: 140px;
    border: 2px dashed #10b981; border-radius: 8px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    pointer-events: none; display: flex; flex-direction: column;
    justify-content: space-between; padding: 6px;
}

.ai-tag {
    font-family: var(--font-mono); font-size: 0.65rem;
    background: #10b981; color: #022c22; padding: 2px 6px;
    border-radius: 4px; font-weight: 700; align-self: flex-start;
}

.ai-conf {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: #38bdf8; background: rgba(0,0,0,0.6); padding: 2px 6px;
    border-radius: 4px; align-self: flex-end;
}

.item-preview-display { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: white; }
.item-preview-display i { font-size: 4rem; color: #67e8f9; }
.item-preview-display span { font-family: var(--font-main); font-weight: 600; font-size: 0.95rem; }

.simulation-item-picker label { display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; font-weight: 600; }
.item-chips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }

.item-chip {
    padding: 0.45rem 0.55rem; border-radius: var(--radius-sm);
    background: #1e293b; border: 1px solid #334155; color: #e2e8f0;
    font-size: 0.72rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 0.35rem; transition: all 0.2s ease;
    text-align: left;
}

.item-chip:hover { background: #334155; border-color: #64748b; }
.item-chip.active { background: rgba(16, 185, 129, 0.2); border-color: #10b981; color: #34d399; }
.item-chip.reject-chip { border-color: #4b2525; color: #f87171; background: rgba(239, 68, 68, 0.08); }
.item-chip.reject-chip:hover { background: rgba(239, 68, 68, 0.18); border-color: #ef4444; }
.item-chip.reject-chip.active { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; color: #f87171; }
.ai-action-footer { display: flex; justify-content: center; margin-top: 0.5rem; }

/* Step 3: Acceptance vs Rejection */
.result-stage-card { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 1rem 0; }
.status-icon-circle { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 1rem; }
.success-aura { background: rgba(16, 185, 129, 0.2); color: #10b981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
.reject-aura { background: rgba(239, 68, 68, 0.2); color: #ef4444; box-shadow: 0 0 25px rgba(239, 68, 68, 0.4); }

.decision-pill {
    padding: 0.25rem 0.8rem; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.6rem;
}

.accept-pill { background: #064e3b; color: #34d399; }
.reject-pill { background: #450a0a; color: #f87171; }
.result-stage-card h3 { font-size: 1.4rem; color: white; margin-bottom: 0.3rem; }
.detected-meta { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1.2rem; }
.reject-reason { font-size: 0.95rem; color: #fca5a5; max-width: 80%; margin-bottom: 1.2rem; }

.reject-guidance-box {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1); color: #fca5a5;
    font-size: 0.8rem; margin-bottom: 1.5rem;
}

.lid-actuation-visual { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 1rem 0; }
.lid-motor-indicator { font-family: var(--font-mono); font-size: 0.8rem; color: #f59e0b; display: flex; align-items: center; gap: 0.4rem; }
.lid-graphic { width: 140px; height: 40px; border-bottom: 4px solid #334155; position: relative; }

.lid-flap {
    position: absolute; bottom: 0; left: 10px; width: 120px; height: 6px;
    background: #10b981; transform-origin: left bottom;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lid-graphic.open .lid-flap { transform: rotate(-75deg); }
.lid-opening-glow { position: absolute; bottom: 0; left: 15px; width: 110px; height: 25px; background: radial-gradient(ellipse at bottom, rgba(16, 185, 129, 0.4), transparent 70%); }
.drop-action-box { margin-top: 1rem; }

/* Ultrasonic Stage */
.ultrasonic-hud { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.sensor-header { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-mono); font-size: 0.8rem; color: #38bdf8; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sonar-visualizer { width: 220px; height: 180px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 0; }
.sonar-emitter { display: flex; gap: 12px; }
.sonar-transducer { width: 20px; height: 16px; border-radius: 4px; background: #64748b; border: 2px solid #38bdf8; }
.sonar-waves { position: relative; width: 100%; height: 80px; display: flex; justify-content: center; }

.wave { position: absolute; border-radius: 50%; border-bottom: 2px solid #06b6d4; animation: sonarRipple 1.8s infinite; }
.wave-1 { width: 60px; height: 30px; animation-delay: 0s; }
.wave-2 { width: 100px; height: 50px; animation-delay: 0.5s; }
.wave-3 { width: 140px; height: 70px; animation-delay: 1s; }

@keyframes sonarRipple {
    0% { opacity: 0.8; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(60px) scale(1.3); }
}

.item-falling-graphic { font-size: 2.2rem; color: #10b981; animation: fallDownChute 1.8s ease-in-out infinite; }
@keyframes fallDownChute {
    0% { transform: translateY(-30px); opacity: 0.3; }
    50% { transform: translateY(20px); opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}
.bin-floor-surface { width: 100%; height: 6px; background: #334155; border-radius: 3px; text-align: center; }
.bin-floor-surface span { font-size: 0.65rem; color: #64748b; font-family: var(--font-mono); }
.verification-status-banner { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.85rem; color: #38bdf8; }

/* Multi-Item & 10s Countdown */
.item-deposited-card { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.deposit-success-badge { padding: 0.35rem 1rem; border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.2); color: #34d399; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.session-progress-box { width: 90%; background: #1e293b; border-radius: var(--radius-md); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.session-item-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #94a3b8; }
.session-item-row strong { color: white; font-size: 0.95rem; }
.badge-tag { font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: var(--radius-full); background: #0284c7; color: white; font-weight: 600; }

.auto-complete-box {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md); padding: 0.8rem 1.2rem; width: 90%;
}
.countdown-circle-wrap { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.countdown-svg { width: 50px; height: 50px; transform: rotate(-90deg); }
.countdown-bg { fill: none; stroke: #334155; stroke-width: 8; }
.countdown-progress { fill: none; stroke: #10b981; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.countdown-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: white; }
.auto-complete-text { text-align: left; }
.auto-complete-text strong { font-size: 0.85rem; color: #38bdf8; display: block; }
.auto-complete-text p { font-size: 0.75rem; color: #94a3b8; }
.multi-item-actions { display: flex; gap: 0.8rem; width: 90%; }
.multi-item-actions button { flex: 1; }

/* Rewards & OLED */
.reward-stage-card { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
.celebration-ribbon { padding: 0.4rem 1.2rem; border-radius: var(--radius-full); background: linear-gradient(135deg, #10b981, #059669); color: white; font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.reward-summary-metrics { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.reward-metric { background: #1e293b; border-radius: var(--radius-sm); padding: 0.6rem 1rem; display: flex; flex-direction: column; align-items: center; }
.reward-metric.highlight { background: rgba(245, 158, 11, 0.15); border: 1px solid var(--accent-amber); }
.reward-metric .metric-title { font-size: 0.7rem; color: #94a3b8; }
.reward-metric strong { font-size: 1.1rem; color: white; }
.reward-metric.highlight strong { color: var(--accent-amber); }

.oled-bezel-wrapper { background: #020617; border: 3px solid #1e293b; border-radius: var(--radius-sm); padding: 0.6rem; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); margin-bottom: 1rem; width: 280px; }
.oled-header-label { font-family: var(--font-mono); font-size: 0.55rem; color: #475569; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.oled-screen {
    background: #000; border: 1px solid #0f172a; border-radius: 4px; padding: 0.6rem; color: #38bdf8;
    font-family: var(--font-mono); display: flex; flex-direction: column; justify-content: space-between;
    height: 100px; box-shadow: 0 0 15px rgba(56, 189, 248, 0.15); position: relative; overflow: hidden;
}
.oled-row.top { display: flex; justify-content: space-between; font-size: 0.65rem; border-bottom: 1px dashed #0369a1; padding-bottom: 2px; }
.oled-points { font-size: 1rem; font-weight: 700; color: #facc15; margin: 0.2rem 0; }
.oled-sub { font-size: 0.65rem; color: #38bdf8; }
.oled-footer { font-size: 0.65rem; color: #10b981; font-weight: 700; text-align: center; }

.qr-container-box { background: white; padding: 1.2rem; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; margin-bottom: 1rem; }
.qr-code-view { display: flex; justify-content: center; }
.qr-caption { font-size: 0.75rem; color: #475569; margin-top: 0.6rem; font-weight: 600; }
.instant-claim-bar { width: 100%; margin-bottom: 1rem; }
.instant-claim-bar button { width: 100%; }
.lid-closing-notice { font-size: 0.8rem; color: #94a3b8; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }

.kiosk-physical-panel { display: flex; justify-content: space-between; align-items: center; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 1.2rem; }
.hardware-button-wrap { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.physical-push-btn {
    width: 44px; height: 44px; border-radius: 50%; background: #7f1d1d; border: 3px solid #b91c1c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.3); position: relative;
    cursor: pointer; transition: transform 0.1s ease;
}
.physical-push-btn .btn-cap {
    width: 24px; height: 24px; border-radius: 50%; background: #ef4444; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 10px #ef4444;
}
.physical-push-btn:active { transform: translateY(3px); box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.button-label { font-family: var(--font-mono); font-size: 0.75rem; color: #cbd5e1; }
.kiosk-speaker-grille { display: flex; gap: 4px; }
.kiosk-speaker-grille span { width: 4px; height: 16px; border-radius: 2px; background: #334155; }

/* Telemetry Preview */
.telemetry-deck { display: flex; flex-direction: column; gap: 1.5rem; }
.deck-header { display: flex; justify-content: space-between; align-items: center; }
.deck-header h4 { font-size: 1.15rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }
.telemetry-mode-tag { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.15); color: var(--primary); font-weight: 700; }

.compartments-status-panel { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.2rem; }
.compartments-status-panel h5 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.compartment-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.c-name { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); min-width: 160px; display: flex; align-items: center; gap: 0.35rem; }
.c-track { flex: 1; height: 18px; background: #f1f5f9; border-radius: var(--radius-full); overflow: hidden; position: relative; }

.c-fill {
    height: 100%; font-size: 0.7rem; font-weight: 700; color: white;
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 8px; border-radius: var(--radius-full); transition: width 0.5s ease;
}
.c-fill.plastic { background: #0284c7; }
.c-fill.metal { background: #f59e0b; }
.c-fill.paper { background: #10b981; }
.c-fill.glass { background: #8b5cf6; }

.session-deposits-log { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.2rem; }
.session-deposits-log h5 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.session-log-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.log-empty-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
.log-entry-item { font-size: 0.85rem; color: var(--text-primary); display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dashed var(--border-subtle); }

/* ==========================================================================
   VIEW 5: Graphically Optimized Wallet & 3D Flippable Card
   ========================================================================== */
.wallet-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

/* 3D Flippable Card */
.holo-card-perspective-wrap {
    perspective: 1000px;
    height: 250px;
}

.holo-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.holo-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: var(--radius-lg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 16px 36px rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 75%, #059669 100%);
    color: white;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    transform: rotate(25deg);
    animation: holoShine 8s infinite linear;
}

@keyframes holoShine {
    0% { transform: translateY(-100%) rotate(25deg); }
    100% { transform: translateY(100%) rotate(25deg); }
}

.card-chip-row { display: flex; align-items: center; gap: 0.9rem; }

.emv-chip {
    width: 44px; height: 32px; border-radius: 6px;
    background: linear-gradient(135deg, #fcd34d, #d97706);
    border: 1px solid #b45309; position: relative;
}

.chip-circuit {
    position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(0,0,0,0.25); border-radius: 2px;
}

.card-brand { margin-left: auto; font-family: var(--font-main); font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 0.3rem; }
.official-card-brand {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
}

.card-logo-emblem {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.balance-title { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }
.balance-figure { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.balance-figure small { font-size: 1.1rem; font-weight: 500; opacity: 0.85; }

.card-footer-row { display: flex; justify-content: space-between; align-items: flex-end; }
.card-holder-label { font-size: 0.65rem; opacity: 0.75; text-transform: uppercase; }
.card-holder-name { font-weight: 700; font-size: 0.95rem; }
.tier-pill-gold { background: rgba(245, 158, 11, 0.3); border: 1px solid var(--accent-amber); padding: 0.15rem 0.6rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: #fef08a; }
.card-id-code { font-family: var(--font-mono); font-size: 0.8rem; }

.card-flip-hint {
    position: absolute; bottom: 8px; right: 14px;
    font-size: 0.65rem; opacity: 0.6; display: flex; align-items: center; gap: 0.2rem;
}

/* Card Back */
.card-back {
    background: #064e3b;
    color: white;
    transform: rotateY(180deg);
    padding: 1.2rem 0;
}

.card-back-magnetic-strip {
    width: 100%; height: 40px; background: #022c22;
    margin-bottom: 1rem;
}

.card-back-details {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1.5rem;
}

.qr-micro-code { font-size: 2.5rem; color: #a7f3d0; }
.card-cvv-box {
    background: white; color: #0f172a; padding: 0.4rem 0.8rem;
    border-radius: 4px; text-align: right;
}
.card-cvv-box span { font-size: 0.6rem; font-weight: 700; color: #64748b; display: block; }
.card-cvv-box strong { font-family: var(--font-mono); font-size: 0.9rem; }
.card-back-disclaimer { padding: 0 1.5rem; font-size: 0.65rem; color: #a7f3d0; opacity: 0.8; }

/* Tier Progression Box */
.tier-progression-box {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(254, 243, 199, 0.6));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.tp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.tp-label { font-size: 0.75rem; color: #b45309; font-weight: 700; text-transform: uppercase; }
.tp-title { font-size: 1rem; color: #78350f; font-weight: 700; }
.tp-points-needed { font-family: var(--font-mono); font-weight: 700; color: #b45309; font-size: 0.85rem; }

.tier-perks-row {
    display: flex; gap: 1rem; margin-top: 0.8rem; font-size: 0.75rem; color: #92400e; font-weight: 600;
}

.financial-balance-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0;
}

.fin-stat {
    background: white; border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); padding: 0.75rem; text-align: center;
}
.fin-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
.fin-stat strong { font-size: 1rem; color: var(--text-primary); font-family: var(--font-mono); }

.wallet-quick-actions { display: flex; gap: 0.8rem; margin-top: 1rem; }
.wallet-quick-actions button { flex: 1; }

/* Rewards Store */
.store-nav-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}

.store-nav-header h3 { font-size: 1.4rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }

.store-filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-tab-btn {
    padding: 0.45rem 0.95rem; border-radius: var(--radius-full);
    background: white; border: 1px solid var(--border-subtle);
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.filter-tab-btn.active, .filter-tab-btn:hover { background: var(--primary-dark); color: white; border-color: var(--primary-dark); }

.rewards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}

.reward-card {
    display: flex; flex-direction: column; padding: 1.3rem; text-align: center;
    position: relative; overflow: hidden;
}

.reward-discount-badge {
    position: absolute; top: 10px; right: 10px;
    font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full); background: rgba(16, 185, 129, 0.15); color: #047857;
}

.reward-card-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0.5rem auto 1rem auto;
}

.reward-card-icon.food { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.reward-card-icon.transit { background: rgba(6, 182, 212, 0.15); color: #0284c7; }
.reward-card-icon.eco { background: rgba(16, 185, 129, 0.15); color: #059669; }
.reward-card-icon.planet { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }

.reward-category-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.3rem; }
.reward-card h4 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.reward-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.reward-cost-tag { font-family: var(--font-main); font-weight: 800; font-size: 1.15rem; color: var(--accent-amber); margin-bottom: 0.8rem; }

/* ==========================================================================
   VIEW 6: Quests & Tasks
   ========================================================================== */
.user-level-badge { padding: 0.4rem 0.9rem; border-radius: var(--radius-full); background: linear-gradient(135deg, #10b981, #059669); color: white; font-weight: 700; font-size: 0.85rem; }
.quests-columns-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.75rem; }
.panel-section-title { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.quests-cards-list { display: flex; flex-direction: column; gap: 0.8rem; }

.quest-card {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.1rem; border-radius: var(--radius-md); background: white; border: 1px solid var(--border-subtle);
}

.quest-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(16, 185, 129, 0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.quest-body { flex: 1; }
.quest-body h4 { font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.quest-body p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.badges-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.2rem; }
.badge-item-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem; border-radius: var(--radius-md); background: white; border: 1px solid var(--border-subtle); }
.badge-item-card.locked { opacity: 0.45; filter: grayscale(0.9); }
.badge-graphic { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 0.5rem; }
.badge-graphic.gold { background: rgba(245, 158, 11, 0.2); color: #d97706; }
.badge-graphic.green { background: rgba(16, 185, 129, 0.2); color: #059669; }
.badge-graphic.blue { background: rgba(6, 182, 212, 0.2); color: #0284c7; }
.badge-graphic.purple { background: rgba(139, 92, 246, 0.2); color: #7c3aed; }
.badge-item-card h5 { font-size: 0.9rem; color: var(--text-primary); }
.badge-item-card span { font-size: 0.75rem; color: var(--text-muted); }

/* ==========================================================================
   VIEW 7: Interactive Vector Campus Map
   ========================================================================== */
.map-interactive-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.map-viewport-card { padding: 0.5rem; overflow: hidden; position: relative; }
.campus-svg-wrapper { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.campus-map-svg { width: 100%; height: 480px; display: block; }
.map-bldg { transition: fill 0.3s ease; }
.map-bldg:hover { fill: #66bb6a; }

.map-legend-overlay {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.4rem 0.8rem; border-radius: var(--radius-full);
    display: flex; gap: 0.9rem; font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow-sm);
}

.bin-detail-drawer .drawer-header { margin-bottom: 1.2rem; }
.drawer-status-chip { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); margin-bottom: 0.4rem; display: inline-block; }
.drawer-status-chip.ready { background: #dcfce7; color: #15803d; }
.drawer-status-chip.full { background: #fee2e2; color: #b91c1c; }
.drawer-header h3 { font-size: 1.3rem; color: var(--primary-dark); }
.drawer-header p { font-size: 0.85rem; color: var(--text-muted); }
.drawer-metrics-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.d-metric-item { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle); }
.fill-bar-wrapper { width: 100px; height: 8px; background: #e2e8f0; border-radius: var(--radius-full); overflow: hidden; }
.fill-bar-inner { height: 100%; background: var(--primary); }
.drawer-actions button { width: 100%; }

/* ==========================================================================
   VIEW 8: Community Leaderboard & Social
   ========================================================================== */
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; padding: 2.5rem 1rem 1rem 1rem; margin-bottom: 2rem; }
.podium-step { display: flex; flex-direction: column; align-items: center; width: 150px; }
.podium-avatar { position: relative; margin-bottom: 0.6rem; }
.crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 1.4rem; }
.crown.gold { color: #f59e0b; }
.crown.silver { color: #94a3b8; }
.crown.bronze { color: #b45309; }

.user-initials {
    width: 54px; height: 54px; border-radius: 50%; background: var(--primary-dark);
    color: white; font-weight: 700; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; border: 3px solid white; box-shadow: var(--shadow-md);
}
.user-initials.champion { width: 68px; height: 68px; background: linear-gradient(135deg, #f59e0b, #d97706); font-size: 1.3rem; }
.podium-name { font-weight: 700; font-size: 0.95rem; }
.podium-score { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 0.6rem; }
.podium-block { width: 100%; border-radius: var(--radius-md) var(--radius-md) 0 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-weight: 800; color: white; font-size: 1.3rem; }
.rank-1-block { height: 110px; background: linear-gradient(180deg, #f59e0b, #d97706); }
.rank-2-block { height: 80px; background: linear-gradient(180deg, #94a3b8, #64748b); }
.rank-3-block { height: 60px; background: linear-gradient(180deg, #b45309, #78350f); }

.leaderboard-split-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.75rem; }
.leaderboard-items-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }

.lb-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; border-radius: var(--radius-md); background: white; border: 1px solid var(--border-subtle);
}
.lb-item.current-user { background: #ecfdf5; border-color: #10b981; }
.lb-left { display: flex; align-items: center; gap: 0.8rem; }
.lb-rank { width: 24px; font-weight: 700; color: var(--text-muted); }
.lb-name { font-weight: 600; font-size: 0.9rem; }
.lb-score { font-weight: 800; color: var(--primary-dark); font-size: 0.95rem; }

.social-activity-stream { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.social-card { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0.85rem; }
.social-top { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.3rem; }
.social-top strong { color: var(--primary-dark); }
.social-top span { color: var(--text-muted); }
.social-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.cheer-btn { padding: 0.25rem 0.6rem; font-size: 0.75rem; background: #f1f5f9; border-radius: var(--radius-full); }

/* ==========================================================================
   VIEW 9: Help, Contact & Instagram Follow Section
   ========================================================================== */
.help-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.75rem;
}

.help-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-desk-card .cd-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.cd-icon {
    width: 50px; height: 50px; border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}

.cd-header h3 { font-size: 1.25rem; color: var(--primary-dark); }
.cd-header p { font-size: 0.85rem; color: var(--text-muted); }

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.c-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.c-detail-item i { font-size: 1.5rem; color: var(--primary); }
.c-detail-item span { font-size: 0.75rem; color: var(--text-muted); display: block; }
.c-detail-item strong { font-size: 0.85rem; color: var(--text-primary); }

/* FAQ Accordion */
.faq-card h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.faq-accordion-list { display: flex; flex-direction: column; gap: 0.6rem; }

.faq-item {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.faq-question i { font-size: 1.2rem; transition: transform 0.25s ease; color: var(--text-muted); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 0.9rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Feedback Section */
.feedback-card h3 { font-size: 1.15rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.4rem; }
.feedback-sub-note { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 0.6rem; font-style: italic; }

/* Instagram Dedicated Card */
.help-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instagram-feature-card {
    background: linear-gradient(135deg, rgba(253, 244, 255, 0.95), rgba(254, 242, 242, 0.95));
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.ig-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.ig-logo-badge {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white; font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}

.ig-card-header h4 { font-size: 1.15rem; color: #831843; }
.ig-handle { font-size: 0.85rem; color: #be185d; font-weight: 700; }
.ig-bio { font-size: 0.85rem; color: #701a75; line-height: 1.4; margin-bottom: 1rem; }

.ig-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ig-tile {
    height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 4px;
}

.tile-1 { background: linear-gradient(135deg, #059669, #10b981); }
.tile-2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tile-3 { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.ig-tile i { font-size: 1.5rem; margin-bottom: 2px; }

.btn-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
    transition: transform 0.2s ease;
}

.btn-instagram:hover { transform: translateY(-2px); }

.eco-pledge-card h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.pledge-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pledge-list li { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 0.4rem; }
.pledge-list li i { color: var(--primary); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* ==========================================================================
   VIEW 11: User Profile & Account Details
   ========================================================================== */
.profile-split-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.75rem; }
.profile-main-card { display: flex; flex-direction: column; align-items: center; text-align: center; }

.profile-avatar-large {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--primary-dark); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; position: relative; box-shadow: var(--shadow-md);
}

.tier-star-badge {
    position: absolute; bottom: 0; right: 0; width: 26px; height: 26px;
    border-radius: 50%; background: #f59e0b; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 0.9rem; border: 2px solid white;
}

.user-handle { font-size: 0.85rem; color: var(--text-muted); }
.profile-tier-tag { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.8rem; border-radius: var(--radius-full); background: rgba(245, 158, 11, 0.2); color: #b45309; }

.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; width: 100%; }
.p-stat { background: white; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0.8rem 0.5rem; display: flex; flex-direction: column; }
.p-stat strong { font-size: 1.2rem; color: var(--primary-dark); }
.p-stat span { font-size: 0.75rem; color: var(--text-muted); }

.profile-account-details-box {
    width: 100%;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: left;
}

.acc-detail-line {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.acc-detail-line:last-child { border-bottom: none; }
.acc-detail-line span { color: var(--text-muted); }
.acc-detail-line strong { color: var(--text-primary); }

.settings-toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.st-text strong { font-size: 0.95rem; color: var(--text-primary); display: block; }
.st-text p { font-size: 0.8rem; color: var(--text-muted); }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* ==========================================================================
   ADMIN SPECIFIC STYLES (Fleet Monitor, Smart Controls, Quest Planner)
   ========================================================================== */
.admin-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}

.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.15); color: #7c3aed;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}

.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #059669; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #0284c7; }

.stat-meta span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; display: block; }
.stat-meta h3 { font-size: 1.25rem; color: var(--primary-dark); }

.fleet-table-card h3 { font-size: 1.25rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }
.table-responsive { overflow-x: auto; }

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

.fleet-table th {
    text-align: left; padding: 0.75rem 1rem;
    background: #f8fafc; border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary); font-weight: 700;
}

.fleet-table td {
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.fleet-table tr:hover td { background: #f8fafc; }

/* Admin Controls Grid */
.admin-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.control-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.cc-icon {
    width: 50px; height: 50px; border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1rem;
}

.cc-icon.amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.cc-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #0284c7; }

.control-card h4 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.control-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.admin-select { width: 100%; padding: 0.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); font-family: var(--font-body); font-size: 0.85rem; }

/* Multi-Area Quest Planner Layout */
.quest-planner-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.75rem;
}

.planner-form-card h3 { font-size: 1.25rem; color: var(--primary-dark); display: flex; align-items: center; gap: 0.5rem; }

.area-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.areas-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.area-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
}

.area-check-item input[type=checkbox] {
    accent-color: var(--primary);
    width: 16px; height: 16px;
}

.planner-params-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-model-card {
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(238, 242, 255, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 1.5rem;
}

.ai-model-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.text-gradient-purple {
    font-size: 2rem;
    color: #7c3aed;
}

.ai-model-header h4 { font-size: 1.1rem; color: #4c1d95; }
.ai-status-pill { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: var(--radius-full); background: #ede9fe; color: #6d28d9; }
.ai-model-insight { font-size: 0.85rem; color: #5b21b6; line-height: 1.5; margin-bottom: 1rem; font-style: italic; }

.ai-suggested-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.deployed-campaigns-card h4 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.deployed-campaigns-list { display: flex; flex-direction: column; gap: 0.6rem; }

.deployed-campaign-item {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dc-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.dc-meta { font-size: 0.75rem; color: var(--text-muted); }
.dc-tag { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); background: #dcfce7; color: #15803d; }

/* ==========================================================================
   Modals & Toasts
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem;
}

.modal-card {
    max-width: 480px; width: 100%; position: relative;
    animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }

.voucher-ticket {
    background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: var(--radius-md);
    padding: 1.5rem; margin: 1.2rem 0; text-align: center;
}

.barcode-lines { font-family: monospace; font-size: 1.5rem; letter-spacing: 0.15em; color: #334155; margin-bottom: 0.4rem; }
.ticket-code { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); }
.copy-btn { margin-top: 0.8rem; font-size: 0.8rem; padding: 0.3rem 0.8rem; background: white; border: 1px solid var(--border-subtle); }

.certificate-card { max-width: 650px; }
.certificate-frame {
    background: #fffdf7; border: 8px double #b45309; padding: 2rem;
    border-radius: var(--radius-sm); box-shadow: inset 0 0 20px rgba(180, 83, 9, 0.08); text-align: center;
}
.cert-logo { font-family: var(--font-main); font-weight: 800; font-size: 1rem; color: var(--primary); margin-bottom: 0.8rem; }
.cert-official-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.cert-logo-img {
    max-height: 44px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.1);
}

.cert-tagline-sub {
    font-size: 0.76rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.voucher-brand-badge {
    margin-bottom: 0.65rem;
    display: flex;
    justify-content: center;
}

.voucher-logo-img {
    max-height: 38px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.cert-frame h2 { font-family: serif; font-size: 1.6rem; letter-spacing: 0.1em; color: #78350f; margin-bottom: 0.8rem; }
.cert-presents { font-size: 0.85rem; color: #92400e; font-style: italic; }
.cert-recipient { font-size: 2.2rem; color: #451a03; font-family: serif; margin: 0.5rem 0; }
.cert-body { font-size: 0.9rem; line-height: 1.6; color: #78350f; max-width: 90%; margin: 0 auto 1.5rem auto; }
.cert-seal-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(180, 83, 9, 0.2); padding-top: 1rem; }
.cert-seal { display: flex; align-items: center; gap: 0.4rem; color: #b45309; font-weight: 700; font-size: 0.8rem; }

#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}

.toast {
    background: #064e3b; color: white; padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.error { background: #991b1b; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Slide-out Corner Menu Drawer (Secondary Hubs & Preferences)
   ========================================================================== */
.corner-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.corner-drawer-backdrop.hidden {
    display: none;
    opacity: 0;
}

.corner-drawer-panel {
    width: 410px;
    max-width: 92vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -12px 0 45px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
    position: relative;
    z-index: 2001;
    border-left: 1px solid rgba(16, 185, 129, 0.15);
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Luxury Forest Gradient Header */
.corner-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.35rem 1.15rem;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    color: white;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.drawer-user-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.drawer-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.45rem;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.tier-crown-badge-mini {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.drawer-user-info {
    min-width: 0;
}

.dui-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dui-name-row h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-pill-mini {
    color: #34d399;
    font-size: 0.95rem;
}

.drawer-user-role {
    font-size: 0.74rem;
    font-weight: 600;
    color: #a7f3d0;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-user-id {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.65);
    display: block;
}

.drawer-close-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    color: #ffffff !important;
    font-size: 1.3rem;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.9) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.drawer-close-btn:active {
    transform: rotate(90deg) scale(0.92);
}

.drawer-close-btn i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    font-size: 1.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Quick Balance Telemetry Strip */
.drawer-balance-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

.d-bal-item {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.5rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.d-bal-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.d-bal-value {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 1px;
}

.d-bal-value small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Scrollable Drawer Body */
.corner-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    background: #ffffff;
}

/* Featured Menu Hub Shortcut Banner */
.drawer-featured-hub {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.drawer-featured-hub:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.18));
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.16);
}

.dfh-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.dfh-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dfh-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.dfh-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.dfh-route-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background: white;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Drawer Section */
.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drawer-section-title {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 0.25rem;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.drawer-nav-item:hover {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
    transform: translateX(4px);
}

.dni-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.drawer-nav-item:hover .dni-icon {
    transform: scale(1.08);
}

.dni-emerald { background: rgba(16, 185, 129, 0.14); color: #059669; }
.dni-blue    { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.dni-amber   { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.dni-cyan    { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.dni-purple  { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }
.dni-yellow  { background: rgba(234, 179, 8, 0.16); color: #ca8a04; }
.dni-green   { background: rgba(34, 197, 94, 0.14); color: #16a34a; }
.dni-rose    { background: rgba(244, 63, 94, 0.14); color: #e11d48; }
.dni-indigo  { background: rgba(99, 102, 241, 0.14); color: #4f46e5; }
.dni-teal    { background: rgba(20, 184, 166, 0.14); color: #0d9488; }

.dni-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dni-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.dni-desc {
    font-size: 0.71rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dni-route {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.dni-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-full);
    background: #10b981;
    color: white;
    flex-shrink: 0;
}

.dni-arrow {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.drawer-nav-item:hover .dni-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Preferences & Diagnostics */
.drawer-pref-card {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dpc-header {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.drawer-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.drawer-lang-chip {
    padding: 0.42rem 0.6rem;
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-lang-chip:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.drawer-lang-chip.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
}

.dpc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dpc-info {
    display: flex;
    flex-direction: column;
}

.dpc-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dpc-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dpc-toggle-btn {
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary);
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dpc-toggle-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.dpc-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.06);
    margin: 0.2rem 0;
}

.status-pill-subtle {
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.corner-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.drawer-logout-action-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.drawer-logout-action-btn:hover {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.drawer-app-version {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
#bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
    transform: translateZ(0);
    padding: 0.5rem 0.5rem max(0.65rem, env(safe-area-inset-bottom, 12px)) 0.5rem;
    z-index: 990;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    gap: 0.2rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 14px;
    min-width: 52px;
    min-height: 48px;
    touch-action: manipulation;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.55rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item.active {
    color: #064e3b !important;
    background: rgba(16, 185, 129, 0.12);
    font-weight: 700;
    transform: translateY(-2px);
}

.nav-item.active i {
    color: #10b981 !important;
    transform: scale(1.12);
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-scanner-wrapper {
    position: relative;
    width: 56px;
    display: flex;
    justify-content: center;
}

.scan-fab {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1.7rem;
    border: 3.5px solid #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scan-fab:active {
    transform: translateX(-50%) scale(0.92);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Separate Menu Hub (/menu) - Deep Optimization
   ========================================================================== */
.badge-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Prestige Profile Card */
.menu-hub-profile-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 244, 0.85));
    border-radius: 18px;
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
    gap: 1.25rem;
}

.mhp-main {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.mhp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.official-avatar-glow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    border: 2.5px solid white;
}

.tier-crown-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mhp-info {
    flex: 1;
    min-width: 240px;
}

.mhp-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mhp-name-row h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

.verified-pill {
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.mhp-meta {
    margin: 0.3rem 0 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.mhp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.mhp-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.mhp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-card-points .mhp-stat-icon { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.stat-card-waste  .mhp-stat-icon { background: rgba(16, 185, 129, 0.14); color: #059669; }
.stat-card-co2    .mhp-stat-icon { background: rgba(34, 197, 94, 0.14);  color: #16a34a; }

.mhp-stat-text {
    display: flex;
    flex-direction: column;
}

.mhp-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mhp-stat-val {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mhp-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 14px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.mhp-profile-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Toolbar: Search & Category Pills */
.menu-hub-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.mhc-search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mhc-search-wrap .search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.mhc-search-input {
    width: 100%;
    padding: 0.75rem 2.8rem 0.75rem 2.8rem;
    border-radius: 12px;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
}

.mhc-search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.mhc-search-clear {
    position: absolute;
    right: 0.75rem;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem;
    line-height: 1 !important;
    transition: all 0.2s ease;
}

.mhc-search-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.mhc-category-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mhc-filter-pill {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.mhc-filter-pill:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary-dark);
}

.mhc-filter-pill.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
}

/* Categorized Menu Groups */
.menu-hub-group {
    margin-bottom: 2rem;
}

.menu-hub-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.06);
}

.mhg-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mhg-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.mhg-icon-pill.emerald { background: rgba(16, 185, 129, 0.15); color: #059669; }
.mhg-icon-pill.amber   { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.mhg-icon-pill.indigo  { background: rgba(99, 102, 241, 0.15); color: #4f46e5; }

.mhg-title-wrap h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mhg-count {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

/* Cards Grid */
.menu-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.15rem;
}

.menu-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.menu-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
}

.mhc-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.menu-hub-card:hover .mhc-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.mhc-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.25)); color: #059669; }
.mhc-blue    { background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(29, 78, 216, 0.25));  color: #2563eb; }
.mhc-amber   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25));  color: #d97706; }
.mhc-purple  { background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.25)); color: #7c3aed; }
.mhc-yellow  { background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.25));    color: #ca8a04; }
.mhc-green   { background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(22, 163, 74, 0.25));   color: #16a34a; }
.mhc-rose    { background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(225, 29, 72, 0.25));   color: #e11d48; }
.mhc-indigo  { background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(67, 56, 202, 0.25));  color: #4f46e5; }
.mhc-teal    { background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(13, 148, 136, 0.25)); color: #0d9488; }
.mhc-red     { background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.25));   color: #dc2626; }

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

.mhc-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.mhc-header-line h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mhc-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.chip-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.chip-blue    { background: rgba(37, 99, 235, 0.12);  color: #2563eb; }
.chip-amber   { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.chip-purple  { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.chip-yellow  { background: rgba(234, 179, 8, 0.14);  color: #ca8a04; }
.chip-green   { background: rgba(34, 197, 94, 0.12);  color: #16a34a; }
.chip-rose    { background: rgba(244, 63, 94, 0.12);  color: #e11d48; }
.chip-indigo  { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.chip-teal    { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.chip-red     { background: rgba(239, 68, 68, 0.15);  color: #dc2626; font-weight: 800; }

.mhc-body p {
    margin: 0 0 0.85rem 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mhc-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.mhc-route-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.mhc-action-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.menu-hub-card:hover .mhc-action-link {
    transform: translateX(3px);
}

/* Preferences & System Settings Control Card */
.menu-settings-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid var(--border-subtle);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sch-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sch-title h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.setting-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.15rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
}

.setting-desc strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.setting-desc p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 3px 0 0 0;
}

.lang-pills-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.lang-choice-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-choice-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.lang-choice-btn.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
}

.settings-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.settings-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(16, 185, 129, 0.05);
}

/* ==========================================================================
   Language Selector (Multi-Language i18n)
   ========================================================================== */
.lang-selector-container {
    position: relative;
    display: inline-block;
}

.lang-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-pill-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 175px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 120;
    padding: 0.35rem 0;
    animation: modalScale 0.15s ease-out forwards;
}

.lang-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.lang-menu-item:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.lang-menu-item.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    font-weight: 700;
}

/* ==========================================================================
   Authentication & Account Creation Suite (Sign In & Sign Up)
   ========================================================================== */
.auth-mode-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.auth-method-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 1.25rem;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.auth-method-chip {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    min-height: 38px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-sizing: border-box;
}

.auth-method-chip i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.auth-method-chip:hover {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.6);
}

.auth-method-chip.active {
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.35rem;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

/* Google 1-Tap Button */
.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-google-auth:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: var(--shadow-md);
}

.google-icon-svg {
    width: 20px;
    height: 20px;
}

.google-accounts-picker {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.g-account-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.18s ease;
}

.g-account-card:hover {
    background: #ecfdf5;
    border-color: var(--primary);
    transform: translateX(4px);
}

.g-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.g-info strong { font-size: 0.88rem; display: block; color: var(--text-primary); }
.g-info span { font-size: 0.78rem; color: var(--text-muted); }

/* OTP 6-Digit Container */
.otp-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.otp-inputs-grid {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.otp-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.simulated-sms-banner {
    background: #ecfdf5;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #065f46;
}

.simulated-sms-banner strong {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}

.resend-otp-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Password Strength Indicator */
.pwd-strength-container {
    margin-top: 0.35rem;
}

.pwd-strength-bar {
    height: 4px;
    width: 100%;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.pwd-strength-fill {
    height: 100%;
    width: 25%;
    background: #ef4444;
    transition: all 0.3s ease;
}

.pwd-strength-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Bangalore Smart Bin Map & Google Maps Integration
   ========================================================================== */
.map-layer-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.layer-title-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.layer-buttons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.layer-buttons::-webkit-scrollbar {
    display: none;
}

.layer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.layer-pill i {
    font-size: 0.9rem;
}

.layer-pill:hover {
    background: #e2e8f0;
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.layer-pill.active {
    background: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

#bangalore-leaflet-map {
    width: 100%;
    height: 520px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Professional Map Pins & Floating Telemetry Tags
   ========================================================================== */
.eco-leaflet-marker {
    background: transparent !important;
    border: none !important;
}

.eco-map-pin {
    position: relative;
    width: 40px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
    user-select: none;
}

.eco-map-pin:hover {
    transform: translateY(-5px) scale(1.14);
    z-index: 9999 !important;
}

.eco-map-pin.selected-pin {
    transform: translateY(-6px) scale(1.18);
    z-index: 10000 !important;
}

.pin-badge-head {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
    z-index: 2;
    transition: all 0.2s ease;
}

.eco-map-pin.ready .pin-badge-head {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.eco-map-pin.high .pin-badge-head {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.eco-map-pin.full .pin-badge-head {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.pin-badge-head i {
    font-size: 1.18rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* Precision Pointer Stem */
.pin-pointer-stem {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    margin-top: -3px;
    z-index: 1;
    transition: all 0.2s ease;
}

.eco-map-pin.ready .pin-pointer-stem {
    border-top: 8px solid #059669;
}

.eco-map-pin.high .pin-pointer-stem {
    border-top: 8px solid #d97706;
}

.eco-map-pin.full .pin-pointer-stem {
    border-top: 8px solid #dc2626;
}

/* Micro Fill Percentage Pill */
.pin-fill-pill {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ffffff;
    border: 1.5px solid;
    padding: 1px 5px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    z-index: 4;
}

/* Selected Pin Beacon Glow */
.eco-map-pin.selected-pin .pin-badge-head {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.eco-map-pin.selected-pin.high .pin-badge-head {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.eco-map-pin.selected-pin.full .pin-badge-head {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Ground Contact Shadow */
.pin-shadow-pulse {
    position: absolute;
    bottom: 0px;
    width: 14px;
    height: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.22);
    filter: blur(1px);
    z-index: 0;
}

/* ==========================================================================
   Leaflet Modern Map Popup Card
   ========================================================================== */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18) !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
}

.blr-map-popup {
    padding: 1rem 1.15rem;
    font-family: var(--font-main);
    min-width: 250px;
    max-width: 290px;
    background: #ffffff;
}

.popup-cat-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blr-map-popup h4 {
    margin: 0.45rem 0 0.2rem 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.blr-map-popup p {
    margin: 0 0 0.75rem 0;
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    line-height: 1.35;
}

.popup-meter {
    height: 6px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.popup-meter-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.popup-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.popup-stats-row strong {
    font-weight: 800;
}

.popup-btn-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-action-btn {
    flex: 1;
    padding: 0.48rem 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.popup-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.popup-gmap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.48rem 0.85rem;
    background: #f1f5f9;
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.popup-gmap-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* ==========================================================================
   Functional Feedback Status & Inbox
   ========================================================================== */
.feedback-dispatch-alert {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feedback-ticket-code {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #065f46;
}

.feedback-history-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fb-history-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.82rem;
}

.fb-history-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   Media Queries & Responsiveness (Mobile & Desktop)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAPTOP & SMALL DESKTOP (≤1380px)
   Keep desktop header spacious, clean, and single-line by hiding edge debug pills
   -------------------------------------------------------------------------- */
@media (max-width: 1380px) {
    .cf-edge-status-pill { display: none !important; }
    .bin-indicator-pill { display: none !important; }
    .header-left { gap: 1rem; }
    .nav-link { padding: 0.35rem 0.55rem; font-size: 0.8rem; gap: 0.3rem; }
}

@media (max-width: 1240px) {
    .header-left { gap: 0.75rem; }
    .nav-link { padding: 0.32rem 0.45rem; font-size: 0.78rem; gap: 0.25rem; }
    .nav-link i { font-size: 1rem; }
    .points-badge { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   2. TABLET & MOBILE VIEWPORT (≤1150px)
   Full mobile UX: Bottom navigation bar, simplified clean header (Logo + Points + Avatar only),
   100% full-width symmetrical cards, no horizontal scrolling.
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
    /* Header: Hide desktop nav & extraneous actions, switch to mobile mode */
    .desktop-nav { display: none !important; }
    #bottom-nav { display: flex !important; }
    #bottom-nav.hidden,
    body.on-login-view #bottom-nav {
        display: none !important;
    }
    #main-header.hidden,
    body.on-login-view #main-header {
        display: none !important;
    }

    #main-header {
        padding: 0.5rem 1rem !important;
        min-height: 56px !important;
        max-height: 56px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-left {
        gap: 0.6rem !important;
    }

    /* Logo: prominent & clean on mobile */
    .logo-icon-wrap {
        height: 38px !important;
        width: auto !important;
    }
    .brand-logo-img {
        height: 36px !important;
        max-width: 50px !important;
    }
    .brand-title {
        font-size: 1.28rem !important;
        line-height: 1.1 !important;
    }
    .brand-subtitle {
        display: none !important;
    }

    /* Header Right: Hide everything except Points and User Avatar */
    .cf-edge-status-pill { display: none !important; }
    .bin-indicator-pill { display: none !important; }
    #sound-toggle-btn { display: none !important; }
    .lang-selector-container { display: none !important; }
    .logout-btn { display: none !important; }
    .user-name-snippet { display: none !important; }

    .header-right {
        gap: 0.5rem !important;
    }

    .points-badge {
        padding: 0.32rem 0.68rem !important;
        font-size: 0.85rem !important;
        gap: 0.3rem !important;
    }
    .currency-label { font-size: 0.68rem !important; }
    .coin-icon { font-size: 1.05rem !important; }

    .user-avatar-btn {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .avatar-ring {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.15rem !important;
    }

    .corner-menu-toggle-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.3rem !important;
    }

    /* Main content viewport: full width, proper bottom nav clearance */
    #main-content {
        padding: 1rem 0.85rem !important;
        padding-bottom: 5.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .view {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* View Header Strip */
    .view-header-strip {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.9rem !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
    }
    .view-header-strip .welcome-text {
        width: 100% !important;
    }
    .view-header-strip h2 {
        font-size: 1.4rem !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }
    .view-header-strip .subtitle {
        font-size: 0.85rem !important;
    }

    /* Action Buttons: 2-column equal grid on mobile */
    .header-action-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
        width: 100% !important;
    }
    .header-action-group button,
    .header-action-group .btn-cta,
    .header-action-group .btn-outline {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.72rem 0.5rem !important;
        font-size: 0.84rem !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    /* Metrics Grid: Clean 2x2 symmetrical mobile grid filling 100% width */
    .metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        margin-bottom: 1.25rem !important;
    }

    .metric-card {
        padding: 0.85rem !important;
        gap: 0.6rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .metric-icon-wrap {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.3rem !important;
    }
    .metric-body {
        width: 100% !important;
    }
    .metric-value {
        font-size: 1.35rem !important;
        margin: 0.1rem 0 !important;
    }
    .metric-label {
        font-size: 0.72rem !important;
    }
    .metric-sub {
        font-size: 0.7rem !important;
    }

    /* ==========================================================================
       Android & Mobile-First Login Experience
       ========================================================================== */
    .login-brand-panel {
        display: none !important;
    }

    .mobile-login-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 1.25rem !important;
        padding-top: 0.5rem !important;
    }

    .mobile-login-emblem-wrap {
        width: 64px !important;
        height: 64px !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1.5px rgba(16, 185, 129, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.6rem !important;
    }

    .mobile-login-emblem-img {
        width: 44px !important;
        height: 44px !important;
        object-fit: contain !important;
    }

    .mobile-login-title {
        font-size: 1.85rem !important;
        font-weight: 800 !important;
        color: #064e3b !important;
        margin: 0 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
    }

    .mobile-login-title span {
        color: #10b981 !important;
    }

    .mobile-login-subtitle {
        font-size: 0.8rem !important;
        color: #64748b !important;
        margin: 0.25rem 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
    }

    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 410px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0.5rem 0.85rem 3.5rem 0.85rem !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .login-card-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .login-form-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1.35rem 1.1rem !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .auth-card-heading {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .auth-card-heading h2 {
        font-size: 1.35rem !important;
        word-break: break-word !important;
    }

    .auth-mode-tabs {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        background: #f1f5f9 !important;
        padding: 4px !important;
        border-radius: 14px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 1.15rem !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    .auth-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 46px !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
        border: none !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        padding: 0.4rem 0.25rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        touch-action: manipulation !important;
        box-sizing: border-box !important;
    }

    .auth-tab-btn.active {
        background: #ffffff !important;
        color: #064e3b !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
    }

    .auth-method-selector {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        margin-bottom: 1.15rem !important;
        box-sizing: border-box !important;
    }

    .auth-method-chip {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 46px !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1.5px solid #e2e8f0 !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        padding: 0.5rem 0.35rem !important;
        touch-action: manipulation !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
    }

    .auth-method-chip.active {
        background: #ecfdf5 !important;
        border-color: #10b981 !important;
        color: #064e3b !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
    }

    .input-group {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .input-field-wrap {
        min-height: 50px !important;
        border-radius: 12px !important;
        border: 1.5px solid #cbd5e1 !important;
        padding: 0 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .input-field-wrap:focus-within {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
    }

    .input-field-wrap input,
    .input-field-wrap select {
        font-size: 16px !important; /* CRITICAL: Prevents Android WebView viewport zoom */
        min-height: 48px !important;
        line-height: 48px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .btn-primary,
    button[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
        touch-action: manipulation !important;
        box-sizing: border-box !important;
    }

    .btn-primary:active,
    .btn-secondary:active,
    .btn-google-auth:active,
    .auth-method-chip:active,
    .auth-tab-btn:active,
    .fast-demo-pill:active {
        transform: scale(0.97) !important;
        opacity: 0.9 !important;
    }

    .otp-inputs-grid {
        display: flex !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .otp-box {
        flex: 1 !important;
        max-width: 50px !important;
        min-height: 56px !important;
        height: 56px !important;
        font-size: 1.5rem !important;
        border-radius: 12px !important;
        border: 2px solid #cbd5e1 !important;
        touch-action: manipulation !important;
    }

    .otp-box:focus {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
    }

    .lls-chips {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding: 2px 0 6px 0 !important;
        flex-wrap: nowrap !important;
    }

    .lls-chips::-webkit-scrollbar {
        display: none !important;
    }

    .login-lang-chip {
        flex-shrink: 0 !important;
        min-height: 36px !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 20px !important;
        touch-action: manipulation !important;
    }

    /* Super.money homepage responsive adjustments */
    .super-hero-card {
        padding: 1.5rem 1.4rem !important;
        border-radius: 20px !important;
        margin-bottom: 1.25rem !important;
    }
    .super-balance-display h1 {
        font-size: 2.2rem !important;
    }
    .super-metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    .super-widgets-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    .super-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    .super-footer-trust-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Split layouts: single column full width on mobile/tablet */
    .dashboard-content-split,
    .bin-simulator-layout,
    .quests-columns-split,
    .leaderboard-split-layout,
    .profile-split-layout,
    .help-split-layout,
    .map-interactive-layout,
    .wallet-hero-grid,
    .admin-controls-grid,
    .quest-planner-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .split-col-left,
    .split-col-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .glass-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.1rem !important;
    }

    /* Feature Banner */
    .feature-banner {
        flex-direction: column !important;
        gap: 0.85rem !important;
        padding: 1.15rem !important;
        width: 100% !important;
    }
    .feature-banner h3 {
        font-size: 1.15rem !important;
    }
    .feature-banner p {
        font-size: 0.82rem !important;
    }
    .step-mini-tags {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }
    .tag-pill {
        width: 100% !important;
        justify-content: flex-start !important;
        font-size: 0.75rem !important;
        box-sizing: border-box !important;
    }
    .feature-banner .btn-icon-round {
        align-self: flex-end !important;
        margin-top: -0.5rem !important;
    }

    /* Challenge card */
    .challenge-card .card-top-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    .countdown-badge {
        align-self: flex-start !important;
    }

    /* Rewards & Product Grids */
    .rewards-grid,
    .calc-results-grid,
    .upcycled-products-grid,
    .admin-metrics-row,
    .item-chips-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    /* Bottom Nav */
    #bottom-nav {
        padding: 0.4rem 0 !important;
        padding-bottom: max(0.4rem, env(safe-area-inset-bottom)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nav-item {
        font-size: 0.68rem !important;
        gap: 0.2rem !important;
    }
    .nav-item i {
        font-size: 1.45rem !important;
    }

    /* Menu Hub & Drawer Tablet / Mobile Optimizations */
    .menu-hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 0.9rem !important;
    }
    .mhc-category-pills {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .mhc-category-pills::-webkit-scrollbar {
        display: none;
    }
    .mhc-filter-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }
    .corner-drawer-panel {
        width: 380px !important;
        max-width: 88vw !important;
    }
}

/* --------------------------------------------------------------------------
   3. SMALL PHONE BREAKPOINT (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    #main-header {
        padding: 0.4rem 0.75rem !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }
    .logo-icon-wrap { height: 34px !important; }
    .brand-logo-img { height: 32px !important; max-width: 44px !important; }
    .brand-title { font-size: 1.18rem !important; }

    #main-content {
        padding: 0.75rem 0.65rem !important;
        padding-bottom: 5.5rem !important;
    }

    /* Stack buttons on tiny screens if under 380px */
    .header-action-group {
        grid-template-columns: 1fr !important;
    }

    .rewards-grid,
    .upcycled-products-grid,
    .admin-metrics-row,
    .calc-results-grid {
        grid-template-columns: 1fr !important;
    }

    .login-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 0.5rem 3.5rem 0.5rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .login-card-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .login-form-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1.2rem 0.85rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .podium-container { gap: 0.4rem !important; }
    .podium-step { width: 80px !important; }

    /* Menu Hub & Drawer Small Phone (≤480px) Optimizations */
    .corner-drawer-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        border-left: none !important;
    }
    .corner-drawer-header {
        padding: 1.1rem 1rem !important;
    }
    .corner-drawer-body {
        padding: 0.85rem !important;
    }
    .drawer-balance-strip {
        padding: 0.75rem !important;
        gap: 0.4rem !important;
    }
    .d-bal-value {
        font-size: 1rem !important;
    }
    .menu-hub-profile-card {
        padding: 1.1rem !important;
        gap: 1rem !important;
    }
    .mhp-stats-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem !important;
    }
    .mhp-profile-btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .menu-hub-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .menu-hub-card {
        padding: 1rem !important;
        gap: 0.85rem !important;
    }
    .mhc-icon-box {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.35rem !important;
        border-radius: 12px !important;
    }
    .menu-settings-card {
        padding: 1.1rem !important;
    }
}

/* Enhanced Map Search & Zone Controls */
.map-search-bar-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.map-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.map-search-input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--primary);
    font-size: 1.25rem;
}

.map-search-input-wrap input {
    width: 100%;
    padding: 10px 38px 10px 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.map-search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    background: #ffffff;
}

.map-search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    aspect-ratio: 1 / 1 !important;
}

.map-zone-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.zone-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zone-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.zone-pill:hover {
    background: rgba(46, 125, 50, 0.08);
    border-color: var(--primary);
}

.zone-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Route Polyline Stats Box */
.route-stats-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #1e3a8a;
}

.route-stats-box strong {
    font-weight: 700;
    color: #1d4ed8;
}

.map-viewport-card.fullscreen-mode {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: calc(100vh - 85px) !important;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-viewport-card.fullscreen-mode #bangalore-leaflet-map {
    height: calc(100% - 46px) !important;
}

/* Quick Test Credentials Box */
.quick-test-credentials-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 1rem;
}

.quick-test-credentials-box .qt-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #92400e;
    margin-bottom: 8px;
}

.qt-chips-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qt-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.qt-chip:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.15);
    background: #f0fdf4;
}

.qt-chip code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    color: #065f46;
}

.qt-chip span {
    font-weight: 700;
    font-size: 0.78rem;
    color: #059669;
}

.qt-chip.admin-qt-chip:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

.qt-chip.admin-qt-chip span {
    color: #4f46e5;
}

/* ==========================================================================
   Intelligent Location-Linked Rewards & Campus Smart Vending Styles
   ========================================================================== */

.location-context-bar {
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.loc-bar-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #1e293b;
    margin-bottom: 0.85rem;
}

.pulse-dot-live {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseLiveDot 1.8s infinite;
}

@keyframes pulseLiveDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.loc-chips-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.loc-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.loc-context-chip:hover {
    background: #f8fafc;
    border-color: #10b981;
    color: #065f46;
    transform: translateY(-1px);
}

.loc-context-chip.active {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

/* Dynamic Smart Location Recommendation Banner */
.smart-location-recommendation-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 5px solid #10b981;
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.smart-loc-banner-content h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #064e3b;
    font-weight: 800;
}

.smart-loc-banner-content p {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.smart-loc-badge-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.smart-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #065f46;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.smart-loc-venue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #047857;
}

.smart-loc-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Card Vending & Student Perks */
.reward-card.vending-card-glow {
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.12);
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.reward-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.6rem;
}

.vending-machine-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.campus-student-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: 9999px;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
}

.reward-location-chip {
    font-size: 0.78rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0.5rem 0;
    font-weight: 500;
}

.reward-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.75rem;
    width: 100%;
}

.btn-vending-dispense {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-vending-dispense:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Campus Smart Vending Machine Dispenser Modal Section */
.vending-kiosk-dispenser-section {
    background: #0f172a;
    border-radius: 16px;
    padding: 1.5rem;
    color: #f8fafc;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.vending-kiosk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.vending-loc-strip {
    font-size: 0.86rem;
    color: #94a3b8;
    margin: 0.5rem 0 1rem 0;
}

.vending-pin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.5);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    margin: 0.8rem 0;
}

.vending-pin-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #34d399;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.vending-pin-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 4px;
    text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.vending-pin-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.4rem;
}

.vending-dispense-box {
    margin: 1rem 0;
}

.vending-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    width: 100%;
}

.vending-status-pill.ready {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.vending-status-pill.working {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.dispense-success-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.dispense-success-icon {
    font-size: 2.4rem;
}

.dispense-success-text strong {
    color: #34d399;
    font-size: 1.05rem;
    display: block;
}

.dispense-success-text p {
    color: #e2e8f0;
    font-size: 0.86rem;
    margin: 0.2rem 0 0 0;
}

/* ==========================================================================
   Online Translation API Tool & Badges
   ========================================================================== */

.online-translation-api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.online-translation-api-status.api-live {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.drawer-trans-tool {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
}

.drawer-trans-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.drawer-trans-header small {
    font-weight: 700;
    color: #475569;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.drawer-trans-select {
    font-size: 0.76rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-weight: 600;
    color: #334155;
    outline: none;
}

.drawer-trans-input-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer-trans-input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease;
}

.drawer-trans-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.drawer-trans-btn {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: #10b981;
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-trans-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.drawer-trans-status {
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

.drawer-trans-result {
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #166534;
    line-height: 1.4;
}

/* ==========================================================================
   Full-Page Translation System Styles (Header Dropdown, Login Bar, Suppressed Google Banners)
   ========================================================================== */

/* Header Language Switcher Dropdown */
.header-lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-lang-btn:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.header-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-lang-menu.hidden {
    display: none;
}

.hl-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    width: 100%;
    transition: all 0.18s ease;
}

.hl-item:hover {
    background: #f1f5f9;
    color: #065f46;
}

.hl-item.active {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

.hl-flag {
    font-size: 1.1rem;
}

.hl-name {
    flex: 1;
}

.hl-native {
    font-size: 0.74rem;
    color: #94a3b8;
}

/* Login Regional Language Switch Bar (Compact, fits 100% width) */
.login-lang-switch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.lls-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-lang-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 180px;
    min-width: 0;
}

.login-lang-dropdown {
    width: 100%;
    padding: 0.32rem 1.6rem 0.32rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #065f46;
    background: #ffffff;
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    box-sizing: border-box;
}

.login-lang-dropdown:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.lang-select-arrow {
    position: absolute;
    right: 0.45rem;
    pointer-events: none;
    font-size: 1.1rem;
    color: #065f46;
}

/* Google Translate Clean Suppression (Clean & Unbroken UI) */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip, .goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

#google_translate_element,
.skiptranslate:not(.goog-te-gadget) {
    display: none !important;
}

.goog-te-gadget {
    display: none !important;
}

/* ==========================================================================
   EcoKash Smart Reward QR Scanner & Item Collected Celebration Overlay
   ========================================================================== */
.scanner-container-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.75rem;
    position: relative;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.1);
}

.scanner-camera-frame {
    position: relative;
    width: 100%;
    min-height: 290px;
    border-radius: 20px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.html5-camera-box {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.html5-camera-box video {
    border-radius: 14px !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    object-fit: contain !important;
}

.scanner-reticle-overlay {
    pointer-events: none;
    position: absolute;
    inset: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

.scanner-reticle-overlay .corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #10b981;
    border-style: solid;
}

.scanner-reticle-overlay .corner.tl { top: -2px; left: -2px; border-width: 3.5px 0 0 3.5px; border-top-left-radius: 10px; }
.scanner-reticle-overlay .corner.tr { top: -2px; right: -2px; border-width: 3.5px 3.5px 0 0; border-top-right-radius: 10px; }
.scanner-reticle-overlay .corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3.5px 3.5px; border-bottom-left-radius: 10px; }
.scanner-reticle-overlay .corner.br { bottom: -2px; right: -2px; border-width: 0 3.5px 3.5px 0; border-bottom-right-radius: 10px; }

.scanner-laser-beam {
    position: absolute;
    top: 10%;
    left: 4%;
    right: 4%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #10b981 30%, #34d399 50%, #10b981 70%, transparent 100%);
    box-shadow: 0 0 12px #10b981, 0 0 24px #34d399;
    animation: scannerLaserScan 2.4s ease-in-out infinite alternate;
    opacity: 0.85;
}

@keyframes scannerLaserScan {
    0% { top: 8%; opacity: 0.3; }
    50% { opacity: 0.95; }
    100% { top: 90%; opacity: 0.3; }
}

/* Item Collected Reward Overlay */
.scanner-result-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: scannerPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scanner-result-overlay.hidden {
    display: none !important;
}

@keyframes scannerPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-bounce {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.65), 0 8px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
    animation: bounceSuccess 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceSuccess {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.scanner-result-overlay h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.scanner-reward-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin: 0 0 1.2rem 0;
}

.scanner-reward-text strong {
    font-size: 1.45rem;
    color: #fbbf24;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

.scanner-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    color: #6ee7b7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.scanner-impact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.sip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

.scanner-result-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.scanner-result-actions button {
    min-width: 160px;
}

/* Actions Bar (Upload, Flashlight, Switch Camera & Quick Simulate) */
.scanner-actions-bar {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scanner Loading Spinner Overlay */
.scanner-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #34d399;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.25s ease;
}
.scanner-loading-overlay.hidden {
    display: none !important;
}

.scanner-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: scannerSpin 0.8s linear infinite;
}

@keyframes scannerSpin {
    to { transform: rotate(360deg); }
}

/* Scanner Error / Permission Fallback Overlay */
.scanner-error-overlay {
    position: absolute;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: #e2e8f0;
}
.scanner-error-overlay.hidden {
    display: none !important;
}
.scanner-error-overlay i.error-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}
.scanner-error-overlay h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: #ffffff;
}
.scanner-error-overlay p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1.2rem 0;
    max-width: 280px;
    line-height: 1.4;
}
.scanner-error-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scanner-actions-bar button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .scanner-container-card {
        padding: 1.2rem;
    }
}

/* ==========================================================================
   Profile Picture Upload & Edit Profile Details Styles
   ========================================================================== */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), #047857);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.35);
    cursor: pointer;
    overflow: hidden;
    border: 3px solid rgba(16, 185, 129, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-avatar-large:hover {
    transform: scale(1.03);
    border-color: #10b981;
}

.profile-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-avatar-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.profile-avatar-large:hover .profile-avatar-hover-overlay {
    opacity: 1;
}

.profile-avatar-hover-overlay i {
    font-size: 1.3rem;
}

.avatar-camera-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 5;
}

.avatar-camera-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.header-avatar-photo,
.drawer-avatar-photo,
.menu-hub-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Settings Tabs */
.settings-nav-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.4rem;
}

.settings-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.settings-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab-btn.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.settings-tab-pane {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

.settings-tab-pane.hidden {
    display: none !important;
}

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

/* Edit Profile Form Styles */
.edit-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.edit-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), #047857);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #10b981;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.edit-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.edit-avatar-preview:hover .edit-avatar-overlay {
    opacity: 1;
}

.edit-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.edit-avatar-meta strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.edit-avatar-meta p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.edit-avatar-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group .form-control {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

.edit-profile-form .form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Capacitor Native Android Optimizations & Full Touch Engine
   ========================================================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

body.capacitor-app {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

/* Instantaneous touch responsiveness (eliminates 300ms click delay) */
button,
a,
.btn-primary,
.btn-secondary,
.btn-outline,
.auth-method-chip,
.auth-tab-btn,
.nav-item,
.fast-demo-pill,
.login-lang-chip,
.modal-close,
.corner-drawer-close,
.interactive-card,
.action-card {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Micro-haptic visual feedback on touch */
button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-google-auth:active,
.auth-method-chip:active,
.auth-tab-btn:active,
.fast-demo-pill:active,
.nav-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Inputs and text areas always selectable and zoom-free */
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: auto !important;
}

/* Native Android App: Always activate streamlined mobile login */
body.capacitor-app .login-brand-panel {
    display: none !important;
}
body.capacitor-app .mobile-login-header {
    display: flex !important;
}
body.capacitor-app .login-container {
    grid-template-columns: 1fr !important;
    max-width: 450px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0.5rem 0.85rem 4rem 0.85rem !important;
    gap: 0 !important;
    box-sizing: border-box !important;
}
body.capacitor-app .login-form-card {
    padding: 1.4rem 1.15rem !important;
    border-radius: 24px !important;
}
body.capacitor-app .auth-method-selector {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}
body.capacitor-app .input-field-wrap input,
body.capacitor-app .input-field-wrap select {
    font-size: 16px !important;
}

/* ==========================================================================
   Dynamic Screen Display Auto-Scaling & Touch Gesture Transitions
   ========================================================================== */
:root {
    --vh: 1vh;
    --vw: 1vw;
    --app-height: calc(var(--vh, 1vh) * 100);
}

html, body {
    width: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

#main-content {
    min-height: calc(var(--vh, 1vh) * 100);
    padding-bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 16px))) !important;
    box-sizing: border-box;
}

/* Touch Momentum Scrolling */
.view {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Directional Touch Swipe Navigation Animations */
.view.slide-left-enter {
    animation: viewSlideLeftEnter 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.view.slide-right-enter {
    animation: viewSlideRightEnter 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes viewSlideLeftEnter {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes viewSlideRightEnter {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 📱 Screen XS: Compact budget phones (<=360px width) */
body.screen-xs #main-content,
body.screen-xs #app-container,
body.screen-xs #view-login {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
}
body.screen-xs .login-container {
    padding: 0.25rem 0.4rem 3.5rem 0.4rem !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.screen-xs .login-form-card {
    padding: 1.1rem 0.75rem !important;
    border-radius: 18px !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.screen-xs .auth-card-heading h2 {
    font-size: 1.25rem !important;
}
body.screen-xs .auth-method-chip {
    min-height: 44px !important;
    font-size: 0.78rem !important;
    padding: 0.4rem 0.3rem !important;
}
body.screen-xs .otp-inputs-grid {
    gap: 4px !important;
}
body.screen-xs .otp-box {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 1.25rem !important;
    border-radius: 10px !important;
}
body.screen-xs .nav-item {
    padding: 0.25rem 0.35rem !important;
    min-width: 44px !important;
}
body.screen-xs .nav-item span {
    font-size: 0.62rem !important;
}
body.screen-xs .nav-item i {
    font-size: 1.35rem !important;
}

/* 📱 Screen SM: Standard modern smartphones (361px - 480px width) */
body.screen-sm #main-content,
body.screen-sm #app-container,
body.screen-sm #view-login {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
}
body.screen-sm .login-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.35rem 0.75rem 3.5rem 0.75rem !important;
    margin: 0 auto !important;
}
body.screen-sm .login-card-panel {
    width: 100% !important;
    max-width: 100% !important;
}
body.screen-sm .login-form-card {
    padding: 1.25rem 0.95rem !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.screen-sm .auth-card-heading h2 {
    font-size: 1.35rem !important;
}

/* 📱 Universal mobile safeguard: Ensure login view never horizontally scrolls or overflows */
@media (max-width: 768px) {
    #view-login {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .login-container {
        width: 100% !important;
        max-width: 420px !important;
        box-sizing: border-box !important;
    }
    .login-form-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .login-form-card * {
        box-sizing: border-box !important;
    }
}

/* 📱 Screen Tall: 20:9 & 21:9 modern tall Android phones */
body.screen-tall .mobile-login-header {
    margin-bottom: 1.5rem !important;
    padding-top: 1rem !important;
}

/* 📱 Screen Compact / Foldables */
body.screen-compact .login-container {
    padding-top: 0.5rem !important;
}




