﻿/* ==========================================
   NovaBit Design System — Dark Premium Theme
   ========================================== */

/* === CSS VARIABLES === */
:root {
    /* Backgrounds */
    --bg-base:       #0A0F1D;
    --bg-secondary:  #0E1424;
    --bg-card:       #121a2d;
    --bg-card-2:     #172136;
    --bg-hover:      #1D2A45;
    --bg-input:      #0E1626;

    /* Borders */
    --border:        #1E2A40;
    --border-light:  #2a3a5c;
    --border-accent: rgba(0,229,255,0.3);

    /* Accent — Cyan / Silver (NovaBit) */
    --accent:        #00E5FF;
    --accent-dark:   #0AA5E8;
    --accent-light:  #7CF0FF;
    --accent-glow:   rgba(0,229,255,0.18);
    --accent-glow2:  rgba(0,229,255,0.08);
    --azure:         #1E9BFF;
    --silver:        #C0C0C0;
    --on-accent:     #03121C;   /* text on top of a cyan fill */

    /* Status colors */
    --green:         #22C55E;
    --green-bg:      rgba(34,197,94,0.1);
    --red:           #EF4444;
    --red-bg:        rgba(239,68,68,0.1);
    --yellow:        #F59E0B;
    --yellow-bg:     rgba(245,158,11,0.1);

    /* Text */
    --text-primary:   #F1F5F9;
    --text-secondary: #A9B2C3;
    --text-muted:     #5E6A80;

    /* Misc */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
    --shadow-accent: 0 0 24px rgba(0,229,255,0.25);
    --transition: 0.2s ease;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === TOPBAR === */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    height: 36px;
    display: flex;
    align-items: center;
}
.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-stats { display: flex; gap: 24px; }
.topbar-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}
.topbar-item svg { color: var(--accent-light); }
.topbar-item strong { color: var(--text-primary); font-weight: 600; }
.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
.status-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* === HEADER === */
.header {
    background: rgba(10,15,29,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.navbar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}
.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--silver);
}
.logo-text .bit, .footer-logo .bit { color: var(--accent); }
.navbar-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.nav-link svg { opacity: 0.7; transition: opacity var(--transition); }
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { color: var(--accent-light); background: var(--accent-glow2); }
.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-select {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    outline: none;
}
.lang-select:hover { border-color: var(--border-light); color: var(--text-primary); }
.lang-select option { background: var(--bg-card); color: var(--text-primary); }

/* === Переключатель языка (кастомный дропдаун) === */
.lang-switch { position: relative; }
.lang-switch-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-secondary); padding: 6px 10px;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.lang-switch-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.lang-switch .lang-globe { color: var(--accent-light); flex-shrink: 0; }
.lang-switch .lang-chev { transition: transform .2s; opacity: .7; }
.lang-switch.open .lang-chev { transform: rotate(180deg); }

.lang-switch-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
    min-width: 210px; padding: 6px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-switch.open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch-menu form { display: flex; flex-direction: column; gap: 2px; }
