/**
 * Werkstatt24 Customer Portal Styles
 *
 * Matches the public website design system
 *
 * @package Werkstatt24Core
 */

/* ==========================================================================
   CSS Variables - Matching Public Website Design
   ========================================================================== */

:root {
    /* Primary Colors - Deep Black/Charcoal (Premium & Modern) */
    --w24-primary: #0a0a0a;
    --w24-primary-dark: #000000;
    --w24-primary-light: #1a1a1a;
    --w24-primary-50: #f5f5f5;
    --w24-primary-100: #e5e5e5;
    --w24-primary-200: #d4d4d4;

    /* Accent Colors - Werkstatt Red (Bold & Professional) */
    --w24-accent: #dc2626;
    --w24-accent-dark: #b91c1c;
    --w24-accent-light: #f87171;
    --w24-accent-50: #fef2f2;
    --w24-accent-100: #fee2e2;
    --w24-accent-glow: rgba(220, 38, 38, 0.4);

    /* Secondary Accent - Emerald (Trust & Success) */
    --w24-secondary: #10b981;
    --w24-secondary-dark: #059669;
    --w24-secondary-light: #34d399;

    /* Status Colors */
    --w24-success: #10b981;
    --w24-success-light: #34d399;
    --w24-warning: #f59e0b;
    --w24-warning-light: #fbbf24;
    --w24-error: #ef4444;
    --w24-info: #dc2626;

    /* Neutral Colors - Modern Gray Scale */
    --w24-white: #ffffff;
    --w24-black: #000000;
    --w24-gray-50: #fafafa;
    --w24-gray-100: #f4f4f5;
    --w24-gray-200: #e4e4e7;
    --w24-gray-300: #d4d4d8;
    --w24-gray-400: #a1a1aa;
    --w24-gray-500: #71717a;
    --w24-gray-600: #52525b;
    --w24-gray-700: #3f3f46;
    --w24-gray-800: #27272a;
    --w24-gray-900: #18181b;
    --w24-gray-950: #09090b;

    /* Modern Gradients */
    --w24-gradient-hero: linear-gradient(180deg, #09090b 0%, #18181b 100%);
    --w24-gradient-cta: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --w24-gradient-card: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    --w24-gradient-dark: linear-gradient(180deg, #09090b 0%, #18181b 100%);

    /* Typography */
    --w24-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --w24-font-size-xs: 0.75rem;
    --w24-font-size-sm: 0.875rem;
    --w24-font-size-base: 1rem;
    --w24-font-size-lg: 1.125rem;
    --w24-font-size-xl: 1.25rem;
    --w24-font-size-2xl: 1.5rem;
    --w24-font-size-3xl: 2rem;

    /* Font Weights */
    --w24-font-normal: 400;
    --w24-font-medium: 500;
    --w24-font-semibold: 600;
    --w24-font-bold: 700;

    /* Spacing */
    --w24-space-1: 0.25rem;
    --w24-space-2: 0.5rem;
    --w24-space-3: 0.75rem;
    --w24-space-4: 1rem;
    --w24-space-5: 1.25rem;
    --w24-space-6: 1.5rem;
    --w24-space-8: 2rem;
    --w24-space-10: 2.5rem;
    --w24-space-12: 3rem;
    --w24-space-16: 4rem;

    /* Border Radius */
    --w24-radius-sm: 0.375rem;
    --w24-radius: 0.5rem;
    --w24-radius-md: 0.75rem;
    --w24-radius-lg: 1rem;
    --w24-radius-xl: 1.25rem;
    --w24-radius-full: 9999px;

    /* Shadows */
    --w24-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --w24-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --w24-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --w24-shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --w24-shadow-lg: 0 16px 32px -8px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --w24-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --w24-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --w24-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --w24-container-max: 1280px;
    --w24-container-padding: 2rem;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

.w24-portal * {
    box-sizing: border-box;
}

.w24-portal {
    font-family: var(--w24-font-family);
    color: var(--w24-gray-900);
    line-height: 1.6;
    background: var(--w24-gray-50);
    min-height: 100vh;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.w24-portal-container {
    max-width: var(--w24-container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--w24-container-padding);
}

/* ==========================================================================
   Portal Header - Matching Public Website
   ========================================================================== */

.w24-portal-header {
    background: var(--w24-gradient-hero);
    padding: var(--w24-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.w24-portal-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--w24-space-4);
}

.w24-portal-logo {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
    text-decoration: none;
    color: var(--w24-white);
}

.w24-portal-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w24-accent);
    border-radius: var(--w24-radius);
}

.w24-portal-logo-icon svg {
    width: 24px;
    height: 24px;
    color: var(--w24-white);
}

.w24-portal-logo-image {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.w24-portal-logo h2 {
    margin: 0;
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-white);
    letter-spacing: -0.025em;
}

.w24-portal-logo h2 span {
    color: var(--w24-gray-400);
    font-weight: var(--w24-font-normal);
    margin-left: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
}

.w24-portal-logo h2 .w24-logo-accent,
.w24-logo-accent {
    color: var(--w24-accent) !important;
    font-weight: inherit;
    margin-left: 0;
    font-size: inherit;
}

.w24-portal-user {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
}

.w24-portal-user-info {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
}

.w24-portal-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--w24-accent);
    border-radius: var(--w24-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w24-white);
    font-weight: var(--w24-font-semibold);
    font-size: var(--w24-font-size-sm);
}

.w24-portal-user-name {
    font-weight: var(--w24-font-medium);
    color: var(--w24-white);
    font-size: var(--w24-font-size-sm);
}

.w24-portal-header-actions {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
}

.w24-portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-400);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    padding: var(--w24-space-2) var(--w24-space-3);
    border-radius: var(--w24-radius);
    transition: all var(--w24-transition);
}

.w24-portal-back-link:hover {
    color: var(--w24-white);
    background: rgba(255, 255, 255, 0.1);
}

.w24-portal-back-link svg {
    width: 16px;
    height: 16px;
}

.w24-portal-logout {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-400);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    padding: var(--w24-space-2) var(--w24-space-4);
    border-radius: var(--w24-radius);
    border: 1px solid var(--w24-gray-700);
    transition: all var(--w24-transition);
}

.w24-portal-logout:hover {
    color: var(--w24-white);
    border-color: var(--w24-gray-500);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Portal Navigation
   ========================================================================== */

.w24-portal-nav {
    background: var(--w24-white);
    border-bottom: 1px solid var(--w24-gray-200);
    position: sticky;
    top: 72px;
    z-index: 90;
}

.w24-portal-nav-menu {
    display: flex;
    gap: var(--w24-space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.w24-portal-nav-menu::-webkit-scrollbar {
    display: none;
}

.w24-portal-nav-item {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-4) var(--w24-space-5);
    text-decoration: none;
    color: var(--w24-gray-600);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--w24-transition);
    font-weight: var(--w24-font-medium);
    font-size: var(--w24-font-size-sm);
}

.w24-portal-nav-item svg {
    width: 18px;
    height: 18px;
}

.w24-portal-nav-item:hover {
    color: var(--w24-accent);
    background: var(--w24-gray-50);
}

.w24-portal-nav-item-active {
    color: var(--w24-accent);
    border-bottom-color: var(--w24-accent);
    background: var(--w24-accent-50);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.w24-portal-main {
    padding: var(--w24-space-8) 0;
    min-height: calc(100vh - 200px);
}

.w24-dashboard {
    padding: var(--w24-space-8) 0;
}

.w24-dashboard-header {
    margin-bottom: var(--w24-space-8);
}

.w24-dashboard-title {
    font-size: var(--w24-font-size-3xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-2) 0;
    letter-spacing: -0.025em;
}

.w24-dashboard-subtitle {
    color: var(--w24-gray-600);
    margin: 0;
    font-size: var(--w24-font-size-base);
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */

.w24-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--w24-space-6);
    margin-bottom: var(--w24-space-8);
}

/* Reminders Section */
.w24-reminders-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    margin-bottom: var(--w24-space-8);
}

