* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f0f4fe;
    --bg-secondary: #ffffff;
    --bg-sidebar: rgba(255, 255, 255, 0.85);
    --text-primary: #0a1628;
    --text-secondary: #4a5f7a;
    --text-muted: #8a9db5;
    --text-light: #b0c4d8;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.08);
    --border-color: rgba(0, 0, 0, 0.04);
    --gradient-start: #0f1f3d;
    --gradient-end: #1a3a6b;
    --gradient-accent: linear-gradient(135deg, #1a3a6b, #3a7abd);
    --gradient-active: linear-gradient(135deg, #1a3a6b, #2a5a8a);
    --glass-bg: rgba(255, 255, 255, 0.5);
    --nav-hover: rgba(26, 58, 107, 0.04);
    --nav-active: #1a3a6b;
    --nav-active-light: rgba(26, 58, 107, 0.08);
    --success: #0f9d58;
    --divider: rgba(0, 0, 0, 0.04);
    --usd-color: #1a3a6b;
    --usd-light: rgba(26, 58, 107, 0.08);
    --eur-color: #1a6b6b;
    --eur-light: rgba(26, 107, 107, 0.08);
    --rub-color: #0f9d58;
    --rub-light: rgba(15, 157, 88, 0.08);
    --radius-card: 16px;
    --radius-sm: 12px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 4px 20px rgba(26, 58, 107, 0.15);
    --btn-hover: rgba(26, 58, 107, 0.06);
    --telegram-color: #0088cc;
    --withdraw-color: #0f9d58;
    --withdraw-light: rgba(15, 157, 88, 0.08);
    --bottom-nav-bg: rgba(255, 255, 255, 0.92);
    --bottom-nav-border: rgba(0, 0, 0, 0.06);
    --bottom-nav-shadow: 0 -8px 40px rgba(0, 0, 0, 0.06);
    --bottom-nav-radius: 20px 20px 0 0;
    --brand-color: #3a7abd;
    --brand-glow: rgba(58, 122, 189, 0.3);
}

[data-theme="dark"] {
    --bg-primary: #080d17;
    --bg-secondary: #111b2e;
    --bg-sidebar: rgba(17, 27, 46, 0.92);
    --text-primary: #e8edf5;
    --text-secondary: #9aafc9;
    --text-muted: #5a6f89;
    --text-light: #3a4f69;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.04);
    --gradient-start: #0a1525;
    --gradient-end: #1a2d4a;
    --gradient-active: linear-gradient(135deg, #2a5a8a, #4a8ad4);
    --glass-bg: rgba(17, 27, 46, 0.4);
    --nav-hover: rgba(255, 255, 255, 0.03);
    --nav-active: #2a5a8a;
    --nav-active-light: rgba(42, 90, 138, 0.15);
    --divider: rgba(255, 255, 255, 0.04);
    --usd-color: #4a8ad4;
    --usd-light: rgba(74, 138, 212, 0.12);
    --eur-color: #4ad4d4;
    --eur-light: rgba(74, 212, 212, 0.12);
    --rub-color: #34a853;
    --rub-light: rgba(52, 168, 83, 0.12);
    --shadow-glow: 0 4px 20px rgba(42, 90, 138, 0.25);
    --btn-hover: rgba(255, 255, 255, 0.04);
    --telegram-color: #4a9fd4;
    --withdraw-color: #34a853;
    --withdraw-light: rgba(52, 168, 83, 0.12);
    --bottom-nav-bg: rgba(17, 27, 46, 0.95);
    --bottom-nav-border: rgba(255, 255, 255, 0.06);
    --bottom-nav-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
    --brand-color: #4a8ad4;
    --brand-glow: rgba(74, 138, 212, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 10px; }

/* ===== САЙДБАР ===== */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-color);
    padding: 24px 14px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: all 0.4s var(--transition);
    flex-shrink: 0;
    z-index: 100;
    overflow-y: auto;
}

/* Убираем подчеркивание у всех ссылок в сайдбаре */
.sidebar a,
.sidebar a:link,
.sidebar a:visited,
.sidebar a:hover,
.sidebar a:active,
.sidebar a:focus {
    text-decoration: none !important;
    outline: none !important;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px var(--brand-glow);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    letter-spacing: -0.5px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--gradient-accent);
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
}