.lang-opt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    width: 100%; text-align: left; padding: 9px 12px;
    background: none; border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: background var(--transition); font-family: inherit;
}
.lang-opt:hover { background: var(--bg-hover); }
.lang-opt.active { background: var(--accent-glow2); }
.lang-opt-native { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.lang-opt.active .lang-opt-native { color: var(--accent-light); }
.lang-opt-sub { font-size: 12px; color: var(--text-muted); line-height: 1.2; }

/* Buttons */
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border-light); background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm); font-weight: 500;
    transition: all var(--transition); white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow2); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: var(--on-accent); border: none;
    border-radius: var(--radius-sm); font-weight: 600;
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); transform: translateY(-1px); }
.btn-primary.btn-sm { padding: 7px 16px; font-size: 13px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; border: none; cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent); transform: translateY(-1px); }
.btn-orange { background: linear-gradient(135deg,#00E5FF 0%,#1E9BFF 100%); color: var(--on-accent); box-shadow: 0 2px 16px rgba(0,229,255,0.25); }
.btn-orange:hover { box-shadow: 0 4px 24px rgba(0,229,255,0.5), 0 0 40px rgba(0,229,255,0.15); transform: translateY(-2px); }
.btn-amber { background: rgba(0,229,255,0.08); color: var(--accent-light); border: 1px solid rgba(0,229,255,0.2); box-shadow: 0 0 12px rgba(0,229,255,0.08); }
.btn-amber:hover { background: rgba(0,229,255,0.15); color: #CFF9FF; border-color: rgba(0,229,255,0.4); box-shadow: 0 0 24px rgba(0,229,255,0.2); transform: translateY(-2px); }
.btn-ghost { background: var(--bg-card-2); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #16a34a; box-shadow: 0 0 20px rgba(34,197,94,0.3); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #dc2626; box-shadow: 0 0 20px rgba(239,68,68,0.3); }

.btn-user {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    transition: all var(--transition);
}
.btn-user:hover { border-color: var(--accent); }
.user-avatar-sm {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--on-accent);
}

.hamburger-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger-btn span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all var(--transition); }

/* === TICKER === */
.ticker {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
}
.ticker-wrap { overflow: hidden; width: 100%; position: relative; }
.ticker-track {
    display: flex;
    animation: ticker-move 50s linear infinite;
    will-change: transform;
    width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-move { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 20px; border-right: 1px solid var(--border);
    height: 44px; white-space: nowrap; font-size: 13px;
}
.ticker-symbol { font-weight: 700; color: var(--text-primary); font-size: 13px; }
.ticker-price { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.ticker-change {
    font-family: var(--font-mono); font-size: 12px; font-weight: 600;
    padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.ticker-change.pos { color: var(--green); background: var(--green-bg); }
.ticker-change.neg { color: var(--red); background: var(--red-bg); }

/* === HERO === */
.hero {
    position: relative;
    padding: 100px 24px 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -300px; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 800px;
    background: radial-gradient(ellipse, rgba(192,192,192,0.07) 0%, rgba(0,229,255,0.12) 30%, rgba(30,155,255,0.06) 60%, transparent 75%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(30,155,255,0.06) 0%, rgba(0,229,255,0.04) 50%, transparent 70%);
    pointer-events: none;
    animation: heroGlow2 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
@keyframes heroGlow2 {
    0% { opacity: 0.5; transform: scale(1) translate(0, 0); }
    100% { opacity: 0.8; transform: scale(1.15) translate(-30px, -20px); }
}
.hero-center {
    max-width: 720px; margin: 0 auto;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(30,155,255,0.12));
    border: 1px solid rgba(124,240,255,0.25);
    color: var(--accent-light); padding: 6px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(0,229,255,0.15);
    animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px;
    background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.4);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,229,255,0.15); }
    50% { box-shadow: 0 0 30px rgba(0,229,255,0.25); }
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 12px #22c55e, 0 0 24px rgba(34,197,94,0.6); }
}
.hero-title-row {
    display: flex; align-items: center; gap: 24px; margin-bottom: 20px;
}
.hero-logo {
    width: 80px; height: 80px; border-radius: 16px;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 32px rgba(0,229,255,0.3), 0 0 60px rgba(0,229,255,0.1);
    border: 2px solid rgba(0,229,255,0.25);
    animation: logoGlow 4s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    0% { box-shadow: 0 4px 32px rgba(0,229,255,0.3), 0 0 60px rgba(0,229,255,0.1); }
    100% { box-shadow: 0 4px 40px rgba(0,229,255,0.45), 0 0 80px rgba(0,229,255,0.15); }
}
.hero-title {
    font-size: 56px; font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 0;
}
.hero-brand {
    display: block; margin-top: 4px;
    background: linear-gradient(135deg, #ffffff, #C0C0C0, #ffffff, #C0C0C0);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 64px; letter-spacing: -2px;
    animation: brandShimmer 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0,229,255,0.28));
}
.hero-brand .bit {
    -webkit-text-fill-color: var(--accent); color: var(--accent);
}
@keyframes brandShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.hero-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.hero-feature {
    display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); background: rgba(18,26,45,0.7);
    border: 1px solid rgba(0,229,255,0.15); padding: 9px 18px; border-radius: 24px;
    backdrop-filter: blur(8px); transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0,229,255,0.05);
}
.hero-feature:hover {
    border-color: rgba(0,229,255,0.35);
    box-shadow: 0 0 20px rgba(0,229,255,0.12);
    color: var(--text-primary);
}
.hero-feature svg { color: var(--accent); flex-shrink: 0; }
.hero-stats-row {
    display: flex; align-items: stretch; gap: 12px;
    margin-bottom: 40px;
}
.hstat-inline {
    text-align: center; padding: 16px 24px;
    background: rgba(18,26,45,0.7); border: 1px solid rgba(0,229,255,0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
    transition: all 0.3s;
}
.hstat-inline:hover {
    border-color: rgba(0,229,255,0.3);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 16px rgba(0,229,255,0.1);
    transform: translateY(-2px);
}
.hstat-inline-val {
    font-size: 24px; font-weight: 800; font-family: var(--font-mono);
    color: var(--accent);
    text-shadow: 0 0 12px rgba(0,229,255,0.3);
}
.hstat-inline-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.hstat-divider { display: none; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* === SECTIONS === */
.section { padding: 80px 24px; position: relative; overflow: hidden; }
.section::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,229,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.section-dark { background: var(--bg-secondary); }
.section-dark::before {
    background: radial-gradient(ellipse, rgba(30,155,255,0.04) 0%, rgba(0,229,255,0.03) 50%, transparent 70%);
}
.section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 12px; }
.section-title {
    font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, #8FE9F7 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* === FEATURES GRID === */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    background: rgba(18,26,45,0.6); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 28px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
    backdrop-filter: blur(8px);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,229,255,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), rgba(30,155,255,0.8), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: rgba(0,229,255,0.3); transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(0,229,255,0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(30,155,255,0.1));
    border: 1px solid rgba(0,229,255,0.25); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; color: var(--accent-light);
    box-shadow: 0 0 16px rgba(0,229,255,0.1);
}
.feature-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); margin-bottom: 8px; }
.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; }

