/**
 * GymSmart ERP — Dedicated Homepage Component Styles
 * High-performance, browser-cacheable stylesheet for Hero Dock, AEO Capsule, Contact Chips & Dual-Mode Demo Modal.
 *
 * Cache Policy: 1 Month via .htaccess (ExpiresByType text/css "access plus 1 month")
 * Compatibility: Modern CSS3 with graceful fallbacks (Chrome, Edge, Firefox, Safari, iOS & Android).
 */

/* ══════════════════════════════════════════════════════════════════
   1. LUXURY HERO FEATURE DOCK (Linear / Vercel SaaS Aesthetic)
══════════════════════════════════════════════════════════════════ */
.hero-feature-dock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem auto 2.2rem auto;
    padding: 0.65rem 1.5rem;
    background: rgba(18, 14, 38, 0.75);
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 1020px;
    transition: all 0.3s ease;
}

body:not(.dark) .hero-feature-dock {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 10px 30px rgba(114, 78, 191, 0.08);
}

.hfd-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.hfd-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.hfd-icon-red {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.hfd-icon-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.hfd-icon-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.hfd-icon-purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}

.hfd-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hfd-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

body:not(.dark) .hfd-text strong {
    color: #0f172a;
}

.hfd-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

body:not(.dark) .hfd-text span {
    color: #64748b;
}

.hfd-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

