:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Theme Rehab Monterrey: Premium Dark Medical */
    --bg-dark: #040814;
    --bg-card: rgba(13, 20, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(5, 236, 226, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents & Gradients */
    --accent-cyan: #05ECE2;
    --accent-mint: #09F784;
    --accent-blue: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #05ECE2 0%, #00F2FE 50%, #4FACFE 100%);
    --gradient-accent: linear-gradient(135deg, #05ECE2 0%, #09F784 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --glow-shadow: 0 0 20px rgba(5, 236, 226, 0.35);

    /* Redesign Upgrade variables */
    --glass-border: rgba(255, 255, 255, 0.05);
    --hairline-width: 0.5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}



/* Background image with Ken Burns + Overlay */
.site-bg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 550px;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.bg-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) brightness(0.42) saturate(0.85);
    transform-origin: center;
    animation: kenBurnsBg 30s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes kenBurnsBg {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.12) rotate(1deg); }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, 
        rgba(4, 8, 20, 0.25) 0%, 
        rgba(4, 8, 20, 0.55) 40%, 
        rgba(4, 8, 20, 0.9) 85%, 
        var(--bg-dark) 100%);
}

/* Scroll Container */
.vcard-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 25vh;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    padding-bottom: 7rem;
    position: relative;
    z-index: 1;
}

/* Common UI Glass Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: var(--hairline-width) solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 1.5rem;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:active {
    transform: scale(0.98);
    border-color: rgba(5, 236, 226, 0.3);
}

@media (hover: hover) {
    .glass-panel:hover {
        border-color: rgba(5, 236, 226, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(5, 236, 226, 0.05);
    }
}

/* 1. Header & Profile */
.vcard-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.profile-pic-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.profile-pic-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    z-index: -1;
    animation: gradientBorder 5s linear infinite, glowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(5, 236, 226, 0.4), 0 0 20px rgba(5, 236, 226, 0.2); }
    100% { box-shadow: 0 0 15px rgba(5, 236, 226, 0.8), 0 0 30px rgba(5, 236, 226, 0.5), 0 0 45px rgba(59, 130, 246, 0.3); }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-dark);
}

.clinic-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
    margin-top: 0.5rem;
}

.clinic-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 1rem;
}

.quick-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill-btn i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.pill-btn:active {
    transform: scale(0.95);
    background: rgba(5, 236, 226, 0.15);
    border-color: var(--accent-cyan);
}

/* 2. Social Links */
.social-links-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.35rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn:active {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    transform: scale(0.9) translateY(-3px);
    box-shadow: var(--glow-shadow);
}

