:root {
    --bg-dark: #f8f9fa;       
    --card-bg: #ffffff;       
    --border-color: #e2e8f0;  
    --text-main: #1a202c;     
    --text-muted: #64748b;    
    --primary-blue: #007bff;  
    --primary-hover: #0056b3;    
    --btn-green: #27ae60;     
    --btn-orange: #f39c12;    
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

.hidden { display: none !important; }
.flex-center { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
.flex-row { display: flex; align-items: center; } 
.w-100 { width: 100%; }

.mt-10{margin-top:10px;} .mt-15{margin-top:15px;} .mt-20{margin-top:20px;} .mt-30{margin-top:30px;}
.mb-5{margin-bottom:5px;} .mb-10{margin-bottom:10px;} .mb-15{margin-bottom:15px;} .mb-20{margin-bottom:20px;} 
.ml-10{margin-left:10px;}

.text-blue { color: var(--primary-blue); } 
.text-green { color: var(--btn-green); } 
.text-orange { color: var(--btn-orange); }
.text-red { color: #e53e3e; }
.text-sm { font-size: 0.85rem; } 
.text-muted { color: var(--text-muted); }
.center-text { text-align: center; } 
.font-bold { font-weight: bold; }
.relative { position: relative; }

.screen { display: none; opacity: 0; transition: opacity 0.4s ease-in-out; min-height: 100vh; padding-bottom: 50px; } 
.active-screen { display: block; opacity: 1; } 
.flex-center.active-screen { display: flex; }

.logo-3d { font-size: 3.5rem; color: var(--primary-blue); font-weight: 900; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.premium-loader { width: 80px; height: 80px; border-radius: 50%; border: 6px solid rgba(0, 123, 255, 0.1); border-top-color: var(--primary-blue); animation: spin3D 1.5s infinite; }
@keyframes spin3D { 100% { transform: rotate(360deg); } }

.solid-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); width: 90%; max-width: 450px; margin: 0 auto; }

.input-field { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--border-color); background: #f8f9fa; outline: none; transition: border 0.3s; }
.input-field:focus { border-color: var(--primary-blue); }
.block-label { display: block; margin-bottom: 5px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.input-file { width: 100%; padding: 10px; background: #f8f9fa; border: 1px dashed var(--border-color); border-radius: 8px; cursor: pointer; }

.btn { padding: 14px; border-radius: 8px; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; font-size: 1rem; }
.btn-primary { background: var(--primary-blue); color: #ffffff; } 
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); }
.btn-outline { background: #ffffff; border: 1px solid var(--primary-blue); color: var(--primary-blue); }
.btn-outline.active { background: var(--primary-blue); color: white; }
.btn-disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

.app-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: var(--card-bg); border-bottom: 1px solid var(--border-color); margin-bottom: 20px; position: sticky; top: 0; z-index: 100;}
.logo-text { font-size: 1.5rem; color: var(--primary-blue); font-weight: 800; margin: 0;}
.menu-icon { font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; }

.category-filters { display: flex; gap: 10px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filters .btn-outline { white-space: nowrap; padding: 8px 16px; border-radius: 20px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 0 20px; }
.vehicle-card { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.vehicle-card:hover { transform: translateY(-3px); }
.vehicle-img { width: 100%; height: 180px; object-fit: contain; background: #f8f9fa; border-bottom: 1px solid var(--border-color); padding: 10px;}
.vehicle-info { padding: 15px; } 
.dimmed-card { opacity: 0.7; filter: grayscale(100%); }

#sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; backdrop-filter: blur(2px); }
.sidebar { position: fixed; top: 0; left: -350px; width: 300px; height: 100%; background: #ffffff; z-index: 9999; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px; box-shadow: 10px 0 30px rgba(0,0,0,0.1); overflow-y: auto;}
.sidebar.active { left: 0; }
.sidebar-links { list-style: none; margin-top: 20px; padding: 0;} 
.sidebar-links a { display: flex; align-items: center; padding: 12px 15px; color: var(--text-main); text-decoration: none; border-radius: 8px; font-weight: 500; transition: 0.2s;}
.sidebar-links a i { width: 25px; font-size: 1.1rem; color: var(--primary-blue); }
.sidebar-links a:hover { background: #f1f5f9; }
.section-label { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: bold; margin-bottom: 10px; padding-left: 5px; text-transform: uppercase; letter-spacing: 1px; }

.modal { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background-color: rgba(0, 0, 0, 0.6) !important; z-index: 999999 !important; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.modal-content { background: #ffffff; padding: 25px; border-radius: 12px; width: 90%; max-width: 420px; position: relative; animation: alertPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; box-shadow: 0 15px 35px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto;}
@keyframes alertPopIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.close-btn { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; z-index: 10; transition: 0.2s;}
.close-btn:hover { color: #e53e3e; transform: scale(1.1); }

.phone-input-wrapper { display: flex; align-items: center; position: relative; }
.country-code { position: absolute; left: 15px; font-weight: bold; color: var(--text-main); }
.phone-with-prefix { padding-left: 55px !important; letter-spacing: 2px; font-size: 1.1rem;}

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: white; color: var(--text-main); padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; font-weight: 500; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-left: 4px solid var(--primary-blue); min-width: 250px;}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--btn-green); } .toast.success i { color: var(--btn-green); }
.toast.error { border-left-color: #e53e3e; } .toast.error i { color: #e53e3e; }
.toast i { font-size: 1.2rem; }

/* ==========================================
   ✨ HIGH-VISIBILITY AI LOADER ✨
   ========================================== */
.ai-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    z-index: 99999;
}

.ai-scanning-text {
    font-size: 1.3rem;
    color: #ffffff !important; 
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8); 
    animation: pulse-glow 1.5s infinite alternate;
}

.ai-timer-badge {
    background: linear-gradient(135deg, #00c6ff, #0072ff); 
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 0 25px rgba(0, 114, 255, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

@keyframes pulse-glow {
    0% { opacity: 0.8; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); text-shadow: 0px 0px 15px rgba(255,255,255,0.8); }
}

/* ==========================================
   ✨ NEW BEAUTIFUL LOADERS & ANIMATIONS ✨
   ========================================== */
.colorful-loader { display: flex; gap: 10px; justify-content: center; align-items: center; }
.colorful-loader .dot { width: 18px; height: 18px; border-radius: 50%; animation: bounce 0.5s alternate infinite ease-in-out; }
.colorful-loader .dot.orange { background-color: #f39c12; animation-delay: 0s; box-shadow: 0 0 10px rgba(243, 156, 18, 0.6); }
.colorful-loader .dot.yellow { background-color: #f1c40f; animation-delay: 0.15s; box-shadow: 0 0 10px rgba(241, 196, 15, 0.6); }
.colorful-loader .dot.blue { background-color: #007bff; animation-delay: 0.3s; box-shadow: 0 0 10px rgba(0, 123, 255, 0.6); }

@keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

.starting-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 3px; color: var(--primary-blue); animation: pulseFade 1.5s infinite alternate; margin-top: 15px; }
@keyframes pulseFade { 0% { opacity: 0.5; } 100% { opacity: 1; text-shadow: 0px 0px 10px rgba(0, 123, 255, 0.4); } }

.auth-card-animated { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

.profile-pic-container { position: relative; width: 90px; height: 90px; margin: 0 auto 15px auto; border-radius: 50%; border: 3px solid var(--primary-blue); overflow: hidden; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.profile-pic-container img { width: 100%; height: 100%; object-fit: cover; }
.profile-pic-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 30px; background: rgba(0,0,0,0.6); color: white; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; opacity: 0; transition: 0.3s; }
.profile-pic-container:hover .profile-pic-overlay { opacity: 1; }

/* =========================================
   ✨ PREMIUM AUTH SCREEN (GLASSMORPHISM) ✨
   ========================================= */
.premium-auth-bg::before, .premium-auth-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: floatOrb 12s infinite alternate ease-in-out;
}
.premium-auth-bg::before {
    background: rgba(59, 130, 246, 0.4); 
    top: -100px; left: -100px;
}
.premium-auth-bg::after {
    background: rgba(139, 92, 246, 0.3); 
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(60px) scale(1.2); }
}

.premium-glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
    position: relative;
    width: 90%;
    max-width: 400px;
    color: white;
    text-align: center;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.premium-logo-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.4));
    margin-bottom: 15px;
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 4px 15px rgba(59, 130, 246, 0.4)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 4px 25px rgba(167, 139, 250, 0.6)); }
}

.premium-input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}
.premium-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: 0.3s;
}
.premium-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.premium-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.premium-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.premium-input:focus + i { color: #60a5fa; }

.premium-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    margin-top: 10px;
}
.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.6);
}

.premium-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}
.premium-btn:hover::after {
    left: 150%;
}

