/* ==========================================================================
   CABINET PARAMÉDICAL DE DABA - PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Harmony Color Palette - Paramedical Precision (Teal, Cyan, Slate) */
    --color-primary: #0ea5e9;       /* Bright medical cyan */
    --color-primary-rgb: 14, 165, 233;
    --color-accent: #06b6d4;        /* Soft therapeutic teal */
    --color-accent-rgb: 6, 182, 212;
    
    --color-bg-dark: #030712;       /* Deep slate/black */
    --color-bg-panel: #0b0f19;      /* Panel background */
    --color-bg-glass: rgba(15, 23, 42, 0.65);
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(14, 165, 233, 0.25);
    
    --color-text-white: #f8fafc;    /* Soft clean white */
    --color-text-muted: #94a3b8;    /* Muted gray for readable body text */
    
    /* Medical Alert status colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow-highlight: 0 8px 32px 0 rgba(14, 165, 233, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. UTILITIES & TYPOGRAPHY
   ========================================================================== */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gap-1 { gap: 16px; }
.gap-15 { gap: 24px; }
.gap-2 { gap: 32px; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-05 { margin-bottom: 8px; }
.mb-1 { margin-bottom: 16px; }
.mb-15 { margin-bottom: 24px; }
.my-1 { margin: 16px 0; }
.mt-02 { margin-top: 4px; }
.mt-05 { margin-top: 8px; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }

.w-full { width: 100%; }
.inline-icon { display: inline-block; vertical-align: middle; width: 1.15em; height: 1.15em; }

.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.block { display: block; }
.hidden { display: none !important; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}
.badge-accent { background: rgba(6, 182, 212, 0.15); color: var(--color-accent); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-success-outline { background: transparent; color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-secondary { background: rgba(255, 255, 255, 0.05); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 6px; }

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
    background-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}
.btn-primary:disabled {
    background-color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    color: var(--color-text-white);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--color-text-white);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}
.btn-secondary-outline:hover {
    color: var(--color-text-white);
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.btn-text {
    background-color: transparent;
    color: var(--color-text-white);
}
.btn-text:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Glass Panels */
.bg-glass {
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}
.bg-glass:hover {
    border-color: var(--color-border-hover);
}
.bg-glass-tinted {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.95) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.bg-dark {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   3. LANDING PAGE STYLING
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Real logo image — header */
.logo-img-header {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
    transition: opacity 0.2s ease;
}
.logo-img-header:hover { opacity: 0.85; }

/* Real logo image — onboarding page (larger, centered) */
.logo-img-main {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    margin-bottom: 4px;
}

/* Onboarding logo wrapper — centered column */
.onboarding-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}
.logo-svg {
    width: 20px;
    height: 20px;
    color: #000;
    stroke-width: 2.5;
}
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-white);
}
.logo-text span {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.nav-menu a:hover {
    color: var(--color-primary);
}

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

/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.mobile-menu-toggle:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--color-primary);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}
.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--color-border);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
    padding: 100px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open {
    transform: translateX(0);
}

/* Close button inside mobile menu drawer */
.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--color-danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}
.mobile-nav-close svg {
    width: 18px;
    height: 18px;
}

/* Premium Overlays */
.mobile-nav-overlay, .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 5, 11, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.active, .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
}
.mobile-nav-link:hover {
    color: var(--color-primary);
}
.mobile-nav-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}
.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 16px 0 24px 0;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}
.trust-avatars {
    display: flex;
}
.trust-avatars .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-dark);
    margin-right: -10px;
    font-size: 1rem;
}

/* SVG Stat Visual mockup in Hero */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.stats-preview-box {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: var(--box-shadow-highlight);
}
.mockup-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mockup-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-header .dot.red { background-color: var(--color-danger); }
.mockup-header .dot.yellow { background-color: var(--color-warning); }
.mockup-header .dot.green { background-color: var(--color-success); }
.mockup-title {
    margin-left: 12px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.stat-progress-bar {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
}
.progress-track {
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Presentation Grid */
.presentation-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}
.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 8px 0 16px 0;
}
.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.section-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

