/* =========================================================
   VELWOLEF — BASE DARK SYSTEM
========================================================= */

/* =========================
   VARIABLES
========================= */
:root {
    --bg-main: #05070b;
    --bg-soft: #0b0f17;
    --bg-card: rgba(15, 20, 30, 0.82);
    --bg-card-strong: rgba(12, 17, 26, 0.96);

    --text-main: #f5f7fb;
    --text-soft: #c7d0dc;
    --text-muted: #8b98a9;

    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);

    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --gold: #f5c76b;

    --shadow-sm: 0 12px 30px rgba(0,0,0,0.25);
    --shadow-md: 0 20px 50px rgba(0,0,0,0.35);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);

    /* 🔥 AJOUTE ÇA */
    --nav-h: 72px;
    --page-max: 1380px;
    --page-gutter: 20px;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* =========================
   BODY
========================= */
body {
    background:
        radial-gradient(circle at 10% 10%, rgba(59,130,246,0.08), transparent 25%),
        radial-gradient(circle at 90% 10%, rgba(139,92,246,0.08), transparent 25%),
        linear-gradient(180deg, #05070b 0%, #03050a 100%);
    color: var(--text-soft);
}

/* GRID BACKGROUND */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
}

/* =========================
   TYPO
========================= */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 900;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   CONTAINER
========================= */
.section-container {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}

/* =========================
   CARDS (GLOBAL)
========================= */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

/* =========================
   BUTTONS
========================= */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(59,130,246,0.25);
    transition: 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 25, 0.85);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
}

/* =========================
   FLASH
========================= */
.flash-wrapper {
    width: min(1200px, calc(100% - 32px));
    margin: 18px auto 0;
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}

.flash-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.18);
}

.flash-warning {
    background: rgba(245, 199, 107, 0.12);
    color: #fcd34d;
    border-color: rgba(245, 199, 107, 0.18);
}

.flash-danger,
.flash-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.18);
}

/* =========================
   NAV PRO BADGE
========================= */
.nav-pro-badge {
    background: linear-gradient(135deg, #4f8cff, #7c3aed);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   STICKY UPGRADE CTA
========================= */
.upgrade-sticky {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    width: min(520px, calc(100% - 20px));
    pointer-events: auto;
}

.upgrade-sticky a {
    display: block;
    text-align: center;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #f5c76b, #ffb84d);
    color: #1f2937;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    transition: 0.25s ease;
}

.upgrade-sticky a:hover {
    transform: translateY(-2px);
}

/* =========================
   UPGRADE POPUP
========================= */
.upgrade-popup {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
}

.upgrade-popup.active {
    display: flex;
}

.upgrade-popup-box {
    width: min(460px, 100%);
    background: linear-gradient(180deg, rgba(13, 19, 34, 0.98), rgba(9, 13, 25, 0.98));
    border: 1px solid rgba(245, 199, 107, 0.18);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.48);
    padding: 30px 24px;
    text-align: center;
}

.upgrade-popup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(245, 199, 107, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(245, 199, 107, 0.18);
    margin-bottom: 14px;
}

.upgrade-popup-box h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #ffffff;
}

.upgrade-popup-box p {
    color: var(--text-soft);
    margin-bottom: 20px;
}

.upgrade-popup-actions {
    display: grid;
    gap: 12px;
}

.upgrade-popup-close {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #f5f7fb;
    font-weight: 800;
    cursor: pointer;
    transition: 0.22s ease;
}

.upgrade-popup-close:hover {
    background: rgba(255,255,255,0.08);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .section-container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .upgrade-sticky {
        bottom: 10px;
        width: min(100% - 12px, 100%);
    }

    .upgrade-sticky a {
        padding: 14px 14px;
        border-radius: 14px;
        font-size: 14px;
    }

    .upgrade-popup-box {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .upgrade-popup-box h3 {
        font-size: 1.25rem;
    }
}



.site-footer {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 28%),
        linear-gradient(180deg, #020817 0%, #030b18 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 42px;
    padding: 34px 0 14px;
    color: #dbe4ff;
    position: relative;
    overflow: hidden;
}

.footer-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 1.32fr;
    gap: 34px;
    align-items: start;
}

.footer-brand h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-brand p {
    margin: 0;
    max-width: 480px;
    color: rgba(219, 228, 255, 0.72);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 24px;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: rgba(219, 228, 255, 0.74);
    margin-bottom: 10px;
    font-size: 0.96rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    color: #7dd3fc;
    transform: translateX(3px);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #eef4ff;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-telegram:hover {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.12);
}

.social-instagram:hover {
    color: #f9a8d4;
    border-color: rgba(244, 114, 182, 0.35);
    box-shadow: 0 10px 28px rgba(244, 114, 182, 0.12);
}

.social-x:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.08);
}

.social-coingecko:hover {
    color: #bef264;
    border-color: rgba(163, 230, 53, 0.34);
    box-shadow: 0 10px 28px rgba(163, 230, 53, 0.12);
}

.footer-bottom {
    width: min(1200px, calc(100% - 40px));
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    margin: 0;
    text-align: left;
    color: rgba(219, 228, 255, 0.56);
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 28px 0 14px;
        margin-top: 34px;
    }

    .footer-container {
        width: min(100% - 24px, 1200px);
        gap: 24px;
    }

    .footer-brand h3 {
        font-size: 1.55rem;
    }

    .footer-brand p {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .footer-links-group {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .footer-col h4 {
        font-size: 0.98rem;
        margin-bottom: 12px;
    }

    .footer-col a {
        font-size: 0.92rem;
        margin-bottom: 9px;
    }

    .footer-socials {
        gap: 10px;
    }

    .social-link {
        padding: 9px 12px;
        font-size: 0.88rem;
        gap: 8px;
        border-radius: 12px;
    }

    .social-icon,
    .social-icon svg {
        width: 17px;
        height: 17px;
    }

    .footer-bottom {
        width: min(100% - 24px, 1200px);
        margin-top: 18px;
        padding-top: 12px;
    }

    .footer-bottom p {
        text-align: center;
        font-size: 0.86rem;
    }
}







.nav-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cfe7ff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-ai-link:hover {
    color: #ffffff;
}

.nav-ai-icon {
    font-size: 15px;
    line-height: 1;
}

.nav-ai-text {
    line-height: 1;
}

.nav-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: linear-gradient(135deg, #775cff, #28c7ff);
    box-shadow: 0 8px 20px rgba(119, 92, 255, 0.22);
}

/* MOBILE CLEAN */
@media (max-width: 991px) {
    .nav-ai-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        margin-top: 6px;
    }

    .nav-ai-link .nav-ai-icon {
        font-size: 16px;
    }

    .nav-ai-link .nav-ai-text {
        flex: 1;
        margin-left: 2px;
    }

    .nav-ai-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
}