/* Cinder TV footer stylesheet — EXTRACTED VERBATIM from footer.tpl's inline <style>
   (was re-sent inline on every page). Linked from footer.tpl at the SAME end-of-body
   position so it stays the LAST stylesheet in the document (footer styles must load
   last; cascade unchanged). Only self-contained data: URIs inside; no relative url()/
   no @font-face / no Smarty tags (verified at extraction). */
/* ============================================
   CINDER TV - PREMIUM FOOTER
   Cool-blue / silver dark theme
   ============================================ */

:root {
    --footer-gold: var(--cinder-site-accent, #4f8cff);
    --footer-gold-dark: #2f6fe0;
    --footer-gold-rgb: var(--cinder-site-accent-rgb, 79, 140, 255);
    --footer-bg: var(--cinder-site-bg, #090c10);
    --footer-bg-surface: var(--cinder-site-bg, #090c10);
    --footer-bg-elevated: var(--cinder-site-surface, #12161d);
    --footer-text: rgba(255, 255, 255, 0.45);
    --footer-text-hover: rgba(255, 255, 255, 0.92);
    --footer-heading: rgba(255, 255, 255, 0.85);
    --footer-border: var(--cinder-site-border, rgba(255, 255, 255, 0.07));
    --footer-border-gold: rgba(79, 140, 255, 0.12);
    --footer-link-hover-bg: rgba(255, 255, 255, 0.04);
    --footer-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Footer Base ---- */
.footer {
    background:
        linear-gradient(180deg, rgba(79, 140, 255, 0.035), transparent 34%),
        var(--footer-bg);
    padding: 0 0 24px;
    border-top: 1px solid var(--footer-border);
    overflow-x: hidden;
    position: relative;
}

.footer > .container {
    max-width: 1120px;
    margin: 0 auto;
}

/* Gold accent line at top */
.footer-accent {
    display: none;
}

/* ---- Logo Section ---- */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 0 20px;
    margin-bottom: 0;
    border-bottom: none;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--footer-transition), transform var(--footer-transition);
}

.footer-brand:hover {
    opacity: 0.8;
    transform: scale(1.03);
    text-decoration: none;
}

.footer-logo-img {
    display: block;
    max-height: 46px;
    width: auto;
    max-width: 188px; /* 4:1 logo — needs >= 4x height or it crops */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.footer-brand-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--footer-gold) 0%, #a8c7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 460px;
    text-align: center;
    line-height: 1.6;
}

.footer-signal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.footer-signal-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(var(--footer-gold-rgb), 0.18);
    border-radius: 999px;
    background: rgba(var(--footer-gold-rgb), 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background var(--footer-transition), border-color var(--footer-transition), color var(--footer-transition);
}

.footer-signal-row a:hover,
.footer-signal-row a:focus {
    background: rgba(var(--footer-gold-rgb), 0.12);
    border-color: rgba(var(--footer-gold-rgb), 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Payment trust marks — inline SVG, monochrome via currentColor (no remote images) */
.footer .pay-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--cinder-site-border, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--cinder-site-copy-muted, rgba(237, 241, 246, 0.56));
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.footer .pay-mark:hover {
    color: var(--cinder-site-copy, rgba(237, 241, 246, 0.92));
    border-color: var(--cinder-site-border-strong, rgba(255, 255, 255, 0.18));
}

.footer .pay-svg {
    height: 15px;
    width: auto;
    display: block;
}

/* CSS spinner — replaces leaked FontAwesome fa-circle-notch */
.footer-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 2px solid rgba(var(--footer-gold-rgb), 0.25);
    border-top-color: var(--footer-gold);
    border-radius: 50%;
    animation: footer-spin 0.7s linear infinite;
}

@keyframes footer-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-spinner { animation-duration: 1.6s; }
}

/* ---- Footer Content Grid ---- */
.footer-content-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    justify-items: center;
    gap: 18px 22px;
    width: 100%;
    padding: 20px 0;
    margin: 0 auto;
    border-top: 1px solid var(--footer-border);
    border-bottom: 1px solid var(--footer-border);
}

.footer-column {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-nav {
    width: 100%;
}

.footer-column-title {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.footer-column-title-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-column-title::before {
    content: '';
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, var(--footer-gold), var(--footer-gold-dark));
    border-radius: 2px;
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2px;
}

.footer-links li {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 450;
    color: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    padding: 6px 10px;
    margin-left: 0;
    border-radius: 8px;
    transition: color var(--footer-transition), background var(--footer-transition), transform var(--footer-transition);
    position: relative;
    min-height: 32px;
}

.footer-link::after {
    display: none;
}

.cinder-external-info-link::after {
    content: "";
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.5;
    background: currentColor;
    transition: opacity var(--footer-transition);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3Zm5 14v4H3V5h4v2H5v12h12v-2h2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3Zm5 14v4H3V5h4v2H5v12h12v-2h2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-link:hover {
    color: #cfe0ff;
    background: rgba(79, 140, 255, 0.07);
    text-decoration: none;
    transform: none;
}

.footer-link:hover.cinder-external-info-link::after {
    opacity: 0.85;
}

.footer-links .footer-link {
    width: 100%;
}

.footer-link-icon {
    gap: 8px;
}

.footer-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--footer-transition), color var(--footer-transition);
}

.footer-link:hover .footer-icon {
    opacity: 1;
    color: var(--footer-gold);
}

.footer-link i {
    font-size: 15px;
    margin-right: 0;
    opacity: 0.5;
    transition: opacity var(--footer-transition), color var(--footer-transition);
}

.footer-link:hover i {
    opacity: 1;
    color: var(--footer-gold);
}