/* === MARKETS TABLE === */
.markets-filters {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
}
.market-filter-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
    cursor: pointer; background: none; border: 1px solid var(--border);
    color: var(--text-muted); transition: all var(--transition);
}
.market-filter-tab.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-light); }
.market-filter-tab:hover:not(.active) { border-color: var(--border-light); color: var(--text-secondary); }
.markets-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.markets-table { width: 100%; border-collapse: collapse; }
.markets-table th {
    background: var(--bg-card); padding: 14px 20px; text-align: left;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.markets-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.markets-table tr:last-child td { border-bottom: none; }
.markets-table tbody tr { background: var(--bg-base); transition: background var(--transition); }
.markets-table tbody tr:hover { background: var(--bg-card); }
.market-row-name { display: flex; flex-direction: column; gap: 2px; }
.market-row-sym { font-weight: 700; font-size: 15px; }
.market-row-coin { font-size: 12px; color: var(--text-muted); }
.market-price { font-family: var(--font-mono); font-weight: 600; }
.market-change { font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.market-change.pos { color: var(--green); background: var(--green-bg); }
.market-change.neg { color: var(--red); background: var(--red-bg); }
.market-vol, .market-cap { color: var(--text-secondary); font-family: var(--font-mono); font-size: 13px; }
.trade-btn {
    padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    background: var(--accent-glow2); border: 1px solid var(--border-accent);
    color: var(--accent-light); cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.trade-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* === CTA === */
.cta-section {
    padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
    background: var(--bg-secondary); border-top: 1px solid var(--border);
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(192,192,192,0.05) 0%, rgba(0,229,255,0.08) 40%, transparent 70%);
    animation: ctaGlow 6s ease-in-out infinite alternate;
}
.cta-section::after {
    content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), rgba(192,192,192,0.3), transparent);
}
@keyframes ctaGlow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}
.cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-section h2 {
    font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-section p { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === AUTH PAGES === */
.auth-page { min-height: calc(100vh - 100px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-left {
    background: var(--bg-secondary); border-right: 1px solid var(--border);
    padding: 60px; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.auth-left::before {
    content: ''; position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
}
.auth-left-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-glow); border: 1px solid var(--border-accent);
    color: var(--accent-light); padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin-bottom: 28px; width: fit-content;
}
.auth-left h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 16px; }
.auth-left p { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.auth-left-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.auth-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.auth-feature svg { color: var(--accent); flex-shrink: 0; }
.auth-security-badges { display: flex; flex-direction: column; gap: 8px; }
.auth-sec-badge {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-secondary);
}
.auth-sec-badge svg { color: var(--accent-light); flex-shrink: 0; }
.auth-right { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.auth-right h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-right .auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }
.form-input {
    background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
    padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px;
    transition: all var(--transition); outline: none; width: 100%;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-right: 44px; }
.form-input-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.form-checkbox-row a { color: var(--accent-light); }
.form-checkbox-row a:hover { text-decoration: underline; }
.custom-checkbox { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
    color: var(--text-secondary); transition: all var(--transition);
}
.social-btn:hover { border-color: var(--border-light); color: var(--text-primary); background: var(--bg-hover); }
.auth-footer-links { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-footer-links a { color: var(--accent-light); font-weight: 500; }
.auth-footer-links a:hover { text-decoration: underline; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.alert-error { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: var(--green-bg); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.form-select {
    background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
    padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px;
    transition: all var(--transition); outline: none; width: 100%; cursor: pointer;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-select option { background: var(--bg-card); }

/* === TRADE PAGE (styles are inline in trade.php) === */

/* === CABINET PAGE === */
.cabinet-page { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 100px); }
.cabinet-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 28px 0; display: flex; flex-direction: column; }
.cabinet-user { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.cabinet-avatar {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--accent), var(--azure));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: var(--on-accent); margin-bottom: 12px;
}
.cabinet-username { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.cabinet-email { font-size: 12px; color: var(--text-muted); }
.cabinet-nav { flex: 1; padding: 0 10px; }
.cab-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
    border: none; background: none; width: 100%; text-align: left; text-decoration: none; margin-bottom: 2px;
}
.cab-nav-item svg { color: var(--text-muted); flex-shrink: 0; }
.cab-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.cab-nav-item:hover svg { color: var(--accent-light); }
.cab-nav-item.active { background: var(--accent-glow2); color: var(--accent-light); }
.cab-nav-item.active svg { color: var(--accent-light); }
.cab-nav-item.danger { color: var(--red); }
.cab-nav-item.danger svg { color: var(--red); }
.cab-nav-sep { height: 1px; background: var(--border); margin: 10px 14px; }
.cabinet-content { padding: 32px; background: var(--bg-base); overflow-y: auto; }
.cab-section { display: none; }
.cab-section.active { display: block; }
.cab-section-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.cab-section-title svg { color: var(--accent-light); }
.balance-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.balance-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 22px; position: relative; overflow: hidden;
}
.balance-card.primary { background: linear-gradient(135deg, #0A6C9C 0%, #0B3B66 100%); border-color: rgba(0,229,255,0.35); box-shadow: 0 0 28px rgba(0,229,255,0.12); }
.balance-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.balance-card.primary .balance-card-label { color: rgba(255,255,255,0.7); }
.balance-card-amount { font-size: 26px; font-weight: 800; font-family: var(--font-mono); margin-bottom: 4px; }
.balance-card-unit { font-size: 13px; color: var(--text-muted); }
.balance-card.primary .balance-card-unit { color: rgba(255,255,255,0.6); }
.balance-card-icon { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); }
.data-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th { background: var(--bg-card-2); padding: 13px 18px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-hover); }

/* ============================================================
   Tx feed — банковский список операций
   ============================================================ */
.tx-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.tx-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--bg-hover); }
.tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-2);
    color: var(--text-muted);
    flex-shrink: 0;
}
.tx-item.tx-in  .tx-icon { background: var(--green-bg);  color: var(--green); }
.tx-item.tx-out .tx-icon { background: var(--red-bg);    color: var(--red); }
.tx-item.tx-bonus .tx-icon { background: var(--accent-glow); color: var(--accent-light); }
.tx-body { min-width: 0; }
.tx-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-sub {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-right { text-align: right; flex-shrink: 0; }
.tx-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.tx-item.tx-in  .tx-amount { color: var(--green); }
.tx-item.tx-out .tx-amount { color: var(--red); }
.tx-item.tx-bonus .tx-amount { color: var(--accent-light); }
.tx-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
}
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-buy { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-sell { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.badge-deposit { background: var(--accent-glow); color: var(--accent-light); border: 1px solid var(--border-accent); }
.badge-completed { background: var(--green-bg); color: var(--green); }
.badge-pending { background: var(--yellow-bg); color: var(--yellow); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { color: var(--text-muted); margin-bottom: 16px; opacity: 0.4; }
.empty-state h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.deposit-form { max-width: 480px; }
.deposit-form .form-group { margin-bottom: 16px; }
.deposit-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--accent-glow2); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); margin-top: 16px; }
.deposit-note svg { color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.security-list { display: flex; flex-direction: column; gap: 12px; }
.security-item { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); gap: 20px; }
.sec-item-info { display: flex; align-items: center; gap: 14px; }
.sec-item-icon { width: 40px; height: 40px; background: var(--accent-glow2); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-light); flex-shrink: 0; }
.sec-item-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.sec-item-text p { font-size: 13px; color: var(--text-muted); }
.quick-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