.w24-reminders-section .w24-section-header {
    margin-bottom: var(--w24-space-4);
    padding-bottom: var(--w24-space-3);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.w24-reminders-section .w24-section-title {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: #92400e;
    font-size: var(--w24-font-size-lg);
    margin: 0;
}

.w24-reminders-section .w24-section-title svg {
    color: #d97706;
}

.w24-reminders-list {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

.w24-reminder-card {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    background: white;
    border-radius: var(--w24-radius-md);
    padding: var(--w24-space-4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.w24-reminder-card.w24-reminder-urgent {
    border-left: 4px solid #f59e0b;
}

.w24-reminder-card.w24-reminder-overdue {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.w24-reminder-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--w24-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #d97706;
}

.w24-reminder-overdue .w24-reminder-icon {
    background: #fee2e2;
    color: #dc2626;
}

.w24-reminder-content {
    flex: 1;
    min-width: 0;
}

.w24-reminder-title {
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin-bottom: var(--w24-space-1);
}

.w24-reminder-overdue .w24-reminder-title {
    color: #dc2626;
}

.w24-reminder-description {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    margin-bottom: var(--w24-space-1);
}

.w24-reminder-vehicle {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

.w24-reminder-action {
    flex-shrink: 0;
}

.w24-button-sm {
    padding: var(--w24-space-2) var(--w24-space-4);
    font-size: var(--w24-font-size-sm);
}

@media (max-width: 768px) {
    .w24-reminder-card {
        flex-direction: column;
        text-align: center;
    }

    .w24-reminder-action {
        width: 100%;
    }

    .w24-reminder-action .w24-button {
        width: 100%;
    }
}

.w24-stat-card {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    display: flex;
    align-items: center;
    gap: var(--w24-space-5);
    transition: all var(--w24-transition);
    box-shadow: var(--w24-shadow-sm);
}

.w24-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--w24-shadow-md);
    border-color: var(--w24-gray-300);
}

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

.w24-stat-icon svg {
    width: 28px;
    height: 28px;
    color: var(--w24-white);
}

.w24-stat-icon-vehicles {
    background: var(--w24-gradient-cta);
}

.w24-stat-icon-appointments {
    background: linear-gradient(135deg, var(--w24-success) 0%, var(--w24-secondary-dark) 100%);
}

.w24-stat-icon-services {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.w24-stat-icon-bonus {
    background: linear-gradient(135deg, var(--w24-warning) 0%, #ea580c 100%);
}

.w24-stat-content {
    flex: 1;
}

.w24-stat-value {
    font-size: var(--w24-font-size-3xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    line-height: 1;
    margin-bottom: var(--w24-space-1);
}

.w24-stat-label {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    font-weight: var(--w24-font-medium);
}

/* ==========================================================================
   Dashboard Grid & Sections
   ========================================================================== */

.w24-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--w24-space-6);
    margin-bottom: var(--w24-space-8);
}

.w24-dashboard-section {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    box-shadow: var(--w24-shadow-sm);
    transition: all var(--w24-transition);
}

.w24-dashboard-section:hover {
    box-shadow: var(--w24-shadow);
}

.w24-section-full {
    grid-column: 1 / -1;
}

.w24-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-5);
    padding-bottom: var(--w24-space-4);
    border-bottom: 1px solid var(--w24-gray-100);
}

.w24-section-title {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0;
}

.w24-link-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    color: var(--w24-accent);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    transition: all var(--w24-transition);
}

.w24-link-primary:hover {
    color: var(--w24-accent-dark);
}

.w24-link-primary svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Cards - General
   ========================================================================== */

.w24-card {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    box-shadow: var(--w24-shadow-sm);
    transition: all var(--w24-transition);
}

.w24-card:hover {
    box-shadow: var(--w24-shadow-md);
    border-color: var(--w24-gray-300);
}

/* ==========================================================================
   Appointment Cards
   ========================================================================== */

.w24-appointment-card {
    padding: var(--w24-space-4);
    border-radius: var(--w24-radius);
    background: var(--w24-gray-50);
    margin-bottom: var(--w24-space-3);
    transition: all var(--w24-transition);
    border-left: 3px solid var(--w24-accent);
}

.w24-appointment-card:hover {
    background: var(--w24-gray-100);
}

.w24-appointment-card:last-child {
    margin-bottom: 0;
}

.w24-appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--w24-space-2);
}

.w24-appointment-date {
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    font-size: var(--w24-font-size-sm);
}

.w24-appointment-time {
    color: var(--w24-gray-600);
    font-size: var(--w24-font-size-sm);
}

.w24-appointment-status {
    display: inline-flex;
    align-items: center;
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius-full);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w24-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.w24-status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.w24-status-completed {
    background: var(--w24-accent-100);
    color: var(--w24-accent-dark);
}

.w24-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   Buttons - Matching Public Website
   ========================================================================== */

.w24-button,
.w24-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-3) var(--w24-space-6);
    border-radius: var(--w24-radius);
    text-decoration: none;
    font-weight: var(--w24-font-semibold);
    font-size: var(--w24-font-size-sm);
    transition: all var(--w24-transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.w24-button svg,
.w24-btn svg {
    width: 18px;
    height: 18px;
}

.w24-button-primary,
.w24-btn-primary {
    background: var(--w24-gradient-cta);
    color: var(--w24-white) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.w24-button-primary:hover,
.w24-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    color: var(--w24-white) !important;
}

.w24-button-primary svg,
.w24-btn-primary svg {
    color: var(--w24-white) !important;
}

.w24-button-secondary,
.w24-btn-secondary {
    background: var(--w24-white);
    color: var(--w24-gray-700);
    border: 1px solid var(--w24-gray-300);
    box-shadow: var(--w24-shadow-sm);
}

.w24-button-secondary:hover,
.w24-btn-secondary:hover {
    background: var(--w24-gray-50);
    border-color: var(--w24-gray-400);
    color: var(--w24-gray-900);
}

.w24-button-outline,
.w24-btn-outline {
    background: transparent;
    color: var(--w24-accent);
    border: 2px solid var(--w24-accent);
}

.w24-button-outline:hover,
.w24-btn-outline:hover {
    background: var(--w24-accent);
    color: var(--w24-white);
}

.w24-button-sm,
.w24-btn-sm {
    padding: var(--w24-space-2) var(--w24-space-4);
    font-size: var(--w24-font-size-xs);
}

.w24-button-lg,
.w24-btn-lg {
    padding: var(--w24-space-4) var(--w24-space-8);
    font-size: var(--w24-font-size-base);
}

.w24-button-full,
.w24-btn-full {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   Quick Action Cards
   ========================================================================== */

.w24-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--w24-space-4);
}

.w24-action-card {
    padding: var(--w24-space-5);
    background: var(--w24-gray-50);
    border: 2px solid transparent;
    border-radius: var(--w24-radius-lg);
    text-align: center;
    transition: all var(--w24-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.w24-action-card:hover {
    background: var(--w24-white);
    border-color: var(--w24-accent);
    transform: translateY(-2px);
    box-shadow: var(--w24-shadow-md);
}

.w24-action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--w24-space-3);
    background: var(--w24-gradient-cta);
    border-radius: var(--w24-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w24-action-icon svg {
    width: 24px;
    height: 24px;
    color: var(--w24-white);
}

.w24-action-title {
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    font-size: var(--w24-font-size-sm);
}

.w24-action-icon-vehicles {
    background: linear-gradient(135deg, var(--w24-accent) 0%, var(--w24-accent-dark) 100%);
}

.w24-action-icon-services {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.w24-action-icon-bonus {
    background: linear-gradient(135deg, var(--w24-success) 0%, var(--w24-secondary-dark) 100%);
}

.w24-action-icon-appointments {
    background: linear-gradient(135deg, var(--w24-warning) 0%, #ea580c 100%);
}

/* ==========================================================================
   Notices & Alerts
   ========================================================================== */

.w24-portal-notice {
    padding: var(--w24-space-4) var(--w24-space-5);
    border-radius: var(--w24-radius-lg);
    margin-bottom: var(--w24-space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--w24-space-4);
}

.w24-portal-notice p {
    margin: 0;
    flex: 1;
}

.w24-notice-info,
.w24-portal-notice-info {
    background: var(--w24-accent-50);
    color: var(--w24-accent-dark);
    border: 1px solid var(--w24-accent-100);
}

.w24-notice-warning,
.w24-portal-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.w24-notice-error,
.w24-portal-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.w24-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.w24-empty-state {
    text-align: center;
    padding: var(--w24-space-12) var(--w24-space-8);
    color: var(--w24-gray-500);
}

.w24-empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--w24-space-4);
    opacity: 0.3;
}

.w24-empty-state p {
    margin: 0 0 var(--w24-space-6) 0;
    font-size: var(--w24-font-size-base);
}

/* ==========================================================================
   Vehicle Cards
   ========================================================================== */

.w24-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--w24-space-6);
}

.w24-vehicle-card {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    box-shadow: var(--w24-shadow-sm);
    transition: all var(--w24-transition);
}

.w24-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--w24-shadow-lg);
    border-color: var(--w24-accent);
}

.w24-vehicle-header {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-5);
    padding-bottom: var(--w24-space-5);
    border-bottom: 1px solid var(--w24-gray-100);
}

.w24-vehicle-icon {
    width: 56px;
    height: 56px;
    background: var(--w24-gradient-cta);
    border-radius: var(--w24-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w24-vehicle-icon svg {
    width: 28px;
    height: 28px;
    color: var(--w24-white);
}

.w24-vehicle-title h3 {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-1) 0;
}

.w24-vehicle-license {
    display: inline-block;
    background: var(--w24-gray-100);
    color: var(--w24-gray-700);
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    font-family: 'Courier New', monospace;
}

.w24-vehicle-details {
    margin-bottom: var(--w24-space-5);
}

.w24-vehicle-detail {
    display: flex;
    justify-content: space-between;
    padding: var(--w24-space-2) 0;
    border-bottom: 1px solid var(--w24-gray-100);
}

.w24-vehicle-detail:last-child {
    border-bottom: none;
}

.w24-detail-label {
    color: var(--w24-gray-600);
    font-size: var(--w24-font-size-sm);
}

.w24-detail-value {
    color: var(--w24-gray-900);
    font-weight: var(--w24-font-medium);
    font-size: var(--w24-font-size-sm);
}

.w24-vehicle-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-5);
}