/* ---- Footer Bottom ---- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
    padding-top: 12px;
    border-top: none;
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
        gap: 28px 24px;
    }
}

@media (max-width: 768px) {
    .footer-logo-section {
        padding: 40px 0 32px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(170px, 220px));
        gap: 24px 18px;
        padding: 24px 0;
    }

    .footer-column-title {
        font-size: 10px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-top: 24px;
    }

}

@media (max-width: 576px) {
    .footer-logo-section {
        padding: 32px 0 24px;
    }

    .footer-logo-img {
        max-height: 30px;
    }

    .footer-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 18px 0;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

}

/* ============================================
   MODAL STYLES
   ============================================ */
.system-modal .modal-content {
    background: var(--footer-bg-elevated);
    border: 1px solid var(--footer-border);
    border-radius: 16px;
    box-shadow: 0 24px 80px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(var(--footer-gold-rgb), 0.04);
    overflow: hidden;
}

.system-modal .modal-header {
    border-bottom: 1px solid var(--footer-border);
    padding: 20px 24px;
}

.system-modal .modal-title {
    color: var(--footer-heading);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
}

.system-modal .modal-body {
    padding: 24px;
    color: var(--footer-text);
}

.system-modal .modal-footer {
    border-top: 1px solid var(--footer-border);
    padding: 16px 24px;
}

.system-modal .close {
    color: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: all var(--footer-transition);
    text-shadow: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.system-modal .close:hover {
    color: var(--footer-text-hover);
    background: rgba(255, 255, 255, 0.05);
}

.system-modal .item-selector .item {
    display: block;
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--footer-transition);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.system-modal .item-selector .item:hover {
    background: rgba(var(--footer-gold-rgb), 0.04);
    color: var(--footer-text-hover);
    border-color: var(--footer-border-gold);
    transform: translateX(2px);
}

.system-modal .item-selector .item.active {
    background: rgba(var(--footer-gold-rgb), 0.06);
    color: var(--footer-gold);
    border-color: rgba(var(--footer-gold-rgb), 0.2);
}

/* ---- Button Styles ---- */
.system-modal .btn-primary {
    background: linear-gradient(135deg, var(--footer-gold), var(--footer-gold-dark));
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all var(--footer-transition);
    box-shadow: 0 2px 12px rgba(var(--footer-gold-rgb), 0.15);
}

.system-modal .btn-primary:hover {
    background: linear-gradient(135deg, #6aa0ff, var(--footer-gold));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(var(--footer-gold-rgb), 0.25);
}

.system-modal .btn-primary:active {
    transform: translateY(0);
}

.system-modal .btn-default {
    background: transparent;
    border: 1px solid var(--footer-border);
    color: var(--footer-text);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all var(--footer-transition);
}

.system-modal .btn-default:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--footer-text-hover);
}

/* ---- Return to Admin ---- */
.btn-return-to-admin {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 10, 15, 0.88);
    border: 1px solid rgba(var(--footer-gold-rgb), 0.14);
    color: rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: background var(--footer-transition), border-color var(--footer-transition), color var(--footer-transition), box-shadow var(--footer-transition), transform var(--footer-transition);
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    width: auto;
    max-width: max-content;
    white-space: nowrap;
}

.btn-return-to-admin:hover {
    background: rgba(13, 16, 24, 0.96);
    border-color: rgba(var(--footer-gold-rgb), 0.24);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    text-decoration: none;
}

.btn-return-to-admin i {
    flex-shrink: 0;
}

/* ---- LIGHT CLEANUP PASS ---- */
.footer-column-title {
    margin-bottom: 12px;
}

.footer-links li + li {
    margin-top: 4px;
}

@media (max-width: 767px) {
    .footer-logo-section {
        padding: 42px 0 28px;
    }

    .footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
    }

    .footer-bottom-right {
        width: 100%;
        justify-content: center;
    }
}

/* ── Slim sticky mobile CTA (logged-out, phones only) ──────────────
   Keeps the primary action reachable on the small screens that make up
   most IPTV traffic. Hidden >=768px and excluded on cart/order/plans
   (where a CTA already leads). A spacer reserves room so the fixed bar
   never covers the last of the footer. ── */
.cinder-mobile-cta,
.cinder-mobile-cta-spacer { display: none; }

@media (max-width: 767px) {
    .cinder-mobile-cta {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1030;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--cinder-site-bg-elevated, #11151b);
        border-top: 1px solid var(--cinder-site-border, rgba(255, 255, 255, 0.08));
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }
    .cinder-mobile-cta-text {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--cinder-site-copy, rgba(237, 241, 246, 0.95));
    }
    .cinder-mobile-cta-btn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 20px;
        border-radius: 999px;
        background: var(--cinder-accent, #4f8cff);
        color: #fff !important;
        font-weight: 700;
        text-decoration: none;
    }
    .cinder-mobile-cta-btn:hover,
    .cinder-mobile-cta-btn:focus {
        background: #3f7ae6;
        color: #fff !important;
        text-decoration: none;
    }
    .cinder-mobile-cta-spacer { display: block; height: 68px; }
}

/* ── Build stamp — a visible deploy heartbeat in the footer (every page).
   The version string lives in footer.tpl and is bumped on each push, so a
   changed number = the deploy reached the page. Intentionally subtle. ── */
.footer-build {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--cinder-site-copy-muted);
    opacity: 0.85;
}
.footer-build-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cinder-site-accent);
    box-shadow: 0 0 8px rgba(var(--cinder-site-glow-rgb), 0.8);
    animation: footerBuildPulse 2.4s ease-in-out infinite;
}
@keyframes footerBuildPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-build-dot { animation: none; }
}

