/* CLS fix: reserve space for ads above footer so footer doesn't shift */
.ad-container.ad-footer,
.ad-container.ad-content { min-height: 100px; contain: layout; }
@media (min-width: 768px) {
    .ad-container.ad-footer { min-height: 250px; }
}
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px;
    margin-top: 40px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-about h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-about p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}
[data-theme="light"] .footer-about p { color: #3f5058; }
.footer-links h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
[data-theme="light"] .footer-links a { color: #2f4650; font-weight: 500; }
.footer-links a:hover {
    color: var(--primary);
}
.footer-links a i {
    width: 16px;
    color: var(--primary-light);
}
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
[data-theme="light"] .footer-bottom p { color: #52616a; }
.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}
[data-theme="light"] .footer-bottom a { color: #2f5561; font-weight: 600; }
.footer-bottom a:hover {
    text-decoration: underline;
}
.footer-disclaimer {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    opacity: 0.92;
}
[data-theme="light"] .footer-disclaimer { color: #52616a !important; }
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Footer ad slot: reserve space to prevent CLS when ad loads */
.ad-slot[data-slot="footer"] {
    min-height: 90px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile Bottom Navigator */
.mobile-bottom-nav { display: none; }
@media (max-width: 991px) {
    .site-footer,
    .ad-slot[data-slot="footer"] {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        gap: 2px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1205;
        padding: 3px 8px 4px;
        background: rgba(20, 29, 36, 0.98);
        border-top: 1px solid rgba(255,255,255,0.14);
        box-shadow: 0 -8px 22px rgba(0,0,0,0.35);
        overflow: visible;
    }

    [data-theme="light"] .mobile-bottom-nav {
        background: rgba(238, 244, 247, 0.98);
        border-top-color: rgba(0,0,0,0.10);
        box-shadow: 0 -6px 18px rgba(0,0,0,0.12);
    }

    .mb-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #c8d6df;
        text-decoration: none;
        font-size: 9px;
        font-weight: 600;
        min-height: 34px;
    }

    [data-theme="light"] .mb-nav-item {
        color: #4b5b66;
    }

    .mb-nav-item i {
        font-size: 17px;
        line-height: 1;
    }
    .mobile-bottom-nav .mb-nav-item i.fa-futbol {
        color: #526f77;
    }
    .mobile-bottom-nav .mb-nav-item i.fa-basketball-ball {
        color: #e55a00;
    }

    .mb-nav-item.mb-nav-magic {
        position: relative;
        overflow: visible;
    }

    .mb-magic-logo {
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        object-fit: contain;
        display: block;
        pointer-events: none;
    }

    .mb-nav-magic span:last-child {
        display: none;
    }

    .main-content {
        padding-bottom: 64px !important;
    }
}

/* Contact Modal */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: #18222d;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    padding: 14px;
}
.contact-modal-overlay[data-theme="light"],
[data-theme="light"] .contact-modal-overlay {
    background: #e8eff4;
}
.contact-modal-overlay.show { display: flex; }
.contact-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 30px);
    overflow: auto;
    background: linear-gradient(180deg, #1f2c36 0%, #18232c 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    padding: 14px 14px 12px;
    position: relative;
}
[data-theme="light"] .contact-modal {
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fa 100%);
    border-color: rgba(17, 24, 39, 0.10);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.16);
}
.contact-modal h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #eef6f8;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="light"] .contact-modal h3 {
    color: #1d3138;
}
.contact-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: rgba(235, 245, 247, 0.78);
    font-size: 26px;
    cursor: pointer;
}
[data-theme="light"] .contact-modal-close {
    color: rgba(29, 49, 56, 0.62);
}
.contact-form-modal .cf-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.contact-form-modal label {
    font-size: 12px;
    color: #d8e8ed;
    font-weight: 700;
}
[data-theme="light"] .contact-form-modal label {
    color: #3f5560;
}
.contact-form-modal input,
.contact-form-modal select,
.contact-form-modal textarea {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f4fbfd;
    border-radius: 8px;
    padding: 10px 11px;
    font-size: 13px;
    font-family: inherit;
}
[data-theme="light"] .contact-form-modal input,
[data-theme="light"] .contact-form-modal select,
[data-theme="light"] .contact-form-modal textarea {
    border-color: rgba(17, 24, 39, 0.12);
    background: #ffffff;
    color: #1d3138;
}
.contact-form-modal input::placeholder,
.contact-form-modal textarea::placeholder {
    color: rgba(233, 244, 247, 0.58);
}
[data-theme="light"] .contact-form-modal input::placeholder,
[data-theme="light"] .contact-form-modal textarea::placeholder {
    color: rgba(29, 49, 56, 0.44);
}
.contact-form-modal input:focus,
.contact-form-modal select:focus,
.contact-form-modal textarea:focus {
    outline: none;
    border-color: rgba(106, 136, 145, 0.95);
    box-shadow: 0 0 0 3px rgba(83, 111, 118, 0.18);
}
.contact-form-modal textarea { resize: vertical; min-height: 100px; }
.cf-captcha { display: grid; grid-template-columns: 1fr; }
.cf-submit-btn {
    width: 100%;
    border: none;
    border-radius: 9px;
    background: var(--gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 12px;
    cursor: pointer;
}
.cf-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.cf-feedback {
    margin-top: 8px;
    font-size: 12px;
    min-height: 18px;
    color: #d8e8ed;
}
[data-theme="light"] .cf-feedback {
    color: #3f5560;
}
.cf-feedback.ok { color: #2ecc71; }
.cf-feedback.err { color: #ff6b6b; }
.contact-success-toast {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1310;
    pointer-events: none;
}
.contact-success-toast.show { display: flex; }
.contact-success-toast-inner {
    max-width: min(520px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 10px;
    background: #1f9d55;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 16px 28px rgba(0,0,0,0.28);
}
[data-theme="light"] .contact-success-toast-inner {
    background: #198754;
}
