/* Customer Specific Styles */

/* ==================== DARK THEME (Default) - Gray Color Scheme ==================== */
:root {
    --primary: rgb(156, 163, 175);
    --primary-dark: rgb(107, 114, 128);
    --primary-darker: rgb(75, 85, 99);
    --primary-muted: rgba(156, 163, 175, 0.2);
    --secondary: rgb(209, 213, 219);
    --secondary-light: rgb(229, 231, 235);

    --bg-primary: #18181b;
    --bg-secondary: #27272a;
    --bg-tertiary: #3f3f46;
    --bg-card: #27272a;
    --bg-hover: #3f3f46;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    --border: rgba(161, 161, 170, 0.2);
    --border-hover: rgba(161, 161, 170, 0.4);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px rgba(161, 161, 170, 0.1), 0 0 48px rgba(0, 0, 0, 0.2);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --danger: #ef4444;
}

/* Dark theme body background */
html {
    background: #1f1f23 !important;
}

html, body {
    min-height: 100vh;
}

body {
    background: #1f1f23 !important;
}

body::before {
    display: none !important;
}

/* ==================== LIGHT THEME ==================== */
[data-theme="light"] {
    --primary: rgb(82, 82, 91);
    --primary-dark: rgb(63, 63, 70);
    --primary-darker: rgb(39, 39, 42);
    --primary-muted: rgba(82, 82, 91, 0.2);
    --secondary: rgb(113, 113, 122);
    --secondary-light: rgb(161, 161, 170);

    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --bg-card: #ffffff;
    --bg-hover: #e4e4e7;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --text-muted: #a1a1aa;

    --border: rgba(63, 63, 70, 0.15);
    --border-hover: rgba(63, 63, 70, 0.35);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 24px rgba(0, 0, 0, 0.08), 0 0 48px rgba(0, 0, 0, 0.03);

    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --danger: #dc2626;
}

/* Scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-tertiary) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Light theme specific overrides */
[data-theme="light"] html {
    background: #e4e4e7 !important;
}

[data-theme="light"] body {
    background: #f4f4f5 !important;
}

[data-theme="light"] .customer-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.98) 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-section h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .info-card,
[data-theme="light"] .stat-card-small,
[data-theme="light"] .car-card,
[data-theme="light"] .appointment-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
    border-color: rgba(63, 63, 70, 0.1);
}

[data-theme="light"] .info-card:hover,
[data-theme="light"] .stat-card-small:hover,
[data-theme="light"] .car-card:hover,
[data-theme="light"] .appointment-card:hover {
    border-color: rgba(63, 63, 70, 0.25);
}

[data-theme="light"] .card-header h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .auth-section,
[data-theme="light"] .initial-loading {
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.95) 0%, rgba(244, 244, 245, 0.98) 100%);
}

[data-theme="light"] .auth-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
    border-color: rgba(63, 63, 70, 0.15);
}

[data-theme="light"] .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    background: rgba(244, 244, 245, 0.6);
}

[data-theme="light"] .profile-page {
    background: transparent;
}

[data-theme="light"] .profile-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(63, 63, 70, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
}

/* Button overrides for customer app - neutral gray colors */
.btn {
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    color: white;
    box-shadow: none;
    border: 1px solid rgba(161, 161, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.8), rgba(63, 63, 70, 0.8));
    color: var(--text-primary);
    border: 2px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.9), rgba(82, 82, 91, 0.9));
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    color: white;
    border: 1px solid rgba(63, 63, 70, 0.3);
}

[data-theme="light"] .btn-secondary {
    background: linear-gradient(135deg, rgba(228, 228, 231, 0.8), rgba(212, 212, 216, 0.6));
    color: var(--text-primary);
}

[data-theme="light"] .btn-google {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.8));
    border-color: rgba(63, 63, 70, 0.15);
}

[data-theme="light"] .subscription-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
}

[data-theme="light"] .subscription-option.active {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

[data-theme="light"] .payment-method-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.8));
}

