/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Couleurs déduites des logos fournis */
    --color-primary: #1A365D; /* Bleu Marine foncé */
    --color-primary-light: #2A4A7F;
    --color-secondary: #009688; /* Vert Émeraude / Teal */
    --color-secondary-light: #1FA595;
    --color-accent: #F89B5F; /* Orange d'accentuation (personnage) */
    
    --color-bg: #FFFFFF;
    --color-bg-alt: #F4F7FA;
    --color-text: #334155;
    --color-text-light: #64748B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(26, 54, 93, 0.25);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('assets/official_logo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

.site-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

.pharma-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.pharma-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-open {
    background-color: #DEF7EC;
    color: #059669;
}
.status-open::before {
    background-color: #059669;
}

.status-closed {
    background-color: #FDE8E8;
    color: #C81E1E;
}
.status-closed::before {
    background-color: #C81E1E;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    background-color: var(--color-secondary);
    color: white;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--color-secondary);
    width: 32px;
    height: 32px;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #F0F8FF 0%, #E0F2F1 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(248, 155, 95, 0.15);
    color: #E65100;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--color-secondary);
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-indicators {
    display: flex;
     gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.trust-item svg {
    color: var(--color-secondary);
    width: 20px;
    height: 20px;
}

/* Hero Graphics */
.hero-graphics {
    position: relative;
    height: 500px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: drift 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 150, 136, 0.4);
    top: 10%;
    right: 10%;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background-color: rgba(248, 155, 95, 0.4);
    bottom: 10%;
    left: 10%;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    position: absolute;
    z-index: 10;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
    100% { transform: translate(-50%, -50%); }
}

.glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(248, 155, 95, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(248, 155, 95, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(248, 155, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 155, 95, 0); }
}

.delivery-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-icon {
    color: var(--color-secondary);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 150, 136, 0.1);
    padding: 8px;
    border-radius: var(--radius-md);
}

.status-text strong {
    display: block;
    color: var(--color-primary);
}

.status-text span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.products {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: white;
    border-color: var(--color-secondary-light);
    box-shadow: var(--shadow-lg);
}

.cat-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 150, 136, 0.1);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cat-icon svg { width: 32px; height: 32px; }

.category-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cat-link svg { width: 16px; height: 16px; transition: var(--transition); }
.category-card:hover .cat-link svg { transform: translateX(5px); }

/* Featured Products */
.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(45deg, #f3f4f6 25%, transparent 25%), linear-gradient(-45deg, #f3f4f6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f3f4f6 75%), linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.product-info {
    padding: 24px;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.brand {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.add-to-cart {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

.product-card:hover .add-to-cart {
    background-color: var(--color-secondary);
    color: white;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.logo-icon-footer { color: var(--color-secondary); }
.footer-brand .logo-title { color: white; }

.footer-brand p {
    margin-top: 20px;
    color: #94A3B8;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    font-size: 0.9rem;
}

/* =========================================
   CART SIDEBAR
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; max-width: 100%; height: 100%;
    background: white;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-sidebar.open {
    transform: translateX(-400px);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #E2E8F0;
    display: flex; justify-content: space-between; align-items: center;
}

.btn-icon-simple {
    background: none; border: none; cursor: pointer; color: var(--color-text-light);
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
}

.cart-body {
    flex: 1; overflow-y: auto; padding: 24px;
}

.empty-cart-msg {
    text-align: center; color: var(--color-text-light); margin-top: 40px;
}

.cart-item-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #E2E8F0;
}

.cart-item-name { font-weight: 500; color: var(--color-primary); }
.cart-item-price { font-weight: bold; }

.cart-footer {
    padding: 24px; border-top: 1px solid #E2E8F0; background: var(--color-bg-alt);
}

.cart-total {
    display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: bold; margin-bottom: 16px; color: var(--color-primary);
}

/* =========================================
   PHARMACIES SECTION (CIRCLES)
   ========================================= */
.pharmacies {
    padding: 80px 0 120px;
    background-color: var(--color-bg-alt);
}

.pharmacy-tab-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.pharma-circle-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: white;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    border: 4px solid transparent;
    transition: var(--transition);
}

.pharmacy-tab-circle:hover .pharma-circle-large {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 150, 136, 0.3);
}

.pharmacy-tab-circle.active .pharma-circle-large {
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 150, 136, 0.4);
}

.pharma-circle-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    font-family: var(--font-heading);
    transition: var(--transition);
}