.logo-icon:hover { transform: scale(1.05) rotate(-3deg); }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span { font-weight: 300; opacity: 0.3; }

/* ===== МЕНЮ ===== */
.nav-section { margin-bottom: 4px; }
.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 0 14px 8px;
    opacity: 0.5;
}
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--transition);
    width: 100%;
    text-align: left;
    letter-spacing: -0.2px;
    position: relative;
    text-decoration: none !important;
}

.nav-item:link,
.nav-item:visited,
.nav-item:hover,
.nav-item:active,
.nav-item:focus {
    text-decoration: none !important;
    outline: none !important;
}

.nav-item .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.3s var(--transition);
    background: var(--nav-hover);
    color: var(--text-secondary);
}
.nav-item:hover .icon-wrap {
    background: var(--nav-active-light);
    color: var(--nav-active);
    transform: scale(1.05);
}
.nav-item.active .icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.nav-item .nav-text { flex: 1; transition: 0.2s; }
.nav-item:hover {
    color: var(--text-primary);
    transform: translateX(2px);
    text-decoration: none !important;
}
.nav-item.active {
    background: var(--gradient-active);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: translateX(0);
    text-decoration: none !important;
}
.nav-item.active .nav-text { font-weight: 600; }
.nav-item .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    animation: pulse-badge 2s infinite;
}
.nav-item.active .badge { background: rgba(255, 255, 255, 0.2); }
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.nav-divider {
    height: 1px;
    background: var(--divider);
    margin: 6px 12px;
}
.nav-item.danger { color: #ea4335; }
.nav-item.danger .icon-wrap {
    background: rgba(234, 67, 53, 0.06);
    color: #ea4335;
}
.nav-item.danger:hover {
    background: rgba(234, 67, 53, 0.06);
    color: #ea4335;
}
.nav-item.danger:hover .icon-wrap {
    background: rgba(234, 67, 53, 0.12);
    color: #ea4335;
}
.nav-item.telegram { color: var(--telegram-color); }
.nav-item.telegram .icon-wrap {
    background: rgba(0, 136, 204, 0.08);
    color: var(--telegram-color);
}
.nav-item.telegram:hover {
    background: rgba(0, 136, 204, 0.06);
    color: var(--telegram-color);
}
.nav-item.telegram:hover .icon-wrap {
    background: rgba(0, 136, 204, 0.12);
    color: var(--telegram-color);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--divider);
}
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: 0.25s;
    cursor: pointer;
}
.user-card:hover { background: var(--nav-hover); }
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--brand-glow);
}
.user-info .name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}
.user-info .status {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.user-info .status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f9d58;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    padding: 28px 40px 100px;
    min-height: 100vh;
    transition: all 0.4s var(--transition);
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.page-title h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.page-title p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
    font-weight: 400;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--transition);
    position: relative;
}
.top-icon-btn:hover {
    background: var(--nav-active);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--brand-glow);
    transform: translateY(-2px);
}
.top-icon-btn.danger:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.2);
}