.toggle-auth {
    color: #93c5fd;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
}
.toggle-auth:hover { 
    color: white; 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); 
}

.premium-auth-bg {
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #1e3a8a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

/* ==========================================
   ✨ RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP) ✨
   ========================================== */
@media (min-width: 1025px) {
    .app-header { padding: 15px 40px; }
    .vehicle-grid, .category-filters {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 40px;
    }
    #active-pickup-banner {
        max-width: 1160px;
        margin: 0 auto 20px auto;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .modal-content, .solid-card { width: 85%; }
}

@media (max-width: 768px) {
    .app-header { padding: 15px; }
    .logo-text { font-size: 1.3rem; }
    .vehicle-grid { grid-template-columns: 1fr; padding: 0 15px; gap: 15px; }
    .category-filters { padding: 0 15px; }
    .vehicle-card { margin-bottom: 5px; }
    .modal-content, .solid-card { padding: 20px; width: 95%; }
    #auth-screen > div { padding: 30px 20px !important; width: 95% !important; }
    #auth-screen h1 { font-size: 1.8rem !important; }
    #live-battery-text { font-size: 2rem !important; }
    .my-bike-stats-grid { grid-template-columns: 1fr !important; }
    .sidebar { width: 280px; }
    #swap-map { height: 250px !important; }
}

/* ==========================================
   ✨ PREMIUM FILE UPLOAD BUTTONS ✨
   ========================================== */
.custom-file-upload {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f8f9fa;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.custom-file-upload:hover {
    background: #e2e8f0;
    border-color: var(--primary-blue);
    color: var(--primary-hover);
    transform: translateY(-2px);
}
.custom-file-upload i { margin-right: 8px; font-size: 1.1rem; }

/* ==========================================
   ✨ RESPONSIVE LOGO & AUTH UI OPTIMIZATIONS ✨
   ========================================== */
.splash-logo { width: 280px; max-width: 85%; margin-bottom: 25px; object-fit: contain; }

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.08), 0 4px 6px rgba(0,0,0,0.04);
    width: 90%;
    max-width: 400px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto; 
    animation: authPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authPopIn { 
    0% { opacity: 0; transform: scale(0.95) translateY(20px); } 
    100% { opacity: 1; transform: scale(1) translateY(0); } 
}

.auth-card::-webkit-scrollbar { width: 0px; }

.auth-logo { 
    width: 140px; 
    margin-bottom: 5px; 
    object-fit: contain; 
    mix-blend-mode: multiply; 
}

@media (min-width: 1025px) {
    .auth-logo { width: 160px; }
    .auth-card { padding: 40px 30px; }
    .splash-logo { width: 350px; }
    .header-logo { height: 60px; } 
}

@media (max-width: 768px) {
    .splash-logo { width: 220px; }
    .auth-logo { width: 150px; margin-bottom: 15px; }
    .header-logo { height: 42px; } 
}

/* =========================================
   ✨ PREMIUM NATIVE APP ANIMATIONS ✨
   ========================================= */
.screen:not(.active-screen) { display: none !important; }
.screen.active-screen { animation: fadeInSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.modal-content, .card { animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.btn { transition: all 0.2s ease; }
.btn:active {
    transform: scale(0.95); 
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

.vehicle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUpItem 0.5s ease backwards;
}
.vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vehicle-card:nth-child(4) { animation-delay: 0.4s; }

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

@keyframes fadeUpItem {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.sidebar { transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; }

/* =========================================
   ✨ PREMIUM WEATHER WIDGET STYLES ✨
   ========================================= */
.weather-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; /* Beautiful Indigo-Purple gradient */
    border-radius: 20px !important;
    padding: 22px 20px !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3) !important;
    position: relative;
    overflow: hidden;
    animation: fadeInSlideUp 0.5s ease;
}

.weather-card > div {
    align-items: flex-start !important; /* Aligns items perfectly to the top */
}

#weather-temp {
    font-size: 2.5rem !important; /* Larger, bolder temperature */
    font-weight: 900 !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#aqi-badge {
    display: inline-block !important;
    white-space: nowrap !important; /* ✨ MAGIC FIX: Stops the text from breaking into two lines! */
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    padding: 8px 14px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.weather-card::after {
    content: '\f0c2'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -40px;
    font-size: 9rem;
    color: white;
    opacity: 0.08;
    transform: rotate(-10deg);
    pointer-events: none;
}

/* =========================================
   ✨ ULTRA-PREMIUM CINEMATIC SPLASH ✨
   ========================================= */
.premium-splash {
    background-color: #ffffff !important; 
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999999;
    overflow: hidden;
    transform: translateZ(0); 
}

.electric-flash {
    position: absolute;
    top: 50%; left: 50%;
    width: 100vmax; height: 100vmax;
    margin-left: -50vmax; margin-top: -50vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: 1;
    will-change: transform, opacity;
    animation: fastShockwave 2.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
}

@keyframes fastShockwave {
    0%   { transform: scale(0); opacity: 1; }
    30%  { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.cinematic-zoom {
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply; 
    will-change: transform, opacity;
    animation: instantZoom 2.5s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

@keyframes instantZoom {
    0%   { transform: scale(0.5); opacity: 0; }
    15%  { transform: scale(1.1); opacity: 1; } 
    70%  { transform: scale(1.0); opacity: 1; } 
    100% { transform: scale(15); opacity: 0; }  
}

/* ==========================================
   ✨ UNIFIED MASTER FIXES ✨
   ========================================== */

/* 1. MOBILE OVERFLOW FIX */
.modal .card, .modal-content {
    max-height: 85vh;       
    overflow-y: auto;       
    width: 95%;             
    margin: auto;
}
.modal .card::-webkit-scrollbar, .modal-content::-webkit-scrollbar {
    width: 0px; 
    background: transparent;
}
/* ==========================================
   ✨ 1. THE PERFECT FLOWING BORDER (BRIGHT & CRISP FOR CARDS) ✨
   ========================================== */
.solid-card, .stat-card, .vehicle-card, .login-card, .modal-content, .complaint-card {
    position: relative !important;
    background: transparent !important; 
    border: none !important; 
    border-radius: 16px !important;
    overflow: hidden !important; 
    z-index: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.08) !important;
}

/* The spinning blue and orange laser at the VERY BACK */
.solid-card::before, .stat-card::before, .vehicle-card::before, .login-card::before, .modal-content::before, .complaint-card::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important; 
    left: 50% !important; 
    width: 250vmax !important; 
    height: 250vmax !important;
    /* ✨ INCREASED BRIGHTNESS (NEON BLUE & NEON ORANGE) ✨ */
    background: conic-gradient(
        transparent 0deg, 
        #00e5ff 90deg, 
        transparent 180deg, 
        #ffaa00 270deg, 
        transparent 360deg
    ) !important;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: premium-border-spin 3s linear infinite !important;
    z-index: -2 !important; 
}

/* The solid white inner mask! */
.solid-card::after, .stat-card::after, .vehicle-card::after, .login-card::after, .modal-content::after, .complaint-card::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important; bottom: 3px !important; left: 3px !important; right: 3px !important;
    background-color: #ffffff !important; 
    border-radius: 14px !important; 
    z-index: -1 !important; 
}

@keyframes premium-border-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Ensure text and images stay visible on top */
.vehicle-info { background: transparent !important; position: relative !important; z-index: 2 !important; }
.solid-card > *, .stat-card > *, .vehicle-card > *, .login-card > *, .modal-content > *, .complaint-card > * { position: relative !important; z-index: 2 !important; }
.close-btn { position: absolute !important; top: 15px !important; right: 15px !important; z-index: 10 !important; }

/* ==========================================
   ✨ 2. DOUBLE-LAYERED BOTTOM NAVIGATION ✨
   ========================================== */

/* --- LAYER 1: THE OUTER LONG BAR (BLUE & ORANGE FLOW) --- */
.floating-bottom-nav {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px;
    background: transparent !important; 
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15) !important;
    border-radius: 40px !important; 
    display: flex; justify-content: space-around;
    align-items: center; padding: 10px 20px;
    z-index: 9000 !important; 
    overflow: hidden !important; 
}

/* The Orange & Blue spinning laser for the outer bar */
.floating-bottom-nav::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: 250vmax !important; height: 250vmax !important;
    background: conic-gradient(
        transparent 0deg, 
        #00e5ff 90deg, /* Blue */
        transparent 180deg, 
        #ffaa00 270deg, /* Orange */
        transparent 360deg
    ) !important;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: premium-border-spin 4s linear infinite !important;
    z-index: -2 !important;
}