[data-theme="light"] .payment-method-option.active {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.08), rgba(255, 255, 255, 0.9));
}

[data-theme="light"] .car-license {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.1), rgba(63, 63, 70, 0.06));
    color: var(--primary-dark);
}

[data-theme="light"] .car-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .car-warning.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .btn-car-action {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.08), rgba(63, 63, 70, 0.04));
}

[data-theme="light"] .btn-car-action:hover {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.15), rgba(63, 63, 70, 0.08));
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(161, 161, 170, 0.1);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: rgba(161, 161, 170, 0.2);
    border-color: var(--border-hover);
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Dark theme (default): show moon icon */
.theme-toggle .icon-moon {
    display: block;
}

/* Light theme: show sun icon */
[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle {
    background: rgba(82, 82, 91, 0.1);
}

/* Auth page theme toggle positioning */
.auth-theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-container {
    position: relative;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .auth-theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== END LIGHT THEME ==================== */

/* Initial Loading Screen */
.initial-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
}

.initial-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Logo icon with image */
.logo-icon:has(img) {
    background: linear-gradient(135deg, #4a4a4a 0%, #3d3d3d 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-icon:has(img):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .logo-icon:has(img) {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .logo-icon:has(img):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.initial-loading-content .logo-icon {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}

.initial-loading-content .loading-spinner {
    width: 48px;
    height: 48px;
}

.initial-loading-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.auth-form .info-group {
    margin-bottom: 1rem;
}

.auth-form .info-group input {
    padding: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--secondary);
}

.auth-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .auth-loading {
    background: linear-gradient(135deg, rgba(244, 244, 245, 0.8) 0%, rgba(228, 228, 231, 0.6) 100%);
}

.auth-loading p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    color: var(--danger);
    font-size: 0.9375rem;
    text-align: center;
}

/* Email Verification Screen */
.verify-email-icon {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.verify-email-address {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin: 0.5rem 0 1rem;
    word-break: break-all;
}

#verify-email-form h2 {
    text-align: center;
}

#verify-email-form .auth-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.resend-cooldown {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Header */
.customer-header {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 48px rgba(161, 161, 170, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-section .logo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu-wrapper {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: 2px solid transparent;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar-btn:hover {
    background: rgba(161, 161, 170, 0.1);
    border-color: var(--border);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
    flex-shrink: 0;
}

.user-avatar svg {
    width: 22px;
    height: 22px;
    color: white;
}

.user-avatar-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
}

.user-menu-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-menu-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-avatar-btn.active .user-menu-arrow {
    transform: rotate(180deg);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 380px;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.profile-dropdown.active {
    display: flex;
}

.profile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.profile-dropdown-header h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.profile-dropdown-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.profile-dropdown-content .info-group {
    margin-bottom: 1rem;
}

.profile-dropdown-content .address-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.profile-dropdown-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.profile-dropdown-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Profile Page */
.profile-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-page-header {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

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

.btn-back svg {
    width: 20px;
    height: 20px;
}

.profile-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-grid .info-card.full-width {
    grid-column: 1 / -1;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

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

.btn-logout:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    transform: translateY(-2px);
}

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

    .profile-page {
        padding: 0.75rem;
    }

    .profile-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .profile-page-header h1 {
        font-size: 1.25rem;
    }

    .btn-back {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .profile-page-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding: 0.5rem;
    }

    .profile-page-header h1 {
        font-size: 1.125rem;
    }

    .btn-back {
        font-size: 0.8125rem;
        padding: 0.375rem 0.5rem;
        gap: 0.375rem;
    }

    .btn-back svg {
        width: 16px;
        height: 16px;
    }
}

/* Main Content */
.customer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card-small:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.stat-card-small.stat-clickable {
    cursor: pointer;
}

.stat-icon-small {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-small svg {
    width: 24px;
    height: 24px;
    color: #6adbd9;
}

.stat-icon-small.blue,
.stat-icon-small.green,
.stat-icon-small.purple {
    background: var(--bg-tertiary);
}

.stat-label-small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value-small {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Customer Grid */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Modal override - match zinc theme instead of blue from styles.css */
.modal-content {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal-content::before {
    background: none;
}

.modal-footer {
    background: rgba(30, 30, 33, 0.6);
}

.modal-header {
    background: rgba(30, 30, 33, 0.6);
}

/* Info Cards */
.info-card {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: visible;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--border-hover);
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content {
    padding: 1.5rem;
    overflow: visible;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.btn-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.15), rgba(113, 113, 122, 0.1));
    border-color: var(--border-hover);
}

.btn-edit svg {
    width: 16px;
    height: 16px;
}

/* Info Groups */
.info-group {
    margin-bottom: 1.25rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.info-group input:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.info-group input:not(:disabled):focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(161, 161, 170, 0.15);
}

.input-hint {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.password-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-fill.strength-weak { background: var(--danger); }
.password-strength-fill.strength-fair { background: var(--warning); }
.password-strength-fill.strength-good { background: #3b82f6; }
.password-strength-fill.strength-strong { background: var(--success); }

.password-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 5rem;
    text-align: right;
}

.password-strength-label.strength-weak { color: var(--danger); }
.password-strength-label.strength-fair { color: var(--warning); }
.password-strength-label.strength-good { color: #3b82f6; }
.password-strength-label.strength-strong { color: var(--success); }

/* Password Requirements Checklist */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.password-requirements li {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.password-requirements li .req-icon::before {
    content: '○';
    font-size: 0.625rem;
}

.password-requirements li.met {
    color: var(--success);
}

.password-requirements li.met .req-icon::before {
    content: '✓';
    font-weight: 700;
}

.password-requirements li.unmet {
    color: var(--danger);
}

.password-requirements li.unmet .req-icon::before {
    content: '✗';
    font-weight: 700;
}

/* Subscription Options */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.subscription-option {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-option:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.subscription-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
    box-shadow: 0 4px 16px rgba(161, 161, 170, 0.2);
}

.subscription-badge {
    position: absolute;
    top: -12px;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.subscription-header {
    margin-bottom: 1rem;
}

.subscription-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subscription-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.subscription-features {
    list-style: none;
    padding: 0;
}

.subscription-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

/* Availability Selector */
.availability-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.day-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.day-selector:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

.day-selector:not(:has(input:disabled)):hover {
    border-color: var(--border-hover);
}

.day-selector input:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.day-selector:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
}

.day-selector input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.day-selector span {
    font-size: 0.875rem;
    font-weight: 500;
}

.time-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.time-input-wrapper label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.time-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6), rgba(63, 63, 70, 0.6));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.time-input-wrapper input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.time-input-wrapper input:not(:disabled):focus {
    outline: none;
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(161, 161, 170, 0.15);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.car-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.car-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.car-icon svg {
    width: 32px;
    height: 32px;
    color: #6adbd9;
}

.car-image-container {
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
}

.car-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.05), rgba(113, 113, 122, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-loading {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.car-loading p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(161, 161, 170, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.car-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.car-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.car-license {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.75rem;
}

.car-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

.car-remove svg {
    width: 16px;
    height: 16px;
    color: var(--danger);
}

/* Appointments List */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.appointment-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.appointment-date {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.appointment-day {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.appointment-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.appointment-info {
    flex: 1;
}

.appointment-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.appointment-car-name {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.appointment-address {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.appointment-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.appointment-status.confirmed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

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

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

.appointment-status.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Historical appointment styling */
.appointment-card.history {
    opacity: 0.85;
}

.appointment-card.history:hover {
    opacity: 1;
}

.appointment-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.125rem;
}

/* Pagination controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    grid-column: 1 / -1;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Car Preview */
.car-preview {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.car-preview h3 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.car-preview p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.warning-message {
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.car-image-preview {
    margin-top: 1rem;
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
}

.car-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

/* Car Card Updates */
.car-subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.car-subscription-badge.none {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.car-subscription-badge.basic {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.car-subscription-badge.premium {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.car-subscription-badge.exclusive {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Car Availability Info */
.car-availability-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--success);
}

.car-availability-info svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.car-availability-info.no-availability {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Car Subscription Badge - Active State */
.car-subscription-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Car Warnings Section */
.car-warnings {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.car-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius);
    font-size: 0.7rem;
    color: var(--warning);
    border-left: 2px solid var(--warning);
}

.car-warning svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.car-warning.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left-color: var(--error);
}

.car-warning.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    border-left-color: var(--blue);
}

/* Car Status OK */
.car-status-ok {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--success);
    border-left: 2px solid var(--success);
}

.car-status-ok svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Car Card States */
.car-card.needs-attention {
    border-color: rgba(245, 158, 11, 0.3);
}

.car-card.fully-configured {
    border-color: rgba(16, 185, 129, 0.3);
}

.car-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-car-action {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.5rem;
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-car-action:hover {
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.2), rgba(113, 113, 122, 0.1));
    border-color: var(--border-hover);
}

.btn-car-action svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.btn-car-action.has-subscription {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-car-action.has-subscription:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.5);
}

/* Subscription button takes full width */
.btn-car-action.subscription-btn {
    min-width: 100%;
    flex-basis: 100%;
}

.btn-car-action.subscription-btn:not(.has-subscription) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.btn-car-action.subscription-btn:not(.has-subscription):hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
}

/* Disabled state for subscription button (no address or availability) */
.btn-car-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-car-action.subscription-btn.disabled {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.2);
    color: var(--text-muted);
}

.btn-car-action.subscription-btn.disabled:hover {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.2);
}

/* Current Subscription Info */
.current-subscription-info {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.current-sub-badge,
.sub-usage {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.current-sub-badge span,
.sub-usage span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.current-sub-badge strong,
.sub-usage strong {
    font-size: 1rem;
    color: var(--success);
}

/* Modal Medium */
.modal-content.modal-medium {
    max-width: 550px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.modal-content.modal-medium .modal-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    z-index: 10;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.modal-content.modal-medium .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.modal-content.modal-medium .modal-footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    z-index: 10;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Modal Large */
.modal-content.modal-large {
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.modal-content.modal-large .modal-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    z-index: 10;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.modal-content.modal-large .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
}

.modal-content.modal-large .modal-footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.98) 0%, rgba(24, 24, 27, 0.98) 100%);
    z-index: 10;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.car-settings-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.car-settings-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Subscription Options Modal */
.subscription-options-modal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscription-option-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-option-small:hover {
    border-color: var(--border-hover);
}

.subscription-option-small.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
}

.sub-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.subscription-option-small.active .sub-radio {
    border-color: var(--primary);
}

.subscription-option-small.active .sub-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.sub-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sub-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.sub-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Availability Per Day */
.availability-per-day {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day-availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.day-availability:has(.day-enabled:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.05), rgba(113, 113, 122, 0.02));
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.day-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.day-name {
    font-weight: 600;
    color: var(--text-primary);
}

.day-times {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.day-availability:has(.day-enabled:checked) .day-times {
    opacity: 1;
}

.day-times input[type="time"] {
    padding: 0.5rem;
    background: rgba(39, 39, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.day-times span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Light theme: Availability per day */
[data-theme="light"] .day-availability {
    background: linear-gradient(135deg, rgba(244, 244, 245, 0.5), rgba(250, 250, 250, 0.6));
    border-color: rgba(63, 63, 70, 0.12);
}

[data-theme="light"] .day-availability:has(.day-enabled:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.95));
}

[data-theme="light"] .day-times input[type="time"] {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(63, 63, 70, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .day-times input[type="time"]:focus {
    border-color: var(--primary);
    background: #ffffff;
}

/* Address Choice in Car Settings */
.address-choice {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(63, 63, 70, 0.4));
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-option:hover {
    border-color: var(--border-hover);
}

.address-option:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1), rgba(113, 113, 122, 0.05));
}

.address-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.address-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-option-content strong {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.address-preview {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.car-custom-address {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.car-custom-address .info-group:has(.address-suggestions) {
    position: relative;
}

.car-custom-address .address-suggestions {
    z-index: 1000;
    max-height: 150px;
}

/* Modal Description */
.modal-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Address Section */
.address-section {
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
}

.address-section .section-label {
    display: block;
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.address-search-wrapper {
    position: relative;
    margin-bottom: 1rem;
    z-index: 100;
}

/* Ensure personal info card is above other cards when editing */
.info-card:has(.address-suggestions.active) {
    z-index: 50;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border);
    margin-top: 4px;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover {
    background: var(--bg-hover);
}

.address-suggestion-main {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.address-suggestion-sub {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.address-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.address-row {
    display: flex;
    gap: 0.75rem;
}

.address-row .info-group {
    margin-bottom: 0;
}

.street-field {
    flex: 3;
}

.number-field {
    flex: 1;
    min-width: 80px;
}

.addition-field {
    flex: 0.75;
    min-width: 70px;
}

.postal-field {
    flex: 1;
    min-width: 100px;
}

.city-field {
    flex: 2;
}

.address-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.address-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.address-no-results {
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 600px) {
    .address-row {
        flex-wrap: wrap;
    }

    .street-field {
        flex: 1 1 100%;
    }

    .number-field,
    .addition-field {
        flex: 1;
    }

    .postal-field,
    .city-field {
        flex: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .customer-grid {
        grid-template-columns: 1fr;
    }

    .subscription-options {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Auth section */
    .auth-section {
        padding: 1rem;
    }

    .auth-logo .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .auth-logo h1 {
        font-size: 1.25rem;
    }

    .auth-form {
        padding: 1.25rem;
    }

    .auth-form h2 {
        font-size: 1.25rem;
    }

    /* Header - keep logo and profile side by side */
    .customer-header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .logo-section {
        gap: 0.5rem;
    }

    .logo-section .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .logo-section h1 {
        font-size: 1rem;
    }

    .header-subtitle {
        display: none;
    }

    .user-info {
        gap: 0.5rem;
    }

    /* User profile button - compact */
    .user-avatar-btn {
        padding: 0.25rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .user-avatar svg {
        width: 18px;
        height: 18px;
    }

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

    /* Main content - less padding */
    .customer-content {
        padding: 1rem;
    }

    /* Quick stats - horizontal scroll or 2 columns */
    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .stat-card-small {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
    }

    .stat-icon-small {
        width: 36px;
        height: 36px;
    }

    .stat-icon-small svg {
        width: 18px;
        height: 18px;
    }

    .stat-label-small {
        font-size: 0.625rem;
        line-height: 1.2;
    }

    .stat-value-small {
        font-size: 0.75rem;
    }

    /* Cards */
    .info-card {
        border-radius: var(--radius);
    }

    .card-header {
        padding: 0.625rem 0.75rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .card-header h2 {
        font-size: 0.9375rem;
        flex: 1;
    }

    .card-header .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .card-header .btn svg {
        width: 14px;
        height: 14px;
    }

    .card-content {
        padding: 0.625rem;
    }

    /* Car cards */
    .car-card {
        padding: 1rem;
    }

    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .car-info h3 {
        font-size: 1rem;
    }

    .car-subscription {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Modals */
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        border-radius: var(--radius);
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Time range */
    .time-range {
        grid-template-columns: 1fr;
    }

    /* Availability per day - stack on mobile */
    .day-availability {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .day-times {
        width: 100%;
        padding-left: 1.75rem;
    }

    .day-times input[type="time"] {
        flex: 1;
        min-width: 0;
    }

    /* Profile dropdown */
    .profile-dropdown {
        width: calc(100vw - 2rem);
        max-width: 380px;
        right: -0.5rem;
    }

    /* Appointments - compact horizontal layout */
    .appointments-list {
        gap: 0.5rem;
    }

    .appointment-card {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.625rem;
    }

    .appointment-date {
        min-width: 44px;
        padding: 0.375rem;
    }

    .appointment-day {
        font-size: 1.125rem;
    }

    .appointment-month {
        font-size: 0.5625rem;
    }

    .appointment-year {
        font-size: 0.5rem;
    }

    .appointment-info {
        gap: 0.125rem;
    }

    .appointment-time {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }

    .appointment-car-name {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }

    .appointment-address {
        font-size: 0.6875rem;
        margin-bottom: 0.125rem;
    }

    .appointment-status {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }

    /* Car cards - compact layout */
    .cars-grid {
        gap: 0.75rem;
    }

    .car-card {
        padding: 0.75rem;
    }

    .car-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

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

    .car-name {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }

    .car-details {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .car-license {
        font-size: 0.8125rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .car-warnings {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .car-warning {
        font-size: 0.6875rem;
        padding: 0.375rem 0.5rem;
    }

    .car-warning svg {
        width: 12px;
        height: 12px;
    }

    .car-actions {
        gap: 0.375rem;
        margin-top: 0.5rem;
    }

    .btn-car-action {
        padding: 0.375rem;
        font-size: 0.6875rem;
    }

    .btn-car-action svg {
        width: 10px;
        height: 10px;
    }

    .car-remove {
        width: 24px;
        height: 24px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .car-remove svg {
        width: 12px;
        height: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .customer-header {
        padding: 0.5rem 0.75rem;
    }

    .logo-section .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .logo-section h1 {
        font-size: 0.875rem;
    }

    .user-info {
        gap: 0.375rem;
    }

    .customer-content {
        padding: 0.75rem;
    }

    .quick-stats {
        gap: 0.375rem;
    }

    .stat-card-small {
        padding: 0.5rem 0.25rem;
    }

    .stat-icon-small {
        width: 28px;
        height: 28px;
    }

    .stat-icon-small svg {
        width: 14px;
        height: 14px;
    }

    .stat-label-small {
        font-size: 0.5625rem;
    }

    .stat-value-small {
        font-size: 0.6875rem;
    }

    .card-header {
        padding: 0.5rem 0.625rem;
    }

    .card-header h2 {
        font-size: 0.875rem;
    }

    .card-header .btn {
        padding: 0.3125rem 0.5rem;
        font-size: 0.6875rem;
    }

    .card-content {
        padding: 0.5rem;
    }

    /* Payment method selector */
    .payment-method-selector {
        gap: 0.5rem;
    }

    .payment-method-option {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .payment-icon {
        width: 32px;
        height: 32px;
    }

    .payment-name {
        font-size: 0.8125rem;
    }

    .payment-desc {
        font-size: 0.6875rem;
    }

    /* Subscription options */
    .subscription-option {
        padding: 1rem;
    }

    .subscription-option h4 {
        font-size: 1rem;
    }

    /* Car cards on very small screens */
    .car-card {
        padding: 0.625rem;
    }

    .car-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.375rem;
    }

    .car-icon svg {
        width: 16px;
        height: 16px;
    }

    .car-name {
        font-size: 0.875rem;
    }

    .car-details {
        font-size: 0.6875rem;
    }

    .car-license {
        font-size: 0.75rem;
        padding: 0.1875rem 0.375rem;
    }

    .car-warning {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
    }

    .car-warning svg {
        width: 10px;
        height: 10px;
    }

    .btn-car-action {
        min-width: calc(50% - 0.1875rem);
        flex-basis: calc(50% - 0.1875rem);
        font-size: 0.625rem;
        padding: 0.3125rem;
    }

    .btn-car-action.subscription-btn {
        min-width: 100%;
        flex-basis: 100%;
    }

    /* Appointments on very small screens */
    .appointment-card {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .appointment-date {
        min-width: 36px;
        padding: 0.25rem;
    }

    .appointment-day {
        font-size: 1rem;
    }

    .appointment-month {
        font-size: 0.5rem;
    }

    .appointment-year {
        display: none;
    }

    .appointment-time {
        font-size: 0.75rem;
    }

    .appointment-car-name {
        font-size: 0.6875rem;
    }

    .appointment-address {
        font-size: 0.625rem;
    }

    .appointment-status {
        font-size: 0.5625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* ==================== SUBSCRIPTION OPTIONS ====================*/

.subscription-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.subscription-loading p {
    color: var(--text-secondary);
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.subscription-option {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-option:hover {
    border-color: var(--primary-muted);
    transform: translateY(-2px);
}

.subscription-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(39, 39, 42, 0.8) 100%);
}

.subscription-option.custom-deal {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(39, 39, 42, 0.8) 100%);
}

.subscription-option.custom-deal.active {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.custom-deal-label {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.subscription-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.subscription-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.subscription-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subscription-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
}

.subscription-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Custom Deal Banner */
.custom-deal-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.deal-icon {
    font-size: 1.5rem;
}

.deal-content strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 0.25rem;
}

.deal-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Commitment Info */
.commitment-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.commitment-info svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.commitment-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.commitment-info strong {
    color: var(--text-primary);
}

/* ==================== SEPA SETUP MODAL ==================== */

.sepa-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(161, 161, 170, 0.1);
    border-radius: var(--radius);
}

.sepa-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
}

.sepa-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.sepa-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.selected-subscription-summary {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .selected-subscription-summary {
    background: linear-gradient(135deg, rgba(244, 244, 245, 0.8) 0%, rgba(228, 228, 231, 0.6) 100%);
}

.selected-subscription-summary p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-details strong {
    color: var(--text-primary);
    font-size: 1.125rem;
}

.summary-details span {
    color: var(--primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stripe-element {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: all 0.2s ease;
}

.stripe-element:focus-within {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.stripe-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.sepa-mandate-text {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.sepa-mandate-text p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0;
}

/* Terms checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.terms-checkbox:hover {
    border-color: var(--border-hover);
}

.terms-checkbox.checked {
    border-color: var(--primary);
    background: rgba(156, 163, 175, 0.05);
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-checkbox .terms-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

.terms-checkbox .terms-label a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-checkbox .terms-label a:hover {
    color: var(--text-primary);
}

.terms-error {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

[data-theme="light"] .terms-checkbox {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .terms-checkbox.checked {
    background: rgba(82, 82, 91, 0.05);
}

/* Payment Method Selector */
.payment-selector-wrapper {
    margin-bottom: 1.5rem;
}

.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.payment-method-option.active {
    border-color: var(--primary);
    background: rgba(161, 161, 170, 0.1);
}

.payment-method-option .payment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 1rem;
    color: var(--text-secondary);
}

.payment-method-option.active .payment-icon {
    background: rgba(161, 161, 170, 0.2);
    color: var(--primary);
}

.payment-method-option .payment-info {
    flex: 1;
}

.payment-method-option .payment-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-method-option .payment-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.payment-method-option .payment-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.payment-method-option.active .payment-check {
    border-color: var(--primary);
    background: var(--primary);
}

.payment-method-option.active .payment-check::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Payment Input Sections */
.payment-input-section {
    margin-bottom: 1rem;
}

/* Button loading state */
#sepa-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#sepa-btn-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Current subscription info in modal */
.current-subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.current-sub-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-sub-badge span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.current-sub-badge strong {
    color: var(--success);
    font-size: 1rem;
}

.sub-usage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-usage span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sub-usage strong {
    color: var(--text-primary);
}

/* Start date info */
.start-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Subscription Change Info */
.subscription-change-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(161, 161, 170, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.change-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.change-type-badge.upgrade {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.change-type-badge.upgrade svg {
    stroke: var(--success);
}

.change-type-badge.downgrade {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.change-type-badge.downgrade svg {
    stroke: var(--warning);
}

.change-type-badge.new {
    background: linear-gradient(135deg, rgba(161, 161, 170, 0.2), rgba(161, 161, 170, 0.1));
    color: var(--primary);
    border: 1px solid rgba(161, 161, 170, 0.4);
}

.change-type-badge.cancel {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.change-type-badge svg {
    width: 14px;
    height: 14px;
}

.change-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.change-details p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.change-details p strong {
    color: var(--text-primary);
}

/* Button disabled state */
.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== PAYMENT METHOD SECTION ==================== */

.payment-method-card {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.payment-method-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.payment-method-info {
    flex: 1;
}

.payment-method-iban {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.payment-method-status {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 0.25rem;
}

.payment-method-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.payment-method-empty p {
    margin-bottom: 1rem;
}

/* Change Payment Method Modal */
#change-payment-modal .modal-body {
    padding: 1.5rem;
}

.current-payment-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.current-payment-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.current-payment-info strong {
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', monospace;
}


/* Account Sections */
.account-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.account-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.account-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

[data-theme="light"] .account-section {
    border-color: rgba(82, 82, 91, 0.15);
}

/* Legal Links */
.account-legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.legal-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .legal-link:hover {
    background: rgba(0, 0, 0, 0.02);
}

.legal-link .external-icon {
    margin-left: auto;
    opacity: 0.4;
    flex-shrink: 0;
}

.legal-link:hover .external-icon {
    opacity: 0.7;
}

/* ==================== ONBOARDING CHECKLIST CARD ==================== */

.onboarding-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow), 0 0 20px rgba(161, 161, 170, 0.1);
    position: relative;
    overflow: hidden;
}

.onboarding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

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

.onboarding-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.onboarding-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.onboarding-dismiss {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.onboarding-dismiss:hover {
    background: rgba(161, 161, 170, 0.1);
    color: var(--text-primary);
}

.onboarding-dismiss svg {
    width: 20px;
    height: 20px;
}

.onboarding-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.onboarding-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onboarding-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.onboarding-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.onboarding-item.completed {
    opacity: 0.7;
}

/* Just-completed animation */
.onboarding-item.just-completed {
    animation: onboardingItemComplete 0.6s ease forwards;
}

.onboarding-item.just-completed .onboarding-item-icon {
    animation: onboardingCheckPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.onboarding-item.just-completed .onboarding-item-icon svg {
    animation: onboardingCheckDraw 0.4s ease 0.3s both;
}

@keyframes onboardingItemComplete {
    0% {
        background: rgba(5, 150, 105, 0.15);
        border-color: var(--success);
    }
    60% {
        background: rgba(5, 150, 105, 0.08);
        border-color: var(--success);
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes onboardingCheckPop {
    0% {
        transform: scale(0.5);
        background: transparent;
        border-color: var(--border);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
        background: var(--success);
        border-color: var(--success);
    }
}

@keyframes onboardingCheckDraw {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-45deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        color: white;
    }
}

.onboarding-item.completed .onboarding-item-icon {
    background: var(--success);
    border-color: var(--success);
}

.onboarding-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition: all 0.2s ease;
}

.onboarding-item-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.onboarding-item.completed .onboarding-item-icon svg {
    color: white;
}

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

.onboarding-item-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.onboarding-item.completed .onboarding-item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.onboarding-item-subtitle {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.onboarding-item-action {
    flex-shrink: 0;
}

.onboarding-item-action .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.onboarding-progress {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.onboarding-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.onboarding-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.onboarding-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Light theme adjustments */
[data-theme="light"] .onboarding-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: var(--primary);
}

[data-theme="light"] .onboarding-item {
    background: rgba(82, 82, 91, 0.03);
    border-color: rgba(82, 82, 91, 0.15);
}

[data-theme="light"] .onboarding-item:hover {
    background: rgba(82, 82, 91, 0.08);
    border-color: rgba(82, 82, 91, 0.3);
}

[data-theme="light"] .onboarding-progress-bar {
    background: rgba(82, 82, 91, 0.15);
}

/* Responsive */
@media (max-width: 600px) {
    .onboarding-card {
        padding: 1.25rem;
    }

    .onboarding-title h3 {
        font-size: 1.1rem;
    }

    .onboarding-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .onboarding-item-action {
        width: 100%;
    }

    .onboarding-item-action .btn {
        width: 100%;
    }
}