.w24-vehicle-stat {
    text-align: center;
    padding: var(--w24-space-4);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
}

.w24-stat-number {
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    margin-bottom: var(--w24-space-1);
}

.w24-stat-text {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-600);
}

.w24-vehicle-actions {
    margin-top: var(--w24-space-5);
}

/* ==========================================================================
   Appointment Card Large
   ========================================================================== */

.w24-appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--w24-space-6);
}

.w24-appointment-card-large {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    box-shadow: var(--w24-shadow-sm);
    transition: all var(--w24-transition);
}

.w24-appointment-card-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--w24-shadow-lg);
    border-color: var(--w24-accent);
}

.w24-appointment-card-header {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    padding-bottom: var(--w24-space-4);
    border-bottom: 1px solid var(--w24-gray-100);
    margin-bottom: var(--w24-space-4);
}

.w24-appointment-date-large {
    width: 64px;
    text-align: center;
    padding: var(--w24-space-3);
    background: var(--w24-gradient-cta);
    border-radius: var(--w24-radius-lg);
    color: var(--w24-white);
}

.w24-appointment-day {
    font-size: var(--w24-font-size-2xl);
    font-weight: var(--w24-font-bold);
    line-height: 1;
}

.w24-appointment-month {
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    margin-top: var(--w24-space-1);
    opacity: 0.9;
}

.w24-appointment-year {
    font-size: var(--w24-font-size-xs);
    opacity: 0.8;
}

.w24-appointment-card-info {
    flex: 1;
}

.w24-appointment-time-large {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-700);
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    margin-bottom: var(--w24-space-2);
}

.w24-appointment-time-large svg {
    width: 18px;
    height: 18px;
    color: var(--w24-accent);
}

.w24-appointment-service {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-appointment-status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius-full);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w24-appointment-vehicle {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-700);
    background: var(--w24-gray-50);
    padding: var(--w24-space-3);
    border-radius: var(--w24-radius);
    margin-top: var(--w24-space-4);
}

.w24-appointment-vehicle svg {
    width: 18px;
    height: 18px;
    color: var(--w24-accent);
}

.w24-vehicle-plate {
    margin-left: auto;
    background: var(--w24-gray-200);
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius-sm);
    font-weight: var(--w24-font-semibold);
    font-family: 'Courier New', monospace;
    font-size: var(--w24-font-size-xs);
}

.w24-appointment-description {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    line-height: 1.6;
    padding: var(--w24-space-3);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
    margin-top: var(--w24-space-4);
}

.w24-appointment-actions {
    display: flex;
    gap: var(--w24-space-3);
    padding-top: var(--w24-space-4);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.w24-tabs {
    margin-bottom: var(--w24-space-8);
}

.w24-tabs-header {
    display: flex;
    gap: var(--w24-space-2);
    border-bottom: 2px solid var(--w24-gray-200);
    margin-bottom: var(--w24-space-6);
    flex-wrap: wrap;
}

.w24-tab-button {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-3) var(--w24-space-5);
    background: transparent;
    border: none;
    color: var(--w24-gray-600);
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    cursor: pointer;
    transition: all var(--w24-transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.w24-tab-button:hover {
    color: var(--w24-accent);
    background: var(--w24-gray-50);
}

.w24-tab-button.active {
    color: var(--w24-accent);
    border-bottom-color: var(--w24-accent);
    font-weight: var(--w24-font-semibold);
}

.w24-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 var(--w24-space-2);
    background: var(--w24-gray-200);
    color: var(--w24-gray-700);
    border-radius: var(--w24-radius-full);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
}

.w24-tab-button.active .w24-tab-badge {
    background: var(--w24-accent);
    color: var(--w24-white);
}

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

.w24-tab-content.active {
    display: block;
}

/* ==========================================================================
   Service Records
   ========================================================================== */

.w24-service-records-list {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-4);
}

.w24-service-record-card {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-5);
    box-shadow: var(--w24-shadow-sm);
    display: flex;
    gap: var(--w24-space-5);
    transition: all var(--w24-transition);
}

.w24-service-record-card:hover {
    box-shadow: var(--w24-shadow-md);
    border-color: var(--w24-accent);
}

.w24-service-record-date {
    width: 64px;
    text-align: center;
    padding: var(--w24-space-3);
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: var(--w24-radius-lg);
    color: var(--w24-white);
    flex-shrink: 0;
    align-self: flex-start;
}

.w24-service-record-day {
    font-size: var(--w24-font-size-2xl);
    font-weight: var(--w24-font-bold);
    line-height: 1;
}

.w24-service-record-month {
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    margin-top: var(--w24-space-1);
    opacity: 0.9;
}

.w24-service-record-year {
    font-size: var(--w24-font-size-xs);
    opacity: 0.8;
    margin-top: var(--w24-space-1);
}

.w24-service-record-content {
    flex: 1;
}

.w24-service-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-3);
}

.w24-service-record-title {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0;
}

.w24-service-record-amount {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-bold);
    color: var(--w24-accent);
    white-space: nowrap;
}

.w24-service-record-vehicle {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-service-record-vehicle svg {
    width: 18px;
    height: 18px;
    color: var(--w24-accent);
}

.w24-service-record-plate {
    margin-left: auto;
    background: var(--w24-gray-100);
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius-sm);
    font-weight: var(--w24-font-semibold);
    font-family: 'Courier New', monospace;
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-700);
}

.w24-service-record-description {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    line-height: 1.6;
    margin-top: var(--w24-space-3);
}

.w24-service-record-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--w24-space-4);
    padding-top: var(--w24-space-3);
    margin-top: var(--w24-space-3);
    border-top: 1px solid var(--w24-gray-100);
}

.w24-service-record-invoice {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-600);
}

.w24-service-record-invoice svg {
    width: 16px;
    height: 16px;
    color: var(--w24-gray-400);
}

.w24-service-record-link {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    color: var(--w24-accent);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    transition: all var(--w24-transition);
}

.w24-service-record-link:hover {
    color: var(--w24-accent-dark);
}

/* Service Detail */
.w24-service-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--w24-space-8);
    gap: var(--w24-space-6);
}

.w24-service-detail-amount {
    text-align: right;
    background: var(--w24-gradient-cta);
    padding: var(--w24-space-5);
    border-radius: var(--w24-radius-lg);
    color: var(--w24-white);
}

.w24-amount-label {
    font-size: var(--w24-font-size-xs);
    opacity: 0.9;
    margin-bottom: var(--w24-space-1);
}

.w24-amount-value {
    font-size: var(--w24-font-size-2xl);
    font-weight: var(--w24-font-bold);
    line-height: 1;
}

/* ==========================================================================
   Bonus Section
   ========================================================================== */

.w24-bonus-balance-card {
    background: linear-gradient(135deg, var(--w24-success) 0%, var(--w24-secondary-dark) 100%);
    border-radius: var(--w24-radius-xl);
    padding: var(--w24-space-8);
    color: var(--w24-white);
    display: flex;
    align-items: center;
    gap: var(--w24-space-6);
    margin-bottom: var(--w24-space-8);
    box-shadow: var(--w24-shadow-lg);
}

.w24-bonus-balance-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--w24-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w24-bonus-balance-icon svg {
    width: 40px;
    height: 40px;
}

.w24-bonus-balance-content {
    flex: 1;
}

.w24-bonus-balance-label {
    font-size: var(--w24-font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--w24-space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--w24-font-semibold);
}

.w24-bonus-balance-amount {
    font-size: var(--w24-font-size-3xl);
    font-weight: var(--w24-font-bold);
    line-height: 1;
}

.w24-bonus-balance-amount span {
    font-size: var(--w24-font-size-xl);
    opacity: 0.9;
    font-weight: var(--w24-font-semibold);
}

.w24-bonus-balance-value {
    font-size: var(--w24-font-size-sm);
    opacity: 0.9;
    margin-top: var(--w24-space-2);
}

/* Bonus Info Cards */
.w24-bonus-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--w24-space-6);
}

.w24-bonus-info-card {
    padding: var(--w24-space-6);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius-lg);
    text-align: center;
    transition: all var(--w24-transition);
}

.w24-bonus-info-card:hover {
    background: var(--w24-white);
    box-shadow: var(--w24-shadow-md);
    transform: translateY(-2px);
}

.w24-bonus-info-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--w24-success) 0%, var(--w24-secondary-dark) 100%);
    border-radius: var(--w24-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--w24-space-4);
    color: var(--w24-white);
}

.w24-bonus-info-icon svg {
    width: 28px;
    height: 28px;
}

.w24-bonus-info-card h3 {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-3) 0;
}

.w24-bonus-info-card p {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Bonus Transactions */
.w24-bonus-transactions {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    overflow: hidden;
}

.w24-bonus-transaction {
    background: var(--w24-white);
    padding: var(--w24-space-4) var(--w24-space-5);
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    transition: background var(--w24-transition);
}

.w24-bonus-transaction:hover {
    background: var(--w24-gray-50);
}

.w24-bonus-transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--w24-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w24-bonus-transaction-icon svg {
    width: 20px;
    height: 20px;
}

.w24-bonus-earned {
    background: #d1fae5;
    color: #065f46;
}

.w24-bonus-redeemed {
    background: #fee2e2;
    color: #991b1b;
}

.w24-bonus-transaction-content {
    flex: 1;
}

.w24-bonus-transaction-description {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-900);
    margin-bottom: var(--w24-space-1);
}