.presentation-card {
    padding: 32px;
}
.presentation-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.presentation-card .card-icon svg { width: 24px; height: 24px; }
.presentation-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.presentation-card p { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Interactive Stats Section */
.stats-section {
    padding: 80px 0;
}

/* Photo Gallery Grid */
.photos-section {
    padding: 80px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px 16px;
}
.gallery-info h4 { font-size: 1rem; margin-bottom: 4px; }
.gallery-info p { font-size: 0.75rem; color: var(--color-text-muted); }

/* Service Cards */
.services-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.service-card .service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card .service-icon svg { width: 22px; height: 22px; }
.service-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 16px; }
.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--color-warning);
}
.service-rating svg { width: 14px; height: 14px; fill: currentColor; }
.service-rating span { color: var(--color-text-muted); margin-left: 4px; }
.service-actions {
    display: flex;
    gap: 8px;
}

/* Dynamic Service Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-container {
    width: 100%;
    max-width: 600px;
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}
.modal-close-btn:hover { color: var(--color-text-white); }
.modal-body {
    padding: 24px;
    max-height: 450px;
    overflow-y: auto;
}
.reviews-section {
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.review-item {
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.review-author { font-weight: 600; font-size: 0.875rem; }
.review-text { font-size: 0.85rem; font-style: italic; color: var(--color-text-muted); }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Contact Info Panel */
.contact-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}
.contact-box {
    padding: 48px;
}
.contact-details-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.detail-item {
    display: flex;
    gap: 16px;
}
.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-text h4 { font-size: 0.95rem; margin-bottom: 4px; }
.detail-text p { color: var(--color-text-muted); font-size: 0.875rem; }

