/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #FF6B00;
    --orange-light: #FF8C3A;
    --orange-dark: #E04500;
    --orange-glow: rgba(255, 107, 0, 0.35);
    --orange-subtle: rgba(255, 107, 0, 0.08);
    --bg-dark: #080810;
    --bg-card: rgba(255,255,255,0.05);
    --bg-card2: rgba(255,255,255,0.07);
    --bg-card-solid: #0f0f18;
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255,255,255,0.09);
    --glass-border: rgba(255,255,255,0.12);
    --glass-hover: rgba(255,255,255,0.09);
    --border: rgba(255,255,255,0.09);
    --border-orange: rgba(255,107,0,0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --text-muted: #60607A;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-orange: 0 0 60px rgba(255,107,0,0.2);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.5);
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #080810;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* iOS-style noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; }
input, select, textarea { outline: none; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
.text-orange { color: var(--orange); }
.hero-title .text-orange {
    background: linear-gradient(135deg, #FFB042 0%, #FF6B00 50%, #FF4500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(255,107,0,0.35));
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(145deg, #FF7A1A, #E04500);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,0,0.45),
                inset 0 1px 0 rgba(255,255,255,0.25),
                inset 0 -1px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover {
    background: linear-gradient(145deg, #FF8C30, #FF5500);
    box-shadow: 0 8px 32px rgba(255,107,0,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    background: rgba(255,107,0,0.08);
    backdrop-filter: blur(12px);
    color: var(--orange);
    border: 1px solid rgba(255,107,0,0.35);
}
.btn-outline:hover {
    background: rgba(255,107,0,0.14);
    border-color: rgba(255,107,0,0.55);
}

.btn-large { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,8,16,0.65);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    box-shadow: 0 4px 15px var(--orange-glow);
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}
.logo-dot { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
    padding: 8px 13px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--orange); }

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 4px;
    margin-left: auto;
}
.burger span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(8,8,16,0.75);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    z-index: 99;
    padding: 8px 0;
    flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--orange); background: rgba(255,107,0,0.06); }

/* Mobile auth buttons — always defined (shown only when menu open) */
.mobile-nav-auth {
    display: flex;
    gap: 10px;
    padding: 16px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 4px;
    background: rgba(255,255,255,0.02);
}
.mobile-nav-auth a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.2px;
}
.mobile-nav-auth a i { font-size: 14px; }
.mobile-nav-auth a:active { opacity: 0.8; transform: scale(0.97); }
.mobile-nav-auth .mob-login {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.18);
}
.mobile-nav-auth .mob-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.32);
    color: #fff;
}
.mobile-nav-auth .mob-register {
    background: linear-gradient(135deg, #FF6B00, #D95500);
    color: #fff;
    border: 1px solid rgba(255,107,0,0.35);
    box-shadow: 0 3px 16px rgba(255,107,0,0.4);
}
.mobile-nav-auth .mob-register:hover {
    box-shadow: 0 5px 20px rgba(255,107,0,0.6);
    background: linear-gradient(135deg, #FF8030, #FF6B00);
}
.mobile-nav-auth .mob-dashboard {
    background: linear-gradient(135deg, #FF6B00, #D95500);
    color: #fff;
    border: 1px solid rgba(255,107,0,0.35);
    box-shadow: 0 3px 16px rgba(255,107,0,0.4);
}
.mobile-nav-auth .mob-dashboard:hover {
    box-shadow: 0 5px 20px rgba(255,107,0,0.6);
    background: linear-gradient(135deg, #FF8030, #FF6B00);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: blobFloat 12s ease-in-out infinite;
}
.hero-glow-1 {
    width: 650px; height: 650px;
    background: rgba(255,107,0,0.42);
    top: -250px; right: -200px;
    animation-duration: 10s;
}
.hero-glow-2 {
    width: 450px; height: 450px;
    background: rgba(120,50,220,0.22);
    bottom: -150px; left: -120px;
    animation-duration: 14s;
    animation-delay: -5s;
}
.hero-glow-3 {
    width: 380px; height: 380px;
    background: rgba(255,180,50,0.18);
    top: 40%; left: 45%;
    transform: translate(-50%,-50%);
    animation-duration: 18s;
    animation-delay: -9s;
}
@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(30px,-30px) scale(1.06); }
    66%     { transform: translate(-20px,20px) scale(0.96); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,0,0.10);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,140,60,0.28);
    color: var(--orange-light);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255,107,0,0.12), inset 0 1px 0 rgba(255,255,255,0.12);
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2.2px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #cdcdcd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .accent-orange {
    background: linear-gradient(135deg, #FFB042 0%, #FF6B00 50%, #FF4500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(255,107,0,0.35));
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 20px 28px;
    width: fit-content;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1.5px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.08);
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== EXCHANGE CARD ===== */
.exchange-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(1.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.08),
        0 0 60px rgba(255,107,0,0.18),
        0 40px 80px rgba(0,0,0,0.5),
        inset 0 1.5px 0 rgba(255,255,255,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    position: relative;
}

.exchange-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--orange));
}