.w24-bonus-transaction-date {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-600);
}

.w24-bonus-transaction-points {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-bold);
    white-space: nowrap;
}

.w24-points-positive {
    color: #059669;
}

.w24-points-negative {
    color: #dc2626;
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.w24-back-button {
    margin-bottom: var(--w24-space-6);
}

.w24-link-back {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-600);
    text-decoration: none;
    font-weight: var(--w24-font-medium);
    font-size: var(--w24-font-size-sm);
    padding: var(--w24-space-2) var(--w24-space-3);
    border-radius: var(--w24-radius);
    transition: all var(--w24-transition);
}

.w24-link-back:hover {
    background: var(--w24-gray-100);
    color: var(--w24-accent);
}

.w24-link-back svg {
    width: 18px;
    height: 18px;
}

/* Portal Footer styles moved to end of file - see "Portal Footer V2" section */

/* ==========================================================================
   Info Grid
   ========================================================================== */

.w24-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--w24-space-4);
}

.w24-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-1);
}

.w24-info-label {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
    font-weight: var(--w24-font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w24-info-value {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-900);
    font-weight: var(--w24-font-semibold);
}

/* Vehicle Summary */
.w24-vehicle-summary {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-5);
    box-shadow: var(--w24-shadow-sm);
}

.w24-vehicle-summary h3 {
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-4) 0;
    padding-bottom: var(--w24-space-4);
    border-bottom: 1px solid var(--w24-gray-100);
}

.w24-vehicle-summary-header {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-5);
    padding-bottom: var(--w24-space-5);
    border-bottom: 1px solid var(--w24-gray-100);
}

.w24-vehicle-summary-header h4 {
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-1) 0;
}

/* Contact Section */
.w24-contact-section {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-5);
    box-shadow: var(--w24-shadow-sm);
}

.w24-contact-section h3 {
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-3) 0;
}

.w24-contact-section p {
    color: var(--w24-gray-600);
    line-height: 1.6;
    margin: 0 0 var(--w24-space-4) 0;
    font-size: var(--w24-font-size-sm);
}

.w24-contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
    margin-top: var(--w24-space-4);
    padding-top: var(--w24-space-4);
    border-top: 1px solid var(--w24-gray-100);
}

.w24-contact-item {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-700);
}

.w24-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--w24-accent);
    flex-shrink: 0;
}

.w24-contact-item a {
    color: var(--w24-accent);
    text-decoration: none;
    font-weight: var(--w24-font-medium);
}

.w24-contact-item a:hover {
    text-decoration: underline;
}

/* Payment Status */
.w24-payment-status {
    display: inline-flex;
    align-items: center;
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius-full);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w24-payment-paid {
    background: #d1fae5;
    color: #065f46;
}

.w24-payment-pending {
    background: #fef3c7;
    color: #92400e;
}

.w24-payment-overdue {
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */

.w24-text-muted {
    color: var(--w24-gray-500);
}

.w24-text-small {
    font-size: var(--w24-font-size-sm);
}

.w24-text-primary {
    color: var(--w24-accent);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .w24-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .w24-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .w24-portal-container {
        padding: 0 var(--w24-space-4);
    }

    .w24-portal-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--w24-space-4);
    }

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

    .w24-portal-nav {
        position: static;
    }

    .w24-portal-nav-item {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: var(--w24-space-3) var(--w24-space-3);
        font-size: var(--w24-font-size-xs);
    }

    .w24-portal-nav-item svg {
        display: none;
    }

    .w24-dashboard-title {
        font-size: var(--w24-font-size-2xl);
    }

    .w24-stats-grid {
        grid-template-columns: 1fr;
    }

    .w24-vehicles-grid,
    .w24-appointments-grid {
        grid-template-columns: 1fr;
    }

    .w24-info-grid {
        grid-template-columns: 1fr;
    }

    .w24-service-record-card {
        flex-direction: column;
    }

    .w24-service-record-date {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--w24-space-3);
        padding: var(--w24-space-3);
    }

    .w24-service-record-day,
    .w24-service-record-month,
    .w24-service-record-year {
        margin: 0;
    }

    .w24-tabs-header {
        gap: 0;
    }

    .w24-tab-button {
        flex: 1;
        justify-content: center;
        padding: var(--w24-space-3);
    }

    .w24-bonus-balance-card {
        flex-direction: column;
        text-align: center;
        padding: var(--w24-space-6);
    }

    .w24-service-detail-header {
        flex-direction: column;
    }

    .w24-service-detail-amount {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .w24-quick-actions {
        grid-template-columns: 1fr;
    }

    .w24-appointment-card-header {
        flex-wrap: wrap;
    }

    .w24-vehicle-plate {
        margin-left: 0;
        margin-top: var(--w24-space-2);
    }

    .w24-service-record-header {
        flex-direction: column;
        gap: var(--w24-space-2);
    }

    .w24-btn-lg {
        padding: var(--w24-space-3) var(--w24-space-6);
        font-size: var(--w24-font-size-sm);
    }

    .w24-bonus-info-grid {
        grid-template-columns: 1fr;
    }

    .w24-bonus-transaction {
        flex-wrap: wrap;
    }

    .w24-bonus-transaction-points {
        width: 100%;
        text-align: right;
        margin-top: var(--w24-space-2);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .w24-portal-header,
    .w24-portal-nav,
    .w24-portal-footer {
        display: none;
    }

    .w24-portal {
        background: #fff;
    }

    .w24-card,
    .w24-dashboard-section,
    .w24-vehicle-card,
    .w24-appointment-card-large,
    .w24-service-record-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   Auth Page - Login/Registration with Tabs
   NOTE: All splitscreen auth page styles are defined in public.css
   ========================================================================== */

/* ==========================================================================
   Vehicle Forms & Edit Pages
   ========================================================================== */

/* Dashboard Header Row - with button */
.w24-dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--w24-space-4);
    flex-wrap: wrap;
}

.w24-dashboard-header-back {
    margin-bottom: var(--w24-space-4);
}

.w24-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-500);
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    text-decoration: none;
    transition: all var(--w24-transition);
}

.w24-back-link:hover {
    color: var(--w24-accent);
}

.w24-back-link svg {
    transition: transform var(--w24-transition);
}

.w24-back-link:hover svg {
    transform: translateX(-4px);
}

/* Form Sections */
.w24-vehicle-form {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-8);
}

.w24-form-section {
    padding-bottom: var(--w24-space-6);
    border-bottom: 1px solid var(--w24-gray-200);
}

.w24-form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.w24-form-section-title {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0 0 var(--w24-space-4) 0;
}

.w24-form-section-title svg {
    color: var(--w24-accent);
}

.w24-form-section-desc {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-500);
    margin: calc(-1 * var(--w24-space-2)) 0 var(--w24-space-5) 0;
}

/* Form Groups */
.w24-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-2);
}

.w24-form-group label {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-700);
}

.w24-required {
    color: var(--w24-error);
}

.w24-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-4);
}

.w24-form-row:last-child {
    margin-bottom: 0;
}

/* Input Fields */
.w24-input {
    width: 100%;
    padding: var(--w24-space-3) var(--w24-space-4);
    border: 1px solid var(--w24-gray-300);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-base);
    font-family: inherit;
    color: var(--w24-gray-900);
    background: var(--w24-white);
    transition: all var(--w24-transition);
}

.w24-input:focus {
    outline: none;
    border-color: var(--w24-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.w24-input::placeholder {
    color: var(--w24-gray-400);
}

.w24-input-error {
    border-color: var(--w24-error);
}

.w24-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.w24-form-error {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-error);
    margin-top: var(--w24-space-1);
}

.w24-form-hint {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

/* Checkbox Group */
.w24-checkbox-group {
    padding: var(--w24-space-4);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius-lg);
}

.w24-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--w24-space-3);
    cursor: pointer;
}

.w24-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--w24-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.w24-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-1);
}

.w24-checkbox-text strong {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

.w24-checkbox-text small {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

/* Form Actions */
.w24-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--w24-space-3);
    padding-top: var(--w24-space-6);
    border-top: 1px solid var(--w24-gray-200);
}

/* Danger Card */
.w24-card-danger {
    border-color: rgba(239, 68, 68, 0.3);
}

.w24-card-danger .w24-card-header {
    background: rgba(239, 68, 68, 0.05);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

.w24-card-danger .w24-card-title {
    color: var(--w24-error);
}

.w24-card-danger .w24-card-title svg {
    color: var(--w24-error);
}

/* Danger Button */
.w24-button-danger,
.w24-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--w24-white) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.w24-button-danger:hover,
.w24-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

/* Portal Notices */
.w24-portal-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.w24-portal-notice-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Vehicle Actions - two buttons side by side */
.w24-vehicle-actions {
    display: flex;
    gap: var(--w24-space-2);
}

