/* ========================================
   CSS Variables — CYBERPUNK EDITION
   ======================================== */
:root {
    --neon-cyan: #00f5ff;
    --neon-magenta: #ff00cc;
    --neon-orange: #ff6a00;
    --neon-green: #39ff14;
    --dark-bg: #050509;
    --dark-panel: #0a0a14;
    --dark-card: #0d0d1a;
    --dark-border: #1a1a2e;
    --text-primary: #e0e0ff;
    --text-secondary: #8888aa;
    --glow-cyan: 0 0 10px #00f5ff, 0 0 30px #00f5ff55, 0 0 60px #00f5ff22;
    --glow-magenta: 0 0 10px #ff00cc, 0 0 30px #ff00cc55, 0 0 60px #ff00cc22;
    --glow-orange: 0 0 10px #ff6a00, 0 0 30px #ff6a0055;

    /* Mapped to existing variable names for compatibility */
    --bg: #050509;
    --bg-2: #0a0a14;
    --bg-card: rgba(13, 13, 26, 0.93);
    --bg-elevated: rgba(13, 13, 26, 0.97);
    --bg-input: rgba(10, 10, 20, 0.99);
    --bg-soft: rgba(15, 15, 28, 0.86);

    --text: #e0e0ff;
    --text-muted: #555577;

    --accent: #00f5ff;
    --accent-strong: #00ddee;
    --accent-secondary: #ff00cc;
    --accent-secondary-soft: rgba(255, 0, 204, 0.14);
    --accent-2: #39ff14;

    --safe-top: 0px;
    --safe-bottom: 0px;
    --safe-left: 0px;
    --safe-right: 0px;
    --accent-glow: rgba(0, 245, 255, 0.32);
    --accent-glow-strong: rgba(0, 245, 255, 0.52);
    --pink-glow: rgba(255, 0, 204, 0.24);

    --success: #39ff14;
    --success-glow: rgba(57, 255, 20, 0.22);
    --warning: #ff6a00;
    --danger: #ff00cc;

    --glow: rgba(0, 245, 255, 0.16);
    --glow-border: rgba(0, 245, 255, 0.42);
    --glow-border-subtle: rgba(0, 245, 255, 0.14);

    --border: rgba(0, 245, 255, 0.13);
    --border-strong: rgba(0, 245, 255, 0.26);
    --border-glow: rgba(0, 245, 255, 0.20);

    --radius: 5px;
    --radius-sm: 4px;
    --radius-xs: 2px;

    --shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
    --shadow-glow: 0 0 28px rgba(0, 245, 255, 0.07);
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.65);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 5%, rgba(0, 245, 255, 0.07), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(255, 0, 204, 0.06), transparent 26%),
        radial-gradient(circle at 50% 95%, rgba(255, 106, 0, 0.05), transparent 30%),
        linear-gradient(180deg, #050509 0%, #050509 42%, #050509 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(0, 245, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.022) 1px, transparent 1px),
        linear-gradient(rgba(255, 0, 204, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 204, 0.008) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.06));
}

/* Scanline CRT effect */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 245, 255, 0.015) 2px,
        rgba(0, 245, 255, 0.015) 4px
    );
}

/* ─── SCAN LINE (moving beam) ─── */
@keyframes scan-line-move {
    0%   { transform: translateY(-100vh); opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 245, 255, 0.6) 20%, rgba(0, 245, 255, 0.9) 50%, rgba(0, 245, 255, 0.6) 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.8), 0 0 20px rgba(0, 245, 255, 0.4);
    animation: scan-line-move 5s linear infinite;
    pointer-events: none;
    z-index: 9997;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ========================================
   Loader
   ======================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s, visibility 0.3s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(245, 228, 45, 0.12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    box-shadow: 0 0 24px rgba(245, 228, 45, 0.28), 0 0 8px rgba(0, 212, 255, 0.18);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.88; filter: brightness(1.12); }
}

@keyframes glitch-text {
    0%, 88%, 100% {
        transform: none;
        text-shadow: 0 0 8px rgba(245, 228, 45, 0.5), 0 0 20px rgba(245, 228, 45, 0.2);
    }
    90% {
        transform: skewX(-3deg) translateX(3px);
        text-shadow: -3px 0 rgba(0, 212, 255, 0.7), 3px 0 rgba(255, 0, 85, 0.7);
    }
    92% {
        transform: skewX(2deg) translateX(-2px);
        text-shadow: 3px 0 rgba(0, 212, 255, 0.6), -3px 0 rgba(255, 0, 85, 0.6);
    }
    94% { transform: skewX(-1deg); }
}

@keyframes cyber-border-glow {
    0%, 100% { border-color: rgba(245, 228, 45, 0.20); box-shadow: 0 0 8px rgba(245, 228, 45, 0.08); }
    50% { border-color: rgba(245, 228, 45, 0.40); box-shadow: 0 0 18px rgba(245, 228, 45, 0.16); }
}

/* ========================================
   App Container
   ======================================== */
.app {
    min-height: 100vh;
    padding-bottom: max(var(--safe-bottom), env(safe-area-inset-bottom, 20px));
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    opacity: 0;
    transition: opacity 0.4s;
}

.app.visible {
    opacity: 1;
}