/* 3. Section Headers */
.section-header {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header i {
    font-size: 1.3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* 4. CLINICAL TOOL: Quiz de Dolor */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.quiz-instruction {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pain-zones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.zone-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.zone-card i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.zone-icon {
    width: 1.8rem;
    height: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.zone-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.zone-card.selected {
    background: rgba(5, 236, 226, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(5, 236, 226, 0.1);
}

.zone-card.selected i,
.zone-card.selected .zone-icon {
    color: var(--accent-cyan);
}

.zone-card.selected span {
    color: #ffffff;
}

.intensity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.intensity-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.intensity-label-row span:last-child {
    color: var(--accent-cyan);
    font-weight: 700;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(5, 236, 226, 0.5);
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.quiz-result-box {
    background: rgba(4, 8, 20, 0.5);
    border: 1px dashed rgba(5, 236, 226, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.result-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
}

.result-action-btn {
    margin-top: 0.5rem;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-dark);
    padding: 0.9rem;
    border-radius: 80px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 236, 226, 0.2);
}

.result-action-btn:active {
    transform: scale(0.97);
    box-shadow: var(--glow-shadow);
}

/* 5. CLINICAL TOOL: Cotizador de Paquetes */
.packages-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
    scrollbar-width: none;
}

.packages-scroller::-webkit-scrollbar {
    display: none;
}

.package-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.package-card.recommended {
    border-color: rgba(5, 236, 226, 0.4);
    box-shadow: 0 10px 30px rgba(5, 236, 226, 0.05);
}

.package-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.package-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.package-price-box {
    margin: 0.8rem 0;
}

.original-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-cyan);
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.package-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.package-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.package-features li i {
    color: var(--accent-mint);
    font-size: 0.95rem;
}

.book-package-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 80px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.package-card.recommended .book-package-btn {
    background: rgba(5, 236, 226, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.book-package-btn:active {
    background: var(--gradient-accent);
    color: var(--bg-dark);
    border-color: transparent;
}

/* 6. CLINICAL TOOL: Guía de Estiramientos */
.stretch-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 0;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-btn.active {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

.stretch-content-box {
    position: relative;
    min-height: 180px;
}

.stretch-pane {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeIn 0.4s ease forwards;
}

.stretch-pane.active {
    display: flex;
}

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

.stretch-illustration {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, rgba(5, 236, 226, 0.05) 0%, rgba(9, 247, 132, 0.05) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(5, 236, 226, 0.1);
}

.stretch-illustration i {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stretch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.stretch-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.stretch-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stretch-steps li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: flex;
    gap: 0.4rem;
}

.stretch-steps li::before {
    content: "•";
    color: var(--accent-cyan);
    font-weight: 700;
}

/* 7. Gallery Section */
.gallery-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 160px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* 8. Links and Navigation Menu */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card-content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.link-card-content i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.link-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.link-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.link-card > i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:active {
    border-color: var(--accent-cyan);
    background: rgba(5, 236, 226, 0.04);
}

.link-card:active > i {
    transform: translateX(4px);
    color: var(--accent-cyan);
}

/* 9. Fixed Bottom Action Button */
.fab-container {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    padding: 0 1.5rem;
    z-index: 100;
}

.bottom-spacer {
    height: 100px;
}

.primary-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 40px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(5, 236, 226, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.primary-btn:active {
    transform: scale(0.96);
    box-shadow: var(--glow-shadow);
}

/* 10. Modals & Lightbox */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(3, 4, 9, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

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

.modal-content {
    background: #090e1c;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem 1.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modal-close:active {
    background: rgba(5, 236, 226, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h2 i {
    color: var(--accent-cyan);
}

.modal-content p.desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

select.form-input {
    color-scheme: dark;
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(5, 236, 226, 0.2);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.success-box {
    text-align: center;
    padding: 1.5rem 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-box.active {
    display: flex;
}

.success-box i {
    font-size: 3.5rem;
    color: var(--accent-mint);
}

.success-box h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.success-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 9, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.9);
}

/* 11. FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-btn i {
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.faq-btn.active i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    padding-bottom: 1rem;
}

/* 12. Dual Logo Loader (Splash Screen) */
#global-treze-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030304;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.8s;
}

.splash-dual-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 90%;
    margin-bottom: 2rem;
}

.splash-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
}

.splash-logo-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1px solid rgba(5, 236, 226, 0.15);
    box-shadow: 0 0 20px rgba(5, 236, 226, 0.05);
    margin-bottom: 0.6rem;
    object-fit: cover;
    background: #040814;
}

.splash-brand-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.15rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.splash-brand-subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.splash-dividing-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, rgba(5, 236, 226, 0), rgba(5, 236, 226, 0.5), rgba(5, 236, 226, 0));
    opacity: 0;
    transform: scaleX(0);
}

.splash-laser-scanner {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(5, 236, 226, 0), rgba(5, 236, 226, 0.7), rgba(5, 236, 226, 0));
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.ecg-container {
    width: 160px;
    height: 60px;
    position: relative;
    margin-bottom: 0.5rem;
    opacity: 0;
}

.ecg-svg {
    width: 100%;
    height: 100%;
}

.ecg-path {
    stroke: url(#ecg-gradient);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawHeartbeat 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes drawHeartbeat {
    0% { stroke-dashoffset: 1000; }
    40% { stroke-dashoffset: 0; }
    80% { stroke-dashoffset: -1000; }
    100% { stroke-dashoffset: -1000; }
}

.loader-text {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0;
    text-shadow: 0 0 10px rgba(5, 236, 226, 0.25);
}

.powered-by {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.watermark-label {
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.watermark-img {
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* 13. Treze Watermark Footer */
.treze-footer-watermark {
    text-align: center;
    color: var(--text-muted);
    padding: 3.5rem 1.5rem 7.5rem 1.5rem;
    margin-top: 2rem;
}

.treze-footer-watermark p {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
}

.treze-footer-watermark .brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.treze-footer-watermark a {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.treze-footer-watermark a img {
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.treze-footer-watermark a:hover {
    transform: scale(1.04);
}

.treze-footer-watermark a:hover img {
    opacity: 0.95;
}

/* Reveal Scroll Class */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations for entries */
.animate-in {
    opacity: 0;
}

/* --- 14. Cinematic Light Reveal Splash --- */
#premium-cinematic-splash {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.splash-logo-container {
    position: relative;
    width: 340px;
    height: auto;
}

.splash-cinematic-logo {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Layer 1: Very dim base */
.splash-cinematic-logo.base-logo {
    opacity: 0.04;
    position: relative;
}

/* Layer 2: The light sweep mask */
.splash-cinematic-logo.light-mask-logo {
    opacity: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 50%, transparent 100%);
    -webkit-mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(90deg, transparent 0%, black 50%, transparent 100%);
    mask-size: 300% 100%;
    mask-repeat: no-repeat;
    filter: brightness(1.5) drop-shadow(0 0 5px rgba(5, 236, 226, 0.4));
}

/* Layer 3: The final intense glow */
.splash-cinematic-logo.glow-logo {
    opacity: 0;
    filter: brightness(1.8) drop-shadow(0 0 20px rgba(5, 236, 226, 0.8)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.5));
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* LEGAL MODALS */
.legal-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.legal-modal-overlay.active { opacity: 1; pointer-events: auto; }

.legal-modal-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 90%; max-width: 600px; max-height: 85vh;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column;
}
.legal-modal-overlay.active .legal-modal-container {
    transform: translateY(0) scale(1);
}

.legal-modal-close {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; width: 36px; height: 36px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; z-index: 10;
}
.legal-modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

.legal-modal-content {
    padding: 30px; overflow-y: auto; color: rgba(255,255,255,0.85);
}
.legal-modal-content h2 {
    color: #fff; font-size: 1.4rem; font-weight: 600; margin-bottom: 20px;
    padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-text-body p, .legal-text-body ul {
    font-size: 0.85rem; line-height: 1.6; margin-bottom: 15px; font-weight: 300;
}
.legal-text-body ul { padding-left: 20px; }
.legal-text-body li { margin-bottom: 8px; }
.legal-text-body strong { color: #fff; font-weight: 500; }