/* The solid white mask for the outer bar */
.floating-bottom-nav::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important; bottom: 3px !important; left: 3px !important; right: 3px !important;
    background: #ffffff !important; 
    border-radius: 37px !important; 
    z-index: -1 !important;
}


/* --- LAYER 2: THE ICONS (GREEN & RED FLOW) --- */
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; font-size: 0.7rem; font-weight: 700;
    transition: all 0.3s ease; 
    padding: 8px 15px; 
    border-radius: 20px !important;
    position: relative !important; 
    z-index: 2 !important; /* Keeps icons safely above the outer bar's white mask */
    overflow: hidden !important;
    background: transparent !important;
    border: 2px solid transparent !important; 
    color: #64748b !important;
}

.nav-item i { font-size: 1.3rem; margin-bottom: 4px; transition: all 0.3s ease; }

/* The spinning laser for the individual icons */
.nav-item::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: 150vmax !important; height: 150vmax !important;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: premium-border-spin 2.5s linear infinite !important;
    z-index: -2 !important;
}

/* The solid white mask for the individual icons */
.nav-item::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important; bottom: 2px !important; left: 2px !important; right: 2px !important;
    background: #ffffff !important; 
    border-radius: 18px !important; 
    z-index: -1 !important;
}

/* Inactive Icons (Hubs, My Bike, Profile): LIGHT RED Flow */
.nav-item:not(.active)::before {
    background: conic-gradient(transparent, transparent, transparent, #ff7675, #ff4d4d, transparent) !important;
}

/* Active Icon (Home): GREEN Flow & Text */
.nav-item.active::before {
    background: conic-gradient(transparent, transparent, transparent, #2ecc71, #27ae60, transparent) !important;
}

.nav-item.active { color: #27ae60 !important; }
.nav-item.active i { transform: translateY(-3px) scale(1.1); }

/* Ensure icon text stays on top */
.nav-item > * { position: relative; z-index: 2; }

@media (min-width: 769px) { .floating-bottom-nav { display: none; } }
.sidebar { padding-bottom: 50px !important; z-index: 9999 !important; }

/* ==========================================
   ✨ 3. PERFECT CATEGORY BUTTONS (BRIGHT FLOWING BORDER) ✨
   ========================================== */
.category-filters { padding: 5px 20px !important; align-items: center; }

.category-filters .btn-outline {
    position: relative !important; background: transparent !important;
    border: none !important; z-index: 1; overflow: hidden;
    flex-shrink: 0 !important; border-radius: 30px !important;
    padding: 8px 18px !important; color: var(--text-main) !important;
}

.category-filters .btn-outline::before {
    content: '' !important; position: absolute !important; top: 50% !important; left: 50% !important;
    width: 150vmax !important; height: 150vmax !important;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: premium-border-spin 2.5s linear infinite !important;
    z-index: -2 !important;
}

.category-filters .btn-outline::after {
    content: '' !important; position: absolute !important;
    top: 2px !important; bottom: 2px !important; left: 2px !important; right: 2px !important;
    background: #ffffff !important; border-radius: 28px !important; z-index: -1 !important;
}

/* Inactive Category Buttons: Bright Skyblue Flow */
.category-filters .btn-outline:not(.active)::before {
    background: conic-gradient(transparent, transparent, transparent, #00e5ff, #007bff, transparent) !important;
}

/* Active Category Button: Bright Orange Flow & Text */
.category-filters .btn-outline.active::before {
    background: conic-gradient(transparent, transparent, transparent, #ffdd00, #ff8c00, transparent) !important;
}
.category-filters .btn-outline.active {
    color: #d97706 !important; font-weight: 900 !important; text-shadow: none !important;
}

/* Keeps the button text visible above the mask */
.category-filters .btn-outline > * { position: relative; z-index: 2; }

@media (max-width: 768px) {
    .category-filters { padding-top: 10px !important; padding-bottom: 10px !important; align-items: center !important; }
    .category-filters .btn-outline { margin: 2px 0 !important; }
}

/* ==========================================
   ✨ PREMIUM UI UPGRADE: GLASSMORPHISM & ORANGE/BLUE THEME ✨
   ========================================== */

/* 1. SCROLL FIX: Allows you to click the bottom 'Drive Now' button */
.screen, .active-screen { 
    padding-bottom: 140px !important; 
}
.vehicle-grid {
    padding-bottom: 40px !important;
}

/* 2. PREMIUM BACKGROUND: Subtle atmospheric Orange & Blue glow */
body {
    background-color: #f4f7fb !important;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 123, 255, 0.08) 0%, transparent 50%), 
        radial-gradient(circle at 100% 100%, rgba(243, 156, 18, 0.08) 0%, transparent 50%) !important;
    background-attachment: fixed !important;
}

/* 3. CONTINUOUS ORANGE & BLUE CARD BORDERS */
.solid-card::before, .stat-card::before, .vehicle-card::before, .login-card::before, .modal-content::before, .complaint-card::before {
    /* Smooth, continuous elegant gradient */
    background: conic-gradient(
        #007bff, #00d2ff, #f39c12, #ff8c00, #007bff
    ) !important;
    animation: premium-border-spin 5s linear infinite !important;
}

/* 4. GLASSMORPHIC BOTTOM NAVIGATION BAR */
.floating-bottom-nav {
    background: rgba(255, 255, 255, 0.65) !important; /* Semi-transparent */
    backdrop-filter: blur(20px) !important; /* Frosted Glass Blur Effect */
    -webkit-backdrop-filter: blur(20px) !important; /* Apple Device Support */
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 -10px 40px rgba(0, 123, 255, 0.1) !important;
}

/* Make sure the mask inside the glass menu matches the background */
.floating-bottom-nav::after {
    background: transparent !important;
}

/* 5. BOTTOM NAV ICONS: Blue (Active) and Orange (Inactive) */
.nav-item.active { 
    color: #38b416 !important; 
}
.nav-item.active::before {
    /* Active Icon: Blue Flow */
    background: conic-gradient(transparent, transparent, transparent, #29cf0c, #007bff, transparent) !important;
}
.nav-item:not(.active)::before {
    /* Inactive Icons: Orange Flow */
    background: conic-gradient(transparent, transparent, transparent, #fbd38d, #f39c12, transparent) !important;
}

/* Ensure the white icon circles stay solid so the glass doesn't ruin the icons */
.nav-item::after {
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

/* ==========================================
   ✨ PREMIUM SIDEBAR THEME (GLASS & GLOW) ✨
   ========================================== */

/* 1. The Main Sidebar Glass Background */
.sidebar {
    background: rgba(244, 247, 251, 0.80) !important; /* Soft frosted tint */
    backdrop-filter: blur(25px) !important; /* Frosted glass effect */
    -webkit-backdrop-filter: blur(25px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 15px 0 50px rgba(0, 123, 255, 0.15) !important;
    
    /* Ambient glowing orbs (Blue at the top, Orange on the right) */
    background-image: 
        radial-gradient(circle at 50% -5%, rgba(0, 123, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 120% 50%, rgba(243, 156, 18, 0.15) 0%, transparent 40%) !important;
}

/* 2. Upgrade the Profile Header Area */
.sidebar > div:first-child {
    background: #ffffff !important;
    padding: 25px 15px 20px 15px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1) !important;
    border: 1px solid rgba(0, 123, 255, 0.1) !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    position: relative;
    overflow: hidden;
}

/* Beautiful Top Border Line on the Profile Card */
.sidebar > div:first-child::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #007bff, #00d2ff, #f39c12, #ff8c00);
}

/* 3. Upgrade the Links into Clickable Pills */
.sidebar-links a {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
    padding: 14px 15px !important; /* Slightly taller for easy tapping */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 4. Satisfying Slide Animation when tapping a link */
.sidebar-links a:hover, .sidebar-links a:active {
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    transform: translateX(8px) !important; /* Slides slightly to the right */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.15) !important;
}

/* Make the section labels pop a bit more */
.section-label {
    color: var(--primary-blue) !important;
    opacity: 0.7;
    margin-top: 5px !important;
}

/* ==========================================
   ✨ SIDEBAR PROFILE HEADER LAYOUT FIX ✨
   ========================================== */

/* 1. Force the white profile card to stay strictly inside the sidebar */
.sidebar > div:first-child {
    width: 100% !important;
    box-sizing: border-box !important; /* Prevents padding from stretching the box */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 25px 15px 20px 15px !important;
}

/* 2. Format the Name perfectly */
#sidebar-name {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    color: var(--text-main) !important;
    max-width: 100% !important;
    /* If the name is too long, it will wrap beautifully */
    word-wrap: break-word !important; 
}

/* 3. Format the Phone Number */
#sidebar-phone {
    font-size: 1rem !important;
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    letter-spacing: 1px !important;
}

/* 4. PERFECT SINGLE-LINE EMAIL FIX */
#sidebar-email {
    font-size: 0.75rem !important; /* Slightly smaller to fit better */
    color: var(--text-muted) !important;
    width: 100% !important;
    
    /* Force single line */
    white-space: nowrap !important; 
    
    /* Add ellipsis (...) if it's still too long, so it never breaks the layout */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    line-height: 1.4 !important;
    padding: 6px 12px !important; 
    background: #f8f9fa !important; 
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    
    /* Ensure it doesn't push the card width */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Center the profile picture tightly */
.profile-pic-container {
    margin: 0 auto 15px auto !important;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2) !important;
    border: 4px solid var(--primary-blue) !important;
}

/* ==========================================
   ✨ CRITICAL BUG FIX: RESTORE SCROLLING ✨
   ========================================== */

/* 1. Register the smart border angle */
@property --border-angle {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0turn;
}

/* 2. Target ALL tall cards that need to scroll (Login, Modals, Wallet, KYC Upload) */
.modal .solid-card, .modal-content, .login-card, #upload-screen .solid-card {
    /* ✨ UNLOCK SCROLLING ✨ */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    
    /* Apply Smart Background Border that doesn't block the screen */
    background: 
        linear-gradient(var(--card-bg, #ffffff), var(--card-bg, #ffffff)) padding-box,
        conic-gradient(from var(--border-angle), transparent 10%, #00e5ff 40%, transparent 60%, #ffaa00 90%) border-box !important;
    border: 3px solid transparent !important;
    
    /* Animate the border directly */
    animation: bg-spin 4s linear infinite !important;
}

/* 3. Delete the old invisible walls that were blocking your touch/scrolls */
.modal .solid-card::before, .modal .solid-card::after, 
.modal-content::before, .modal-content::after, 
.login-card::before, .login-card::after,
#upload-screen .solid-card::before, #upload-screen .solid-card::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

/* 5. Keep the UI clean by hiding the ugly scrollbar (but keeping the scroll capability) */
.modal .solid-card::-webkit-scrollbar, .modal-content::-webkit-scrollbar, .login-card::-webkit-scrollbar, #upload-screen .solid-card::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
}



/* 4. The smooth spin animation */
@keyframes bg-spin {
    to { --border-angle: 1turn; }
}


/* 🧭 SMART RANGE PREDICTOR STYLES */
.predictor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.predictor-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.predictor-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
}

.search-group {
    display: flex;
    gap: 10px;
}

#destination-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

#destination-input:focus {
    border-color: #3b82f6;
}

#check-range-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

#check-range-btn:active {
    background: #2563eb;
}

/* Prediction Output Elements */
.prediction-result-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    animation: fadeInResult 0.3s ease-out forwards;
}

.prediction-result-box.hidden {
    display: none;
}

.result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.result-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.result-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-success .result-title { color: #166534; }
.result-warning .result-title { color: #9a3412; }

.result-desc {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
}

@keyframes fadeInResult {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ✨ PREMIUM SCREEN TRANSITIONS (UPDATED FIX) */
.screen {
    display: none;
    opacity: 0;
}

/* For normal screens like the dashboard */
.screen.active-screen {
    display: block;
    animation: spatialSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 🔥 THE FIX: Restores exact centering for Splash, Login, and Upload screens */
.screen.flex-center.active-screen {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes spatialSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ✨ TACTILE BUTTON ANIMATIONS */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

/* Adds a quick light-sweep effect when tapped */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
}
/* ✨ BREATHING / PULSING UI */
/* Add this class to your battery icon or wallet balance */
.live-pulse {
    animation: gentleBreathe 2.5s infinite alternate ease-in-out;
}

@keyframes gentleBreathe {
    0% { transform: scale(1); opacity: 0.85; filter: drop-shadow(0 0 5px rgba(39,174,96,0.3)); }
    100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(39,174,96,0.8)); }
}

/* Smooth loading for your battery bar fill */
#live-battery-fill {
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* ✨ GLASSMORPHISM MODAL ENHANCEMENTS */
.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.6) !important;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px);
}

.modal .card {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When the modal is active (not hidden), the card bounces in */
.modal:not(.hidden) .card {
    transform: translateY(0) scale(1);
    opacity: 1;
}
/* ✨ BOTTOM NAV ICON BOUNCE */
.nav-item i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active i {
    transform: translateY(-5px) scale(1.2);
    color: var(--primary-blue);
    text-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* ✨ SLIDE-TO-CONFIRM BUTTON STYLES */
.swipe-btn-container {
    position: relative;
    width: 100%;
    height: 60px;
    background: #1e293b; /* Dark metallic track */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.3);
    user-select: none;
    touch-action: none; /* Prevents screen scrolling while dragging */
    margin-top: 15px;
}

.swipe-btn-track {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.3s ease;
}

.swipe-btn-text {
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.swipe-btn-thumb {
    position: absolute;
    top: 4px; left: 4px;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.swipe-btn-thumb:active {
    cursor: grabbing;
}

.swipe-btn-thumb i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

/* 🔥 SUCCESS STATE (When dragged to the end) */
.swipe-success .swipe-btn-track {
    background: #10b981; /* Glowing Green */
}
.swipe-success .swipe-btn-thumb {
    background: #ffffff;
    color: #10b981;
    box-shadow: -4px 0 15px rgba(16, 185, 129, 0.5);
}
.swipe-success .swipe-btn-text {
    color: #ffffff;
    font-size: 1.1rem;
}

/* ✨ UPDATED: PERFECTLY CENTERED VOICE PILL */
.ai-concierge-pill {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    box-sizing: border-box;
}

.ai-concierge-pill:active {
    transform: translateX(-50%) scale(0.95);
}

.ai-concierge-pill.listening {
    background: rgba(59, 130, 246, 0.95);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: rgba(147, 197, 253, 0.5);
}

.ai-pill-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-mic-icon i {
    font-size: 0.95rem;
    color: #3b82f6;
}

.listening .ai-mic-icon i {
    color: #ffffff;
    animation: micPulse 1s infinite alternate;
}

.ai-text-container {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Dynamic wave animation bars */
.ai-wave-anim {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 12px;
}

.ai-wave-anim span {
    display: block;
    width: 2px;
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: waveBounce 1.2s infinite ease-in-out;
}

.ai-wave-anim span:nth-child(2) { animation-delay: -1.1s; }
.ai-wave-anim span:nth-child(3) { animation-delay: -0.9s; }
.ai-wave-anim span:nth-child(4) { animation-delay: -0.8s; }

@keyframes waveBounce {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

@keyframes micPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* ✨ UPLOAD SCREEN INTERNAL SCROLL FIX ✨ */
#upload-screen .solid-card {
    max-height: 75vh !important; /* Limits the card height to 75% of the screen */
    overflow-y: auto !important; /* Forces the inside to scroll when content is too long */
    overflow-x: hidden !important;
    padding-bottom: 30px !important; /* Gives breathing room at the bottom */
}

/* Hide the ugly scrollbar but keep the scrolling active */
#upload-screen .solid-card::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
}
