/* ====== ElixVPN — Premium Red & Black Theme ====== */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(20, 20, 30, 0.65);
    --bg-card-hover: rgba(30, 30, 45, 0.75);
    --bg-nav: rgba(12, 12, 20, 0.88);
    --border-color: rgba(255, 68, 68, 0.12);
    --border-glow: rgba(255, 68, 68, 0.25);

    --red-primary: #ff4444;
    --red-light: #ff6b6b;
    --red-dark: #cc0000;
    --red-glow: rgba(255, 68, 68, 0.4);

    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;

    --green: #44ff88;
    --green-bg: rgba(68, 255, 136, 0.12);
    --yellow: #ffcc44;
    --yellow-bg: rgba(255, 204, 68, 0.12);
    --orange: #ff8844;
    --blue: #4488ff;

    /* ====== Values ====== */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius: 16px;
    --max-width: 640px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 0.3s;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 68, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 68, 68, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
}

/* ====== Loading Screen ====== */

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 56px;
    height: 56px;
    position: relative;
    margin-bottom: 20px;
}

.ring-segment {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 50%;
}

.ring-segment:nth-child(1) {
    border-top-color: var(--red-primary);
    animation: spin 1s linear infinite;
}

.ring-segment:nth-child(2) {
    border-right-color: var(--red-light);
    animation: spin 1.5s linear infinite reverse;
    inset: 6px;
}

.ring-segment:nth-child(3) {
    border-bottom-color: var(--red-dark);
    animation: spin 2s linear infinite;
    inset: 12px;
}

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

.loader-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--red-primary), var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== Login View ====== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 36px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: cardEntrance 0.6s var(--ease) both;
    border-radius: 24px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 68, 68, 0.15);
    box-shadow:
        0 0 40px rgba(255, 68, 68, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-to-home {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1),
        color 220ms ease,
        background 220ms ease,
        border-color 220ms ease;
    z-index: 3;
}

.back-to-home svg {
    transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1);
}

.back-to-home:hover {
    color: #fff;
    background: rgba(255, 68, 68, 0.12);
    border-color: rgba(255, 68, 68, 0.28);
}

.back-to-home:hover svg {
    transform: translateX(-3px);
}

.back-to-home:active {
    transform: scale(0.97);
}

.back-to-home:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.4);
}

@media (max-width: 480px) {
    .back-to-home span {
        display: none;
    }
    .back-to-home {
        padding: 8px;
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-section {
    margin-bottom: 36px;
}

.logo-icon svg {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--red-glow));
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        filter: drop-shadow(0 0 15px var(--red-glow));
    }

    to {
        filter: drop-shadow(0 0 30px var(--red-glow)) drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
    }
}

.logo-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 68, 68, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 68, 68, 0.06);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--speed) var(--ease);
}

.feature-item:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.15);
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.2rem;
}

.telegram-login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#tg-login-btn {
    min-height: 44px;
}

.login-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.5;
}

/* Background decorations */
.login-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 68, 68, 0.08);
    top: -10%;
    left: -10%;
    animation: orbFloat 12s ease-in-out infinite;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(200, 0, 0, 0.06);
    bottom: -5%;
    right: -5%;
    animation: orbFloat 15s ease-in-out infinite reverse;
}

.bg-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 100, 100, 0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -20px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* ====== Glass Card ====== */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(255, 68, 68, 0.05);
}

/* ====== Navbar ====== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 1.4rem;
}

.nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav avatar */
.nav-avatar-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--glass-bg, rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Profile card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.profile-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--glass-bg, rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.profile-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-name {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--speed) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--red-primary);
    background: rgba(255, 68, 68, 0.1);
}

/* ====== Dashboard Content ====== */

.dashboard-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 16px 80px;
}

/* ====== Status Hero ====== */

.status-hero {
    padding: 28px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.status-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(255, 68, 68, 0.08), transparent 70%);
    pointer-events: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.status-badge.active {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(68, 255, 136, 0.2);
}

