/* ============================================================
   HytHost — Footer & host-CTA & back-to-top
   Universal: loaded on every page via includes/head.tpl
   Extracted from footer.tpl on 2026-05-16.
   ============================================================ */

/* ===== HOST CTA — premium section, rendered only on select pages ===== */
.host-cta {
    position: relative;
    padding: 90px 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124,58,237,0.22), transparent 65%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(89,245,140,0.10), transparent 60%),
        linear-gradient(180deg, #0c1220 0%, #14182a 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    overflow: hidden;
}
.host-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><circle cx='2' cy='2' r='1' fill='white' opacity='0.22'/><circle cx='60' cy='30' r='0.8' fill='white' opacity='0.18'/><circle cx='100' cy='80' r='1.1' fill='white' opacity='0.25'/><circle cx='30' cy='90' r='0.9' fill='white' opacity='0.15'/></svg>");
    opacity: 0.5;
    pointer-events: none;
}
.host-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.host-cta-eyebrow {
    display: inline-block;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    color: #e5d4ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.host-cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.host-cta-title .accent {
    background: linear-gradient(120deg, #d4baff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.host-cta-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    line-height: 1.6;
    margin: 0 auto 36px;
    max-width: 580px;
}
.host-cta-actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.host-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.host-cta-btn-primary {
    background: #7c3aed;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 8px 24px -10px rgba(124,58,237,0.55),
        0 1px 2px rgba(0,0,0,0.35);
}
.host-cta-btn-primary:hover {
    background: #8a4cf5;
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        inset 0 -1px 0 rgba(0,0,0,0.18),
        0 14px 30px -10px rgba(124,58,237,0.75),
        0 1px 2px rgba(0,0,0,0.4);
}
.host-cta-btn-secondary {
    background: transparent;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.18);
}
.host-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
    color: #fff !important;
    transform: translateY(-1px);
}
@media (max-width: 575px) {
    .host-cta { padding: 60px 0; }
    .host-cta-btn { padding: 12px 22px; font-size: 0.93rem; }
    .host-cta-actions { gap: 10px; }
}

