/* ==========================================================================
   PremiumEx | High Contrast & Vibrant Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-dark: #000000;         /* Чистый глубокий черный */
    --bg-panel: #0f0f0f;        /* Темно-серый для панелей терминала */
    --bg-input: #171717;        
    --yellow-crypto: #FFD700;   /* Яркий, сочный желтый */
    --yellow-hover: #e6c200;    
    --text-main: #FFFFFF;
    --text-muted: #7a7a7a;
    --green: #00ff66;           
    --border: #1a1a1a;          
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= ГЛОБАЛЬНОЕ СВЕЧЕНИЕ ================= */
.site-glow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 0% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

/* ================= КНОПКИ И БЕЙДЖИ ================= */
.btn-glow {
    background: var(--yellow-crypto);
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-glow:hover {
    background: var(--yellow-hover);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-text {
    color: var(--text-main);
    font-weight: 500;
    margin-right: 20px;
    transition: 0.3s;
}

.btn-text:hover { color: var(--yellow-crypto); }

.badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--yellow-crypto);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ================= НАВИГАЦИЯ ================= */
.header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo i { color: var(--yellow-crypto); margin-right: 8px; }
.logo span { color: var(--yellow-crypto); }

.main-menu a {
    color: var(--text-main);
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.main-menu a:hover { color: var(--yellow-crypto); }

/* ================= ГЛАВНЫЙ ЭКРАН И ТЕРМИНАЛ ================= */
.hero-section {
    padding: 80px 0;
    position: relative;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text { flex: 1; }

.status-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 102, 0.1) 0%, transparent 100%);
    color: var(--green);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 10px; }
.pulse { animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(0, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, 0); }
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span { color: var(--yellow-crypto); }

.hero-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
}

.exchange-terminal {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 480px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    flex-shrink: 0;
}

.terminal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.active-tab {
    color: var(--yellow-crypto);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 20px;
}

.active-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--yellow-crypto);
}

.exchange-body { padding: 24px; }

.crypto-input-group {
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    transition: 0.3s;
}

.crypto-input-group:focus-within { border-color: var(--yellow-crypto); }

.input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.rate-info { color: var(--yellow-crypto); }

.input-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.tech-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    width: 100%;
}

.asset-select {
    display: flex;
    align-items: center;
    background: #222222;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: 0.3s;
}

.asset-select:hover { border-color: #444; }
.asset-select img { width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; }

.asset-select select {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
}

.reverse-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -14px 0;
    position: relative;
    z-index: 2;
}

.line { flex: 1; height: 1px; background: var(--border); }

.btn-reverse {
    background: var(--bg-input);
    border: 1px solid var(--yellow-crypto);
    color: var(--yellow-crypto);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-reverse:hover {
    background: var(--yellow-crypto);
    color: #000;
    transform: rotate(180deg);
}

.wallet-input {
    position: relative;
    margin-top: 20px;
}

.wallet-input input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: #fff;
    padding: 16px 20px 16px 45px;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.3s;
}

.wallet-input input:focus { border-color: var(--yellow-crypto); }
.wallet-input i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.btn-submit {
    width: 100%;
    background: var(--yellow-crypto);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    text-transform: uppercase;
}

.btn-submit:hover { 
    background: var(--yellow-hover);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ================= ПРЕИМУЩЕСТВА (КАК НА СКРИНШОТЕ) ================= */
.premium-features-wrap { 
    padding: 80px 0; 
    background: transparent; 
}

.premium-header { text-align: center; margin-bottom: 50px; }

.premium-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.premium-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--yellow-crypto);
    border-radius: 2px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.premium-card {
    background: #080808; /* Глубокий черный фон карточки */
    border: 1px solid #1a1a1a; /* Тонкая рамка */
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s ease;
}

.premium-card:hover {
    border-color: var(--yellow-crypto);
}

/* Круглый фон для иконки */
.premium-card i {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    background: rgba(255, 215, 0, 0.08); /* Полупрозрачный желтый фон */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--yellow-crypto);
    transition: 0.3s ease;
}

/* Инверсия цвета при наведении (Как на карточке "Скорость") */
.premium-card:hover i {
    background: var(--yellow-crypto);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.premium-card h3 { 
    font-size: 18px; 
    margin-bottom: 12px; 
    color: #fff; 
    font-weight: 600;
}

.premium-card p { 
    font-size: 13px; 
    color: #666; 
    line-height: 1.6; 
}


/* ================= ОТЗЫВЫ ================= */
.reviews-section { padding: 80px 0; background: transparent; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 35px;
    border-radius: 16px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

.status-badge-review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--yellow-crypto);
    margin-bottom: 20px;
}