.status-badge.expired {
    background: rgba(255, 68, 68, 0.1);
    color: var(--red-primary);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.status-badge.none {
    background: var(--yellow-bg);
    color: var(--yellow);
    border: 1px solid rgba(255, 204, 68, 0.2);
}

.status-badge.loading {
    background: rgba(136, 136, 160, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(136, 136, 160, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.status-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* ====== Tabs ====== */

.tabs-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all var(--speed) var(--ease);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(255, 68, 68, 0.12);
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFade 0.3s var(--ease) both;
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Cards ====== */

.card {
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 18px 20px 0;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 16px 20px 20px;
}

/* ====== Subscription Details ====== */

.key-info-grid {
    display: grid;
    gap: 12px;
}

.key-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.key-info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.key-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.key-link-section {
    margin-top: 16px;
}

.copyable-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copyable-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: monospace;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copyable-input:focus {
    border-color: var(--red-primary);
}

/* ====== Plans ====== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.plan-card {
    padding: 18px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    position: relative;
}

.plan-card:hover {
    background: rgba(255, 68, 68, 0.06);
    border-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.plan-card.popular::before {
    content: 'Популярно';
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.plan-price {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price-unit {
    font-size: 0.8rem;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-secondary);
}

.plan-price-original {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.promo-discount-banner {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.personal-offer-banner {
    background: rgba(80, 200, 120, 0.12);
    border: 1px solid rgba(80, 200, 120, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.auto-renew-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.auto-renew-option label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.terms-checkbox-group {
    margin-top: 4px;
    margin-bottom: 4px;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.terms-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--red-primary);
}

.terms-link {
    color: var(--red-primary);
    text-decoration: underline;
}

.terms-link:hover {
    opacity: 0.8;
}

.plan-extra-note {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.8;
}

.plans-extra-info {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.plans-extra-info p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.plans-extra-info a {
    color: var(--primary);
    text-decoration: none;
}

.plans-extra-info a:hover {
    text-decoration: underline;
}

.plans-extra-info.warning {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.plans-extra-info.warning p {
    color: var(--text-primary);
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.support-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Bottom Support Buttons */
.bottom-support {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.bottom-support .btn {
    opacity: 0.85;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-support .btn:hover {
    opacity: 1;
}

/* ====== Traffic ====== */

.traffic-bar-container {
    margin: 16px 0;
}

.traffic-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.traffic-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.traffic-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--green), var(--red-primary));
    transition: width 1s var(--ease);
    position: relative;
}

.traffic-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 0 6px 6px 0;
}

.traffic-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.traffic-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.traffic-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.traffic-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Traffic packages */
.traffic-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.traffic-pkg {
    padding: 16px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
}

.traffic-pkg:hover {
    background: rgba(255, 68, 68, 0.06);
    border-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.traffic-pkg-gb {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.traffic-pkg-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.traffic-pkg-discount {
    font-size: 0.72rem;
    color: var(--green);
    font-weight: 600;
    margin-top: 4px;
}

/* ====== Servers ====== */

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

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all var(--speed) var(--ease);
}

.server-item:hover {
    background: rgba(255, 68, 68, 0.04);
    border-color: rgba(255, 68, 68, 0.12);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-flag {
    font-size: 1.4rem;
}

.server-name {
    font-size: 0.92rem;
    font-weight: 600;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--green);
}

.server-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(68, 255, 136, 0.5);
}

/* ====== Buttons ====== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3), 0 0 20px rgba(255, 68, 68, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 68, 68, 0.45), 0 0 30px rgba(255, 68, 68, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: rgba(255, 68, 68, 0.12);
    color: var(--red-light);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.btn-accent:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--red-primary);
    color: var(--red-light);
    transform: translateY(-1px);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    font-family: inherit;
    font-weight: 500;
}

.btn-copy:hover {
    color: var(--red-light);
    border-color: rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.08);
}

.btn-copy.copied {
    color: var(--green);
    border-color: rgba(68, 255, 136, 0.3);
    background: rgba(68, 255, 136, 0.08);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* ====== Inputs ====== */

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--speed) var(--ease);
}

.input-field:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15), 0 0 15px rgba(255, 68, 68, 0.1);
}

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