.w24-vehicle-actions .w24-button {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .w24-dashboard-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .w24-dashboard-header-row .w24-button {
        width: 100%;
        justify-content: center;
    }

    .w24-form-row {
        grid-template-columns: 1fr;
    }

    .w24-form-actions {
        flex-direction: column;
    }

    .w24-form-actions .w24-button {
        width: 100%;
    }

    .w24-vehicle-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Modal System
   ========================================================================== */

.w24-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--w24-space-4);
    opacity: 0;
    transition: opacity var(--w24-transition-slow);
}

.w24-modal.w24-modal-visible {
    opacity: 1;
}

.w24-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.w24-modal-content {
    position: relative;
    background: var(--w24-white);
    border-radius: var(--w24-radius-xl);
    box-shadow: var(--w24-shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--w24-transition-slow);
}

.w24-modal.w24-modal-visible .w24-modal-content {
    transform: translateY(0) scale(1);
}

.w24-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--w24-space-5) var(--w24-space-6);
    border-bottom: 1px solid var(--w24-gray-200);
}

.w24-modal-header h2 {
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin: 0;
}

.w24-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--w24-radius);
    color: var(--w24-gray-400);
    cursor: pointer;
    transition: all var(--w24-transition);
}

.w24-modal-close:hover {
    background: var(--w24-gray-100);
    color: var(--w24-gray-700);
}

.w24-modal-body {
    padding: var(--w24-space-6);
}

.w24-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--w24-space-3);
    margin-top: var(--w24-space-6);
    padding-top: var(--w24-space-4);
    border-top: 1px solid var(--w24-gray-200);
}

/* ==========================================================================
   Danger Outline Button (for cancel buttons in lists)
   ========================================================================== */

.w24-button-danger-outline {
    background: transparent;
    color: var(--w24-error) !important;
    border: 1px solid var(--w24-error);
}

.w24-button-danger-outline:hover {
    background: var(--w24-error);
    color: var(--w24-white) !important;
}

/* ==========================================================================
   Appointment Actions Section
   ========================================================================== */

.w24-appointment-actions-section {
    padding: var(--w24-space-4);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius-lg);
}

.w24-action-buttons {
    display: flex;
    gap: var(--w24-space-3);
    flex-wrap: wrap;
}

/* Action Stack - Vertically stacked buttons */
.w24-action-stack {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

/* Cancel Appointment Info */
.w24-cancel-appointment-info {
    padding: var(--w24-space-4);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
    margin: var(--w24-space-4) 0;
}

.w24-cancel-appointment-info p {
    margin: 0 0 var(--w24-space-2) 0;
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-700);
}

.w24-cancel-appointment-info p:last-child {
    margin-bottom: 0;
}

/* Textarea */
.w24-form-textarea {
    width: 100%;
    padding: var(--w24-space-3) var(--w24-space-4);
    border: 1px solid var(--w24-gray-300);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-base);
    font-family: inherit;
    color: var(--w24-gray-900);
    background: var(--w24-white);
    transition: all var(--w24-transition);
    resize: vertical;
    min-height: 80px;
}

.w24-form-textarea:focus {
    outline: none;
    border-color: var(--w24-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.w24-form-textarea::placeholder {
    color: var(--w24-gray-400);
}

.w24-form-label {
    display: block;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-700);
    margin-bottom: var(--w24-space-2);
}

/* Warning Notice */
.w24-portal-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .w24-modal {
        padding: var(--w24-space-4);
    }

    .w24-modal-content {
        max-width: 100%;
    }

    .w24-modal-header {
        padding: var(--w24-space-4);
    }

    .w24-modal-body {
        padding: var(--w24-space-4);
    }

    .w24-modal-actions {
        flex-direction: column;
    }

    .w24-modal-actions .w24-button {
        width: 100%;
    }

    .w24-action-buttons {
        flex-direction: column;
    }

    .w24-action-buttons .w24-button {
        width: 100%;
    }
}

/* ==========================================================================
   Profile Page
   ========================================================================== */

.w24-profile-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--w24-space-6);
    margin-bottom: var(--w24-space-6);
}

.w24-form {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-4);
}

.w24-form-input {
    width: 100%;
    padding: var(--w24-space-3) var(--w24-space-4);
    border: 1px solid var(--w24-gray-300);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-base);
    font-family: inherit;
    color: var(--w24-gray-900);
    background: var(--w24-white);
    transition: all var(--w24-transition);
}

.w24-form-input:focus {
    outline: none;
    border-color: var(--w24-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.w24-form-input::placeholder {
    color: var(--w24-gray-400);
}

.w24-form-input-disabled {
    background: var(--w24-gray-100);
    color: var(--w24-gray-500);
    cursor: not-allowed;
}

.w24-form-divider {
    height: 1px;
    background: var(--w24-gray-200);
    margin: var(--w24-space-4) 0;
}

.w24-form-group-small {
    flex: 0 0 120px;
}

.w24-form-group-large {
    flex: 1;
}

.w24-profile-info {
    padding: var(--w24-space-4);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
    text-align: center;
}

.w24-profile-info p {
    margin: 0;
    font-size: var(--w24-font-size-sm);
}

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

@media (max-width: 768px) {
    .w24-form-row {
        display: flex;
        flex-direction: column;
    }

    .w24-form-group-small,
    .w24-form-group-large {
        flex: 1;
    }
}

/* ==========================================================================
   Enhanced Dashboard Styles
   ========================================================================== */

/* Dashboard Header with Customer Info */
.w24-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--w24-space-6);
    margin-bottom: var(--w24-space-8);
    flex-wrap: wrap;
}

.w24-dashboard-welcome {
    flex: 1;
}

.w24-dashboard-customer-info {
    text-align: right;
}

.w24-customer-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--w24-space-1);
}

.w24-customer-number {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-600);
    background: var(--w24-gray-100);
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius-full);
}

.w24-customer-since {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-500);
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.w24-loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: var(--w24-gray-900);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius-full);
}

.w24-loyalty-badge svg {
    color: var(--w24-gray-900);
}

/* Primary Stat Card */
.w24-stat-card-primary {
    background: linear-gradient(135deg, var(--w24-accent) 0%, var(--w24-accent-dark) 100%);
    color: var(--w24-white);
    grid-column: span 1;
}

.w24-stat-card-primary .w24-stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--w24-white);
}

.w24-stat-card-primary .w24-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Progress Bar in Stat Card */
.w24-stat-progress {
    margin-top: var(--w24-space-3);
}

.w24-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--w24-radius-full);
    overflow: hidden;
}

.w24-stat-card:not(.w24-stat-card-primary) .w24-progress-bar {
    background: var(--w24-gray-200);
}

.w24-progress-fill {
    height: 100%;
    background: var(--w24-white);
    border-radius: var(--w24-radius-full);
    transition: width 0.5s ease;
}

.w24-stat-card:not(.w24-stat-card-primary) .w24-progress-fill {
    background: var(--w24-accent);
}

.w24-progress-text {
    display: block;
    font-size: var(--w24-font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--w24-space-1);
}

.w24-stat-card:not(.w24-stat-card-primary) .w24-progress-text {
    color: var(--w24-gray-500);
}

/* Next Appointment Highlight Card */
.w24-section-highlight {
    grid-column: span 2;
}

.w24-next-appointment-card {
    background: linear-gradient(135deg, var(--w24-accent) 0%, var(--w24-accent-dark) 100%);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    color: var(--w24-white);
    box-shadow: var(--w24-shadow-lg);
}

.w24-appointment-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-4);
}

.w24-appointment-highlight-header h3 {
    margin: 0;
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
}

.w24-badge-urgent {
    background: var(--w24-error);
    color: var(--w24-white);
}

.w24-badge-warning {
    background: var(--w24-warning);
    color: var(--w24-gray-900);
}

.w24-badge-info {
    background: var(--w24-gray-600);
    color: var(--w24-white);
}

.w24-appointment-highlight-content {
    display: flex;
    gap: var(--w24-space-6);
    align-items: center;
    margin-bottom: var(--w24-space-4);
}

.w24-appointment-highlight-date {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--w24-radius);
    padding: var(--w24-space-4);
    text-align: center;
    min-width: 90px;
}

.w24-date-day {
    font-size: var(--w24-font-size-3xl);
    font-weight: var(--w24-font-bold);
    line-height: 1;
}

.w24-date-month {
    font-size: var(--w24-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.w24-date-weekday {
    font-size: var(--w24-font-size-xs);
    opacity: 0.6;
    margin-top: var(--w24-space-1);
}

.w24-appointment-highlight-details {
    flex: 1;
}

.w24-appointment-time-large {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-semibold);
    margin-bottom: var(--w24-space-2);
}

.w24-appointment-vehicle-large {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-base);
    opacity: 0.9;
    margin-bottom: var(--w24-space-1);
}

.w24-appointment-service-large {
    font-size: var(--w24-font-size-sm);
    opacity: 0.7;
}

.w24-appointment-highlight-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--w24-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.w24-appointment-highlight-actions .w24-button-secondary {
    background: rgba(255, 255, 255, 0.15);
    border-color: transparent;
    color: var(--w24-white);
}

