/* ========================================
   CYBERPUNK NEON THEME - User Panel
   ======================================== */

:root {
    /* Primary Colors */
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #bc13fe;
    --neon-blue: #0066ff;
    --neon-green: #00ff88;
    --neon-yellow: #ffe600;
    --neon-red: #ff003c;
    
    /* Background Colors */
    --bg-dark: #030014;
    --bg-darker: #01000a;
    --bg-card: rgba(10, 10, 30, 0.8);
    --bg-card-hover: rgba(20, 20, 50, 0.9);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    
    /* Gradients */
    --gradient-cyan: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
    --gradient-pink: linear-gradient(135deg, #ff00ff 0%, #bc13fe 100%);
    --gradient-purple: linear-gradient(135deg, #bc13fe 0%, #6600cc 100%);
    --gradient-cyber: linear-gradient(135deg, #00f3ff 0%, #ff00ff 50%, #bc13fe 100%);
    
    /* Shadows */
    --shadow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --shadow-pink: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.3);
    --shadow-purple: 0 0 10px rgba(188, 19, 254, 0.5), 0 0 20px rgba(188, 19, 254, 0.3);
    --shadow-neon: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    
    /* Fonts */
    --font-display: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --header-height: 52px;
    --nav-height: 65px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* Background Effects */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* App Container */
.app-container {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

/* ========================================
   HEADER
   ======================================== */
.cyber-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 5px 30px rgba(0, 243, 255, 0.1);
    z-index: 100;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cyan);
    border-radius: 9px;
    box-shadow: var(--shadow-cyan);
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-icon i {
    font-size: 18px;
    color: var(--bg-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.project-name {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    letter-spacing: 1px;
}

.version {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-purple);
    border-radius: 50%;
    box-shadow: var(--shadow-purple);
}

.user-avatar i {
    font-size: 12px;
    color: var(--text-primary);
}

.btn-logout {
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid rgba(255, 0, 60, 0.5);
    color: var(--neon-red);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 0, 60, 0.4);
    border-color: var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
    transform: translateY(-2px);
}

.btn-logout i {
    font-size: 14px;
}

.username {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--neon-cyan);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-height: 0;
}

/* ========================================
   CYBER CARDS
   ======================================== */
.cyber-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.cyber-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    pointer-events: none;
}

.card-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--neon-cyan),
        transparent 30%
    );
    animation: rotate-border 4s linear infinite;
    opacity: 0.1;
}

.card-content {
    position: relative;
    padding: 10px;
    z-index: 1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PROFILE SECTION
   ======================================== */
.profile-section {
    overflow: hidden;
}

.balance-section {
    position: relative;
    text-align: center;
    padding: 10px 10px;
    background: linear-gradient(180deg, rgba(0, 243, 255, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    margin-bottom: 10px;
}

.balance-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.balance-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.balance-label i {
    color: var(--neon-yellow);
    animation: spin-slow 3s linear infinite;
}

.balance-amount {
    font-family: var(--font-display);
    font-size: 45px;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.balance-amount .currency {
    font-size: 24px;
    color: var(--neon-cyan);
    margin-right: 4px;
}

.balance-amount .value {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.cyber-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 7px 12px;
    background: var(--bg-card-hover);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn i {
    font-size: 18px;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
}

.btn-topup {
    border-color: rgba(0, 243, 255, 0.4);
}

.btn-topup i {
    color: var(--neon-cyan);
}

.btn-extend {
    border-color: rgba(255, 0, 255, 0.4);
}

.btn-extend i {
    color: var(--neon-pink);
}

.btn-devices {
    border-color: rgba(188, 19, 254, 0.4);
}

.btn-devices i {
    color: var(--neon-purple);
}

.btn-invite {
    border-color: rgba(0, 255, 136, 0.4);
}

.btn-invite i {
    color: var(--neon-green);
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
}

.btn-small i {
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-cyan);
    border: none;
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.btn-connect {
    background: var(--gradient-purple);
    border: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-purple);
}

.btn-primary {
    padding: 4px 5px;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 5px;
    text-align: center;
}

.stat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 6px;
}

.stat-icon i {
    font-size: 18px;
    color: var(--neon-cyan);
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(255, 0, 255, 0.1);
}

.stat-card:nth-child(2) .stat-icon i {
    color: var(--neon-pink);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(188, 19, 254, 0.1);
}

.stat-card:nth-child(3) .stat-icon i {
    color: var(--neon-purple);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

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

/* ========================================
   SUBSCRIPTIONS SECTION
   ======================================== */
#subscriptions-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#subscriptions-section .card-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 18px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.section-title i {
    font-size: 18px;
}

.subscriptions-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 5px 5px;
    overflow-y: auto;
    min-height: 0;
}

.subscription-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscription-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    transform: translateX(5px);
}

.subscription-item.active {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.subscription-item.expired {
    border-color: var(--neon-red);
    opacity: 0.7;
    cursor: default;
}

.subscription-item.frozen {
    border-color: var(--neon-yellow);
}

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

.sub-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sub-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.subscription-item.expired .status-dot {
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.subscription-item.frozen .status-dot {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
}

.sub-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.sub-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.sub-detail-row .detail-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.sub-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

/* ========================================
   INVITE SECTION
   ======================================== */
.invite-section {
    margin-bottom: 10px;
}

.invite-section .btn-invite {
    width: 100%;
    flex-direction: row;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    justify-content: center;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    padding: 10px 5px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.15);
    transform: translateY(-5px);
}

.menu-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-icon i {
    font-size: 22px;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
    background: var(--gradient-cyan);
}

.menu-item:hover .menu-icon i {
    color: var(--bg-dark);
}

.menu-item:nth-child(2) .menu-icon {
    background: rgba(255, 0, 255, 0.1);
}

.menu-item:nth-child(2) .menu-icon i {
    color: var(--neon-pink);
}

.menu-item:nth-child(2):hover .menu-icon {
    background: var(--gradient-pink);
}

.menu-item:nth-child(3) .menu-icon {
    background: rgba(188, 19, 254, 0.1);
}

.menu-item:nth-child(3) .menu-icon i {
    color: var(--neon-purple);
}

.menu-item:nth-child(3):hover .menu-icon {
    background: var(--gradient-purple);
}

.menu-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.cyber-nav {
    flex-shrink: 0;
    height: var(--nav-height);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
    box-shadow: 0 -5px 30px rgba(0, 243, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nav-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--neon-cyan);
}

.nav-item.active i {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateY(-3px);
}

.nav-item:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* ========================================
   MODALS
   ======================================== */
.cyber-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cyber-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: calc(100% - 40px);
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--neon-cyan);
}