.contact-form-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    padding: 32px;
    border-radius: var(--border-radius);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.input-with-addon {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.input-with-addon .addon {
    background: rgba(255,255,255,0.04);
    padding: 12px 16px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-right: 1px solid var(--color-border);
}
.input-with-addon input {
    border: none;
    border-radius: 0;
}
.validation-feedback.valid { color: var(--color-success); }
.validation-feedback.invalid { color: var(--color-danger); }
.input-tip { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; display: block; }

/* Footers */
.main-footer {
    background: #01040a;
    border-top: 1px solid var(--color-border);
    padding: 60px 0 20px 0;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-brand {
    max-width: 320px;
}
.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 64px;
}
.link-group h5 { font-size: 0.95rem; margin-bottom: 16px; color: var(--color-text-white); }
.link-group a { display: block; font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 12px; }
.link-group a:hover { color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   3.5 ONBOARDING / INSCRIPTION OBLIGATOIRE PAGE
   ========================================================================== */
.onboarding-backdrop {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 24px 24px 24px; /* extra space at top for ticker banner */
    background: radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
                var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}
.onboarding-backdrop::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Infinity Scrolling Ticker */
.onboarding-ticker-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(14, 165, 233, 0.25);
    padding: 12px 0;
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.onboarding-ticker {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    animation: scrollTicker 35s linear infinite;
    gap: 70px;
    padding-left: 30px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-item strong {
    color: #38bdf8; /* neon light blue for focus */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.ticker-item i {
    color: var(--color-primary);
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 3px rgba(14, 165, 233, 0.5));
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.onboarding-split-container {
    width: 100%;
    max-width: 1080px;
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02),
                0 32px 80px rgba(0, 0, 0, 0.65),
                0 0 100px rgba(14, 165, 233, 0.08);
    overflow: hidden;
    animation: onboardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onboardFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.onboarding-stats-panel {
    padding: 48px;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 70%),
                rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.onboarding-form-panel {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
}

.onboarding-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.logo-subtagline {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.stats-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-panel-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Stats Grid */
.onboarding-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-card.circular-stat {
    grid-column: span 2;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(14, 165, 233, 0.12);
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.stat-icon-box i {
    width: 20px;
    height: 20px;
}

.circle-progress-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-percentage {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.progress-ring {
    transform: rotate(-90deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.onboarding-header {
    margin-bottom: 24px;
}

.onboarding-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #ffffff;
}

.onboarding-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.required-star {
    color: var(--color-danger);
    font-size: 0.9rem;
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: var(--color-danger);
    margin-top: 4px;
    min-height: 16px;
}

.form-group input.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group input.is-valid {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.onboarding-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 8px 0 16px;
}

.onboarding-privacy p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.onboarding-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: rgba(14, 165, 233, 0.4);
    transition: var(--transition-smooth);
}

.btn-link:hover {
    color: #38bdf8;
}

/* Responsiveness for Onboarding Split Screen */
@media (max-width: 992px) {
    .onboarding-split-container {
        grid-template-columns: 1fr;
        max-width: 580px;
    }
    
    .onboarding-stats-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 32px 32px 24px;
    }
    
    .onboarding-form-panel {
        padding: 32px;
    }
    
    .stats-panel-title {
        font-size: 1.5rem;
    }
    
    .stats-panel-subtitle {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .onboarding-split-container {
        border-radius: 16px;
    }
    .onboarding-stats-panel, .onboarding-form-panel {
        padding: 24px 20px;
    }
    .onboarding-stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card.circular-stat {
        grid-column: span 1;
    }
    .onboarding-fields-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   4. AUTHENTICATION PAGES STYLING
   ========================================================================== */
#auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at bottom left, rgba(6,182,212,0.06) 0%, transparent 60%);
}
.auth-container {
    width: 100%;
    max-width: 480px;
}
.auth-box {
    padding: 40px;
    box-shadow: var(--box-shadow-highlight);
}
.auth-logo { margin-bottom: 24px; }
.auth-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    text-align: center;
}
.auth-form-wrapper h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}

/* ==========================================================================
   5. PATIENT PRIVATE DASHBOARD LAYOUT
   ========================================================================== */
#app-dashboard {
    min-height: 100vh;
    background-color: #02050b;
}
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Dashboard */
.app-sidebar {
    width: 280px;
    background: #030712;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    z-index: 90;
}
.sidebar-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

.sidebar-user-info {
    margin: 0 16px 20px 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.user-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}
.menu-item:hover, .menu-item.active {
    color: var(--color-text-white);
    background-color: rgba(255,255,255,0.03);
}
.menu-item.active {
    border-left: 3px solid var(--color-primary);
    background-color: rgba(14, 165, 233, 0.05);
}
.menu-item svg { width: 18px; height: 18px; }
.menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 12px 0;
}

.sidebar-footer {
    padding: 24px 16px;
}

/* Dashboard App Main Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.app-header {
    background: rgba(3, 7, 18, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 32px;
    z-index: 80;
}
.sidebar-open-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-white);
    cursor: pointer;
    font-size: 1.25rem;
}
.app-header-logo {
    display: none;
}
.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.app-content-container {
    flex-grow: 1;
    padding: 32px;
    overflow-y: auto;
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: tabFade 0.35s ease-out;
}
@keyframes tabFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metric Cards */
.metric-card {
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0 4px 0;
    line-height: 1.2;
}
.metric-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.card {
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.card-header h3 { font-size: 1.1rem; font-weight: 700; }
.card-body {
    padding: 24px;
}
.border-highlight {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--box-shadow-highlight);
}

/* ==========================================================================
   6. TWO-BUTTONS BOOKING & TIME SLOTS
   ========================================================================== */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.time-slot {
    padding: 10px;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.time-slot:hover {
    border-color: var(--color-primary);
    background: rgba(14, 165, 233, 0.05);
}
.time-slot.active {
    background-color: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}
.time-slot.booked {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(0,0,0,0.2);
    text-decoration: line-through;
}

.service-preview-card {
    padding: 24px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.preview-header .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}
.preview-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ==========================================================================
   7. AI DIAGNOSTIC UPLOADER & SCANNER
   ========================================================================== */
.upload-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255,255,255,0.01);
}
.upload-dropzone:hover {
    border-color: var(--color-primary);
}
.upload-icon {
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.upload-text { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.upload-subtext { font-size: 0.75rem; color: var(--color-text-muted); }

.upload-preview-wrapper {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
}
.upload-preview-wrapper img {
    max-height: 180px;
    border-radius: 4px;
    margin: 0 auto;
}

.scanner-loader {
    position: relative;
    padding: 16px;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
}
.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: laserScan 2s infinite ease-in-out;
}
@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.diagnostics-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.diagnostic-item-card {
    padding: 16px;
    border-radius: 8px;
}
.diag-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.diag-item-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-top: 12px;
}
.diag-item-attachment:hover {
    background: rgba(6, 182, 212, 0.05);
}

/* ==========================================================================
   8. HISTORY TABLES & TICKET PRINTER
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.history-table {
    border-collapse: collapse;
    font-size: 0.9rem;
}
.history-table th {
    background: rgba(255,255,255,0.03);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
}
.history-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.ticket-container {
    border: 2px dashed rgba(14, 165, 233, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* ==========================================================================
   9. INTELLIGENT HEALTH CHATBOT TAB
   ========================================================================== */
.chat-messages-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    overflow-y: auto;
}
.chat-bubble {
    padding: 16px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.6;
}
.bot-bubble {
    align-self: flex-start;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-top-left-radius: 0;
}
.user-bubble {
    align-self: flex-end;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-top-right-radius: 0;
}
.chat-sender {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   10. ADMIN TERMINAL & SMARTPHONE SIMULATOR
   ========================================================================== */
.admin-phone-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.phone-toggle-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #000;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.2);
}
.phone-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6);
}
.phone-toggle-btn svg { width: 20px; height: 20px; }
.phone-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background-color: var(--color-danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 2px solid #000;
}