/* ===== ВЫБОР ЯЗЫКА ===== */
.lang-selector { position: relative; }
.lang-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow-hover);
    min-width: 140px;
    padding: 6px 0;
    display: none;
    z-index: 50;
    animation: fadeInUp 0.2s ease-out;
}
.lang-dropdown.open { display: block; }
.lang-dropdown .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}
.lang-dropdown .lang-item:hover {
    background: var(--nav-hover);
    color: var(--text-primary);
}
.lang-dropdown .lang-item.active {
    color: var(--nav-active);
    font-weight: 600;
}
.lang-dropdown .lang-item .flag { font-size: 16px; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== БАЛАНС ===== */
.balance-card {
    background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
    border-radius: 24px;
    padding: 28px 34px 32px;
    color: white;
    margin-bottom: 28px;
    box-shadow: 0 16px 48px rgba(15, 31, 61, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition);
}
.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.balance-card .orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.08;
}
.balance-card .orb-1 {
    width: 160px;
    height: 160px;
    top: -40px;
    right: 80px;
    background: radial-gradient(circle, #4a8ad4, transparent 70%);
}
.balance-card .orb-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: 40px;
    background: radial-gradient(circle, #0f9d58, transparent 70%);
}
.balance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.balance-left .label {
    font-size: 12px;
    opacity: 0.5;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.balance-left .amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    transition: all 0.3s ease;
}
.balance-left .amount small {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.4;
    margin-left: 6px;
    letter-spacing: -0.3px;
}
.currency-selector-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.currency-selector-label {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 400;
    letter-spacing: 0.5px;
}
.currency-selector {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.currency-btn {
    padding: 4px 14px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.currency-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}
.currency-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.balance-sub {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.balance-sub span {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 4px 14px 4px 10px;
    border-radius: 40px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    opacity: 0.8;
}
.balance-sub span i { font-size: 12px; opacity: 0.6; }

/* ===== КАРТОЧКИ ===== */
.wallets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.wallet-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 18px 20px 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wallet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--brand-color);
}
.wallet-card .card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wallet-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    transition: 0.3s;
}
.wallet-card.usd .card-icon {
    background: var(--usd-light);
    color: var(--usd-color);
}
.wallet-card.eur .card-icon {
    background: var(--eur-light);
    color: var(--eur-color);
}
.wallet-card.rub .card-icon {
    background: var(--rub-light);
    color: var(--rub-color);
}
.wallet-card:hover .card-icon { transform: scale(1.05); }
.wallet-card .card-info { flex: 1; min-width: 0; }
.wallet-card .card-info .currency-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}
.wallet-card .card-info .currency-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.wallet-card .card-status {
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(15, 157, 88, 0.08);
    color: #0f9d58;
    flex-shrink: 0;
    align-self: flex-start;
}
.wallet-card .card-balance-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.wallet-card .card-balance {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}
.wallet-card .card-balance small {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 3px;
}
.wallet-card .card-account {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    letter-spacing: 0.3px;
}
.wallet-card .card-account .account-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    opacity: 0.6;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.wallet-card .card-account .account-number {
    background: var(--nav-hover);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 11px;
    color: var(--text-secondary);
}
.wallet-card .card-account .copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s var(--transition);
    padding: 2px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-card .card-account .copy-btn:hover {
    background: var(--nav-hover);
    color: var(--nav-active);
    transform: scale(1.05);
}
.wallet-card .card-account .copy-btn.copied { color: #0f9d58; }

.wallet-card .card-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}
.wallet-card .card-actions .action-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 40px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: 0.2px;
}
.wallet-card .card-actions .action-btn i { font-size: 12px; }
.wallet-card .card-actions .action-btn.deposit {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 16px var(--brand-glow);
}
.wallet-card .card-actions .action-btn.deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--brand-glow);
}
.wallet-card .card-actions .action-btn.transfer {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}
.wallet-card .card-actions .action-btn.transfer:hover {
    background: var(--btn-hover);
    border-color: var(--brand-color);
    color: var(--nav-active);
    transform: translateY(-2px);
}
.wallet-card .card-actions .action-btn.withdraw {
    background: var(--withdraw-light);
    color: var(--withdraw-color);
    border: 1.5px solid rgba(15, 157, 88, 0.15);
}
.wallet-card .card-actions .action-btn.withdraw:hover {
    background: rgba(15, 157, 88, 0.12);
    border-color: var(--withdraw-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 157, 88, 0.12);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.25s;
}
.mobile-toggle:hover {
    background: var(--nav-active);
    color: white;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 99;
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bottom-nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--bottom-nav-border);
    padding: 14px 8px 18px;
    z-index: 50;
    box-shadow: var(--bottom-nav-shadow);
    justify-content: space-around;
    align-items: center;
    transition: background 0.4s ease, border-color 0.4s ease;
    border-radius: var(--bottom-nav-radius);
}
.bottom-nav::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.5;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.bottom-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--bottom-nav-radius);
    background: var(--gradient-accent);
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