.rev-user {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.rev-user .avatar {
    width: 45px !important;
    height: 45px !important;
    background: #151515 !important;
    color: var(--yellow-crypto) !important;
    border-radius: 50% !important; /* Круглый аватар */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    border: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0 !important;
}

.rev-user div:not(.avatar) { display: flex !important; flex-direction: column !important; justify-content: center !important; line-height: 1.3 !important; }
.rev-user strong { color: #fff !important; font-size: 15px !important; margin: 0 !important; }
.rev-user span { color: var(--text-muted) !important; font-size: 12px !important; margin-top: 3px !important; }
.rev-stars { margin-bottom: 15px; color: var(--yellow-crypto); font-size: 12px; }
.review-card p { font-size: 14px; color: #999; line-height: 1.6; margin: 0; }

/* ================= БЕГУЩАЯ СТРОКА СДЕЛОК ================= */
.live-trades-section { padding: 60px 0 100px 0; background: transparent; overflow: hidden; }

.marquee-container {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 15px 0;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.live-badge {
    position: absolute;
    left: 15px;
    z-index: 10;
    background: #111;
    color: var(--green);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 102, 0.2);
}

.marquee-track {
    display: flex;
    gap: 20px;
    align-items: center;
    width: max-content;
    animation: scrollTrades 30s linear infinite;
    padding-left: 100px;
}

.marquee-container:hover .marquee-track { animation-play-state: paused; }

@keyframes scrollTrades {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trade-item {
    background: #000;
    border: 1px solid #1a1a1a;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.coin-icon {
    width: 28px; height: 28px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--yellow-crypto);
    font-size: 12px;
}

.trade-item .currency { font-size: 13px; font-weight: 600; color: #fff; }
.trade-item .arrow-icon { color: #555; font-size: 10px; }
.trade-item .amount { font-family: 'Space Grotesk', monospace; color: var(--yellow-crypto); font-weight: 700; }
.trade-status {
    background: rgba(0, 255, 102, 0.1);
    color: var(--green);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    display: flex; align-items: center; gap: 5px;
}


/* ================= ФУТЕР (Чистый черный) ================= */
.footer {
    background: #000000;
    padding: 60px 0 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-logo div { font-size: 24px; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--yellow-crypto); }
.footer-logo p { color: #666; font-size: 13px; line-height: 1.6; margin-top: 10px; }

.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a {
    width: 36px; height: 36px;
    background: #111;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: 0.3s; border: 1px solid #222;
}
.social-links a:hover { background: var(--yellow-crypto); color: #000; border-color: var(--yellow-crypto); }

.footer-links h4 { color: #fff; margin-bottom: 20px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { color: #777; font-size: 13px; display: block; margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: var(--yellow-crypto); padding-left: 5px; }

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 992px) {
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 42px; }
    .hero-text p { margin: 0 auto 30px; }
    .exchange-terminal { width: 100%; max-width: 500px; margin: 0 auto; }
    .premium-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 600px) {
    .premium-grid, .reviews-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; gap: 15px; height: auto; padding: 15px 0; }
    .main-menu { display: none; }
}
/* ================= АДАПТИВНОСТЬ И МОБИЛЬНОЕ МЕНЮ ================= */

/* Десктопные элементы */
.mobile-toggle { display: none; color: #fff; font-size: 24px; cursor: pointer; }
.mobile-auth { display: none; }
.desktop-auth { display: flex; align-items: center; }

/* Переключатель языков */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
}
.lang-switch a { color: #666; transition: 0.3s; margin: 0; }
.lang-switch a:hover, .lang-switch a.active { color: var(--yellow-crypto); }

@media (max-width: 992px) {
    /* Перестроение сетки */
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 42px; }
    .hero-text p { margin: 0 auto 30px; }
    .exchange-terminal { width: 100%; max-width: 500px; margin: 0 auto; }
    .premium-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    
    /* Мобильное меню (Гамбургер) */
    .mobile-toggle { display: block; }
    .desktop-auth { display: none; }
    
    .main-menu {
        display: none; /* Скрыто по умолчанию */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0f0f0f;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
        text-align: center;
    }
    
    /* Класс active добавляется через JS при клике на Гамбургер */
    .main-menu.active { display: flex; }
    
    .main-menu a { margin: 12px 0; font-size: 16px; }
    .lang-switch { justify-content: center; margin: 15px 0 25px 0; font-size: 16px; }
    
    .mobile-auth { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        padding-top: 20px; 
        border-top: 1px solid #222; 
    }
    .mobile-auth .btn-text { margin: 0; }
}

@media (max-width: 600px) {
    .premium-grid, .reviews-grid { grid-template-columns: 1fr; }
    .tech-input { font-size: 20px; }
    .asset-select { padding: 6px 10px; }
}