/* ====== Promo Form ====== */

.promo-form {
    display: flex;
    gap: 10px;
}

.promo-form .input-field {
    flex: 1;
}

.promo-result {
    margin-top: 10px;
    font-size: 0.85rem;
    min-height: 20px;
}

.promo-result.success {
    color: var(--green);
}

.promo-result.error {
    color: var(--red-primary);
}

/* ====== No Subscription ====== */

.no-sub-container {
    text-align: center;
    padding: 24px 0;
}

.no-sub-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: grayscale(0.3);
}

.no-sub-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ====== Skeleton ====== */

.skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ====== Toast ====== */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 0.88rem;
    color: var(--text-primary);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s var(--ease);
    max-width: 90%;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.toast.success {
    border-color: rgba(68, 255, 136, 0.3);
}

.toast.error {
    border-color: rgba(255, 68, 68, 0.3);
}

/* ====== Responsive ====== */

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .traffic-stats {
        grid-template-columns: 1fr;
    }

    .traffic-packages-grid {
        grid-template-columns: 1fr;
    }

    .promo-form {
        flex-direction: column;
    }

    .status-hero {
        padding: 20px 16px;
    }

    .tabs-bar {
        overflow-x: auto;
    }
}

/* ====== Scrollbar ====== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 68, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 68, 68, 0.35);
}

/* ====== Selection ====== */

::selection {
    background: rgba(255, 68, 68, 0.3);
    color: #fff;
}

/* ====== Devices Section ====== */

.no-devices-container {
    text-align: center;
    padding: 30px 10px;
}

.no-devices-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.no-devices-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.no-devices-hint {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.devices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.devices-count {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.device-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glow);
}

.device-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 68, 68, 0.08);
    border-radius: var(--radius-xs);
}

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

.device-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-details {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.device-last-used {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.device-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.device-delete-btn,
.device-block-btn,
.device-unblock-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: var(--radius-xs);
    transition: background var(--speed) var(--ease);
    opacity: 0.5;
    flex-shrink: 0;
}

.device-delete-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    opacity: 1;
}

.device-block-btn:hover {
    background: rgba(255, 140, 0, 0.15);
    opacity: 1;
}

.device-unblock-btn {
    opacity: 0.7;
}

.device-unblock-btn:hover {
    background: rgba(34, 197, 94, 0.15);
    opacity: 1;
}

.device-item-blocked {
    opacity: 0.7;
    border-color: rgba(255, 68, 68, 0.2);
    background: rgba(255, 68, 68, 0.04);
}

.blocked-devices-section {
    margin-top: 18px;
}

.blocked-devices-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.blocked-list {
    opacity: 0.85;
}

/* ====== Traffic Sync Info ====== */

.traffic-sync-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.sync-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

.sync-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1;
}

.btn-refresh {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: var(--red-light);
    cursor: pointer;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--speed) var(--ease);
    flex-shrink: 0;
}

.btn-refresh:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.4);
    transform: rotate(180deg);
}

.btn-refresh:active {
    transform: rotate(360deg);
}

/* ====== Auth Divider & Switch ====== */

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.1);
    /* Make divider visible clearly */
}

.auth-divider span {
    padding: 0 14px;
    white-space: nowrap;
}

