:root {
    /* Палитра */
    --bg-dark: #0B0F1A;
    --bg-card: #0E1324;
    --primary: #00F0FF; /* Electric Cyan */
    --primary-dim: rgba(0, 240, 255, 0.1);
    --secondary: #7000FF; /* Neon Purple */
    --text-main: #FFFFFF;
    --text-muted: #8F9BB3;
    --border: rgba(255, 255, 255, 0.1);
    --error: #FF3B30;
    
    /* Шрифты */
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Эффекты */
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Фоновая анимация (Ambient Glow) */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: float 10s infinite alternate;
}
.glow-1 { top: -100px; left: -100px; background: var(--secondary); }
.glow-2 { bottom: -100px; right: -100px; background: var(--primary); animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Burger */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}
.nav__link:hover { color: var(--primary); }

/* Burger Menu Styles */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* Mobile Nav Logic */
@media (max-width: 768px) {
    .burger { display: flex; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        transform: translateY(-200%); /* Скрыто */
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }
    .nav.active { transform: translateY(0); }
    .nav__list { flex-direction: column; align-items: center; gap: 20px; }
    
    /* Анимация крестика бургера */
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}
.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}
.btn--primary {
    background: var(--primary);
    color: #000;
}
.btn--primary:hover {
    background: #fff;
    box-shadow: 0 0 25px var(--primary);
}
.btn--full { width: 100%; text-align: center; }
.btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Exchange Card (Glassmorphism) */
.exchange-section { padding: 40px 0 80px; }
.exchange-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(14, 19, 36, 0.7);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.status-badge {
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot {
    width: 6px; height: 6px; background: var(--primary);
    border-radius: 50%; box-shadow: 0 0 8px var(--primary);
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    transition: var(--transition);
}
.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-dim);
}

.input-wrapper input {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 100%;
    outline: none;
    font-family: var(--font-head);
}

.select-wrapper select {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    text-align: right;
    appearance: none; /* Убирает дефолтную стрелку */
    -webkit-appearance: none;
    padding-right: 15px; /* Место под свою стрелку если надо, тут упростим */
}
/* Фокус на select - костыль для опций в хроме, чтобы были темными */
select option { background: var(--bg-card); color: #fff; }

/* Divider Swap */
.exchange-divider {
    display: flex;
    align-items: center;
    margin: -10px 0 10px;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.swap-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}
.swap-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.input-error {
    color: var(--error);
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    height: 14px; /* Чтобы не прыгало */
}
.input-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    text-align: right;
}

/* Stats Section */
.info-section { padding: 40px 0; border-top: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item h3 { font-size: 2rem; color: #fff; margin-bottom: 5px; }
.stat-item p { color: var(--text-muted); }

.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .hero__title { font-size: 2.5rem; }
    .exchange-card { padding: 20px; }
}
