﻿
/* --- TICKER BAR --- */
/* ═══════════════════════════════════════
   TICKER / ANNOUNCEMENT BAR
   ═══════════════════════════════════════ */
.ticker-wrap {
    position: fixed;
    top: 0;
    width: 100%;
    height: 28px;
    background: rgba(5, 6, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 200;
    display: flex;
    align-items: center;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
    line-height: 28px;
}
.ticker-item {
    display: inline-block;
    padding: 0 2.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
    letter-spacing: 0.3px;
}
.ticker-item span { color: var(--accent-green); font-weight: 600; }
.ticker-item::before {
    content: '·';
    margin-right: 2.5rem;
    color: rgba(255,255,255,0.2);
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* FAQ pill in ticker bar */
.faq-btn-header {
    background: none;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    color: var(--gold-main);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.faq-btn-header:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* --- FAQ MODAL STYLE --- */
.faq-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}
.faq-step:last-child { margin-bottom: 0; }

.faq-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    bottom: -15px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.faq-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
    z-index: 2;
}
.faq-content h4 { margin: 0 0 5px; color: #fff; font-size: 1rem; }
.faq-content p { margin: 0; color: #aaa; font-size: 0.85rem; line-height: 1.4; }

/* ── FAQ MODAL ──────────────────────────────────────────── */
/* Use visibility/opacity instead of display toggle — avoids reflow */
.faq-overlay {
    display: flex !important;
    align-items: flex-end;
    padding: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    /* Remove heavy backdrop-filter inherited from .modal-overlay to fix lag */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0,0,0,0.75) !important;
}
.faq-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 600px) { .faq-overlay { align-items: center; padding: 20px; } }

.faq-modal-box {
    background: #0f1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 92dvh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.4) transparent;
    padding: 20px 18px 100px;
    position: relative;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.7);
    will-change: transform;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-overflow-scrolling: touch;
    will-change: transform;
}
.faq-overlay.active .faq-modal-box {
    transform: translateY(0);
}
.faq-modal-box::-webkit-scrollbar { width: 4px; }
.faq-modal-box::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 4px; }

/* Drag-handle indicator on mobile */
.faq-modal-box::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0 auto 16px;
}

@media (min-width: 600px) {
    .faq-modal-box {
        border-radius: 24px;
        transform: translateY(16px);
        transition: transform 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        padding: 32px 28px 24px;
        max-height: 88vh;
    }
    .faq-overlay.active .faq-modal-box {
        transform: translateY(0);
        opacity: 1;
    }
    .faq-modal-box::before { display: none; }
}

.faq-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.faq-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.faq-modal-header { text-align: center; margin-bottom: 22px; }
.faq-modal-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(135deg,rgba(99,102,241,0.2),rgba(139,92,246,0.15));
    border: 1px solid rgba(139,92,246,0.35); border-radius: 50px;
    padding: 4px 12px; color: #a78bfa; margin-bottom: 10px;
}
.faq-modal-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 900; color: #fff; margin: 0 0 6px;
}
.faq-modal-sub { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ─ How-it-works steps ─ */
.faq-how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.15);
    border-radius: 16px; padding: 16px 12px; margin-bottom: 22px;
}
/* Remove arrows from grid layout */
.faq-how-arrow { display: none; }

.faq-how-step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 8px;
    padding: 4px;
}
.faq-how-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg,#6366f1,#a78bfa);
    color: #fff; font-size: 0.8rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.faq-how-text { font-size: 0.75rem; line-height: 1.4; }
.faq-how-text strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; font-size: 0.78rem; }
.faq-how-text span { color: rgba(255,255,255,0.35); }

@media (max-width: 400px) {
    .faq-how-steps { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
    .faq-how-step { flex-direction: row; text-align: left; gap: 12px; }
}

/* ─ Accordion ─ */
.faq-accordion { margin-bottom: 20px; }
.faq-cat-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a78bfa;
    padding: 18px 0 6px;
    margin-bottom: 4px;
    border-top: 1px solid rgba(139,92,246,0.12);
}
.faq-cat-label:first-child { border-top: none; padding-top: 4px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 2px;
    color: rgba(255,255,255,0.75); font-size: 0.87rem; font-weight: 600;
    text-align: left; font-family: inherit; transition: color 0.2s;
    /* Larger touch target on mobile */
    min-height: 48px;
}
.faq-q:hover { color: #fff; }
.faq-item.open .faq-q { color: #a78bfa; }
.faq-chevron { flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
    overflow: hidden; max-height: 0;
    transition: max-height 0.35s ease;
    font-size: 0.82rem; color: rgba(255,255,255,0.45);
    line-height: 1.7; padding: 0 2px;
}
.faq-item.open .faq-a { padding-bottom: 14px; }

/* ─ Modal footer ─ */
.faq-modal-footer {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    /* Sticky footer on mobile so CTA is always visible */
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #0f1117 70%, transparent);
    padding: 16px 0 4px;
    margin-top: 8px;
}
.faq-modal-cta {
    width: 100%; padding: 15px; background: linear-gradient(135deg,#6366f1,#a78bfa);
    border: none; border-radius: 14px; color: #fff; font-size: 0.95rem;
    font-weight: 800; cursor: pointer; transition: opacity 0.2s; font-family: inherit;
    /* Full-width tap target */
    touch-action: manipulation;
}
.faq-modal-cta:hover { opacity: 0.88; }
.faq-modal-discord {
    font-size: 0.8rem; color: #7289da; cursor: pointer; text-decoration: none;
    transition: color 0.2s; padding: 4px 0;
}
.faq-modal-discord:hover { color: #a0b4ff; }

/* FAQ footer link */
.footer-faq-link { font-weight: 700 !important; color: #a78bfa !important; }
.footer-faq-link:hover { color: #6366f1 !important; }