/* Убираем подчеркивание у ссылок в нижней навигации */
.bottom-nav a,
.bottom-nav a:link,
.bottom-nav a:visited,
.bottom-nav a:hover,
.bottom-nav a:active,
.bottom-nav a:focus {
    text-decoration: none !important;
    outline: none !important;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-family: 'Inter', sans-serif;
    min-width: 56px;
    letter-spacing: 0.2px;
    position: relative;
    text-decoration: none !important;
}

.bottom-nav-item:link,
.bottom-nav-item:visited,
.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item:focus {
    text-decoration: none !important;
    outline: none !important;
}

.bottom-nav-item i { font-size: 20px; transition: 0.3s; }
.bottom-nav-item .nav-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}
.bottom-nav-item.active {
    color: var(--nav-active);
    background: var(--nav-active-light);
    text-decoration: none !important;
}
.bottom-nav-item.active i {
    color: var(--nav-active);
    transform: translateY(-3px) scale(1.05);
}
.bottom-nav-item.active .nav-label { opacity: 1; font-weight: 600; }
.bottom-nav-item:hover { color: var(--text-primary); text-decoration: none !important; }
.bottom-nav-item:hover i { transform: translateY(-2px); }
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--brand-glow);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.balance-card { animation: fadeInUp 0.5s ease-out; }
.wallet-card {
    animation: fadeInUp 0.5s ease-out both;
}
.wallet-card:nth-child(1) { animation-delay: 0.05s; }
.wallet-card:nth-child(2) { animation-delay: 0.1s; }
.wallet-card:nth-child(3) { animation-delay: 0.15s; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 500;
    z-index: 200;
    animation: toast-in 0.3s ease-out;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast-message i { color: #0f9d58; font-size: 16px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .sidebar { width: 220px; padding: 20px 12px; }
    .main-content { padding: 22px 24px 100px; }
    .balance-left .amount { font-size: 34px; }
    .wallets-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    .wallet-card .card-balance { font-size: 24px; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        width: 290px;
        height: 100vh;
        border-right: none;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.06);
        transition: left 0.35s var(--transition);
        z-index: 100;
        padding: 20px 16px;
        background: var(--bg-secondary);
        backdrop-filter: blur(30px);
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay.open { display: block; }
    .mobile-toggle { display: flex; }
    .bottom-nav { display: flex; }

    .main-content {
        padding: 16px 14px 80px;
        width: 100%;
    }
    .top-bar { margin-bottom: 20px; gap: 10px; }
    .top-bar-right { gap: 2px; }
    .top-icon-btn { width: 36px; height: 36px; font-size: 14px; }
    .page-title h1 { font-size: 20px; }
    .page-title p { font-size: 12px; }

    .balance-card {
        padding: 20px 22px 24px;
        border-radius: 20px;
    }
    .balance-left .amount { font-size: 28px; }
    .balance-left .amount small { font-size: 15px; }
    .balance-sub span { font-size: 11px; padding: 3px 10px; }

    .currency-selector-wrap { gap: 6px; }
    .currency-btn { font-size: 11px; padding: 3px 12px; }
    .currency-selector-label { font-size: 10px; }

    .wallets-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .wallet-card {
        padding: 16px 16px 16px;
        border-radius: 14px;
        gap: 8px;
    }
    .wallet-card .card-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        border-radius: 12px;
    }
    .wallet-card .card-balance { font-size: 22px; }
    .wallet-card .card-balance small { font-size: 13px; }
    .wallet-card .card-info .currency-name { font-size: 14px; }
    .wallet-card .card-actions .action-btn {
        font-size: 10px;
        padding: 6px 8px;
    }
    .wallet-card .card-actions .action-btn i { font-size: 11px; }

    .nav-item .icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .nav-item { padding: 8px 12px; font-size: 13px; }
    .nav-section-label { font-size: 9px; padding: 0 12px 6px; }

    .bottom-nav {
        padding: 12px 6px 16px;
        border-radius: 16px 16px 0 0;
    }
    .bottom-nav::before {
        left: 8%;
        right: 8%;
        height: 2px;
        top: -1px;
    }
    .bottom-nav-item {
        min-width: 48px;
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    .bottom-nav-item i { font-size: 18px; }
    .bottom-nav-item .nav-label { font-size: 8px; }
    .bottom-nav-item.active::after {
        width: 16px;
        height: 2px;
        top: -4px;
    }
    .bottom-nav-item.active i { transform: translateY(-2px) scale(1.05); }
}

@media (max-width: 480px) {
    .wallets-grid { grid-template-columns: 1fr; }
    .balance-left .amount { font-size: 24px; }
    .balance-left .amount small { font-size: 13px; }

    .top-bar-right { gap: 2px; }
    .top-icon-btn { width: 32px; height: 32px; font-size: 12px; }

    .currency-btn { font-size: 10px; padding: 2px 10px; }
    .currency-selector-label { font-size: 9px; }

    .wallet-card .card-balance { font-size: 24px; }
    .wallet-card .card-actions .action-btn {
        font-size: 10px;
        padding: 6px 8px;
    }

    .bottom-nav {
        padding: 10px 4px 14px;
        border-radius: 14px 14px 0 0;
    }
    .bottom-nav::before {
        left: 6%;
        right: 6%;
        height: 2px;
        top: -1px;
    }
    .bottom-nav-item {
        min-width: 40px;
        padding: 4px 6px;
        font-size: 9px;
        border-radius: 10px;
    }
    .bottom-nav-item i { font-size: 16px; }
    .bottom-nav-item .nav-label { font-size: 7px; }
    .bottom-nav-item.active::after {
        width: 12px;
        height: 2px;
        top: -3px;
    }
}

@media (max-width: 380px) {
    .balance-card {
        padding: 14px 14px 18px;
        border-radius: 16px;
    }
    .balance-left .amount { font-size: 20px; }
    .balance-left .amount small { font-size: 11px; }
    .main-content { padding: 10px 8px 70px; }
    .balance-sub span { font-size: 9px; padding: 2px 8px; }
    .wallet-card .card-balance { font-size: 20px; }
    .wallet-card .card-actions .action-btn {
        font-size: 9px;
        padding: 4px 6px;
    }
    .bottom-nav { padding: 8px 4px 12px; }
    .bottom-nav-item { min-width: 36px; padding: 3px 4px; }
    .bottom-nav-item i { font-size: 14px; }
    .bottom-nav-item .nav-label { font-size: 6px; }
}


/* Убираем подчеркивание у иконок в верхней панели */
.top-bar-right a.top-icon-btn {
    text-decoration: none !important;
}

.top-bar-right a.top-icon-btn:hover {
    text-decoration: none !important;
}
/* ===== УБИРАЕМ ПОДЧЕРКИВАНИЕ У ССЫЛОК В ВЕРХНЕЙ ПАНЕЛИ ===== */
.top-bar-right a.top-icon-btn,
.top-bar-right a.top-icon-btn:link,
.top-bar-right a.top-icon-btn:visited,
.top-bar-right a.top-icon-btn:hover,
.top-bar-right a.top-icon-btn:active,
.top-bar-right a.top-icon-btn:focus {
    text-decoration: none !important;
    outline: none !important;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .top-bar-right a.top-icon-btn,
    .top-bar-right a.top-icon-btn:link,
    .top-bar-right a.top-icon-btn:visited,
    .top-bar-right a.top-icon-btn:hover,
    .top-bar-right a.top-icon-btn:active,
    .top-bar-right a.top-icon-btn:focus {
        text-decoration: none !important;
        outline: none !important;
    }
}

/* Дополнительный фикс для всех состояний */
a.top-icon-btn {
    text-decoration: none !important;
}

a.top-icon-btn:hover {
    text-decoration: none !important;
}