/* ===== MODERN FOOTER ===== */
.footer-modern {
    position: relative;
    padding: 80px 0 28px;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(124,58,237,0.08), transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(89,245,140,0.06), transparent 60%),
        linear-gradient(180deg, #0c1220 0%, #080d1a 100%);
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    line-height: 1.55;
    overflow: hidden;
}
.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.45), rgba(89,245,140,0.35), transparent);
    opacity: 0.85;
}
.footer-modern .footer-grid {
    margin-bottom: 48px;
}
.footer-modern h4.footer-col-title {
    color: rgba(255,255,255,0.6);
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.footer-modern h4.footer-col-title-sub {
    margin: 22px 0 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.42);
}
.footer-modern ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-modern ul.footer-links li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-modern ul.footer-links li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.footer-modern ul.footer-links li a:hover {
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}
.footer-modern ul.footer-links li a i {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.4);
    width: 14px;
    text-align: center;
    transition: color 0.18s ease;
}
.footer-modern ul.footer-links li a:hover i {
    color: #b794ff;
}
.footer-modern .footer-brand-col {
    padding-left: 32px;
}
.footer-modern .footer-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 18px;
}
.footer-modern .footer-tagline {
    color: rgba(255,255,255,0.68);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.footer-modern .footer-tagline strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-modern .footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.footer-modern .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    text-decoration: none;
}
.footer-modern .footer-social a:hover {
    background: rgba(124,58,237,0.15);
    border-color: rgba(124,58,237,0.45);
    color: #fff;
    transform: translateY(-2px);
}
.footer-modern .footer-contact-block {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.footer-modern .footer-contact-block strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-modern .footer-contact-block a {
    color: #b794ff;
    text-decoration: none;
    transition: color 0.18s ease;
}
.footer-modern .footer-contact-block a:hover { color: #d4baff; }

/* Trust strip — subtle band of brand facts */
.footer-modern .footer-trust {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px 36px;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.72);
}
.footer-modern .footer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.footer-modern .footer-trust-item i {
    color: #b794ff;
    font-size: 0.98rem;
}
.footer-modern .footer-trust-item strong { color: rgba(255,255,255,0.92); font-weight: 600; }

/* Payment methods — discrete row under trust strip */
.footer-modern .footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 16px 0 20px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.86rem;
    line-height: 1.5;
}
.footer-modern .footer-payments-label {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.76rem;
}
.footer-modern .footer-payments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.footer-modern .footer-payments-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.62);
    line-height: 1;
    transition: color 0.18s ease;
}
.footer-modern .footer-payments-list li:hover { color: rgba(255,255,255,0.92); }
.footer-modern .footer-payments-list li i {
    font-size: 1.12rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.18s ease;
}
.footer-modern .footer-payments-list li:hover i { color: #b794ff; }
.footer-modern .footer-payments-list li .footer-payments-text {
    font-weight: 500;
    letter-spacing: 0.01em;
}

@media (max-width: 575px) {
    .footer-modern .footer-payments {
        flex-direction: column;
        gap: 10px;
        padding: 14px 0 16px;
        font-size: 0.82rem;
    }
    .footer-modern .footer-payments-list { justify-content: center; gap: 8px 14px; }
    .footer-modern .footer-payments-list li i { font-size: 1rem; }
}

/* Bottom row: copyright | status | locale */
.footer-modern .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
}
.footer-modern .footer-bottom-left {
    flex: 1 1 auto;
    min-width: 0;
}
.footer-modern .footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-modern .footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.footer-modern .footer-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #59f58c;
    box-shadow: 0 0 6px rgba(89,245,140,0.45);
}
.footer-modern .footer-locale { position: relative; }
.footer-modern .footer-locale-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    font-family: inherit;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.footer-modern .footer-locale-btn:hover,
.footer-modern .footer-locale.is-open .footer-locale-btn {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.4);
    color: #fff;
}
.footer-modern .footer-locale-btn i { font-size: 0.78rem; }
.footer-modern .footer-locale-caret { transition: transform 0.18s ease; }
.footer-modern .footer-locale.is-open .footer-locale-caret { transform: rotate(180deg); }
.footer-modern .footer-locale-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 180px;
    max-height: 280px;
    overflow-y: auto;
    background: #14182a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 1000;
}
.footer-modern .footer-locale.is-open .footer-locale-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.footer-modern .footer-locale-menu li a {
    display: block;
    padding: 9px 15px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.footer-modern .footer-locale-menu li a:hover {
    background: rgba(124,58,237,0.18);
    color: #fff;
}

@media (max-width: 991px) {
    .footer-modern .footer-brand-col { padding-left: 15px; margin-top: 24px; }
}
@media (max-width: 767px) {
    .footer-modern { padding: 60px 0 22px; }
    .footer-modern .footer-grid { margin-bottom: 32px; }
    .footer-modern .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
    .footer-modern .footer-bottom-right { width: 100%; justify-content: flex-start; }
}

/* ===== BACK-TO-TOP BUTTON =====
   NOTE: Class renamed from `.back-to-top` to `.footer-back-to-top` to avoid
   collision with an existing jQuery click handler in scripts.js targeting
   `.back-to-top` (which would double-trigger scroll). */
.footer-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20, 24, 42, 0.92);
    border: 1px solid rgba(124, 58, 237, 0.45);
    color: #d4baff;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.footer-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.footer-back-to-top:hover {
    background: rgba(124, 58, 237, 0.85);
    border-color: rgba(124, 58, 237, 0.85);
    color: #fff;
    transform: translateY(-2px);
}
.footer-back-to-top:focus-visible {
    outline: 2px solid #b794ff;
    outline-offset: 3px;
}
@media (max-width: 575px) {
    .footer-back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-back-to-top { transition: opacity 0.2s ease, visibility 0s linear 0.2s; transform: none !important; }
    .footer-back-to-top.is-visible { transition: opacity 0.2s ease; }
}