@media (min-width: 768px) {
    html, body {
        overflow: hidden;
    }

    body {
        padding: 24px 0;
    }

    .app {
        width: min(100%, 430px);
        height: calc(100vh - 48px);
        min-height: calc(100vh - 48px);
        margin: 0 auto;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid rgba(245, 228, 45, 0.16);
        background: linear-gradient(180deg, rgba(7, 5, 16, 0.96), rgba(5, 4, 12, 0.98));
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 60px rgba(245, 228, 45, 0.06), 0 0 120px rgba(0, 212, 255, 0.03);
    }

    .tab-page {
        min-height: 100%;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 94px;
    }

    .loader {
        background: rgba(2, 4, 11, 0.92);
    }

    .sheet-overlay {
        left: 50%;
        right: auto;
        width: 430px;
        transform: translateX(-50%);
        border-radius: 8px;
    }

    .sheet {
        left: 50%;
        right: auto;
        width: 430px;
        bottom: 24px;
        transform: translate(-50%, 100%);
        border-radius: 8px;
        max-height: calc(100vh - 96px);
    }

    .sheet.visible {
        transform: translate(-50%, 0);
    }

    .tab-bar {
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
        bottom: 0;
        transform: none;
        border-radius: 0 0 8px 8px;
        border: 1px solid rgba(245, 228, 45, 0.14);
        border-top: 1px solid var(--border-glow);
        border-bottom: none;
        overflow: hidden;
    }
}

.auth-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
}

.auth-shell.visible {
    display: flex;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 228, 45, 0.07), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(3, 2, 8, 0.85), rgba(3, 2, 8, 0.97));
}

.auth-panel {
    position: relative;
    width: min(100%, 460px);
    padding: 26px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(8, 5, 18, 0.97), rgba(5, 4, 12, 0.99)),
        linear-gradient(135deg, rgba(245, 228, 45, 0.05), transparent 40%);
    border: 1px solid rgba(245, 228, 45, 0.20);
    box-shadow:
        0 0 0 1px rgba(245, 228, 45, 0.08) inset,
        0 30px 80px rgba(0, 0, 0, 0.72),
        0 0 40px rgba(245, 228, 45, 0.08);
    backdrop-filter: blur(20px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.auth-logo,
.auth-kicker,
.auth-title,
.sheet-title,
.tab-page-header h1,
.sub-name {
    font-family: 'Orbitron', sans-serif;
}

.auth-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.18), rgba(200, 160, 0, 0.12));
    color: var(--accent-strong);
    font-size: 24px;
    box-shadow: 0 0 28px rgba(245, 228, 45, 0.20), inset 0 0 20px rgba(245, 228, 45, 0.08);
    animation: neon-pulse 3s ease-in-out infinite;
}

.auth-kicker {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.24em;
    margin-bottom: 6px;
}

.auth-title {
    font-size: 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 0 16px rgba(245, 228, 45, 0.25);
    animation: glitch-text 10s ease-in-out infinite;
}

.auth-subtitle,
.auth-note {
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-tab {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(11, 21, 42, 0.84);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
}

.auth-tab.active {
    color: var(--accent);
    border-color: rgba(245, 228, 45, 0.35);
    background: linear-gradient(180deg, rgba(20, 18, 4, 0.95), rgba(14, 12, 3, 0.95));
    box-shadow: inset 0 0 20px rgba(245, 228, 45, 0.08), 0 0 18px rgba(245, 228, 45, 0.06);
}

.auth-error {
    min-height: 22px;
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 6px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.auth-form.active {
    display: flex;
}

.auth-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.auth-input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(153, 82, 128, 0.18);
    background: linear-gradient(180deg, rgba(8, 16, 33, 0.98), rgba(8, 15, 30, 0.98));
    color: var(--text);
    font-size: 17px;
    outline: none;
    transition: var(--transition);
}

.auth-input:focus {
    border-color: rgba(255, 79, 191, 0.44);
    box-shadow: 0 0 0 3px rgba(255, 79, 191, 0.10), 0 0 22px rgba(255, 79, 191, 0.08);
}

.auth-submit {
    margin-top: 14px;
}

.auth-note {
    margin-top: 14px;
    font-size: 13px;
}

/* ========================================
   Header
   ======================================== */
.app-header {
    padding: calc(var(--safe-top) + 12px) 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logout-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 19, 39, 0.88), rgba(9, 16, 32, 0.88));
    border: 1px solid rgba(153, 82, 128, 0.2);
    color: var(--accent-strong);
    box-shadow: 0 0 18px rgba(255, 79, 191, 0.06);
    transition: var(--transition);
}