.w24-appointment-highlight-actions .w24-button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.w24-appointment-highlight-actions .w24-link-primary {
    color: rgba(255, 255, 255, 0.8);
}

.w24-appointment-highlight-actions .w24-link-primary:hover {
    color: var(--w24-white);
}

/* CTA Card */
.w24-cta-card {
    background: var(--w24-white);
    border: 2px dashed var(--w24-gray-300);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-8);
    text-align: center;
}

.w24-cta-icon {
    color: var(--w24-gray-400);
    margin-bottom: var(--w24-space-4);
}

.w24-cta-card h3 {
    margin: 0 0 var(--w24-space-2) 0;
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

.w24-cta-card p {
    margin: 0 0 var(--w24-space-4) 0;
    color: var(--w24-gray-500);
}

/* Vehicle Highlight Card */
.w24-vehicle-highlight-card {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-5);
}

.w24-vehicle-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-2);
}

.w24-vehicle-brand {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.w24-badge-primary-vehicle {
    background: var(--w24-accent-50);
    color: var(--w24-accent);
    font-size: var(--w24-font-size-xs);
}

.w24-vehicle-highlight-model {
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
    margin-bottom: var(--w24-space-3);
}

.w24-vehicle-highlight-plate {
    margin-bottom: var(--w24-space-3);
}

.w24-license-plate {
    display: inline-block;
    background: var(--w24-gray-900);
    color: var(--w24-white);
    font-family: 'Courier New', monospace;
    font-weight: var(--w24-font-bold);
    padding: var(--w24-space-2) var(--w24-space-4);
    border-radius: var(--w24-radius);
    letter-spacing: 0.05em;
}

.w24-vehicle-highlight-mileage {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    margin-bottom: var(--w24-space-4);
}

/* Bonus Dashboard Section */
.w24-bonus-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--w24-space-6);
}

.w24-bonus-dashboard .w24-bonus-balance-card {
    background: linear-gradient(135deg, var(--w24-secondary) 0%, var(--w24-secondary-dark) 100%);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-6);
    color: var(--w24-white);
    box-shadow: var(--w24-shadow-lg);
}

.w24-bonus-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-4);
}

.w24-bonus-balance-label {
    font-size: var(--w24-font-size-sm);
    opacity: 0.8;
}

.w24-bonus-balance-value {
    font-size: var(--w24-font-size-3xl);
    font-weight: var(--w24-font-bold);
}

.w24-bonus-next-reward {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--w24-radius);
    padding: var(--w24-space-4);
    margin-bottom: var(--w24-space-4);
}

.w24-next-reward-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-3);
}

.w24-next-reward-label {
    font-size: var(--w24-font-size-xs);
    opacity: 0.7;
}

.w24-next-reward-name {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
}

.w24-next-reward-progress {
    margin-top: var(--w24-space-2);
}

.w24-progress-bar-large {
    height: 8px;
}

.w24-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--w24-font-size-xs);
    opacity: 0.7;
    margin-top: var(--w24-space-1);
}

.w24-bonus-stats {
    display: flex;
    gap: var(--w24-space-6);
    padding-top: var(--w24-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.w24-bonus-stat {
    flex: 1;
}

.w24-bonus-stat-value {
    display: block;
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-semibold);
}

.w24-bonus-stat-label {
    display: block;
    font-size: var(--w24-font-size-xs);
    opacity: 0.7;
}

/* Available Rewards */
.w24-available-rewards {
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-5);
}

.w24-available-rewards h4 {
    margin: 0 0 var(--w24-space-4) 0;
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

.w24-rewards-list {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

.w24-reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--w24-space-3);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
}

.w24-reward-info {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-1);
}

.w24-reward-name {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-900);
}

.w24-reward-points {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

/* Quick Actions Enhanced */
.w24-action-content {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-1);
}

.w24-action-description {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

.w24-action-icon-profile {
    background: var(--w24-accent-50);
    color: var(--w24-accent);
}

/* Empty State Small */
.w24-empty-state-small {
    padding: var(--w24-space-6);
}

.w24-empty-state-small svg {
    width: 40px;
    height: 40px;
}

.w24-empty-state-small p {
    margin: var(--w24-space-2) 0 0 0;
    font-size: var(--w24-font-size-sm);
}

/* Responsive Dashboard Enhancements */
@media (max-width: 1024px) {
    .w24-dashboard-header {
        flex-direction: column;
    }

    .w24-dashboard-customer-info {
        text-align: left;
    }

    .w24-customer-badge {
        align-items: flex-start;
    }

    .w24-customer-since {
        justify-content: flex-start;
    }

    .w24-section-highlight {
        grid-column: span 1;
    }

    .w24-bonus-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .w24-appointment-highlight-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .w24-appointment-highlight-date {
        width: 100%;
        display: flex;
        align-items: center;
        gap: var(--w24-space-3);
        text-align: left;
    }

    .w24-date-day {
        font-size: var(--w24-font-size-2xl);
    }

    .w24-appointment-highlight-actions {
        flex-direction: column;
        gap: var(--w24-space-3);
        align-items: flex-start;
    }

    .w24-bonus-stats {
        flex-direction: column;
        gap: var(--w24-space-3);
    }
}

/* ==========================================================================
   Enhanced Vehicle Section Styles
   ========================================================================== */

/* Primary Vehicle Card */
.w24-vehicle-card-primary {
    border: 2px solid var(--w24-accent);
    position: relative;
}

.w24-vehicle-primary-badge {
    position: absolute;
    top: var(--w24-space-3);
    right: var(--w24-space-3);
    display: flex;
    align-items: center;
    gap: var(--w24-space-1);
    background: var(--w24-accent);
    color: var(--w24-white);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius-full);
}

.w24-vehicle-primary-badge svg {
    width: 12px;
    height: 12px;
}

/* Vehicle Service Alert */
.w24-vehicle-alert {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-2) var(--w24-space-3);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-medium);
    margin: var(--w24-space-3) 0;
}

.w24-vehicle-alert svg {
    flex-shrink: 0;
}

.w24-vehicle-alert-warning {
    background: var(--w24-warning-light);
    color: #92400e;
}

.w24-vehicle-alert-danger {
    background: #fecaca;
    color: #991b1b;
}

/* Vehicle Appointments Indicator */
.w24-vehicle-appointments {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-2) var(--w24-space-3);
    background: var(--w24-primary-50);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-xs);
    color: var(--w24-primary);
    margin-top: var(--w24-space-3);
}

.w24-vehicle-appointments svg {
    flex-shrink: 0;
    color: var(--w24-primary);
}

/* Vehicle Stats in List Cards */
.w24-vehicle-stat {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
}

.w24-vehicle-stat .w24-stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w24-gray-100);
    border-radius: var(--w24-radius);
    color: var(--w24-gray-600);
}

.w24-vehicle-stat .w24-stat-content {
    display: flex;
    flex-direction: column;
}

.w24-vehicle-stat .w24-stat-number {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

.w24-vehicle-stat .w24-stat-text {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

/* Vehicle Detail Header */
.w24-vehicle-detail-header {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-6);
}

.w24-vehicle-detail-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w24-gray-100);
    border-radius: var(--w24-radius-lg);
    color: var(--w24-gray-600);
}

.w24-vehicle-detail-title {
    flex: 1;
}

.w24-vehicle-license-large {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-700);
    background: var(--w24-gray-100);
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius);
    letter-spacing: 0.05em;
    margin-right: var(--w24-space-3);
}

/* 4-Column Stats Grid */
.w24-stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .w24-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .w24-stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Stat Icon Colors */
.w24-stat-icon-points {
    background: #fef3c7;
    color: #d97706;
}

/* Info Box */
.w24-info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--w24-space-3);
    padding: var(--w24-space-4);
    background: var(--w24-primary-50);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
}

.w24-info-box-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w24-white);
    border-radius: var(--w24-radius);
    color: var(--w24-primary);
    flex-shrink: 0;
}

.w24-info-box-content {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-700);
    line-height: 1.5;
}

.w24-info-box-content strong {
    color: var(--w24-gray-900);
}

/* Quick Actions Bar */
.w24-quick-actions-bar {
    display: flex;
    gap: var(--w24-space-3);
    flex-wrap: wrap;
}

.w24-quick-action {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-3) var(--w24-space-4);
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius);
    color: var(--w24-gray-700);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    transition: all var(--w24-transition);
}

.w24-quick-action:hover {
    background: var(--w24-gray-50);
    border-color: var(--w24-gray-300);
    color: var(--w24-gray-900);
}

.w24-quick-action svg {
    color: var(--w24-gray-500);
}