/* === TOAST === */
.toast { position: fixed; top: 100px; right: 20px; padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; z-index: 9999; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toast-in 0.3s ease-out; max-width: 360px; }
.toast-success { background: var(--green-bg); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.toast-error { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.toast-info { background: var(--accent-glow); border: 1px solid var(--border-accent); color: var(--accent-light); }
@keyframes toast-in { from{opacity:0;transform:translateX(60px)} to{opacity:1;transform:translateX(0)} }

/* === FOOTER === */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--silver); }.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.social-link:hover { border-color: var(--accent); color: var(--accent-light); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); gap: 20px; flex-wrap: wrap; }

/* === UTILS === */
.mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.container { max-width: 1200px; margin: 0 auto; }

/* === TRADE PAIRS LIST === */
.pair-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-glow2); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--accent-light); flex-shrink: 0; }
.pair-info { flex: 1; min-width: 0; }
.pair-sym { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.pair-name { display: block; font-size: 11px; color: var(--text-muted); }
.pair-right { text-align: right; }
.pair-price { display: block; font-size: 12px; font-family: var(--font-mono); font-weight: 600; }
.pair-chg { display: block; font-size: 11px; font-family: var(--font-mono); }
.pair-chg.pos { color: var(--green); }
.pair-chg.neg { color: var(--red); }
.trade-pair-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background var(--transition); border-bottom: 1px solid var(--border); }

