/* 
   PACT Car Wash App UI Design System
   Aesthetic: Premium Obsidian Black + Luxurious Gold Accents + Glassmorphism
*/

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

:root {
    color-scheme: dark;
    /* Color Palette - Gold & Charcoal Black */
    --bg-dark: #060606;
    --bg-surface: #0f0f11;
    --bg-panel: rgba(18, 18, 20, 0.75);
    --border-color: rgba(229, 184, 66, 0.08); /* Subtle Gold border tint */
    --border-color-glow: rgba(229, 184, 66, 0.35);
    
    --primary-gold: #e5b842;
    --primary-gold-dark: #b8860b;
    --primary-gradient: linear-gradient(135deg, #f5d061 0%, #b8860b 100%);
    --gradient-hover: linear-gradient(135deg, #fce888 0%, #d4a317 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #a0a5b0;
    --text-muted: #606470;
    --text-glow: rgba(229, 184, 66, 0.5);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.15);
    
    /* Layout & Effects */
    --sidebar-width: 260px;
    --sidebar-mobile-height: 64px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --glass-blur: blur(25px);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(229, 184, 66, 0.03);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Hide scrollbars but keep functionality */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(229, 184, 66, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Base Utility Classes */
.glass {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.glass-glow {
    border-color: var(--border-color-glow);
    box-shadow: 0 0 20px rgba(229, 184, 66, 0.08);
}

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

/* Global App Layout */
#app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
    border-right: 1px solid var(--border-color);
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: var(--glass-blur);
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-left: 8px;
}

.logo-main-text {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-sub-text {
    font-size: 0.52rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.22em;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-top: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(229, 184, 66, 0.03);
    border-color: rgba(229, 184, 66, 0.05);
}

.nav-item.active {
    color: var(--primary-gold);
    background: rgba(229, 184, 66, 0.08);
    border-color: rgba(229, 184, 66, 0.2);
    box-shadow: inset 0 0 10px rgba(229, 184, 66, 0.05);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--bg-dark);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.user-area {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--error);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Layout (Fullscreen, no Sidebar) - Modern Split Layout */
.auth-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    background: var(--bg-dark);
}

.auth-container.active {
    display: flex !important;
}

.auth-side-panel {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(229, 184, 66, 0.06) 0%, rgba(5, 5, 5, 0.95) 100%), var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.auth-side-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(229, 184, 66, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.auth-side-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.auth-side-tagline {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 40px;
}

.auth-side-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-feature-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: radial-gradient(circle at 50% 0%, rgba(229, 184, 66, 0.05) 0%, rgba(5, 5, 5, 0) 70%), var(--bg-dark);
}

.auth-box {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.auth-logo .logo-main-text {
    font-size: 2.8rem;
}

.auth-logo .logo-sub-text {
    font-size: 0.65rem;
}

.auth-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Screen Transitions & Containers */
.screen {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: block;
}

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

/* View Header */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.view-title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.view-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #111115;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    color-scheme: dark;
}

.form-input:focus {
    border-color: var(--primary-gold);
    background: #18181c;
    box-shadow: 0 0 10px rgba(229, 184, 66, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e5b842' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background-color: #0f0f11;
    color: #f8fafc;
}

.form-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 0 15px rgba(229, 184, 66, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.btn-glow {
    background: rgba(229, 184, 66, 0.08);
    color: var(--primary-gold);
    border-color: rgba(229, 184, 66, 0.2);
}

.btn-glow:hover {
    background: rgba(229, 184, 66, 0.15);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(229, 184, 66, 0.1);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Warning Banner element */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--warning);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeIn 0.4s ease;
}

.warning-banner a {
    color: var(--primary-gold);
    text-decoration: underline;
    font-weight: 600;
}

/* Dashboard Cards and Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Panel Design */
.panel {
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Feature Specific components */
/* Active Subscription Card */
.subscription-status-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    background: radial-gradient(circle at top right, rgba(229, 184, 66, 0.08) 0%, rgba(5, 5, 5, 0) 60%), #1b1b20;
    border: 1px solid rgba(229, 184, 66, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.subscription-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sub-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.sub-badge {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sub-badge.warning-badge {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sub-badge.danger-badge {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sub-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.sub-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sub-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Empty State Card */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.005);
    border: 1px dashed var(--border-color);
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    color: var(--text-muted);
    margin-bottom: 16px;
    stroke-width: 1.2;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-state-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 320px;
    margin-bottom: 20px;
}

/* Wash Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--border-radius-md);
    background: #1b1b20;
    border: 1px solid rgba(229, 184, 66, 0.1);
    transition: var(--transition-smooth);
}

.schedule-card:hover {
    border-color: rgba(229, 184, 66, 0.25);
    background: #222228;
}

.schedule-date-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: rgba(229, 184, 66, 0.03);
    border: 1px solid rgba(229, 184, 66, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
}

.schedule-date-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
}

.schedule-date-day {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.schedule-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.schedule-title {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.schedule-status.pending {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning);
}

.schedule-status.completed {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.schedule-status.rescheduledpending {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning);
}

/* Vehicles List Grid */
.vehicles-grid, .addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.car-card.glass, .address-card.glass {
    background: #1b1b20;
    border: 1px solid rgba(229, 184, 66, 0.1);
}

.car-card, .address-card {
    padding: 20px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

.car-card.glass:hover, .address-card.glass:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 184, 66, 0.25);
    background: #222228;
}

.car-card-header, .address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.car-brand, .address-line1 {
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.car-plate {
    font-family: monospace;
    font-size: 0.85rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-secondary);
    display: inline-block;
    margin-top: 4px;
}

.car-type-badge {
    background: rgba(229, 184, 66, 0.08);
    color: var(--primary-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.address-landmark {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.address-area {
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 500;
}

.address-default-badge {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-make-default {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition-smooth);
    text-decoration: underline;
}

.btn-make-default:hover {
    color: var(--primary-gold);
}

/* Plans Grid and wizard */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--border-radius-lg);
    background: #1b1b20;
    border: 1px solid rgba(229, 184, 66, 0.1);
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    border-color: rgba(229, 184, 66, 0.25);
    background: #222228;
}

.plan-card.selected {
    border-color: var(--primary-gold);
    background: rgba(229, 184, 66, 0.06);
    box-shadow: 0 0 20px rgba(229, 184, 66, 0.12);
}

.plan-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.plan-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.plan-price-box {
    margin-bottom: 20px;
}

.plan-price-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.plan-price-period {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Wizard Progress Tracker */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--primary-gold);
    z-index: 2;
    transition: var(--transition-smooth);
    width: 0%;
}

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

.wizard-step-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.wizard-step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.wizard-step.active .wizard-step-node {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(229, 184, 66, 0.15);
}

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

.wizard-step.completed .wizard-step-node {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--bg-dark);
}

.wizard-step.completed .wizard-step-label {
    color: var(--primary-gold);
}

/* Multi-day schedule checklist rows */
.pref-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1b1b20;
    border: 1px solid rgba(229, 184, 66, 0.1);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.pref-day-row:hover {
    background: #222228;
    border-color: rgba(229, 184, 66, 0.2);
}

.pref-day-row.active {
    border-color: var(--border-color-glow);
    background: rgba(229, 184, 66, 0.04);
}

.pref-day-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.pref-day-name {
    font-weight: 500;
    cursor: pointer;
}

/* Toast System */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    animation: slideInToast 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--primary-gold);
}

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

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading Spinner & Skeletons */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.01) 25%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.01) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    border-radius: 4px;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding-bottom: var(--sidebar-mobile-height);
    }
    
    .sidebar {
        width: 100%;
        height: var(--sidebar-mobile-height);
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        flex-direction: row;
        padding: 0 16px;
        align-items: center;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: rgba(8, 8, 8, 0.95);
        justify-content: space-between;
    }
    
    .sidebar-logo {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
        margin: 0;
    }
    
    .nav-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        font-size: 0.65rem;
        border-radius: var(--border-radius-sm);
        border: none;
        background: none !important;
        box-shadow: none !important;
    }
    
    .nav-item.active {
        color: var(--primary-gold);
    }
    
    .nav-item span {
        display: block;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
    
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .view-header .btn {
        width: 100%;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pref-day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pref-day-row select {
        max-width: 100% !important;
        width: 100%;
    }
}

/* Auth Split Screen Media Query */
@media (max-width: 900px) {
    .auth-side-panel {
        display: none !important;
    }
    .auth-form-panel {
        flex: 1;
        width: 100%;
        padding: 24px;
    }
}

/* Custom Global Modal Overrides for Viewport Centering & Fixed Overlay */
#add-car-modal, #add-address-modal, #confirm-modal, #change-password-modal, #reschedule-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    background: rgba(5, 5, 5, 0.85) !important;
}

/* Purchase History Table Styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 15px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-primary);
}

.history-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    vertical-align: middle;
    color: var(--text-primary);
}

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

.history-status-success {
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
}

