/*
 * Dernière Minute - Design System
 * Direction esthétique: Luxe & Bien-être
 * Palette: Violet profond avec accents dorés/chauds
 */

/* ========================================
   FONTS - Typographie distinctive
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES - Design Tokens
   ======================================== */
:root {
    /* Couleurs principales */
    --primary: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #A78BFA;
    --primary-subtle: #EDE9FE;

    /* Accents chaleureux */
    --accent-gold: #D97706;
    --accent-warm: #F59E0B;
    --accent-cream: #FFFBEB;

    /* Neutres raffinés */
    --neutral-50: #FAFAF9;
    --neutral-100: #F5F5F4;
    --neutral-200: #E7E5E4;
    --neutral-300: #D6D3D1;
    --neutral-400: #A8A29E;
    --neutral-500: #78716C;
    --neutral-600: #57534E;
    --neutral-700: #44403C;
    --neutral-800: #292524;
    --neutral-900: #1C1917;

    /* États */
    --success: #059669;
    --success-light: #D1FAE5;
    --error: #DC2626;
    --error-light: #FEE2E2;

    /* Typographie */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Arrondis */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--neutral-50) 0%, #FFFFFF 100%);
    color: var(--neutral-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
}

.heading-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

.heading-md {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SIDEBAR NAVIGATION (Desktop)
   ======================================== */
.sidebar {
    background: #FFFFFF;
    border-right: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    width: 280px;
    z-index: 40;
    transition: var(--transition-base);
}

.sidebar-logo {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    color: var(--neutral-600);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.nav-item.active::before {
    height: 60%;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ========================================
   MOBILE HEADER
   ======================================== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-md) var(--space-lg);
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-sm) 0;
    padding-bottom: env(safe-area-inset-bottom, var(--space-sm));
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    color: var(--neutral-400);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.mobile-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-bounce);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active svg {
    transform: scale(1.1);
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
}

.mobile-nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

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

.btn-secondary {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.btn-secondary:hover {
    background: var(--neutral-200);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-600);
}

.btn-ghost:hover {
    background: var(--neutral-100);
    color: var(--neutral-800);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    transition: var(--transition-base);
}

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

.card-service {
    position: relative;
}

.card-service .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-service .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-service .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 2;
}

.card-countdown {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 2;
    font-variant-numeric: tabular-nums;
}

.card-countdown.urgent {
    background: var(--error);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-xs);
}

.card-provider {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.card-provider a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-provider a:hover {
    text-decoration: underline;
}

.card-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.card-price-original {
    font-size: 0.9rem;
    color: var(--neutral-400);
    text-decoration: line-through;
    margin-left: var(--space-sm);
}

.card-price-discount {
    color: var(--success);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-100);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.card-meta-item i {
    width: 16px;
    color: var(--primary-light);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-rating i {
    color: var(--accent-warm);
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .search-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: var(--neutral-50);
    transition: var(--transition-fast);
}

.form-input:hover {
    border-color: var(--neutral-300);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

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

/* Input avec icône */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 3rem;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    pointer-events: none;
}

.input-icon-wrapper .input-action {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.input-icon-wrapper .input-action:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

/* Date pills */
.date-pills {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.date-pill {
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    transition: var(--transition-fast);
    background: white;
}

.date-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.date-pill.active,
.date-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.date-pill input {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--neutral-200);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--primary-subtle);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--neutral-800);
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    color: var(--neutral-500);
    max-width: 300px;
    margin: 0 auto;
}

/* ========================================
   PROFILE DROPDOWN
   ======================================== */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-trigger:hover {
    background: var(--neutral-100);
}

/* Avatar avec initiales */
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    user-select: none;
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-wrapper .avatar-initials,
.profile-avatar-wrapper img {
    border: 2px solid var(--primary-subtle);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-subtle);
}

.profile-info {
    text-align: left;
}

.profile-name {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 0.9rem;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.profile-menu {
    position: absolute;
    bottom: calc(100% + var(--space-sm));
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--neutral-600);
    text-decoration: none;
    transition: var(--transition-fast);
}

.profile-menu-item:hover {
    background: var(--neutral-50);
    color: var(--neutral-800);
}

.profile-menu-item.danger {
    color: var(--error);
}

.profile-menu-item.danger:hover {
    background: var(--error-light);
}

.profile-menu-item i {
    width: 20px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Skeleton loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
        var(--neutral-100) 25%,
        var(--neutral-200) 50%,
        var(--neutral-100) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* Pulse */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Bounce */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s infinite;
}

/* Spin */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Grid */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

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

/* Safe area padding for mobile */
.safe-bottom {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Hide on mobile/desktop */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: var(--primary-light);
    color: white;
}

/* ========================================
   FOCUS VISIBLE
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   MODALES PERSONNALISÉES
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl);
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.modal-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.modal-icon.error {
    background: var(--error-light);
    color: var(--error);
}

.modal-icon.warning {
    background: #FEF3C7;
    color: #D97706;
}

.modal-icon.info {
    background: var(--primary-subtle);
    color: var(--primary);
}

.modal-icon.question {
    background: var(--primary-subtle);
    color: var(--primary);
}

.modal-icon.loading {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.modal-message {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-body {
    padding: 0 var(--space-xl) var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    background: var(--neutral-50);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.modal-footer .btn {
    flex: 1;
    max-width: 160px;
}

/* Loading spinner */
@keyframes modal-spin {
    to { transform: rotate(360deg); }
}

.modal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: modal-spin 0.8s linear infinite;
}

/* ========================================
   ALPINE.JS CLOAK
   ======================================== */
[x-cloak] {
    display: none !important;
}