/* === ORDER PANEL EXTRAS === */
.order-pct-row { display: flex; gap: 6px; margin-bottom: 14px; }
.pct-btn { flex: 1; padding: 6px 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); }
.pct-btn:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.panel-fees { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding: 8px 0 0; }
.panel-fees strong { color: var(--text-secondary); }
.open-orders-list { display: flex; flex-direction: column; gap: 4px; }
.empty-orders { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); padding: 10px 0; }

/* === CABINET EXTRAS === */
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.security-items { display: flex; flex-direction: column; gap: 12px; }
.sec-item-left { display: flex; align-items: center; gap: 14px; }
.sec-item-title { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.sec-item-sub { font-size: 13px; color: var(--text-muted); }

/* === FORM CHECK === */
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.form-check input[type=checkbox] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.form-check a { color: var(--accent-light); }
.form-check a:hover { text-decoration: underline; }
/* ==========================================
   RTL (Arabic) — зеркальные правки вёрстки
   ========================================== */
[dir="rtl"] body { text-align: right; }

/* Центрированные секции остаются по центру */
[dir="rtl"] .hero-center,
[dir="rtl"] .section-header,
[dir="rtl"] .cta-inner,
[dir="rtl"] .trust-status-bar,
[dir="rtl"] .hstat-inline,
[dir="rtl"] .hero-stats-row { text-align: center; }

/* Порядок flex-элементов в RTL браузер разворачивает сам —
   менять flex-direction вручную НЕ нужно. */

/* Статистика в шапке трейда: прижать к началу строки (слева в RTL) */
[dir="rtl"] .tp-stats { margin-left: 0; margin-right: auto; }

/* Формы и поля — выравнивание текста по правому краю */
[dir="rtl"] .form-input,
[dir="rtl"] .tp-input,
[dir="rtl"] .form-label,
[dir="rtl"] .tp-input-label { text-align: right; }

/* Иконка в поле ввода — переносим на левую сторону */
[dir="rtl"] .form-input-icon { left: 12px; right: auto; }

/* FAQ: стрелка и контент */
[dir="rtl"] .faq-question { text-align: right; }

/* Мобильное меню — выезжает справа уже по dir, ссылки выравниваем */
[dir="rtl"] .mobile-nav-link,
[dir="rtl"] .mobile-nav-lang-form { text-align: right; }

/* Числа/моноширинные значения оставляем LTR (цены, ID) */
[dir="rtl"] .hstat-inline-val,
[dir="rtl"] .tp-price,
[dir="rtl"] .market-price,
[dir="rtl"] .hmm-price,
[dir="rtl"] .mono,
[dir="rtl"] [class*="-mono"] { direction: ltr; unicode-bidi: embed; }