.modal-header h3 i {
    font-size: 20px;
}

.modal-close {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--neon-pink);
    border-radius: 10px;
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--neon-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.modal-body {
    padding: 20px;
}

/* Topup Modal */
.topup-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 15px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.selected {
    background: var(--gradient-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-cyan);
}

.custom-amount {
    margin-bottom: 20px;
}

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

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.currency-symbol {
    position: absolute;
    right: 16px;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.payment-method i {
    font-size: 24px;
    color: var(--neon-cyan);
}

.payment-method span {
    flex: 1;
    font-weight: 600;
}

/* Key Modal */
.key-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 12px;
    margin-bottom: 20px;
}

.key-status.inactive {
    background: rgba(255, 0, 60, 0.1);
    border-color: var(--neon-red);
}

.key-status.frozen {
    background: rgba(255, 230, 0, 0.1);
    border-color: var(--neon-yellow);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    animation: pulse 2s ease-in-out infinite;
}

.key-status.inactive .status-indicator {
    background: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
}

.key-status.frozen .status-indicator {
    background: var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-yellow);
}

.status-text {
    font-weight: 600;
    color: var(--text-primary);
}

.key-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    word-break: break-word;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    min-width: 120px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.key-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* QR Modal */
.qr-content {
    text-align: center;
}

.qr-container {
    padding: 30px;
    background: var(--text-primary);
    border-radius: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container img {
    width: 200px;
    height: 200px;
}

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

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.cyber-toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neon-green);
    border-radius: 50%;
}

.toast-icon i {
    font-size: 14px;
    color: var(--bg-dark);
}

.toast-message {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.cyber-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 243, 255, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-cyan); }
    50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(0, 243, 255, 0.4); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 360px) {
    .stats-section {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .balance-amount {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* ========================================
   EXTEND MODAL STYLES
   ======================================== */
.extend-subscriptions {
    max-height: 400px;
    overflow-y: auto;
}

.extend-details {
    padding: 20px 0;
}

/* ========================================
   TARIFF ITEM STYLES
   ======================================== */
.tariff-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tariff-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-cyan);
}

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

.tariff-header h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-family: var(--font-display);
}

.tariff-price {
    color: var(--neon-cyan);
    font-size: 20px;
    font-weight: 700;
}

.tariff-description {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   HISTORY ITEM STYLES
   ======================================== */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-amount {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

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

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

.history-status.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
}

.history-status.pending {
    background: rgba(255, 230, 0, 0.1);
    color: var(--neon-yellow);
}

.history-status.failed {
    background: rgba(255, 0, 60, 0.1);
    color: var(--neon-red);
}

/* ========================================
   REFERRAL STYLES
   ======================================== */
.referral-info {
    padding: 10px 0;
}

.referral-link-section {
    margin: 20px 0;
}

.referral-link-section label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.referral-count {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
}

.referral-count .stat-value {
    display: block;
    font-size: 48px;
    color: var(--neon-cyan);
    font-weight: 700;
    font-family: var(--font-display);
}

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

.referral-list {
    max-height: 300px;
    overflow-y: auto;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 10px;
}

.referral-item i {
    color: var(--neon-purple);
}

.referral-item span {
    flex: 1;
    color: var(--text-primary);
}

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

/* ========================================
   SETTINGS STYLES
   ======================================== */
.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item span {
    color: var(--text-primary);
}

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

.toggle-switch 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-card);
    border: 1px solid var(--text-muted);
    transition: 0.3s;
    border-radius: 26px;
}

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

input:checked + .toggle-slider {
    background-color: rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--neon-cyan);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--neon-cyan);
}

.lang-btn.active {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ========================================
   DEVICES MODAL STYLES
   ======================================== */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-email {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.device-limit {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ========================================
   PURCHASE MODAL STYLES
   ======================================== */
.purchase-details {
    padding: 10px 0;
}

#purchase-deficit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 8px;
    margin-top: 15px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* ========================================
   AUTH PAGES STYLES
   ======================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    height: 100vh;
    padding: 12px;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    z-index: 10;
    max-height: 100%;
    overflow-y: auto;
}

.auth-card {
    padding: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 16px;
}

.auth-header .logo-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    font-size: 22px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
}

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

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-form label i {
    color: var(--neon-cyan);
    font-size: 13px;
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

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

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--neon-cyan);
}

.error-message {
    padding: 12px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--neon-red);
    border-radius: 8px;
    color: var(--neon-red);
    font-size: 14px;
    text-align: center;
    display: none;
}

.success-message {
    padding: 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 8px;
    color: #00ff88;
    font-size: 14px;
    text-align: center;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.auth-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--neon-pink);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}
