/* =====================================================
   PREMIUM PRO CSS — Afrique Investment
   Glassmorphism, ROI Calc, F&G, Compare Table, Toasts, Cookie
   ===================================================== */

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1199FA, #0ECB81, #F0B90B);
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===== GLOBAL MARKET BAR ===== */
#global-market-bar {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    height: 36px;
    background: #08090D;
    border-bottom: 1px solid rgba(17,153,250,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 9999;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    flex-wrap: nowrap;
    padding: 0 12px;
}
#global-market-bar .gm-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: #A8B0BC;
    flex-shrink: 0;
}
#global-market-bar .gm-label {
    color: #5C6475;
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
#global-market-bar .gm-value {
    color: #E8ECF0;
    font-weight: 700;
    font-size: 0.75rem;
}
#global-market-bar .gm-up { color: #0ECB81; }
#global-market-bar .gm-down { color: #F6465D; }

@media (max-width: 768px) {
    #global-market-bar { gap: 16px; padding: 0 10px; }
}

/* ===== GLASSMORPHISM BASE ===== */
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(17,153,250,0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== ROI CALCULATOR ===== */
#roi-calculator {
    background: linear-gradient(180deg, #0B0E11 0%, #0D1118 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
#roi-calculator::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(17,153,250,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.roi-calc-inner {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(17,153,250,0.15);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(16px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.roi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}
@media (max-width: 640px) {
    .roi-inputs { grid-template-columns: 1fr; }
    .roi-calc-inner { padding: 28px 20px; }
}
.roi-input-group label {
    display: block;
    color: #A8B0BC;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.roi-input-group input,
.roi-input-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.roi-input-group input:focus,
.roi-input-group select:focus {
    border-color: #1199FA;
    box-shadow: 0 0 0 3px rgba(17,153,250,0.15);
    background: rgba(17,153,250,0.06);
}
.roi-input-group select option { background: #0D1118; color: #fff; }
.roi-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding: 24px;
    background: rgba(14,203,129,0.06);
    border: 1px solid rgba(14,203,129,0.2);
    border-radius: 16px;
}
@media (max-width: 560px) { .roi-result { grid-template-columns: 1fr; } }
.roi-result-item { text-align: center; }
.roi-result-label { color: #A8B0BC; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.roi-result-value { font-size: 1.6rem; font-weight: 800; color: #0ECB81; line-height: 1.1; }
.roi-result-value.negative { color: #F6465D; }
.roi-calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1199FA, #0D7FD9);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}
.roi-calc-btn:hover {
    background: linear-gradient(135deg, #0D7FD9, #0A5FA3);
    box-shadow: 0 8px 30px rgba(17,153,250,0.4);
    transform: translateY(-2px);
}

/* ===== FEAR & GREED INDEX ===== */
#fear-greed-section {
    background: #0B0E11;
    padding: 70px 0;
}
.fg-widget {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    backdrop-filter: blur(16px);
}
.fg-needle-wrap {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 24px auto 12px;
}
.fg-arc {
    width: 200px;
    height: 100px;
}
.fg-score {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 8px;
}
.fg-label-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.fg-classification-Extreme.Fear { color: #F6465D; }
.fg-classification-Fear { color: #FF9B00; }
.fg-classification-Neutral { color: #F0B90B; }
.fg-classification-Greed { color: #0ECB81; }
.fg-classification-Extreme.Greed { color: #00C776; }
.fg-updated { color: #5C6475; font-size: 0.75rem; margin-top: 8px; }

/* ===== COMPARISON TABLE ===== */
#compare-section {
    background: linear-gradient(180deg, #0A0E17 0%, #0B0E11 100%);
    padding: 90px 0;
    overflow-x: auto;
}
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}
.compare-table th {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.compare-table th:first-child { text-align: left; color: #5C6475; }
.compare-table th.popular-col {
    background: rgba(17,153,250,0.08);
    color: #1199FA;
    position: relative;
}
.compare-table th.popular-col::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #1199FA;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 10px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 1px;
}
.compare-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.88rem;
    color: #C3C6CF;
    vertical-align: middle;
}
.compare-table td:first-child {
    text-align: left;
    color: #777E90;
    font-weight: 600;
    padding-left: 20px;
    font-size: 0.82rem;
}
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table td.popular-col { background: rgba(17,153,250,0.04); color: #fff; }
.compare-table .plan-name { font-weight: 800; font-size: 0.95rem; color: #fff; }
.compare-table .plan-price { font-weight: 800; font-size: 1.1rem; color: #0ECB81; }
.compare-table .check { color: #0ECB81; font-size: 1.1rem; }
.compare-table .cross { color: #F6465D; font-size: 1rem; }

/* ===== PREUVES CLIENTS ===== */
#preuves-clients {
    background: #0B0E11;
    padding: 90px 0;
}
.preuves-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}
.preuves-tab-btn {
    padding: 12px 28px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #777E90;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: -1px;
}
.preuves-tab-btn.active {
    color: #1199FA;
    border-bottom-color: #1199FA;
}
.preuves-tab-content { display: none; }
.preuves-tab-content.active { display: block; }
.preuves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.preuve-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}
.preuve-card:hover {
    border-color: rgba(17,153,250,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.preuve-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.preuve-card-info { padding: 14px 16px; }
.preuve-card-name { color: #E8ECF0; font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.preuve-card-amount { color: #0ECB81; font-weight: 800; font-size: 1rem; }
.preuve-card-method {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(17,153,250,0.12);
    color: #1199FA;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 6px;
}
.preuves-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.preuve-video-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.preuve-video-card:hover {
    border-color: rgba(17,153,250,0.25);
    transform: translateY(-4px);
}
.preuve-video-card video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #0D1118;
}
.preuve-video-info { padding: 14px 16px; }
.preuve-video-title { color: #E8ECF0; font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }

/* Lightbox */
#preuves-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#preuves-lightbox.open { display: flex; }
#preuves-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}
#preuves-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#preuves-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(18,22,30,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 340px;
}
.toast.toast-hide {
    opacity: 0;
    transform: translateX(30px);
}
.toast-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.toast-body { flex: 1; }
.toast-title { color: #fff; font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.toast-msg { color: #A8B0BC; font-size: 0.8rem; line-height: 1.4; }
.toast-close { color: #5C6475; background: none; border: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0; flex-shrink: 0; transition: color 0.2s; }
.toast-close:hover { color: #E8ECF0; }
.toast.success { border-left: 3px solid #0ECB81; }
.toast.error { border-left: 3px solid #F6465D; }
.toast.info { border-left: 3px solid #1199FA; }
.toast.warning { border-left: 3px solid #F0B90B; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(14,18,26,0.97);
    border: 1px solid rgba(17,153,250,0.2);
    border-radius: 18px;
    padding: 20px 22px;
    z-index: 9995;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(24px);
    animation: slideUpIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
#cookie-banner.show { display: block; }
.cookie-title { color: #fff; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.cookie-text { color: #777E90; font-size: 0.78rem; line-height: 1.6; margin-bottom: 16px; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-accept {
    padding: 10px 24px;
    background: linear-gradient(135deg, #1199FA, #0D7FD9);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
}
.cookie-accept:hover { box-shadow: 0 6px 20px rgba(17,153,250,0.4); transform: translateY(-1px); }
.cookie-decline {
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #A8B0BC;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s;
}
.cookie-decline:hover { background: rgba(255,255,255,0.1); color: #fff; }

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