.header-logout-btn:active {
    transform: scale(0.96);
    border-color: rgba(255, 79, 191, 0.34);
    box-shadow: 0 0 22px rgba(255, 79, 191, 0.10);
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: rgba(5, 11, 24, 0.84);
    border-radius: 100px;
    border: 1px solid rgba(153, 82, 128, 0.18);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.profile-btn:active {
    transform: scale(0.97);
    background: var(--bg-elevated);
    border-color: var(--glow-border);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.95) 0%, rgba(180, 140, 0, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #050309;
    box-shadow: 0 0 10px rgba(245, 228, 45, 0.22);
}

.profile-balance {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    display: none;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 8px 16px;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0.88), rgba(5, 10, 21, 0.82));
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.status-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 228, 45, 1) 0%, rgba(200, 158, 0, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #050309;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 228, 45, 0.22);
}
.status-bar.active .status-icon-sm { background: linear-gradient(135deg, var(--success) 0%, #00c874 100%); color: #030a05; box-shadow: 0 0 18px rgba(0, 255, 159, 0.28); }
.status-bar.inactive .status-icon-sm { background: linear-gradient(135deg, var(--danger) 0%, #cc0044 100%); color: #fff; box-shadow: 0 0 16px rgba(255, 0, 85, 0.28); }
.status-bar.frozen .status-icon-sm { background: linear-gradient(135deg, var(--warning) 0%, #cc6e00 100%); color: #050309; }
.status-text-sm { font-size: 15px; font-weight: 700; color: var(--text); display: block; }
.status-sub-sm { font-size: 12px; color: var(--text-muted); display: block; margin-top: 1px; }
}

/* ========================================
   Cards
   ======================================== */
.card {
    margin: 0 16px 16px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0.88), rgba(5, 10, 21, 0.82));
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Connection Card */
.connection-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.connection-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.connection-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.connection-value {
    font-weight: 600;
}

/* Stats Card */
.stats-card {
    padding: 16px 20px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.stat {
    text-align: center;
    flex: 1;
    padding: 8px 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat.highlight {
    border: 1px solid var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f0d400 0%, #f5e42d 55%, #ffe566 100%);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #050309;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow:
        0 0 14px rgba(245, 228, 45, 0.55),
        0 0 32px rgba(245, 228, 45, 0.28),
        0 8px 24px rgba(245, 228, 45, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.20);
    text-transform: uppercase;
    animation: cp-btn-glow 2.4s ease-in-out infinite;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 14px rgba(245, 228, 45, 0.20);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, rgba(11, 22, 45, 0.92), rgba(10, 19, 38, 0.92));
    border: 1px solid rgba(0, 212, 255, 0.30);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.14),
        0 0 22px rgba(0, 212, 255, 0.07),
        inset 0 0 12px rgba(0, 212, 255, 0.04);
}

.btn-secondary:active {
    background: var(--bg-input);
}

/* ========================================
   Quick Actions Grid
   ======================================== */
.quick-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    width: calc(25% - 9px);
    min-width: 72px;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0.86), rgba(5, 10, 21, 0.80));
    border-radius: var(--radius-sm);
    border: 1px solid var(--glow-border-subtle);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quick-btn:active {
    transform: scale(0.95);
    background: var(--bg-elevated);
    border-color: var(--glow-border);
    box-shadow: 0 0 12px var(--glow);
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.14), rgba(200, 158, 0, 0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-strong);
    box-shadow:
        0 0 12px rgba(245, 228, 45, 0.28),
        inset 0 0 14px rgba(245, 228, 45, 0.08);
}

.quick-btn span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}


/* ========================================
   Menu
   ======================================== */
.menu {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    width: 100%;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0.86), rgba(5, 10, 21, 0.80));
    border-radius: var(--radius-sm);
    border: 1px solid var(--glow-border-subtle);
    text-align: left;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-item:active {
    background: var(--bg-elevated);
    transform: scale(0.99);
    border-color: var(--glow-border);
}

.menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.12), rgba(200, 158, 0, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-strong);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(245, 228, 45, 0.22), inset 0 0 10px rgba(245, 228, 45, 0.06);
}

.menu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
}

.menu-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-arrow {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Bottom Sheet
   ======================================== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sheet-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: linear-gradient(180deg, rgba(9, 6, 20, 0.99), rgba(6, 4, 14, 0.99));
    border-radius: 8px 8px 0 0;
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 228, 45, 0.22);
    border-left: 1px solid rgba(245, 228, 45, 0.10);
    border-right: 1px solid rgba(245, 228, 45, 0.10);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 228, 45, 0.07), 0 0 20px rgba(0, 212, 255, 0.04);
}

.sheet.visible {
    transform: translateY(0);
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
}

.sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ========================================
   Toast
   ======================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 40px);
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(9, 7, 20, 0.99), rgba(6, 5, 14, 0.99));
    border: 1px solid rgba(245, 228, 45, 0.30);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(245, 228, 45, 0.12), 0 18px 48px rgba(0, 0, 0, 0.72);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

/* ========================================
   Sheet Content Styles
   ======================================== */

/* Tariffs Grouped */
.tariffs-grouped {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tariff-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.92) 0%, rgba(0, 212, 255, 0.78) 100%);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #050309;
    margin-bottom: 4px;
}

.tariff-group-header i {
    font-size: 16px;
}

.tariff-subgroup-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px 6px;
    margin-top: 8px;
    border-bottom: 1px solid var(--border);
}

.tariff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tariff-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 13, 27, 0.88), rgba(5, 11, 23, 0.82));
    border-radius: var(--radius-sm);
    border: 1px solid var(--glow-border-subtle);
    transition: var(--transition);
    cursor: pointer;
    gap: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tariff-item:active {
    border-color: var(--accent-strong);
    background: var(--bg-input);
    box-shadow: 0 0 20px rgba(255, 79, 191, 0.10);
}

.tariff-info {
    flex: 1;
    min-width: 0;
}

.tariff-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tariff-duration {
    font-size: 13px;
    color: var(--text-muted);
}

.tariff-features {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.tariff-price {
    text-align: right;
    flex-shrink: 0;
}

.tariff-price .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-strong);
    text-shadow: 0 0 14px rgba(255, 79, 191, 0.16);
}