.exchange-card-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,107,0,0.04);
}
.exchange-card-header h2 { font-size: 18px; font-weight: 700; }
.exchange-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-subtle);
    border: 1px solid var(--border-orange);
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.exchange-body { padding: 24px 28px; }

.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.label-hint { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    -webkit-appearance: none;
}
.form-input:focus {
    border-color: rgba(255,107,0,0.6);
    background: rgba(255,107,0,0.07);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.14), inset 0 1px 0 rgba(255,255,255,0.08);
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.direction-select {
    display: flex;
    align-items: center;
    gap: 10px;
}
.direction-from, .direction-to { flex: 1; }

.select-currency {
    width: 100%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF6B00' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
}
.select-currency:focus { border-color: rgba(255,107,0,0.6); box-shadow: 0 0 0 3px rgba(255,107,0,0.14); }
.select-currency option { background: #0f0f18; }

.swap-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--orange-subtle);
    border: 1.5px solid var(--border-orange);
    color: var(--orange);
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.swap-btn:hover {
    background: var(--orange);
    color: #fff;
    transform: rotate(180deg);
}

.input-with-currency {
    position: relative;
}
.input-with-currency .form-input { padding-right: 64px; }
.input-currency {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 13px; font-weight: 700;
    color: var(--orange);
    pointer-events: none;
}

.rate-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--orange-subtle);
    border: 1px solid var(--border-orange);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-secondary);
}
.rate-info i { color: var(--orange); }
.commission-badge {
    display: none;
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    background: rgba(255,107,0,0.15);
    padding: 2px 8px;
    border-radius: 50px;
}

.form-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    background: rgba(255,107,0,0.10);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,140,60,0.28);
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 16px rgba(255,107,0,0.10), inset 0 1px 0 rgba(255,255,255,0.10);
}
.section-title {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #bfbfbf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--text-secondary); font-size: 16px; }

/* ===== DIRECTIONS ===== */
.directions-section { padding: 100px 0; }

.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.direction-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1.5px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.08);
}
.direction-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,0,0.06), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}
.direction-card:hover {
    border-color: rgba(255,107,0,0.45);
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 30px rgba(255,107,0,0.15), inset 0 1.5px 0 rgba(255,255,255,0.14);
}
.direction-card:hover::before { opacity: 1; }