body:not(.dark) .hfd-divider {
    background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
    .hero-feature-dock {
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem 1.2rem;
        max-width: 440px;
    }
    .hfd-divider {
        width: 100%;
        height: 1px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   2. 2026 AEO (ANSWER ENGINE OPTIMIZATION) & AI OVERVIEW CAPSULE
══════════════════════════════════════════════════════════════════ */
.aeo-answer-section {
    position: relative;
    padding: 20px 20px 40px 20px;
    z-index: 3;
}
.aeo-answer-container {
    max-width: 1240px;
    margin: 0 auto;
}
.aeo-answer-card {
    background: linear-gradient(145deg, rgba(26, 20, 50, 0.92) 0%, rgba(14, 11, 28, 0.98) 100%);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-left: 5px solid #a855f7;
    border-radius: 24px;
    padding: clamp(24px, 3.5vw, 36px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
body:not(.dark) .aeo-answer-card {
    background: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-left: 5px solid #7e22ce;
    box-shadow: 0 14px 40px rgba(126, 34, 206, 0.08);
}
.aeo-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
body:not(.dark) .aeo-answer-badge {
    color: #7e22ce;
    background: #f3e8ff;
    border-color: #d8b4fe;
}
.aeo-answer-title {
    font-family: 'Inter Tight', -apple-system, sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 850;
    color: #ffffff;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
}
body:not(.dark) .aeo-answer-title {
    color: #0f172a;
}
.aeo-answer-text {
    font-size: clamp(14.5px, 1.15vw, 16px);
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px 0;
}
body:not(.dark) .aeo-answer-text {
    color: #334155;
}
.aeo-answer-text strong {
    color: #ffffff;
    font-weight: 750;
}
body:not(.dark) .aeo-answer-text strong {
    color: #0f172a;
}
.aeo-answer-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body:not(.dark) .aeo-answer-specs-grid {
    border-top-color: rgba(0, 0, 0, 0.08);
}
.aeo-spec-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.aeo-spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.aeo-spec-label {
    font-size: 11.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}
.aeo-spec-value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    color: rgba(255, 255, 255, 0.75);
}
body:not(.dark) .aeo-spec-value {
    color: #475569;
}

/* ══════════════════════════════════════════════════════════════════
   3. SCOPED LEAD CONVERSION & DIRECT CONTACT CHIPS
══════════════════════════════════════════════════════════════════ */
.final-cta-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cta-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}
body:not(.dark) .cta-contact-chip {
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    color: #1e293b !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
}
.cta-contact-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(192, 132, 252, 0.4);
    color: #ffffff !important;
}
body:not(.dark) .cta-contact-chip:hover {
    background: #f8f6fe !important;
    border-color: #a855f7 !important;
    color: #7e22ce !important;
}
.cta-contact-chip.whatsapp-chip {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #4ade80 !important;
}
body:not(.dark) .cta-contact-chip.whatsapp-chip {
    background: #f0fdf4 !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #15803d !important;
}
.cta-contact-chip.whatsapp-chip:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: #22c55e;
    color: #86efac !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}
.cta-contact-chip.tour-chip {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5 !important;
}
body:not(.dark) .cta-contact-chip.tour-chip {
    background: #fef2f2 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #b91c1c !important;
}
.cta-contact-chip.tour-chip:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}
body:not(.dark) .cta-contact-chip.tour-chip:hover {
    background: #fee2e2 !important;
    border-color: #dc2626 !important;
    color: #991b1b !important;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* ══════════════════════════════════════════════════════════════════
   4. DUAL MODE (DARK & LIGHT) ULTRA-LUXURY DEMO MODAL ENGINE
══════════════════════════════════════════════════════════════════ */
.gs-demo-modal .modal-content {
    background: linear-gradient(145deg, rgba(20, 22, 34, 0.98), rgba(12, 14, 24, 0.99)) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(168, 85, 247, 0.18) !important;
    color: #f8fafc;
    overflow: hidden;
    position: relative;
}
.gs-demo-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #6366f1, #38bdf8, #22c55e);
}
.gs-demo-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative;
}
.gs-demo-modal .modal-title {
    color: #ffffff !important;
    font-weight: 850;
    letter-spacing: -0.4px;
    font-family: 'Inter Tight', sans-serif;
}
.gs-demo-subtitle {
    color: #cbd5e1 !important;
    font-size: 0.84rem;
    line-height: 1.45;
}
.gs-demo-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    z-index: 10;
    font-size: 15px;
}
.gs-demo-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
    transform: rotate(90deg);
}
.gs-demo-close-btn i {
    pointer-events: none;
}
.gs-demo-modal-header-content {
    width: 100%;
    padding-right: 44px;
}
.gs-demo-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin-bottom: 0.35rem;
    display: block;
    letter-spacing: 0.2px;
}
.gs-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    height: 46px;
}
.gs-input-group:focus-within {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3.5px rgba(168, 85, 247, 0.25), 0 4px 12px rgba(168, 85, 247, 0.15);
}
.gs-input-icon {
    padding: 0 0.85rem;
    color: #94a3b8;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gs-input-prefix {
    padding: 0 0.75rem;
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    height: 100%;
}
.gs-demo-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #f8fafc !important;
    padding: 0.65rem 0.85rem 0.65rem 0.35rem !important;
    font-size: 0.88rem;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
}
.gs-demo-input::placeholder {
    color: #64748b !important;
    font-size: 0.84rem;
}
.gs-field-error {
    font-size: 0.74rem;
    display: block;
    margin-top: 0.25rem;
    min-height: 1rem;
    color: #f87171 !important;
    font-weight: 600;
}
.gs-demo-trust-row {
    font-size: 0.78rem;
    color: #94a3b8;
}
.gs-demo-slot-helper {
    font-size: 0.74rem;
    color: #94a3b8;
}
.gs-demo-alt-p {
    font-size: 0.8rem;
    color: #94a3b8;
}
.gs-demo-submit-btn {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    font-weight: 750 !important;
    font-size: 0.96rem !important;
    padding: 0.88rem 1.5rem !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.gs-demo-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 85, 247, 0.65) !important;
    color: #ffffff !important;
}
.gs-demo-submit-btn:hover:not(:disabled) .gs-btn-icon {
    transform: translateX(4px);
}
.gs-btn-icon {
    transition: transform 0.25s ease;
}
.gs-demo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.gs-alt-contact-btn {
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.gs-alt-wa {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}
.gs-alt-wa:hover {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}
.gs-alt-call {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}
.gs-alt-call:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════
   5. LIGHT MODE OVERRIDES FOR DEMO MODAL
══════════════════════════════════════════════════════════════════ */
body:not(.dark) .gs-demo-modal .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18), 0 0 40px rgba(168, 85, 247, 0.12) !important;
    color: #0f172a;
}
body:not(.dark) .gs-demo-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body:not(.dark) .gs-demo-modal .modal-title {
    color: #0f172a !important;
}
body:not(.dark) .gs-demo-subtitle {
    color: #475569 !important;
}
body:not(.dark) .gs-demo-close-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}
body:not(.dark) .gs-demo-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}
body:not(.dark) .gs-demo-label {
    color: #1e293b !important;
}
body:not(.dark) .gs-input-group {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}
body:not(.dark) .gs-input-group:focus-within {
    background: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 0 0 3.5px rgba(147, 51, 234, 0.2);
}
body:not(.dark) .gs-input-icon {
    color: #64748b;
}
body:not(.dark) .gs-input-prefix {
    color: #0284c7;
    border-right: 1px solid #cbd5e1;
}
body:not(.dark) .gs-demo-input {
    color: #0f172a !important;
}
body:not(.dark) .gs-demo-input::placeholder {
    color: #94a3b8 !important;
}
body:not(.dark) .gs-demo-trust-row {
    color: #64748b;
}
body:not(.dark) .gs-demo-slot-helper {
    color: #64748b;
}
body:not(.dark) .gs-demo-alt-p {
    color: #64748b;
}
body:not(.dark) .gs-alt-call {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}
body:not(.dark) .gs-alt-call:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.demo-success-circle {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: scaleInCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleInCheck {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