.tariff-price .per-month {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tariff-arrow {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Payment Methods */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.payment-btn {
    padding: 16px;
    background: linear-gradient(180deg, rgba(11, 22, 45, 0.94), rgba(9, 18, 36, 0.94));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(153, 82, 128, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-btn:active {
    border-color: var(--accent-strong);
    box-shadow: 0 0 18px rgba(255, 79, 191, 0.08);
}

.payment-btn i {
    font-size: 24px;
    color: var(--accent-strong);
}

.payment-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Input */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(8, 16, 33, 0.98), rgba(8, 15, 31, 0.98));
    border: 1px solid rgba(153, 82, 128, 0.18);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.input:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(255, 79, 191, 0.08);
}

.input::placeholder {
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}


/* ========================================
   Subscription Carousel
   ======================================== */
.subscription-carousel {
    margin: 0 16px 16px;
    position: relative;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 4px;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.subscription-card {
    flex: 0 0 calc(100% - 8px);
    scroll-snap-align: center;
    background: linear-gradient(180deg, rgba(6, 13, 27, 0.90), rgba(5, 10, 22, 0.84));
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: calc(100% - 8px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card.active {
    border-color: rgba(99, 247, 167, 0.34);
    box-shadow: 0 0 22px rgba(99, 247, 167, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.subscription-card.frozen {
    border-color: rgba(255, 200, 87, 0.34);
    box-shadow: 0 0 22px rgba(255, 200, 87, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.subscription-card.expired {
    border-color: rgba(255, 92, 134, 0.34);
    box-shadow: 0 0 22px rgba(255, 92, 134, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-name {
    font-size: 18px;
    font-weight: 700;
}

.sub-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sub-status.active {
    background: rgba(0, 210, 106, 0.15);
    color: var(--success);
}

.sub-status.frozen {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.sub-status.expired {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

.sub-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.sub-row .label {
    color: var(--text-secondary);
}

.sub-row .value {
    font-weight: 500;
}

.sub-actions {
    display: flex;
    gap: 10px;
}

.sub-actions .btn-primary,
.sub-actions .btn-secondary {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.carousel-dot.active {
    background: linear-gradient(90deg, var(--accent-strong), #ff9ce6);
    width: 20px;
    border-radius: 4px;
}

/* No subscription state */
.no-subscription {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(180deg, rgba(6, 13, 27, 0.90), rgba(5, 10, 22, 0.84));
    border-radius: var(--radius);
    border: 1px solid var(--border-glow);
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.no-subscription i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-subscription h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.no-subscription p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}


/* ========================================
   App Selection Grid
   ======================================== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.app-btn:active {
    transform: scale(0.97);
    border-color: var(--accent);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.app-icon.happ {
    background: linear-gradient(135deg, #f0d400 0%, #ffe566 100%);
    color: #050309;
}

.app-icon.v2raytun {
    background: linear-gradient(135deg, #12d7ff 0%, #7dff72 100%);
}

.app-name {
    font-size: 15px;
    font-weight: 600;
}

.app-desc {
    font-size: 11px;
    color: var(--text-muted);
}


/* ========================================
   Key Selection List
   ======================================== */
.keys-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.key-select-item:active {
    border-color: var(--accent);
    background: var(--bg-input);
}

.key-select-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.key-select-name {
    font-size: 15px;
    font-weight: 600;
}

.key-select-expiry {
    font-size: 12px;
    color: var(--text-muted);
}

.key-select-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.key-select-status.active {
    background: rgba(0, 210, 106, 0.15);
    color: var(--success);
}

.key-select-status.frozen {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.key-select-status.expired {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}


/* ========================================
   Settings
   ======================================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.setting-icon {
    color: var(--accent-strong);
    width: 20px;
    text-align: center;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    border-radius: 28px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Language Selection */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: left;
    transition: var(--transition);
    width: 100%;
}

.lang-item:active {
    background: var(--bg-input);
}

.lang-item.active {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

.lang-flag {
    font-size: 24px;
}

.lang-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.lang-check {
    color: var(--accent);
    font-size: 16px;
}


/* ========================================
   Support Chat
   ======================================== */
.support-chat {
    display: flex;
    flex-direction: column;
    height: 400px;
    max-height: 60vh;
}

.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-welcome {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.support-welcome i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.7;
}

.support-welcome p {
    font-size: 14px;
    line-height: 1.6;
}

.support-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.support-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: #050309;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

.support-msg-admin {
    align-self: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.support-msg-text {
    word-break: break-word;
}

.support-msg-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.support-input-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.support-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.support-input:focus {
    border-color: var(--accent);
}

.support-input::placeholder {
    color: var(--text-muted);
}

.support-send-btn {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    color: #050309;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 14px rgba(245, 228, 45, 0.24);
}

.support-send-btn:active {
    transform: scale(0.95);
}

.support-attach-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.support-attach-btn:active {
    transform: scale(0.95);
    color: var(--accent);
}

.support-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.support-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-file-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

.support-media-img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    object-fit: cover;
}

.support-media-video {
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.support-media-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: 8px;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 4px;
}

.media-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-fullscreen-img {
    max-width: 85%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 8px;
}

.media-fullscreen-wrap {
    position: relative;
    display: inline-block;
}

.media-fullscreen-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.support-close-btn {
    margin-top: 16px;
    width: 100%;
}

/* Extend range slider */
.extend-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-card);
    outline: none;
    cursor: pointer;
}
.extend-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s;
}
.extend-range::-webkit-slider-thumb:active {
    transform: scale(1.15);
}
.extend-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}
.extend-range::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-card);
}

/* ========================================
   Tariff Configurator
   ======================================== */
.cfg-header {
    text-align: center;
    padding: 8px 0 20px;
}
.cfg-header .cfg-icon {
    font-size: 44px;
    margin-bottom: 8px;
}
.cfg-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cfg-header .cfg-duration {
    font-size: 13px;
    color: var(--text-muted);
}
.cfg-section {
    margin-bottom: 16px;
}
.cfg-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cfg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cfg-chip {
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.cfg-chip:active {
    transform: scale(0.95);
}
.cfg-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #050309;
    font-weight: 700;
    box-shadow: 0 2px 14px rgba(245, 228, 45, 0.30);
}
.cfg-chip.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.addons-current {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.cfg-breakdown {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.cfg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.cfg-row.total {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.cfg-row .cfg-val {
    font-weight: 600;
}
.cfg-row.total .cfg-val {
    color: var(--accent);
}
.cfg-price-anim {
    transition: opacity 0.15s ease;
}


.nodes-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--success) 0%, #00b85c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}
.nodes-banner-text {
    flex: 1;
    min-width: 0;
}
.nodes-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nodes-banner-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.nodes-banner-btn {
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.nodes-banner-btn:active {
    transform: scale(0.97);
    background: var(--bg-card);
}

.node-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xs);
}
.node-list-item + .node-list-item {
    margin-top: 8px;
}
.node-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.node-status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.node-status-dot.warning { background: var(--warning); box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.node-status-dot.offline { background: var(--danger); }
.node-status-dot.disabled { background: var(--text-muted); }
.node-info {
    flex: 1;
    min-width: 0;
}
.node-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.node-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.node-meta.online { color: var(--success); }
.node-meta.warning { color: var(--warning); }
.node-meta.offline { color: var(--danger); }
.node-online-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 210, 106, 0.1);
    color: var(--success);
    flex-shrink: 0;
}

/* ========================================
   Skeleton Loading
   ======================================== */
@keyframes shimmer {
    to { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-input) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}
.skeleton-card {
    height: 180px;
    border-radius: var(--radius);
    margin: 0 16px 16px;
}
.skeleton-stat {
    height: 48px;
    width: 60px;
    border-radius: var(--radius-xs);
}
.skeleton-row {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
}

/* ========================================
   Sheet Content Transition
   ======================================== */
.sheet-body.fade-out {
    opacity: 0;
    transition: opacity 75ms ease-out;
}
.sheet-body.fade-in {
    opacity: 1;
    transition: opacity 75ms ease-in;
}

/* ========================================
   Extracted Inline Styles
   ======================================== */
.center-pad { text-align: center; padding: 10px 0 20px; }
.icon-48 { font-size: 48px; margin-bottom: 12px; }
.icon-40 { font-size: 40px; margin-bottom: 12px; }
.sheet-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.sheet-desc-sm { color: var(--text-secondary); margin-bottom: 16px; font-size: 13px; }
.sheet-desc-center { color: var(--text-secondary); margin-bottom: 20px; text-align: center; }
.info-block { background: var(--bg-elevated); padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.info-block-sm { background: var(--bg-elevated); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; }
.info-row { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-secondary); }
.info-value { font-weight: 600; }
.info-value-success { font-weight: 600; color: var(--success); }
.info-value-warning { font-weight: 600; color: var(--warning); }
.info-value-lg { font-size: 18px; font-weight: 700; }
.info-value-xl { font-size: 24px; font-weight: 700; color: var(--success); }
.info-list { background: rgba(20, 20, 32, 0.7); border-radius: 14px; overflow: hidden; border: 1px solid var(--glow-border-subtle); }
.mt-20 { margin-top: 20px; }
.mt-12 { margin-top: 12px; }
.mt-10 { margin-top: 10px; }
.flex-gap-8 { display: flex; gap: 8px; margin-bottom: 20px; }
.flex-gap-10 { display: flex; gap: 10px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.btn-back { margin-top: 12px; width: 100%; opacity: 0.7; }
.btn-success { background: linear-gradient(135deg, var(--success) 0%, #00b85c 100%); color: #030a05; box-shadow: 0 4px 16px var(--success-glow); }
.btn-danger-bg { background: var(--danger, #ef4444); }
.step-circle { min-width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.step-circle-active { background: var(--accent); color: #050309; }
.step-circle-inactive { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); }
.step-row { display: flex; align-items: flex-start; gap: 14px; }
.step-title { font-weight: 600; margin-bottom: 4px; }
.step-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.step-content { flex: 1; }
.steps-container { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.history-item { display: flex; justify-content: space-between; padding: 12px; background: var(--bg-elevated); border-radius: 8px; }
.history-label { font-weight: 500; }
.history-date { font-size: 12px; color: var(--text-muted); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.referral-count { font-size: 24px; font-weight: 700; color: var(--accent); }
.referral-count-label { font-size: 13px; color: var(--text-muted); }
.app-icon-plain { background: var(--bg-card); border: 1px solid var(--border); }
.app-icon-plain i { color: var(--text); font-size: 26px; }
.confirm-icon { font-size: 48px; color: var(--warning, #f59e0b); margin-bottom: 16px; }
.confirm-text { margin-bottom: 20px; }
.text-center { text-align: center; }
.pad-16 { padding: 16px 0; }
.pad-8 { padding: 8px 0; }
.tv-input { width: 100%; padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 24px; text-align: center; letter-spacing: 8px; text-transform: uppercase; margin-bottom: 16px; }
.extend-info-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.extend-price-lg { font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.extend-price-unit { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.extend-slider-row { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.extend-slider-label { color: var(--text-secondary); font-size: 13px; }
.extend-slider-value { font-weight: 700; font-size: 16px; }
.extend-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.extend-total-row { display: flex; justify-content: space-between; font-size: 14px; }
.extend-total-value { font-weight: 700; font-size: 18px; }
.extend-period-value { font-weight: 500; }
.warning-text { color: var(--warning); font-size: 13px; margin-bottom: 12px; }
.no-webapp-screen { display: flex; align-items: center; justify-content: center; height: 100vh; text-align: center; padding: 20px; color: #888; }
.menu-no-pad { padding: 0; }
.device-item { display: flex; align-items: center; justify-content: space-between; }
.device-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.device-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.device-delete-btn { background: none; border: none; color: var(--text-muted); padding: 8px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.payment-desc { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }
.payment-choose { color: var(--text-secondary); margin-bottom: 16px; font-size: 13px; }
.tariff-name-lg { margin-bottom: 8px; }
.balance-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.balance-label { color: var(--text-muted); }
.balance-value { font-weight: 600; }
.chevron-muted { color: var(--text-muted); font-size: 12px; }
.lang-label { color: var(--text-muted); font-size: 13px; margin-right: 8px; }

/* ========================================
   Traffic Bar
   ======================================== */
.sub-traffic { margin-top: 8px; }
.traffic-bar-wrap { padding: 0; }
.traffic-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.traffic-label i { margin-right: 4px; font-size: 10px; }
.traffic-value { font-weight: 600; color: var(--text-secondary); font-size: 12px; }
.traffic-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.traffic-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.traffic-fill.traffic-ok { background: linear-gradient(90deg, var(--success), #00f5a0); }
.traffic-fill.traffic-warning { background: linear-gradient(90deg, var(--warning), #ffda44); }
.traffic-fill.traffic-danger { background: linear-gradient(90deg, var(--danger), #ff6b81); }

/* ========================================
   Coupon
   ======================================== */
.coupon-row { margin: 12px 0; }
.coupon-input-row { display: flex; gap: 8px; align-items: center; }
.coupon-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 14px; color: var(--text); font-size: 14px; outline: none; transition: border-color var(--transition); }
.coupon-input:focus { border-color: var(--accent); }
.coupon-input::placeholder { color: var(--text-muted); }
.coupon-apply-btn { width: 42px; height: 42px; border-radius: var(--radius-xs); background: var(--accent); color: #050309; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity var(--transition); }
.coupon-apply-btn:active { opacity: 0.7; }
.coupon-success { margin-top: 8px; font-size: 13px; color: var(--success); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coupon-error { margin-top: 8px; font-size: 13px; color: var(--danger); display: flex; align-items: center; gap: 6px; }
.coupon-loading { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.coupon-old-price { text-decoration: line-through; color: var(--text-muted); }
.coupon-bonus { background: var(--success); color: #000; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* ========================================
   Tab Navigation
   ======================================== */
.tab-page { display: none; padding-bottom: 72px; min-height: 100vh; position: relative; }
.tab-page.active { display: block; animation: tabFadeIn 0.2s ease; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tab-page-header { padding: calc(var(--safe-top, 0px) + 16px) 20px 12px; }
.tab-page-header h1 { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: 0.05em; text-transform: uppercase; text-shadow: 0 0 20px rgba(245, 228, 45, 0.18), 0 0 40px rgba(245, 228, 45, 0.08); animation: glitch-text 12s ease-in-out infinite; }
.tab-content { padding: 0 16px; }

.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(10, 10, 18, 0.88); border-top: 1px solid var(--border-glow); padding: 6px 0 calc(var(--safe-bottom, 0px) + 6px); z-index: 50; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); will-change: transform; }
.tab-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; background: none; border: none; color: var(--text-muted); font-size: 10px; font-family: inherit; cursor: pointer; transition: color var(--transition); }
.tab-bar-item i { font-size: 20px; transition: transform var(--transition); }
.tab-bar-item.active { color: var(--accent); }
.tab-bar-item.active i { transform: scale(1.1); }

@media (min-width: 768px) {
    .app .tab-bar {
        position: absolute;
        left: 0;
        right: 0;
        width: auto;
        bottom: 0;
        transform: none;
        border-radius: 0 0 28px 28px;
        border: 1px solid rgba(153, 82, 128, 0.22);
        border-top: 1px solid var(--border-glow);
        border-bottom: none;
        overflow: hidden;
    }

    .sheet-overlay {
        left: 50%;
        right: auto;
        width: 430px;
        transform: translateX(-50%);
        border-radius: 8px;
    }

    .sheet {
        left: 50%;
        right: auto;
        width: 430px;
        bottom: 24px;
        transform: translate(-50%, 100%);
        border-radius: 8px;
        max-height: calc(100vh - 96px);
    }

    .sheet.visible {
        transform: translate(-50%, 0);
    }

    .toast {
        bottom: 108px;
    }
}

/* Wallet */
.wallet-balance-card { background: linear-gradient(135deg, rgba(240, 212, 0, 0.96) 0%, rgba(190, 155, 0, 0.97) 100%); border-radius: var(--radius); padding: 28px 24px; text-align: center; margin-bottom: 16px; box-shadow: 0 10px 34px rgba(245, 228, 45, 0.24); }
.wallet-balance-label { font-size: 13px; color: rgba(5, 3, 9, 0.65); margin-bottom: 4px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wallet-balance-value { font-size: 36px; font-weight: 800; color: #050309; margin-bottom: 16px; }
.wallet-balance-card .btn-primary { background: rgba(5, 3, 9, 0.22); color: #050309; backdrop-filter: blur(10px); border: 1px solid rgba(5, 3, 9, 0.28); box-shadow: none; text-transform: uppercase; }

/* Profile card */
.profile-card { text-align: center; padding: 24px 0 20px; }
.profile-card .profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, rgba(245, 228, 45, 0.95) 0%, rgba(180, 140, 0, 0.95) 100%); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 32px; color: #050309; box-shadow: 0 6px 28px rgba(245, 228, 45, 0.26), 0 0 40px rgba(245, 228, 45, 0.12); }
.profile-card .profile-name { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.profile-card .profile-username { font-size: 14px; color: var(--text-muted); }

/* Profile info list in tab */
#tab-profile .tab-content { display: flex; flex-direction: column; gap: 16px; }
#tab-profile .profile-card { margin-bottom: 0; }
#tab-profile .footer { margin-top: 8px; }

/* Tariffs inline (not in sheet) */
.tariffs-grouped { padding: 0; }

/* ========================================
   CYBERPUNK 2077 — Enhanced FX
   ======================================== */

/* --- New keyframes --- */

/* Scan-line sweep: bottom → top */
@keyframes cp-scan-sweep {
    0%   { transform: translateY(110%); opacity: 0.7; }
    100% { transform: translateY(-110%); opacity: 0; }
}

/* Chromatic glitch on press */
@keyframes cp-btn-press-glitch {
    0%, 100% { text-shadow: none; filter: none; }
    15%  { text-shadow: -3px 0 #00d4ff, 3px 0 #ff0055; filter: brightness(1.2); }
    30%  { text-shadow: 2px 0 #00d4ff, -2px 0 #ff0055; }
    50%  { text-shadow: none; filter: brightness(1.05); }
}

/* Neon border electric flicker */
@keyframes cp-border-flicker {
    0%, 89%, 91%, 93%, 100% { opacity: 1; }
    90%, 92% { opacity: 0.35; }
}

/* Tab indicator slide in */
@keyframes cp-tab-slide {
    from { transform: translateX(-50%) scaleX(0); }
    to   { transform: translateX(-50%) scaleX(1); }
}

/* Glow pulse for active dots and toggles */
@keyframes cp-glow-cycle {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 228, 45, 0.40), 0 0 20px rgba(245, 228, 45, 0.15); }
    50%       { box-shadow: 0 0 16px rgba(245, 228, 45, 0.65), 0 0 36px rgba(245, 228, 45, 0.28); }
}

/* Glow pulse specifically for btn-primary */
@keyframes cp-btn-glow {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(245, 228, 45, 0.50),
            0 0 30px rgba(245, 228, 45, 0.22),
            0 8px 24px rgba(245, 228, 45, 0.28),
            inset 0 1px 0 rgba(255,255,255,0.20);
    }
    50% {
        box-shadow:
            0 0 22px rgba(245, 228, 45, 0.75),
            0 0 50px rgba(245, 228, 45, 0.38),
            0 8px 28px rgba(245, 228, 45, 0.36),
            inset 0 1px 0 rgba(255,255,255,0.25);
    }
}

/* Quick-icon burst on tap */
@keyframes cp-icon-burst {
    0%   { box-shadow: 0 0 0 0 rgba(245, 228, 45, 0.50); }
    50%  { box-shadow: 0 0 22px 6px rgba(245, 228, 45, 0.28); }
    100% { box-shadow: 0 0 8px 0 rgba(245, 228, 45, 0.12); }
}

/* ─── btn-primary ───────────────────────────────── */
.btn-primary {
    position: relative;
    overflow: hidden;
    /* Angular cut — top-right and bottom-left corners */
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* scan-line layer */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0.22) 52%,
        transparent 100%
    );
    height: 40%;
    width: 100%;
    transform: translateY(200%);
    pointer-events: none;
    z-index: 1;
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow:
        0 0 32px rgba(245, 228, 45, 0.55),
        0 0 64px rgba(245, 228, 45, 0.20),
        inset 0 0 18px rgba(255, 255, 255, 0.10);
    animation: cp-btn-press-glitch 0.28s ease;
}

.btn-primary:active::before {
    animation: cp-scan-sweep 0.35s ease forwards;
}

/* ─── btn-secondary ─────────────────────────────── */
.btn-secondary {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* cyan accent line at bottom */
.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary) 40%, var(--accent-secondary) 60%, transparent);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.btn-secondary:active {
    background: var(--bg-elevated);
    border-color: rgba(0, 212, 255, 0.50);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.18),
        inset 0 0 14px rgba(0, 212, 255, 0.06);
    transform: scale(0.98) translateY(1px);
}

.btn-secondary:active::after {
    opacity: 1;
}

/* ─── quick-btn ─────────────────────────────────── */
.quick-btn {
    position: relative;
    overflow: hidden;
}

/* radial glow layer */
.quick-btn::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(245, 228, 45, 0.14) 0%, transparent 68%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.quick-btn:active {
    transform: scale(0.92);
    background: rgba(12, 9, 24, 0.98);
    border-color: rgba(245, 228, 45, 0.55);
    box-shadow: 0 0 22px rgba(245, 228, 45, 0.22), inset 0 0 12px rgba(245, 228, 45, 0.06);
}

.quick-btn:active::before {
    opacity: 1;
}

.quick-btn:active .quick-icon {
    animation: cp-icon-burst 0.4s ease;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(245, 228, 45, 0.22), rgba(200, 158, 0, 0.18));
}

/* ─── menu-item ─────────────────────────────────── */
.menu-item:active {
    background: var(--bg-elevated);
    transform: scale(0.99) translateX(3px);
    border-color: rgba(245, 228, 45, 0.45);
    box-shadow:
        0 0 22px rgba(245, 228, 45, 0.12),
        inset 3px 0 0 rgba(245, 228, 45, 0.60);
}

.menu-item:active .menu-icon {
    color: var(--accent);
    box-shadow: 0 0 18px rgba(245, 228, 45, 0.30);
}

/* ─── tariff-item ───────────────────────────────── */
.tariff-item:active {
    border-color: rgba(245, 228, 45, 0.55);
    background: var(--bg-input);
    box-shadow: 0 0 26px rgba(245, 228, 45, 0.14), inset 0 0 10px rgba(245, 228, 45, 0.04);
    transform: scale(0.99);
}

/* ─── payment-btn ───────────────────────────────── */
.payment-btn:active {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.16), inset 0 0 14px rgba(0, 212, 255, 0.06);
    transform: scale(0.96);
}

/* ─── Tab bar ───────────────────────────────────── */
.tab-bar-item { position: relative; }

/* neon underline indicator */
.tab-bar-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(245, 228, 45, 0.65), 0 0 18px rgba(245, 228, 45, 0.30);
    animation: cp-tab-slide 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-bar-item.active i {
    filter: drop-shadow(0 0 5px rgba(245, 228, 45, 0.55));
}

/* ─── Cards — electric flicker ──────────────────── */
.card {
    animation: cp-border-flicker 9s ease-in-out infinite;
}

/* ─── Input focus — yellow neon ─────────────────── */
.input:focus, .support-input:focus, .coupon-input:focus {
    border-color: rgba(245, 228, 45, 0.65);
    box-shadow: 0 0 0 2px rgba(245, 228, 45, 0.10), 0 0 24px rgba(245, 228, 45, 0.12);
}

/* ─── Toggle — neon checked ─────────────────────── */
.toggle input:checked + .toggle-slider {
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    box-shadow: 0 0 14px rgba(245, 228, 45, 0.40);
    animation: cp-glow-cycle 2.5s ease-in-out infinite;
}

/* ─── Carousel dot active — pulse ───────────────── */
.carousel-dot.active {
    box-shadow: 0 0 8px rgba(245, 228, 45, 0.50);
    animation: cp-glow-cycle 2s ease-in-out infinite;
}

/* ─── app-btn ───────────────────────────────────── */
.app-btn:active {
    border-color: rgba(245, 228, 45, 0.50);
    box-shadow: 0 0 20px rgba(245, 228, 45, 0.18);
    transform: scale(0.96);
}

/* ─── cfg-chip active — angular + glow ──────────── */
.cfg-chip.active {
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    box-shadow: 0 0 16px rgba(245, 228, 45, 0.38), inset 0 0 8px rgba(245, 228, 45, 0.15);
}

/* ─── key-select-item ───────────────────────────── */
.key-select-item:active {
    border-color: rgba(245, 228, 45, 0.45);
    box-shadow: 0 0 16px rgba(245, 228, 45, 0.10);
    background: var(--bg-input);
    transform: scale(0.99);
}

/* ─── lang-item active ──────────────────────────── */
.lang-item.active {
    border-color: rgba(245, 228, 45, 0.45);
    background: rgba(245, 228, 45, 0.05);
    box-shadow: 0 0 14px rgba(245, 228, 45, 0.10);
}

/* ─── support-send-btn ──────────────────────────── */
.support-send-btn:active {
    transform: scale(0.92);
    box-shadow: 0 0 26px rgba(245, 228, 45, 0.45);
    animation: cp-btn-press-glitch 0.22s ease;
}

/* ─── header-logout-btn ─────────────────────────── */
.header-logout-btn:active {
    transform: scale(0.92);
    border-color: rgba(245, 228, 45, 0.45);
    box-shadow: 0 0 18px rgba(245, 228, 45, 0.20);
}

/* ─── coupon-apply-btn ──────────────────────────── */
.coupon-apply-btn:active {
    transform: scale(0.92);
    box-shadow: 0 0 18px rgba(245, 228, 45, 0.40);
}

/* ─── nodes-banner-btn ──────────────────────────── */
.nodes-banner-btn:active {
    border-color: rgba(245, 228, 45, 0.50);
    box-shadow: 0 0 14px rgba(245, 228, 45, 0.22);
    transform: scale(0.95);
}

/* ─── Toast — CP glow border ────────────────────── */
.toast.visible {
    border-color: rgba(245, 228, 45, 0.55);
    box-shadow:
        0 0 24px rgba(245, 228, 45, 0.20),
        0 0 6px rgba(245, 228, 45, 0.40) inset,
        0 18px 48px rgba(0, 0, 0, 0.72);
}

.toast.error.visible {
    border-color: rgba(255, 0, 85, 0.55);
    box-shadow:
        0 0 24px rgba(255, 0, 85, 0.22),
        0 0 6px rgba(255, 0, 85, 0.35) inset,
        0 18px 48px rgba(0, 0, 0, 0.72);
}