/* Smartphone Mockup UI */
.smartphone {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 480px;
    border-radius: 36px;
    border: 6px solid #1e293b;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    overflow: hidden;
    background: #05080f;
    animation: phoneExpand 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes phoneExpand {
    from { opacity: 0; transform: scale(0.8) translateY(50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.smartphone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.phone-status-bar {
    padding: 6px 16px;
    background: #000;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
}
.phone-status-bar .icons {
    display: flex;
    gap: 4px;
}
.phone-status-bar svg { width: 10px; height: 10px; }

.phone-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
}
.phone-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.phone-info h4 { font-size: 0.8rem; font-weight: 700; }
.phone-info .number { font-size: 0.65rem; color: var(--color-text-muted); }
.phone-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

.phone-content {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #010409;
}
.sms-system-message {
    padding: 8px 12px;
    background-color: rgba(14, 165, 233, 0.05);
    border: 1px dashed rgba(14, 165, 233, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.sms-bubble {
    align-self: flex-start;
    background-color: #1e293b;
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    border-radius: 12px;
    border-top-left-radius: 0;
    max-width: 90%;
}
.sms-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 4px;
}
.sms-text {
    font-size: 0.75rem;
    line-height: 1.4;
}
.sms-time {
    display: block;
    text-align: right;
    font-size: 0.55rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.phone-footer {
    height: 12px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-indicator {
    width: 80px;
    height: 3px;
    border-radius: 2px;
    background-color: #334155;
}

/* Vibration Animation */
@keyframes phoneVibe {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-2px, -2px) rotate(-1deg); }
    20% { transform: translate(2px, 0px) rotate(1deg); }
    30% { transform: translate(-2px, 2px) rotate(0deg); }
    40% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-2px, -2px) rotate(-1deg); }
    60% { transform: translate(2px, 2px) rotate(0deg); }
    70% { transform: translate(-2px, 0px) rotate(-1deg); }
    80% { transform: translate(2px, -2px) rotate(1deg); }
    90% { transform: translate(-2px, 2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.shake-animation {
    animation: phoneVibe 0.5s ease-in-out;
}

/* ==========================================================================
   11. TOP SMS NOTIFICATION BANNER
   ========================================================================== */
.notification-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid var(--color-accent);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.3);
    border-radius: 40px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    animation: bannerSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bannerSlideIn {
    from { opacity: 0; transform: translate(-50%, -40px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.notif-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: dotPulse 1.2s infinite;
}
@keyframes dotPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}
.notif-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN — PROFESSIONAL MULTI-DEVICE SYSTEM
   All breakpoints:
     1400px+ : Ultra-wide / 4K      (scale up)
     1200px  : Large desktop        (default)
     1024px  : Tablet landscape     
      900px  : Tablet portrait
      768px  : Large phone / tablet 
      480px  : Standard phone       
      360px  : Small phone          
      320px  : Mini phone           
   ========================================================================== */

/* ── Base: ensure no horizontal overflow ever ── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0; /* prevent flex/grid overflow */
}

/* ── 1. Ultra-wide (1400px+) ── */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-content h1 { font-size: 4rem; }
}

/* ── 2. Tablet Landscape (max 1024px) ── */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    .hero-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { padding: 36px; }
}

/* ── 3. Tablet Portrait (max 900px) ── */
@media (max-width: 900px) {
    .nav-menu { gap: 20px; }
    .hero-content h1 { font-size: 2.6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .app-content-container { padding: 24px; }
}

/* ── 4. Mobile (max 768px) ── */
@media (max-width: 768px) {

    /* Global */
    html { font-size: 15px; }
    .container { padding: 0 18px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    /* Header */
    .main-header { padding: 10px 0; }
    .nav-menu, .nav-actions { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }
    .logo-img-header { height: 38px; }

    /* Mobile nav drawer */
    .mobile-nav { width: min(300px, 85vw); right: 0; transform: translateX(100%); }
    .mobile-nav.open { transform: translateX(0); }

    /* Hero */
    .hero-section { padding: 52px 0 44px; text-align: center; }
    .hero-container { grid-template-columns: 1fr !important; gap: 36px; }
    .hero-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
    }
    .hero-description { font-size: 0.97rem; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-actions .btn { width: 100%; max-width: 360px; justify-content: center; }
    .hero-trust { justify-content: center; flex-wrap: wrap; gap: 8px; }
    .hero-visual { width: 100%; }
    .stats-preview-box { max-width: 100%; }

    /* Sections padding */
    .presentation-section,
    .stats-section,
    .services-section,
    .contact-section,
    .photos-section { padding: 52px 0; }
    .section-header h2 { font-size: clamp(1.4rem, 5.5vw, 1.85rem); }
    .section-description { font-size: 0.9rem; }

    /* Cards */
    .presentation-card { padding: 22px 18px; }
    .service-card { padding: 18px; }
    .service-card-header { flex-wrap: wrap; gap: 8px; }

    /* SVG stat charts — scale down */
    .chart-container svg { max-width: 160px !important; }
    .card-header { flex-wrap: wrap; gap: 8px; }

    /* Contact */
    .contact-box { padding: 24px 16px; }
    .contact-form-panel { padding: 20px 16px; }

    /* Footer */
    .main-footer { padding: 40px 0 16px; }
    .footer-container { flex-direction: column; gap: 28px; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 24px; }
    .footer-brand { max-width: 100%; }

    /* Dashboard */
    .app-sidebar {
        position: fixed;
        top: 0; bottom: 0;
        left: -100%;
        width: min(280px, 80vw);
        z-index: 1000;
        box-shadow: 10px 0 40px rgba(0,0,0,0.6);
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .app-sidebar.open { left: 0; }
    .sidebar-close-btn { display: block; }
    .sidebar-open-btn { display: block; }
    .app-header-logo { display: block; }
    .app-header { padding: 14px 18px; }
    .app-content-container { padding: 16px; }
    .metric-value { font-size: 1.3rem; }
    .page-title { font-size: 1.15rem; }

    /* Booking */
    .time-slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .time-slot { padding: 8px 4px; font-size: 0.8rem; }

    /* Confirm card */
    .booking-confirm-card {
        left: 12px; right: 12px;
        bottom: 76px;
        width: auto;
    }

    /* Admin phone */
    .admin-phone-wrapper { bottom: 14px; right: 14px; }
    .phone-toggle-btn { padding: 10px 14px; font-size: 0.82rem; gap: 7px; }
    .phone-toggle-btn svg { width: 17px; height: 17px; }

    /* Notification banner */
    .notification-banner {
        left: 10px; right: 10px;
        width: auto;
        transform: none;
        top: 12px;
        border-radius: 14px;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.82rem;
    }
    @keyframes bannerSlideIn {
        from { opacity: 0; transform: translateY(-40px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Auth page */
    .auth-box { padding: 28px 20px; }
    #auth-page { padding: 16px; }

    /* Onboarding */
    .onboarding-container { padding: 32px 22px; border-radius: 16px; }
    .onboarding-fields-row { grid-template-columns: 1fr; gap: 0; }
    .onboarding-title { font-size: 1.4rem; }
    .logo-img-main { height: 64px; }
}

/* ── 5. Small Phone (max 480px) ── */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 14px; }

    /* Hero */
    .hero-section { padding: 40px 0 36px; }
    .hero-content h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
    .hero-description { font-size: 0.9rem; }
    .hero-actions .btn { max-width: 100%; padding: 14px 20px; font-size: 0.9rem; }
    .badge { font-size: 0.7rem; padding: 5px 10px; }

    /* Cards & grids */
    .gallery-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .presentation-card { padding: 18px 14px; }
    .service-card { padding: 14px; }
    .service-actions { flex-direction: column; gap: 6px; }
    .service-actions .btn { width: 100%; }

    /* Booking */
    .time-slots-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .time-slot { padding: 8px 2px; font-size: 0.75rem; }

    /* Auth */
    .auth-box { padding: 22px 14px; }
    .auth-form-wrapper h2 { font-size: 1.25rem; }

    /* Chat */
    .chat-bubble { max-width: 95%; padding: 12px; font-size: 0.88rem; }
    .chat-messages-box { padding: 14px; gap: 12px; }

    /* Dashboard cards */
    .card-header { padding: 14px 16px; }
    .card-body { padding: 16px; }
    .card-header h3 { font-size: 0.92rem; }
    .metric-card { padding: 16px; }
    .metric-value { font-size: 1.2rem; }

    /* Phone simulator */
    .smartphone {
        width: calc(100vw - 28px);
        max-width: 300px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Modal */
    .modal-overlay { padding: 8px; }
    .modal-container { border-radius: 12px; max-width: 100%; }
    .modal-header { padding: 16px 18px; }
    .modal-body { padding: 18px; max-height: 60vh; }
    .modal-footer { padding: 12px 18px; flex-direction: column; gap: 8px; }
    .modal-footer .btn { width: 100%; }

    /* Onboarding */
    .onboarding-container { padding: 28px 16px; border-radius: 14px; }
    .onboarding-title { font-size: 1.25rem; }
    .logo-img-main { height: 56px; }
    .onboarding-privacy { padding: 10px 12px; }

    /* Confirm card */
    .booking-confirm-card { bottom: 70px; padding: 16px; }

    /* Sections overflow guard */
    section { overflow-x: hidden; }
}

/* ── 6. Mini Phone (max 360px) ── */
@media (max-width: 360px) {
    html { font-size: 13px; }
    .container { padding: 0 12px; }

    .hero-content h1 { font-size: 1.65rem; }
    .hero-actions .btn { padding: 12px 16px; font-size: 0.85rem; }

    .mobile-nav { width: 100vw; transform: translateX(100%); padding: 80px 24px 24px; right: 0; }
    .mobile-nav.open { transform: translateX(0); }

    .time-slots-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-box { padding: 18px 12px; }

    .onboarding-container { padding: 22px 12px; }
    .onboarding-title { font-size: 1.1rem; }
    .logo-img-main { height: 48px; }
    .logo-img-header { height: 32px; }

    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .btn-lg { padding: 13px 20px; font-size: 0.9rem; }

    .admin-phone-wrapper { bottom: 10px; right: 10px; }
    .phone-toggle-btn { padding: 8px 12px; font-size: 0.78rem; }

    /* Ensure nothing overflows on tiny screens */
    * { word-break: break-word; }
    img { max-width: 100%; }
}

/* ── Safe area insets (iPhone notch / Android punch-hole) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .main-header {
        padding-top: calc(10px + env(safe-area-inset-top));
    }
    .admin-phone-wrapper {
        bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .booking-confirm-card {
        bottom: calc(70px + env(safe-area-inset-bottom));
    }
    .mobile-nav {
        padding-top: calc(100px + env(safe-area-inset-top));
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   13. PAGE ISOLATION & VIEW STATES
   ========================================================================== */
.view-hidden {
    display: none !important;
}

.view-active {
    display: block !important;
}

/* ==========================================================================
   14. FLOATING BOOKING CONFIRMATION PANEL
   ========================================================================== */
.booking-confirm-card {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    z-index: 9999;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.4);
    animation: floatingSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--color-accent) !important;
    background: rgba(11, 19, 38, 0.95) !important;
    backdrop-filter: blur(20px);
}

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

.confirm-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

/* Success Button Style */
.btn-success {
    background-color: var(--color-success) !important;
    color: #fff !important;
    border-color: var(--color-success) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background-color: #34d399 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.btn-danger {
    background-color: var(--color-danger) !important;
    color: #fff !important;
    border-color: var(--color-danger) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #f87171 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}


/* ==========================================================================
   ADMIN PANEL — ADD PATIENT STYLES
   ========================================================================== */

/* Steps guide list */
.admin-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
    margin-top: 2px;
}

.admin-steps-list li div strong {
    display: block;
    color: var(--color-text-light);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.admin-steps-list li div p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Credential row (admin username/password display) */
.admin-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 14px;
}

.cred-badge {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: all;
}

/* Required field star */
.required-star {
    color: var(--color-danger);
    font-weight: 800;
    margin-left: 2px;
}

/* Admin steps responsive */
@media (max-width: 768px) {
    #tab-admin-add-patient .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ── ANIMATED STATISTICS CHART ── */
.animated-chart-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    padding: 10px 5px 0 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    gap: 8px;
}

.c-bar {
    width: 15%;
    background: linear-gradient(to top, var(--color-accent), #4facfe);
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: growBar 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px 0 5px;
    font-size: 0.7rem;
    color: var(--color-muted);
}

@keyframes growBar {
    to { height: var(--bar-h); }
}

.animated-progress {
    max-width: 0;
    animation: fillProgress 1.5s ease-out forwards;
}

.animated-progress.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fillProgress {
    to { max-width: 100%; }
}

.chart-line-anim {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2s ease-out forwards;
}

.chart-point-anim {
    opacity: 0;
    animation: fadeInPoint 0.5s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInPoint {
    to { opacity: 1; }
}

/* ==========================================================================
   ADMIN — PROFILS UTILISATEURS TABLE
   ========================================================================== */

/* ── Toolbar ── */
.profiles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profiles-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.profiles-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.profiles-search-wrap input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.profiles-search-wrap input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.profiles-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.profiles-filters .form-select-custom {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.profiles-filters .form-select-custom:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ── Stats Pills Bar ── */
.profiles-stats-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.profile-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.profile-stat-pill svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.profile-stat-pill strong {
    color: var(--color-text-white);
    font-weight: 700;
}

.profile-stat-pill:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
}

/* ── Profiles Table ── */
.profiles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.profiles-table thead tr {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
}

.profiles-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.profiles-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.profiles-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.04);
}

.profiles-table tbody tr:last-child {
    border-bottom: none;
}

.profiles-table td {
    padding: 14px 18px;
    vertical-align: middle;
    color: var(--color-text-light);
}

/* ── Profile Cell (Avatar + Name) ── */
.profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.profile-name {
    font-weight: 600;
    color: var(--color-text-white);
    font-size: 0.9rem;
    line-height: 1.3;
}

.profile-id {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ── Phone Cell ── */
.profile-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-phone-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.profile-phone-link:hover {
    color: var(--color-accent);
}

/* ── Region Badge ── */
.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-accent);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Status Badge ── */
.status-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-success);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
    animation: dotPulse 1.5s infinite;
}

/* ── Row Number Cell ── */
.row-num {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

/* ── Date Cell ── */
.profile-date {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── Action Buttons ── */
.profile-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.profile-action-btn svg {
    width: 14px;
    height: 14px;
}

.profile-action-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--color-primary);
}

.profile-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--color-danger);
}

/* ── Empty State ── */
.profiles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 24px;
    color: var(--color-text-muted);
    text-align: center;
}

.profiles-empty svg {
    color: rgba(255, 255, 255, 0.1);
}

.profiles-empty p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .profiles-toolbar { flex-direction: column; align-items: stretch; }
    .profiles-search-wrap { min-width: unset; }
    .profiles-filters { justify-content: flex-end; }
    .profiles-stats-bar { gap: 8px; }
    .profile-stat-pill { font-size: 0.78rem; padding: 6px 12px; }

    .profiles-table thead th:nth-child(4),
    .profiles-table tbody td:nth-child(4) { display: none; } /* hide Address on mobile */
}

/* ==========================================================================
   SPLASH SCREEN STYLE
   ========================================================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    width: 90%;
    padding: 24px;
}

.splash-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 35px;
    animation: pulse-logo 2.2s infinite ease-in-out;
}

.splash-loader-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.splash-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 10px;
    transition: width 0.15s ease-out;
}

.splash-status {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    min-height: 20px;
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.2));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 22px rgba(16, 185, 129, 0.4));
    }
}