/* Appointments List */
.w24-appointments-list {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

.w24-appointment-item {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    padding: var(--w24-space-3);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
}

.w24-appointment-date {
    text-align: center;
    min-width: 50px;
}

.w24-appointment-day {
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    line-height: 1;
}

.w24-appointment-month {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
    text-transform: uppercase;
}

.w24-appointment-content {
    flex: 1;
}

.w24-appointment-content h4 {
    margin: 0;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

.w24-appointment-content p {
    margin: var(--w24-space-1) 0 0 0;
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
    display: flex;
    align-items: center;
    gap: var(--w24-space-1);
}

.w24-appointment-status {
    flex-shrink: 0;
}

/* Vehicle Notes */
.w24-vehicle-notes {
    margin-top: var(--w24-space-4);
    padding-top: var(--w24-space-4);
    border-top: 1px solid var(--w24-gray-200);
}

.w24-vehicle-notes h4 {
    margin: 0 0 var(--w24-space-2) 0;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-700);
}

.w24-vehicle-notes p {
    margin: 0;
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    line-height: 1.6;
}

/* Empty State Icon */
.w24-empty-state-icon {
    margin-bottom: var(--w24-space-4);
}

.w24-empty-state-icon svg {
    color: var(--w24-gray-300);
}

.w24-empty-state h3 {
    margin: 0 0 var(--w24-space-2) 0;
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-700);
}

/* Service Meta Enhanced */
.w24-service-points {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    color: #059669;
    font-weight: var(--w24-font-medium);
}

/* Text Utility Classes */
.w24-text-danger {
    color: var(--w24-error) !important;
}

.w24-text-warning {
    color: var(--w24-warning) !important;
}

/* VIN Display */
.w24-vin {
    font-family: monospace;
    font-size: var(--w24-font-size-sm);
    letter-spacing: 0.05em;
}

.w24-vin-short {
    cursor: help;
}

/* Info Item Full Width */
.w24-info-item-full {
    grid-column: 1 / -1;
}

/* Dashboard Grid Layout */
.w24-dashboard-column {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-6);
}

/* Textarea Style */
.w24-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Link Inline */
.w24-link-inline {
    color: var(--w24-accent);
    text-decoration: none;
    font-weight: var(--w24-font-medium);
    margin-left: var(--w24-space-2);
}

.w24-link-inline:hover {
    text-decoration: underline;
}

/* Badge Confirmed Status */
.w24-badge-confirmed {
    background: #dcfce7;
    color: #166534;
}

.w24-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive Vehicle Detail */
@media (max-width: 768px) {
    .w24-vehicle-detail-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .w24-vehicle-detail-icon {
        width: 56px;
        height: 56px;
    }

    .w24-vehicle-detail-icon svg {
        width: 32px;
        height: 32px;
    }

    .w24-vehicle-license-large {
        display: inline-block;
        margin-bottom: var(--w24-space-2);
    }

    .w24-quick-actions-bar {
        flex-direction: column;
    }

    .w24-quick-action {
        width: 100%;
        justify-content: center;
    }

    .w24-appointment-item {
        flex-wrap: wrap;
    }

    .w24-appointment-status {
        width: 100%;
        margin-top: var(--w24-space-2);
    }
}

/* ==========================================================================
   Enhanced Service Timeline
   ========================================================================== */

/* Service Timeline Container */
.w24-service-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-4);
}

/* Service Item Card */
.w24-service-item {
    display: flex;
    gap: var(--w24-space-4);
    padding: var(--w24-space-4);
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-lg);
    transition: all var(--w24-transition);
}

.w24-service-item:hover {
    box-shadow: var(--w24-shadow-md);
    border-color: var(--w24-gray-300);
}

/* Service Status Variants */
.w24-service-item.w24-service-status-scheduled {
    border-left: 3px solid var(--w24-primary);
}

.w24-service-item.w24-service-status-in_progress {
    border-left: 3px solid var(--w24-warning);
}

.w24-service-item.w24-service-status-completed {
    border-left: 3px solid var(--w24-success);
}

.w24-service-item.w24-service-status-cancelled {
    border-left: 3px solid var(--w24-gray-400);
    opacity: 0.7;
}

/* Service Date */
.w24-service-date {
    min-width: 60px;
    text-align: center;
    padding: var(--w24-space-2);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
}

.w24-service-day {
    font-size: var(--w24-font-size-xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    line-height: 1;
}

.w24-service-month {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
    text-transform: uppercase;
    margin-top: var(--w24-space-1);
}

/* Service Content */
.w24-service-content {
    flex: 1;
    min-width: 0;
}

/* Service Header */
.w24-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--w24-space-3);
    margin-bottom: var(--w24-space-2);
    flex-wrap: wrap;
}

.w24-service-title {
    margin: 0;
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-900);
}

/* Service Badges */
.w24-service-badges {
    display: flex;
    gap: var(--w24-space-2);
    flex-wrap: wrap;
}

/* Service Status Badges */
.w24-badge-service-scheduled {
    background: var(--w24-primary-50);
    color: var(--w24-primary);
}

.w24-badge-service-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.w24-badge-service-completed {
    background: #dcfce7;
    color: #166534;
}

.w24-badge-service-cancelled {
    background: var(--w24-gray-100);
    color: var(--w24-gray-600);
}

/* Payment Status Badges */
.w24-badge-payment-pending {
    background: #fef3c7;
    color: #92400e;
}

.w24-badge-payment-paid {
    background: #dcfce7;
    color: #166534;
}

.w24-badge-payment-overdue {
    background: #fee2e2;
    color: #991b1b;
}

/* Service Description */
.w24-service-description {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
    line-height: 1.5;
    margin-bottom: var(--w24-space-3);
}

/* Service Costs */
.w24-service-costs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--w24-space-3);
    padding: var(--w24-space-3);
    background: var(--w24-gray-50);
    border-radius: var(--w24-radius);
    margin-bottom: var(--w24-space-3);
}

.w24-service-cost-item {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-1);
}

.w24-service-cost-label {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

.w24-service-cost-value {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    color: var(--w24-gray-900);
}

.w24-service-cost-total {
    margin-left: auto;
    padding-left: var(--w24-space-3);
    border-left: 1px solid var(--w24-gray-200);
}

.w24-service-cost-total .w24-service-cost-value {
    font-size: var(--w24-font-size-base);
    font-weight: var(--w24-font-bold);
    color: var(--w24-accent);
}

/* Service Details Row */
.w24-service-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-3);
}

.w24-service-detail {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-service-detail svg {
    flex-shrink: 0;
    color: var(--w24-gray-400);
}

.w24-service-detail.w24-service-points {
    color: #059669;
}

.w24-service-detail.w24-service-points svg {
    color: #059669;
}

/* Service Notes */
.w24-service-notes {
    padding: var(--w24-space-3);
    background: #fffbeb;
    border-radius: var(--w24-radius);
    border-left: 3px solid #fbbf24;
}

.w24-service-notes p {
    margin: 0;
    font-size: var(--w24-font-size-sm);
    color: #92400e;
    line-height: 1.5;
}

/* Legacy Service Meta (fallback) */
.w24-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--w24-space-4);
}