.auth-switch {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-switch a {
    color: var(--red-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--speed) var(--ease);
}

.auth-switch a:hover {
    color: var(--red-primary);
    text-decoration: underline;
}

.btn-auth-submit {
    height: 48px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 10px;
}

.captcha-input {
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ====== Form Groups & Labels ====== */

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

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

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(18, 22, 33, 0.6);
    /* Darker sleek background like in mockup */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all var(--speed) var(--ease);
}

.input-field:focus {
    border-color: var(--red-light);
    /* Kept brand accent */
    background: rgba(18, 22, 33, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

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

/* ====== Auth Specific Layouts ====== */

.auth-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-auth-action {
    flex: 1;
    min-width: 140px;
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
}

.link-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
}

.link-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.link-form-group:last-child {
    margin-bottom: 0;
}

.link-form-group .input-label {
    margin-bottom: 0;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ====== Captcha (Deprecating visually, but keep classes if used elsewhere) ====== */

.captcha-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}

.captcha-image {
    flex: 1;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.captcha-image svg {
    max-height: 100%;
    width: auto;
}

.captcha-refresh {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin: 0;
    font-size: 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: rgba(255, 68, 68, 0.12);
    border-color: rgba(255, 68, 68, 0.3);
    color: var(--red-primary);
    transform: rotate(180deg);
}

/* ====== Auth Buttons ====== */

.btn-full {
    width: 100%;
    margin-top: 4px;
}

.auth-error {
    color: var(--red-primary);
    font-size: 0.82rem;
    margin-top: 10px;
    min-height: 20px;
    text-align: center;
}

/* No subscription message */
.no-subscription {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.no-subscription p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.no-subscription .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--speed) var(--ease);
    border: none;
    background: var(--red-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3);
}

.no-subscription .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 68, 68, 0.45);
}

/* ====== REFERRALS ====== */

.ref-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ref-stat-card {
    flex: 1;
    background: rgba(255, 68, 68, 0.07);
    border: 1px solid rgba(255, 68, 68, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
}

.ref-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--red-light);
    line-height: 1;
    margin-bottom: 6px;
}

.ref-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ref-how-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.ref-how-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px 0;
}

.ref-how-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ref-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.ref-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.18);
    color: var(--red-light);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ref-link-section {
    margin-bottom: 20px;
}

.ref-link-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.ref-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ref-link-input {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: text;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-copy-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 0.82rem;
}

.ref-list-section {
    margin-top: 4px;
}

.ref-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.ref-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
}

.ref-user-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.ref-user-id {
    color: var(--text-secondary);
}

.ref-warning {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.ref-balance-card .ref-stat-value {
    color: #4caf50;
}

.ref-balance-block {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.ref-balance-info {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.ref-balance-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.balance-pay-block {
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(76, 175, 80, 0.07);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-xs);
}

.balance-pay-info {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.balance-pay-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.ref-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ref-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .ref-stats-row {
        gap: 8px;
    }
    .ref-stat-value {
        font-size: 1.3rem;
    }
    .ref-link-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ref-copy-btn {
        width: 100%;
    }
}

/* ====== TEMP KEY BLOCK ====== */
.temp-key-block {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.temp-key-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.temp-key-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.temp-key-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.temp-key-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.temp-key-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.temp-key-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.temp-key-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.temp-key-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.temp-key-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-family: monospace;
    min-width: 0;
    outline: none;
}

.temp-key-copy-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.temp-key-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.temp-key-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.temp-key-timer-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.temp-key-timer-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.temp-key-timer-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
    border-radius: 2px;
    transition: width 1s linear;
}

.temp-key-connect-btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 12px;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
}

.temp-key-get-btn {
    width: 100%;
    padding: 11px;
    font-size: 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.temp-key-get-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
/* ====== Notification Bell ====== */
.bell-btn {
    position: relative;
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--red-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    pointer-events: none;
}

/* ====== Notifications Panel ====== */
.notifications-overlay {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: transparent;
}

.notifications-panel {
    position: fixed;
    top: 60px;
    right: 12px;
    width: min(340px, calc(100vw - 24px));
    max-height: 70vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,68,68,0.08);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: notif-slide-in 0.18s var(--ease);
}

@keyframes notif-slide-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notifications-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notifications-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.notifications-close:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.notifications-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

.notifications-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
    cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { background: rgba(255,68,68,0.04); }
.notif-item.unread:hover { background: rgba(255,68,68,0.07); }

.notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-primary);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ====== OTP (6-digit code) inputs ====== */
.otp-input-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
}
.otp-box {
    width: 44px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
}
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.otp-box:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(255,68,68,0.18);
    background: rgba(255,68,68,0.06);
}
.otp-box.filled {
    border-color: rgba(255,68,68,0.5);
    background: rgba(255,68,68,0.04);
}
@media (max-width: 480px) {
    .otp-box { width: 38px; height: 48px; font-size: 18px; }
    .otp-input-row { gap: 6px; }
}