.pharmacy-tab-circle.active .pharma-circle-title {
    color: var(--color-secondary);
}
/* =========================================
   CHECKOUT PAGE & FORMS
   ========================================= */
.bg-gray { background-color: var(--color-bg-alt); }

.checkout-container {
    max-width: 1000px;
    margin: 80px auto;
    padding: 24px;
}

.checkout-header {
    margin-bottom: 40px;
    text-align: center;
}

.checkout-header h2 { font-size: 2.5rem; margin-bottom: 8px; }
.checkout-header p { color: var(--color-text-light); }

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.checkout-section {
    margin-bottom: 24px;
}

.glass-card-solid {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.step-num {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-heading);
}

/* Radio Cards (Pharmacies) */
.radio-group { display: flex; flex-direction: column; gap: 16px; }

.radio-card {
    cursor: pointer;
    display: block;
}

.radio-card input { display: none; }

.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.radio-card input:checked + .card-content {
    border-color: var(--color-secondary);
    background-color: rgba(0, 150, 136, 0.05);
}

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

.full-width { grid-column: span 2; }

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.relative-input { position: relative; }
.input-icon { position: absolute; left: 16px; top: 38px; color: #94A3B8; width: 20px; }
.input-icon-wrapper input { padding-left: 48px; }

/* Payment Methods */
.payment-methods { display: flex; gap: 16px; margin-bottom: 24px; }
.pay-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-md);
    background-color: rgba(0, 150, 136, 0.05);
    color: var(--color-secondary);
    font-weight: 600;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 16px;
}
.secure-badge svg { width: 16px; }

/* Sidebar Cart */
.sticky-sidebar { position: sticky; top: 100px; }

.cart-items {
    margin-top: 24px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.item-details h4 { font-size: 1rem; margin-bottom: 4px; }
.item-details span { font-size: 0.85rem; color: var(--color-text-light); }
.item-price { font-weight: 600; color: var(--color-primary); }

.cart-totals { margin-top: 24px; }

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.grand-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #CBD5E1;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-block { width: 100%; display: flex; justify-content: center; }
.mt-4 { margin-top: 24px; }
.mt-2 { margin-top: 12px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; color: #94A3B8; }

/* Modal Success */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal.active .modal-content { transform: translateY(0); }

.success-icon-wrapper {
    width: 80px; height: 80px;
    background-color: #DEF7EC;
    color: #059669;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}

.success-icon { width: 40px; height: 40px; }

.scooter-anim {
    display: inline-block;
    color: var(--color-secondary);
    animation: drive 2s linear infinite;
}

@keyframes drive {
    0% { transform: translateX(-100px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.spin-icon { animation: spin 1s linear infinite; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .trust-indicators { justify-content: center; }
    .hero-graphics { margin-top: 40px; }
    .glass-card { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; animation: none; }
    .nav-links { display: none; }
}

/* =========================================
   AUTH MODAL
   ========================================= */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(26, 54, 93, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: var(--transition);
}
.auth-overlay.active { display: block; opacity: 1; }

.auth-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    width: 100%; max-width: 450px;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: var(--transition);
}
.auth-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }

.close-auth {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent; border: none; font-size: 1.5rem;
    color: var(--color-text-light); cursor: pointer;
}

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { margin-bottom: 4px; }
.auth-header p { color: var(--color-text-light); font-size: 0.9rem; }

.auth-tabs {
    display: flex; background: var(--color-bg-alt); border-radius: var(--radius-md);
    padding: 4px; margin-bottom: 24px;
}
.auth-tab {
    flex: 1; padding: 10px; text-align: center; border: none; background: transparent;
    border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
    color: var(--color-text-light); transition: var(--transition);
}
.auth-tab.active { background: white; color: var(--color-primary); box-shadow: var(--shadow-sm); }

.social-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border-color: #E2E8F0; color: var(--color-text); }
.btn-social:hover { background-color: var(--color-bg-alt); border-color: #CBD5E1; }

.auth-divider {
    text-align: center; position: relative; margin-bottom: 24px;
}
.auth-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #E2E8F0; z-index: 1;
}
.auth-divider span {
    position: relative; z-index: 2; background: white; padding: 0 16px; color: var(--color-text-light); font-size: 0.85rem; font-weight: 500;
}