.direction-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.currency-icons { display: flex; align-items: center; gap: -4px; }
.currency-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
    border: 2px solid var(--bg-card);
    flex-shrink: 0;
}
.currency-icon:nth-child(2) { margin-left: -10px; }
.ci-usdt { background: linear-gradient(135deg, #26A17B, #1a7a5c); color: #fff; }
.ci-btc  { background: linear-gradient(135deg, #F7931A, #e07a0a); color: #fff; }
.ci-eth  { background: linear-gradient(135deg, #627EEA, #4a64d8); color: #fff; }
.ci-ltc  { background: linear-gradient(135deg, #345D9D, #2a4a7f); color: #fff; }
.ci-rub  { background: linear-gradient(135deg, #FF6B00, #e05a00); color: #fff; }
.ci-uah  { background: linear-gradient(135deg, #005BBB, #003d82); color: #FFD700; }
.ci-kzt  { background: linear-gradient(135deg, #00AFCA, #0090a8); color: #fff; }
.ci-idr  { background: linear-gradient(135deg, #CE1126, #a00d1e); color: #fff; }
.ci-eur  { background: linear-gradient(135deg, #003399, #002277); color: #FFD700; }
.ci-usd  { background: linear-gradient(135deg, #2ECC71, #27ae60); color: #fff; }
.ci-default { background: linear-gradient(135deg, #555, #333); color: #fff; }
.ci-default { background: linear-gradient(135deg, #666, #444); color: #fff; }

.direction-name { font-size: 16px; font-weight: 700; }
.direction-pair { font-size: 12px; color: var(--text-muted); }

.direction-rate {
    font-size: 22px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 4px;
}
.direction-rate-sub { font-size: 12px; color: var(--text-muted); }
.direction-limits {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}


/* ===== HOW IT WORKS ===== */
.how-section { padding: 100px 0; background: rgba(255,107,0,0.03); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--orange));
    opacity: 0.3;
}

.step-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1.5px 0 rgba(255,255,255,0.1);
}
.step-card:hover {
    border-color: rgba(255,107,0,0.45);
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 25px rgba(255,107,0,0.12);
}

.step-number {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 800;
    color: var(--orange);
    background: rgba(8,8,16,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,107,0,0.4);
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.step-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin: 16px auto 20px;
    box-shadow: 0 8px 24px var(--orange-glow);
}

.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1.5px 0 rgba(255,255,255,0.1);
}
.feature-card:hover {
    border-color: rgba(255,107,0,0.45);
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 25px rgba(255,107,0,0.12);
}

.feature-icon {
    width: 52px; height: 52px;
    background: var(--orange-subtle);
    border: 1.5px solid var(--border-orange);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--orange);
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { padding: 100px 0; background: rgba(255,107,0,0.02); }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1.5px 0 rgba(255,255,255,0.1);
}
.faq-item.open { border-color: rgba(255,107,0,0.45); background: rgba(255,107,0,0.05); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-question i { color: var(--orange); flex-shrink: 0; transition: var(--transition); }
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 24px 20px;
}
.faq-answer.open { display: block; }
.faq-answer p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
    background: rgba(8,8,16,0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 60px 0 30px;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.04);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; }

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}
.social-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-secondary); font-size: 14px; padding: 5px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(60px) saturate(220%) brightness(1.1);
    -webkit-backdrop-filter: blur(60px) saturate(220%) brightness(1.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 28px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.08),
        0 40px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(255,107,0,0.12),
        inset 0 1.5px 0 rgba(255,255,255,0.18);
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}
.modal-icon.success {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: 0 12px 30px var(--orange-glow);
}

.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }

.order-id-box {
    background: var(--bg-card2);
    border: 1.5px solid var(--border-orange);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.order-id-box span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.order-id-box strong { flex: 1; font-size: 18px; font-weight: 800; color: var(--orange); font-family: monospace; }

.copy-btn {
    background: var(--orange-subtle);
    border: 1px solid var(--border-orange);
    color: var(--orange);
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.copy-btn:hover { background: var(--orange); color: #fff; }

.modal-steps { text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.modal-step { display: flex; align-items: flex-start; gap: 12px; }
.modal-step-num {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
}
.modal-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.modal-step strong { color: var(--text-primary); }

.modal-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== PARTICLES ===== */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .exchange-card { max-width: 600px; margin: 0 auto; }
    .hero-title { font-size: 42px; }
    .directions-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    /* Header */
    .nav, .header-actions { display: none; }
    .burger { display: flex; }
    .header-inner { gap: 12px; }

    /* Mobile nav — полноэкранное меню */
    .mobile-nav {
        top: 70px;
        padding: 8px 0 20px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .mobile-nav-link {
        padding: 15px 20px;
        font-size: 16px;
    }
    /* Auth-кнопки в мобильном меню */
    /* Hero */
    .hero { padding: 36px 0; min-height: auto; }
    .hero-title { font-size: 28px; line-height: 1.2; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; width: 100%; justify-content: center; gap: 12px; }
    .hero-stat { min-width: 100px; }

    /* Exchange card */
    .exchange-card { padding: 20px 16px; }
    .currency-selector { padding: 12px 14px; }
    .currency-select-btn { font-size: 16px; }

    /* Grids */
    .directions-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Misc */
    .section-title { font-size: 26px; }
    .form-row { grid-template-columns: 1fr; }
    .modal { padding: 24px 16px; margin: 0 12px; border-radius: 20px; }
    .modal-title { font-size: 20px; }

    /* Logo text — trim on small screens */
    .logo-text { font-size: 15px; letter-spacing: 0; }
}</parameter>

@media (max-width: 420px) {
    .hero-title { font-size: 24px; }
    .section-title { font-size: 22px; }
    .exchange-card { padding: 16px 12px; }
    .logo-text { font-size: 13px; }
}
/* ===== REFERRAL BANNER ===== */
.ref-banner {
    display: none;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,107,0,0.05));
    border: 1px solid rgba(255,107,0,0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
}
.ref-banner i { color: var(--orange); font-size: 18px; }
.ref-banner strong { color: var(--orange); }
.ref-banner-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}
.ref-banner-close:hover { color: var(--text-primary); }

/* ===== REFERRAL PAGE ===== */
.ref-hero {
    text-align: center;
    padding: 80px 20px 60px;
}
.ref-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 16px; }
.ref-hero p  { font-size: 18px; color: var(--text-secondary); max-width: 540px; margin: 0 auto 40px; }
.ref-link-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: left;
}
.ref-link-box label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 8px; }
.ref-link-input-row {
    display: flex;
    gap: 8px;
}
.ref-link-input-row input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 14px;
    outline: none;
}
.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}
.ref-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.ref-stat-value { font-size: 28px; font-weight: 800; color: var(--orange); }
.ref-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== CURRENCY SELECT STYLING ===== */
.exchange-select select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.exchange-select select:focus {
    border-color: var(--orange);
}
.exchange-select select option {
    background: #1a1a2e;
    color: #fff;
}
