:root {
    --bg: #0b0814;
    --bg-header: rgba(11, 8, 20, 0.8);
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --border: rgba(255,255,255,0.08);
    --text: #fafafa;
    --text-muted: rgba(255,255,255,0.6);
    --card-bg: rgba(255,255,255,0.03);
    --radius: 16px;
    --transition: 0.25s ease;
    --danger: #e17055;
    --success: #00b894;
    --warning: #fdcb6e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at 40% 10%, #1e163a 0%, #0b0814 70%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}
@media (min-width: 769px) { body { padding-bottom: 0; } }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(24px); background: var(--bg-header); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--accent), #3b2f8e); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.logo-text span { color: var(--accent-light); }
.desktop-nav { display: none; gap: 8px; align-items: center; }
.desktop-nav a, .desktop-nav .search-form { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 8px 14px; border-radius: 30px; font-size: 14px; color: var(--text-muted); transition: all var(--transition); }
.desktop-nav a:hover, .desktop-nav a.nav-active { background: rgba(255,255,255,0.05); color: #fff; }
.search-form { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: 0.5; pointer-events: none; }
.search-box { display: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; padding: 8px 16px 8px 38px; color: #fff; width: 200px; outline: none; }
.search-box:focus { border-color: var(--accent); }
.btn { padding: 8px 18px; border-radius: 30px; font-weight: 600; font-size: 13px; transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 15px rgba(108,92,231,0.3); }
.btn-accent:hover { background: #7d6ff0; }
.btn-telegram { background: #0088CC; color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.mobile-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,0.05); color: #fff; display: flex; align-items: center; justify-content: center; }
@media (min-width: 769px) { .desktop-nav { display: flex; } .search-box { display: block; } .mobile-actions { display: none; } }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh; background: #110c24; z-index: 200; padding: 24px 20px; transition: right 0.35s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 12px; }
.mobile-menu.open { right: 0; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.menu-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 16px; font-weight: 500; padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .close-btn { align-self: flex-end; color: #fff; padding: 8px; }
.mobile-menu-cta { background: var(--accent) !important; color: #fff !important; justify-content: center; margin-top: auto; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(11,8,20,0.92); backdrop-filter: blur(20px); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 10px 8px 14px; z-index: 90; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.bottom-nav a.active { color: var(--accent-light); }
.bottom-nav .nav-icon { display: flex; }
@media (min-width: 769px) { .bottom-nav { display: none; } }

.section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer { text-align: center; padding: 30px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 60px; }
.footer span { color: var(--accent-light); }

.flash-container { position: fixed; top: 80px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.flash { padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.flash-success { background: rgba(0,184,148,0.2); border: 1px solid var(--success); }
.flash-error { background: rgba(225,112,85,0.2); border: 1px solid var(--danger); }
.flash-info { background: rgba(108,92,231,0.2); border: 1px solid var(--accent); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 12px; color: #fff; outline: none; font-size: 15px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-select option { background: #110c24; }

.auth-page { max-width: 420px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.auth-card h1 { font-size: 24px; margin-bottom: 20px; }
.auth-links { margin-top: 16px; font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-links a { color: var(--accent-light); }

.status-success { color: var(--success); }
.status-pending { color: var(--warning); }
.status-error { color: var(--danger); }