.w24-service-amount,
.w24-service-invoice {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-service-amount svg,
.w24-service-invoice svg {
    color: var(--w24-gray-400);
}

/* Responsive Service Timeline */
@media (max-width: 768px) {
    .w24-service-item {
        flex-direction: column;
    }

    .w24-service-date {
        display: flex;
        align-items: center;
        gap: var(--w24-space-2);
        min-width: 100%;
    }

    .w24-service-day,
    .w24-service-month {
        margin: 0;
    }

    .w24-service-header {
        flex-direction: column;
    }

    .w24-service-costs {
        flex-direction: column;
    }

    .w24-service-cost-total {
        margin-left: 0;
        padding-left: 0;
        padding-top: var(--w24-space-2);
        border-left: none;
        border-top: 1px solid var(--w24-gray-200);
    }

    .w24-service-details {
        flex-direction: column;
        gap: var(--w24-space-2);
    }
}

/* ==========================================================================
   Next Appointment Card V2 - Modern Design
   ========================================================================== */

.w24-next-appointment-card-v2 {
    display: flex;
    background: var(--w24-white);
    border-radius: var(--w24-radius-xl);
    overflow: hidden;
    box-shadow: var(--w24-shadow-lg);
    border: 1px solid var(--w24-gray-100);
}

.w24-appointment-card-left {
    background: linear-gradient(135deg, var(--w24-accent) 0%, #c53030 100%);
    padding: var(--w24-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.w24-appointment-date-block {
    text-align: center;
    color: var(--w24-white);
}

.w24-date-weekday-short {
    display: block;
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: var(--w24-space-1);
}

.w24-date-day-large {
    display: block;
    font-size: 3.5rem;
    font-weight: var(--w24-font-bold);
    line-height: 1;
    margin-bottom: var(--w24-space-1);
}

.w24-date-month-year {
    display: block;
    font-size: var(--w24-font-size-sm);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.w24-appointment-card-right {
    flex: 1;
    padding: var(--w24-space-5) var(--w24-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-4);
}

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

.w24-appointment-label {
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--w24-gray-500);
}

.w24-appointment-countdown {
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    padding: var(--w24-space-1) var(--w24-space-3);
    border-radius: var(--w24-radius-full);
    background: var(--w24-gray-100);
    color: var(--w24-gray-600);
}

.w24-appointment-countdown.w24-countdown-today {
    background: #fee2e2;
    color: #dc2626;
}

.w24-appointment-countdown.w24-countdown-tomorrow {
    background: #fef3c7;
    color: #d97706;
}

.w24-appointment-time-display {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
    font-size: var(--w24-font-size-2xl);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
}

.w24-appointment-time-display svg {
    color: var(--w24-accent);
}

.w24-appointment-meta {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-2);
}

.w24-appointment-meta-item {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-appointment-meta-item svg {
    color: var(--w24-gray-400);
    flex-shrink: 0;
}

.w24-license-tag {
    background: var(--w24-gray-100);
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius);
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-700);
    letter-spacing: 0.02em;
}

.w24-service-tag {
    color: var(--w24-gray-500);
}

.w24-appointment-actions {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
    margin-top: auto;
    padding-top: var(--w24-space-3);
    border-top: 1px solid var(--w24-gray-100);
}

.w24-btn-card {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-2) var(--w24-space-4);
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-medium);
    border-radius: var(--w24-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.w24-btn-card-primary {
    background: var(--w24-accent);
    color: var(--w24-white);
}

.w24-btn-card-primary:hover {
    background: var(--w24-accent-dark);
    transform: translateY(-1px);
}

.w24-btn-card-ghost {
    background: transparent;
    color: var(--w24-gray-600);
}

.w24-btn-card-ghost:hover {
    color: var(--w24-accent);
    background: var(--w24-gray-50);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .w24-next-appointment-card-v2 {
        flex-direction: column;
    }

    .w24-appointment-card-left {
        min-width: 100%;
        padding: var(--w24-space-4);
    }

    .w24-appointment-date-block {
        display: flex;
        align-items: center;
        gap: var(--w24-space-3);
    }

    .w24-date-day-large {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .w24-date-weekday-short,
    .w24-date-month-year {
        margin-bottom: 0;
    }

    .w24-appointment-card-right {
        padding: var(--w24-space-4);
    }

    .w24-appointment-time-display {
        font-size: var(--w24-font-size-xl);
    }

    .w24-appointment-actions {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Loyalty Card V2 - Modern Design
   ========================================================================== */

.w24-loyalty-card-v2 {
    background: var(--w24-white);
    border-radius: var(--w24-radius-xl);
    overflow: hidden;
    box-shadow: var(--w24-shadow-lg);
    border: 1px solid var(--w24-gray-100);
}

.w24-loyalty-main {
    padding: var(--w24-space-6);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.w24-loyalty-points-display {
    display: flex;
    align-items: center;
    gap: var(--w24-space-4);
    margin-bottom: var(--w24-space-5);
}

.w24-points-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: var(--w24-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w24-white);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.w24-points-info {
    display: flex;
    flex-direction: column;
}

.w24-points-label {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-500);
    margin-bottom: var(--w24-space-1);
}

.w24-points-value {
    font-size: 2.5rem;
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    line-height: 1;
}

.w24-loyalty-progress-section {
    background: var(--w24-white);
    border-radius: var(--w24-radius-lg);
    padding: var(--w24-space-4);
    border: 1px solid var(--w24-gray-100);
    margin-bottom: var(--w24-space-5);
}

.w24-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--w24-space-3);
    flex-wrap: wrap;
    gap: var(--w24-space-2);
}

.w24-progress-target {
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-600);
}

.w24-progress-target strong {
    color: var(--w24-gray-900);
}

.w24-progress-remaining {
    font-size: var(--w24-font-size-xs);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-success);
    background: #dcfce7;
    padding: var(--w24-space-1) var(--w24-space-2);
    border-radius: var(--w24-radius-full);
}

.w24-progress-track {
    position: relative;
    height: 12px;
    background: var(--w24-gray-100);
    border-radius: var(--w24-radius-full);
    overflow: visible;
    margin-bottom: var(--w24-space-2);
}

.w24-progress-fill-v2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: var(--w24-radius-full);
    transition: width 0.5s ease;
}

.w24-progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.w24-marker-dot {
    display: block;
    width: 20px;
    height: 20px;
    background: var(--w24-white);
    border: 3px solid #16a34a;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.w24-progress-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-400);
}

.w24-loyalty-stats-row {
    display: flex;
    gap: var(--w24-space-6);
}

.w24-loyalty-stat {
    display: flex;
    align-items: center;
    gap: var(--w24-space-3);
    flex: 1;
    padding: var(--w24-space-3);
    background: var(--w24-white);
    border-radius: var(--w24-radius);
    border: 1px solid var(--w24-gray-100);
}

.w24-loyalty-stat svg {
    color: var(--w24-gray-400);
    flex-shrink: 0;
}

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

.w24-stat-number {
    font-size: var(--w24-font-size-lg);
    font-weight: var(--w24-font-bold);
    color: var(--w24-gray-900);
    line-height: 1.2;
}

.w24-stat-desc {
    font-size: var(--w24-font-size-xs);
    color: var(--w24-gray-500);
}

.w24-loyalty-rewards {
    background: var(--w24-gray-50);
    padding: var(--w24-space-4) var(--w24-space-6);
    border-top: 1px solid var(--w24-gray-100);
}

.w24-rewards-header {
    display: flex;
    align-items: center;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-gray-700);
    margin-bottom: var(--w24-space-3);
}

.w24-rewards-header svg {
    color: var(--w24-success);
}

.w24-rewards-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--w24-space-2);
}

.w24-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    padding: var(--w24-space-2) var(--w24-space-3);
    background: var(--w24-white);
    border: 1px solid var(--w24-gray-200);
    border-radius: var(--w24-radius-full);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    transition: all 0.2s ease;
}

.w24-reward-chip:hover {
    border-color: var(--w24-success);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
}

.w24-chip-name {
    color: var(--w24-gray-700);
    font-weight: var(--w24-font-medium);
}

.w24-chip-points {
    color: var(--w24-success);
    font-weight: var(--w24-font-semibold);
    font-size: var(--w24-font-size-xs);
}

.w24-chip-more {
    background: var(--w24-gray-100);
    border-color: var(--w24-gray-200);
    color: var(--w24-gray-500);
    font-weight: var(--w24-font-medium);
}

.w24-chip-more:hover {
    background: var(--w24-gray-200);
    border-color: var(--w24-gray-300);
}

/* Section header link enhancement */
.w24-section-header .w24-link-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-1);
}

.w24-section-header .w24-link-primary svg {
    transition: transform 0.2s ease;
}

.w24-section-header .w24-link-primary:hover svg {
    transform: translateX(3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .w24-loyalty-main {
        padding: var(--w24-space-4);
    }

    .w24-points-icon {
        width: 52px;
        height: 52px;
    }

    .w24-points-icon svg {
        width: 26px;
        height: 26px;
    }

    .w24-points-value {
        font-size: 2rem;
    }

    .w24-loyalty-stats-row {
        flex-direction: column;
        gap: var(--w24-space-3);
    }

    .w24-loyalty-rewards {
        padding: var(--w24-space-4);
    }

    .w24-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Portal Footer V2 - Enhanced Design
   ========================================================================== */

.w24-portal-footer {
    background: var(--w24-gray-900);
    padding: var(--w24-space-10) 0 var(--w24-space-6);
    margin-top: var(--w24-space-16);
}

.w24-portal-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--w24-space-8);
    margin-bottom: var(--w24-space-8);
    padding-bottom: var(--w24-space-8);
    border-bottom: 1px solid var(--w24-gray-700);
}

.w24-footer-section {
    display: flex;
    flex-direction: column;
}

.w24-footer-title {
    font-size: var(--w24-font-size-sm);
    font-weight: var(--w24-font-semibold);
    color: var(--w24-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--w24-space-4) 0;
}

/* Contact Items */
.w24-footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

.w24-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-3);
    color: var(--w24-gray-400);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    transition: color 0.2s ease;
}

.w24-footer-contact-item:hover {
    color: var(--w24-white);
}

.w24-footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--w24-accent);
}

/* Legal Links */
.w24-footer-legal {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-2);
}

.w24-footer-legal a {
    color: var(--w24-gray-400);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    transition: color 0.2s ease;
}

.w24-footer-legal a:hover {
    color: var(--w24-white);
}

/* Footer Links with Icons */
.w24-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--w24-space-3);
}

.w24-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: var(--w24-space-2);
    color: var(--w24-gray-400);
    text-decoration: none;
    font-size: var(--w24-font-size-sm);
    transition: color 0.2s ease;
}

.w24-footer-links a:hover {
    color: var(--w24-white);
}

.w24-footer-links a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--w24-gray-500);
    transition: color 0.2s ease;
}

.w24-footer-links a:hover svg {
    color: var(--w24-accent);
}

/* Copyright Bar */
.w24-footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--w24-space-2);
    font-size: var(--w24-font-size-sm);
    color: var(--w24-gray-500);
}

.w24-footer-divider {
    color: var(--w24-gray-600);
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .w24-portal-footer {
        padding: var(--w24-space-8) 0 var(--w24-space-6);
    }

    .w24-portal-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--w24-space-6);
        text-align: center;
    }

    .w24-footer-contact {
        align-items: center;
    }

    .w24-footer-legal {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--w24-space-4);
    }

    .w24-footer-links {
        align-items: center;
    }

    .w24-footer-copyright {
        flex-direction: column;
        gap: var(--w24-space-1);
    }

    .w24-footer-divider {
        display: none;
    }
}
