/* ============ КОСМИЧЕСКИЙ СТИЛЬ v3.0 (ПОЛНАЯ ВЕРСИЯ) ============ */
:root {
    --space-black: #0a0c10;
    --space-dark: #121720;
    --space-gray: #1e2532;
    --space-light-gray: #2a3344;
    --space-orange: #ff8c00;
    --space-orange-dark: #cc7000;
    --space-orange-light: #ffa64d;
    --space-orange-glow: rgba(255, 140, 0, 0.3);
    --space-text: #ffb266;
    --space-text-dim: #cc8c66;
    --space-success: #33cc99;
    --space-danger: #ff4757;
    --space-warning: #ffaa33;
    --space-info: #5c9eff;
    --space-border: #332e1a;
    --space-gold: #ffd700;
    --space-gold-glow: rgba(255, 215, 0, 0.3);
    --space-neon-blue: #00f3ff;
    --space-neon-purple: #b829ff;
    --space-neon-pink: #ff2b9e;
    --space-cosmic-gradient: linear-gradient(135deg, #ff8c00, #ff2b9e, #b829ff, #00f3ff);
    
    /* Для USDT и других токенов */
    --cosmic-blue: #00f3ff;
    --cosmic-purple: #b829ff;
    --cosmic-pink: #ff2b9e;
    --cosmic-darker: #050510;
    --cosmic-glow: rgba(255, 140, 0, 0.3);

    /* ===== НОВЫЕ ПЕРЕМЕННЫЕ ИЗ <style> ===== */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --warning-gradient: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent-1: #00d2ff;
    --accent-2: #3a7bd5;
    --accent-3: #00b09b;
    --accent-4: #96c93d;
    --glow-color: rgba(102, 126, 234, 0.5);
}

/* ============ ГЛОБАЛЬНЫЕ СТИЛИ ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--space-black);
    color: var(--space-text);
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    
}

body.login-page {
    background: var(--space-black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.admin-page {
    background: var(--space-black);
    color: var(--space-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}



/* Анимированный фон с галактикой */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(51, 204, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: galaxyRotate 120s linear infinite;
    z-index: -1;
}

@keyframes galaxyRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== НОВЫЙ УЛУЧШЕННЫЙ ФОН СО ЗВЕЗДАМИ ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
                radial-gradient(2px 2px at 80px 120px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: moveStars 200s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    animation: twinkling 4s linear infinite;
    z-index: -1;
}

@keyframes twinkling {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* Оригинальные звезды оставлены для обратной совместимости */
.original-stars, .original-twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: -1;
}

.original-stars {
    background: #000 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48Y2lyY2xlIGN4PSI2IiBjeT0iMTQiIHI9IjEiIGZpbGw9IndoaXRlIiAvPjxjaXJjbGUgY3g9IjE2MCIgY3k9IjYwIiByPSIxIiBmaWxsPSJ3aGl0ZSIgLz48Y2lyY2xlIGN4PSI0MCIgY3k9IjI3MCIgcj0iMSIgZmlsbD0id2hpdGUiIC8+PC9zdmc+');
    background-size: 200px 200px;
    animation: moveStars 200s linear infinite;
}

.original-twinkling {
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48Y2lyY2xlIGN4PSIxMDAiIGN5PSI1MCIgcj0iMiIgZmlsbD0iI2ZmZmZmZiIgZmlsdGVyPSJ1cmwoI2ZpbHRlcikiIC8+PGRlZnM+PGZpbHRlciBpZD0iZmlsdGVyIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIyLjUiIC8+PC9maWx0ZXI+PC9kZWZzPjwvc3ZnPg==');
    background-size: 300px 300px;
    animation: moveStars 150s linear infinite;
    opacity: 0.5;
}

@keyframes moveStars {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* Планета в углу */
.planet-decoration {
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff8c00, #b829ff, #00f3ff);
    opacity: 0.1;
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
    animation: planetFloat 20s infinite alternate;
}

@keyframes planetFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(10deg); }
}

/* ============ ГЛАВНЫЙ КОНТЕЙНЕР ============ */
.main-container {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============ АНИМАЦИИ ============ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

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

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes progressPulse {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

@keyframes validatorPulse {
    0% { transform: scale(1); background: rgba(255,215,0,0.1); }
    50% { transform: scale(1.02); background: rgba(255,215,0,0.2); box-shadow: 0 0 20px #ffd700; }
    100% { transform: scale(1); background: rgba(255,215,0,0.1); }
}

@keyframes goldPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 20px var(--space-success); }
    50% { box-shadow: 0 0 40px var(--space-success); }
}

@keyframes successSpin {
    from { transform: rotate(0deg) scale(0); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes glow {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(1); opacity: 0; }
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes numberGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

@keyframes progressShine {
    to { left: 200%; }
}

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

/* ===== НОВЫЕ АНИМАЦИИ ИЗ <style> ===== */
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ НАВИГАЦИЯ ============ */
.navbar-custom {
    background: rgba(18, 23, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--space-orange);
    box-shadow: 0 0 30px var(--space-orange-glow);
    padding: 15px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--space-orange) !important;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 0 20px var(--space-orange-glow);
    letter-spacing: 1px;
}

.navbar-brand i {
    color: var(--space-orange);
    margin-right: 10px;
    animation: float 3s infinite ease-in-out;
}

.nav-link {
    color: var(--space-text) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 0.8rem 1.5rem !important;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    z-index: 1001;
}

.nav-link:hover {
    color: var(--space-orange) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--space-orange-glow);
    background: rgba(255, 140, 0, 0.1);
}

.nav-link.active {
    color: var(--space-orange) !important;
    border-bottom: 2px solid var(--space-orange);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), transparent);
}

.nav-link i {
    margin-right: 8px;
}

/* Стили для страницы login.html */
.login-container {
    max-width: 500px;
    width: 90%;
    padding: 40px;
    background: rgba(18, 23, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 2px solid var(--space-gold);
    box-shadow: 0 0 60px var(--space-gold-glow);
    position: relative;
    z-index: 10;
}

.login-header h1 {
    color: var(--space-gold);
    font-weight: 700;
    font-size: 3rem;
    text-shadow: 0 0 30px var(--space-gold-glow);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-header p {
    color: var(--space-text-dim);
    font-size: 1rem;
}

.ton-connect-section {
    background: rgba(30, 37, 50, 0.5);
    border-radius: 40px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--space-border);
    position: relative;
    overflow: hidden;
}

/* ============ УЛУЧШЕННАЯ ВЕРХНЯЯ ПАНЕЛЬ С КНОПКАМИ ============ */
.action-bar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.action-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--space-cosmic-gradient);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.action-btn i {
    font-size: 1.2rem;
}

.action-btn.deposit i { color: #4facfe; }
.action-btn.withdraw i { color: #ff9a44; }
.action-btn.withdraw-usdt i { color: #26a17b; }
.action-btn.telegram i { color: #0088cc; }
.action-btn.dex i { color: #f5a623; }

.action-btn.deposit {
    background: linear-gradient(135deg, var(--space-orange), var(--space-neon-pink));
    color: var(--space-dark);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.action-btn.withdraw {
    background: linear-gradient(135deg, var(--space-success), var(--space-neon-blue));
    color: var(--space-dark);
    box-shadow: 0 0 20px rgba(51, 204, 153, 0.5);
}

.action-btn.withdraw-usdt {
    background: linear-gradient(135deg, #00f3ff, #b829ff);
    color: var(--space-dark);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.action-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #005c8c);
    color: white;
}

.action-btn.dex {
    background: linear-gradient(135deg, #45b7d1, #2c9ab3);
    color: white;
}

.action-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 15px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-address-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--space-text);
}

.user-address-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1);
    transform: scale(1.05);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 40px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    transform: scale(1.05);
}

/* ============ УЛУЧШЕННЫЕ КАРТОЧКИ СТАТИСТИКИ ============ */
.stats-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--space-cosmic-gradient);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 26px;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 23, 32, 0.8);
    backdrop-filter: blur(10px);
    z-index: -1;
    margin: 1px;
    border-radius: 23px;
}

.stats-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.1);
}

.stats-card:hover::before {
    opacity: 0.3;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    font-size: 1.5rem;
    color: white;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'Orbitron', monospace;
}

.stats-value small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.stats-value.mini {
    font-size: 1.2rem;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 3;
}

.stats-small {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 10px;
    display: block;
    position: relative;
    z-index: 3;
}

/* Специальный стиль для USDT карточки */
.stats-card.usdt-card {
    border-color: var(--space-neon-blue);
}

.stats-card.usdt-card .stats-icon {
    background: linear-gradient(135deg, var(--space-neon-blue), var(--space-neon-purple));
}

.refresh-usdt {
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.refresh-usdt:hover {
    transform: scale(1.2);
    color: var(--space-neon-blue);
}

/* ============ КАРТОЧКА ДЕЙСТВИЙ ============ */
.setup-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.setup-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.1);
}

.setup-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
}

.setup-card:hover::before {
    opacity: 0.2;
}

.setup-card i {
    color: var(--space-orange);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--space-orange));
    font-size: 4rem;
    position: relative;
    z-index: 3;
}

.setup-card h3 {
    color: var(--space-orange);
    margin-bottom: 15px;
    font-size: 2rem;
    position: relative;
    z-index: 3;
}

.setup-card p {
    position: relative;
    z-index: 3;
    color: var(--text-secondary);
}

.setup-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--space-orange), var(--space-orange-dark));
    color: var(--space-dark);
    padding: 15px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10;
    pointer-events: auto;
}

.setup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--space-orange-glow);
}

/* ============ УЛУЧШЕННЫЙ КОНТЕЙНЕР ГРАФИКОВ ============ */
.chart-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 400px;
    z-index: 1;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--space-orange-glow), transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    animation: rotate 30s linear infinite;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.chart-header h5 {
    color: var(--space-orange);
    font-weight: 600;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

canvas {
    max-height: 300px;
    width: 100% !important;
    filter: drop-shadow(0 5px 15px rgba(0, 210, 255, 0.2));
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* ============ УЛУЧШЕННАЯ ПАНЕЛЬ ЛОГОВ ============ */
.logs-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 15px;
}

.logs-title {
    color: var(--space-orange);
    font-size: 1.3rem;
    font-weight: 600;
}

.logs-title i {
    margin-right: 10px;
}

.logs-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.device-selector, .log-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 10;
    position: relative;
    min-width: 150px;
}

.log-clear-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.log-clear-btn:hover {
    border-color: var(--space-orange);
    color: var(--space-orange);
    transform: rotate(15deg);
}

.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 400px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    border-left: 3px solid transparent;
}

.log-entry.info {
    border-left-color: var(--space-info);
    background: rgba(92, 158, 255, 0.05);
}

.log-entry.success {
    border-left-color: var(--space-success);
    background: rgba(51, 204, 153, 0.05);
}

.log-entry.warning {
    border-left-color: var(--space-warning);
    background: rgba(255, 170, 51, 0.05);
}

.log-entry.error {
    border-left-color: var(--space-danger);
    background: rgba(255, 71, 87, 0.05);
}

.log-entry.debug {
    border-left-color: var(--space-text-dim);
    background: rgba(204, 140, 102, 0.05);
}

.timestamp {
    color: var(--text-tertiary);
    margin-right: 15px;
    font-size: 12px;
}

.level {
    font-weight: bold;
    margin-right: 15px;
    display: inline-block;
    min-width: 70px;
}

.log-entry.info .level { color: var(--space-info); }
.log-entry.success .level { color: var(--space-success); }
.log-entry.warning .level { color: var(--space-warning); }
.log-entry.error .level { color: var(--space-danger); }
.log-entry.debug .level { color: var(--space-text-dim); }

.message {
    color: var(--text-primary);
}

.log-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.log-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.log-stat i {
    font-size: 1rem;
}

/* ============ УЛУЧШЕННЫЕ КАРТОЧКИ УСТРОЙСТВ ============ */
.device-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    z-index: 2;
}

.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.device-card:hover::before {
    transform: translateX(0);
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.device-card.online { 
    border-color: rgba(72, 187, 120, 0.3);
}

.device-card.offline { 
    border-color: rgba(160, 174, 192, 0.3);
    opacity: 0.7;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
    gap: 10px;
}

.device-id {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 600;
    color: var(--space-orange);
    font-size: 1.1rem;
}

.device-log-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    position: relative;
}

.device-log-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    color: var(--space-orange);
    border-color: var(--space-orange);
    transform: scale(1.05);
}

.device-log-btn.active {
    background: rgba(255, 215, 0, 0.2) !important;
    color: var(--space-gold) !important;
    border-color: var(--space-gold) !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

.status-badge.online {
    color: #48bb78;
}

.status-badge.offline {
    color: #a0aec0;
}

.device-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.device-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 0.8rem;
}

/* ============ ТРАНЗАКЦИИ ============ */
.transaction-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.transaction-row:hover {
    border-color: var(--space-orange);
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--space-orange-glow);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--space-success);
}

.transaction-amount.negative {
    color: var(--space-danger);
}

/* ============ УЛУЧШЕННАЯ СЕТКА ВАЛИДАТОРОВ ============ */
.validator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.validator-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.validator-card.online {
    border-color: rgba(72, 187, 120, 0.3);
}

.validator-card.offline {
    opacity: 0.5;
}

.validator-card:hover {
    border-color: var(--space-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--space-gold-glow);
}

.validator-card::before {
    content: '👑';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 80px;
    opacity: 0.05;
    transform: rotate(15deg);
}

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

.validator-name {
    font-weight: 600;
    color: var(--space-gold);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #48bb78;
    box-shadow: 0 0 10px #48bb78;
}

.status-dot.offline {
    background: #a0aec0;
}

.validator-rating {
    background: rgba(255, 215, 0, 0.2);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--space-gold);
}

.validator-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.validator-stats div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.validator-stats i {
    color: var(--space-gold);
}

.validator-bonus {
    grid-column: span 2;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: var(--accent-1);
    font-weight: 600;
}

.btn-select-validator {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--space-gold), #ff8c00);
    border: none;
    border-radius: 12px;
    color: var(--space-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select-validator:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--space-gold-glow);
}

.btn-connect-validator {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-connect-validator:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-connect-validator:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-validator-badge {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--space-gold);
    border-radius: 30px;
    color: var(--space-gold);
    margin-top: 10px;
}

/* ============ СЕКЦИЯ НАГРАД ДЕЛЕГАТОРА ============ */
.delegator-rewards-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.reward-time {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.reward-amount {
    color: var(--accent-3);
    font-weight: 600;
}

.reward-from {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ============ БЕЙДЖИ ПОЛЬЗОВАТЕЛЕЙ ============ */
.validator-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a0f0a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.delegator-badge {
    background: linear-gradient(135deg, #00f3ff, #00a3ff);
    color: #1a0f0a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.miner-badge {
    background: linear-gradient(135deg, #33cc33, #2DB88C);
    color: #1a0f0a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

/* ============ БУСТЕРЫ ============ */
.booster-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.booster-card:hover {
    border-color: var(--space-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--space-orange-glow);
}

.booster-rarity {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.booster-rarity.common {
    background: rgba(128, 128, 128, 0.2);
    color: #a0a0a0;
    border: 1px solid #808080;
}

.booster-rarity.rare {
    background: rgba(65, 105, 225, 0.2);
    color: #4169E1;
    border: 1px solid #4169E1;
}

.booster-rarity.epic {
    background: rgba(148, 0, 211, 0.2);
    color: #9400D3;
    border: 1px solid #9400D3;
}

.booster-rarity.legendary {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid #FFD700;
}

.booster-effect {
    font-size: 1.1rem;
    color: var(--space-gold);
    margin: 10px 0;
}

.booster-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--space-orange);
}

/* ============ МОДАЛЬНЫЕ ОКНА ============ */
.modal-content {
    background: rgba(18, 23, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
}

.modal-title {
    color: var(--space-orange);
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
}

.modal .btn-close {
    filter: invert(1) brightness(200%);
}

/* Космическое модальное окно */
.cosmic-modal {
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, var(--space-orange), var(--cosmic-purple), var(--cosmic-blue));
    border-image-slice: 1;
    border-radius: 30px;
    box-shadow: 0 0 50px var(--space-orange-glow);
    position: relative;
    overflow: hidden;
}

.cosmic-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 140, 0, 0.1) 50%,
        transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

.cosmic-modal-header {
    background: linear-gradient(135deg, var(--space-orange), var(--cosmic-purple));
    border: none;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
}

.cosmic-modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

/* ============ ESP ID СТИЛИ ============ */
.esp-id-container {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.05));
    border: 2px solid var(--space-orange);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.esp-id-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--space-orange-glow), transparent 70%);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.esp-id-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--space-orange);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 30px var(--space-orange);
    line-height: 1;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.esp-id-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.esp-id-hint {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ============ КОСМИЧЕСКИЙ ESP ============ */
.cosmic-esp {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(184, 41, 255, 0.15));
    border: 2px solid var(--space-orange);
    border-radius: 30px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--space-orange);
    border-radius: 30px;
    animation: pulse 2s infinite;
    pointer-events: none;
}

/* ============ КАРТОЧКА БАЛАНСА ============ */
.balance-card-cosmic {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
    border: 2px solid var(--space-gold);
    border-radius: 30px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--space-gold);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.balance-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.balance-main {
    flex: 1;
}

.balance-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.balance-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--space-gold), #ffaa33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    animation: goldPulse 2s infinite;
}

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

/* ============ ФОРМА ВЫВОДА ============ */
.withdraw-form-cosmic {
    position: relative;
}

.form-section {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, var(--space-gold), transparent);
    border-image-slice: 1;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.form-section:hover {
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 30px var(--space-gold-glow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.section-header h6 {
    margin: 0;
    color: var(--space-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Крупные инпуты */
.amount-input-group, .address-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cosmic-input-large {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--space-gold);
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
}

.cosmic-input-large:focus {
    outline: none;
    border-color: #ffaa33;
    box-shadow: 0 0 30px var(--space-gold-glow);
}

.currency-badge {
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: linear-gradient(135deg, var(--space-gold), #ffaa33);
    border-radius: 15px;
    color: var(--space-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.address-actions {
    display: flex;
    gap: 5px;
}

.btn-address-action {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--space-gold);
    border-radius: 15px;
    color: var(--space-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-address-action:hover {
    background: var(--space-gold);
    color: var(--space-dark);
    transform: scale(1.05);
}

/* Быстрые кнопки */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.btn-quick-amount {
    position: relative;
    overflow: hidden;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--space-gold);
    border-radius: 40px;
    padding: 12px;
    color: var(--space-gold);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-quick-amount:hover {
    background: var(--space-gold);
    color: var(--space-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--space-gold-glow);
}

.btn-quick-amount .glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn-quick-amount:hover .glow-effect {
    opacity: 1;
    animation: glow 1s ease-out;
}

/* Подсказки */
.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.form-hint i {
    color: var(--space-gold);
}

.text-gold {
    color: var(--space-gold) !important;
}

/* Секция комиссии */
.fee-section {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid var(--space-gold);
    border-radius: 20px;
    padding: 20px;
}

.fee-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--space-gold);
    font-weight: 600;
}

.fee-details-grid {
    display: grid;
    gap: 15px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.fee-row.total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.fee-label {
    color: rgba(255, 255, 255, 0.7);
}

.fee-value {
    font-weight: 600;
    color: white;
}

.fee-value-total {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--space-gold), #ffaa33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ ПРЕДУПРЕЖДЕНИЯ ============ */
.cosmic-warning {
    background: rgba(255, 71, 87, 0.1);
    border-left: 4px solid #ff4757;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    animation: warningGlow 2s infinite;
}

@keyframes warningGlow {
    0%, 100% { border-left-color: #ff4757; }
    50% { border-left-color: #ff8c00; }
}

/* ============ СТАТУСЫ ============ */
.processing-status-cosmic {
    text-align: center;
    padding: 20px;
    background: rgba(92, 158, 255, 0.1);
    border: 2px solid var(--space-info);
    border-radius: 20px;
}

.cosmic-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid transparent;
    border-top: 3px solid var(--space-orange);
    border-right: 3px solid var(--cosmic-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-status-cosmic {
    text-align: center;
    padding: 20px;
    background: rgba(51, 204, 153, 0.1);
    border: 2px solid var(--space-success);
    border-radius: 20px;
    animation: successPulse 2s infinite;
}

.success-icon {
    font-size: 3rem;
    color: var(--space-success);
    margin-bottom: 10px;
    animation: successSpin 1s ease-out;
}

/* ============ ИСТОРИЯ ============ */
.history-section {
    background: rgba(255, 215, 0, 0.03);
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, var(--space-gold), transparent);
    border-image-slice: 1;
    border-radius: 20px;
    padding: 20px;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--space-gold);
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-list::-webkit-scrollbar {
    width: 5px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--space-gold);
    border-radius: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s;
}

.history-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.history-amount {
    font-weight: 600;
    color: var(--space-gold);
}

.history-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-success {
    background: rgba(51, 204, 153, 0.2);
    color: #33cc99;
    border: 1px solid #33cc99;
}

.status-warning {
    background: rgba(255, 170, 51, 0.2);
    color: #ffaa33;
    border: 1px solid #ffaa33;
}

.status-danger {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
}

/* ============ КНОПКИ ФУТЕРА ============ */
.btn-cosmic-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--space-gold), #ffaa33);
    border: none;
    color: var(--space-dark);
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-cosmic-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px var(--space-gold-glow);
}

.btn-cosmic-primary .glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-cosmic-primary:hover .glow-effect {
    opacity: 1;
    animation: glow 1s ease-out;
}

.btn-cosmic-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cosmic-secondary:hover {
    border-color: var(--space-gold);
    color: var(--space-gold);
}

/* ============ USDT-СПЕЦИФИЧЕСКИЕ СТИЛИ ============ */
#withdrawUsdtModal .balance-card-cosmic {
    border-color: var(--space-neon-blue);
}

#withdrawUsdtModal .balance-value {
    background: linear-gradient(135deg, #00f3ff, #b829ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#withdrawUsdtModal .form-section {
    border-image: linear-gradient(135deg, var(--space-neon-blue), transparent);
    border-image-slice: 1;
}

#withdrawUsdtModal .section-header h6,
#withdrawUsdtModal .section-header i {
    color: var(--space-neon-blue) !important;
}

#withdrawUsdtModal .cosmic-input-large {
    border-color: var(--space-neon-blue);
}

#withdrawUsdtModal .btn-quick-amount {
    border-color: var(--space-neon-blue);
    color: var(--space-neon-blue);
}

#withdrawUsdtModal .btn-quick-amount:hover {
    background: var(--space-neon-blue);
    color: var(--space-dark);
}

#withdrawUsdtModal .currency-badge {
    background: linear-gradient(135deg, #00f3ff, #b829ff);
}

#withdrawUsdtModal .fee-section {
    border-color: var(--space-neon-blue);
}

#withdrawUsdtModal .fee-header {
    color: var(--space-neon-blue);
}

#withdrawUsdtModal .fee-value-total {
    background: linear-gradient(135deg, #00f3ff, #b829ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ ИНДИКАТОР ЗАГРУЗКИ ============ */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--space-border);
    border-top: 5px solid var(--space-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 30px var(--space-orange-glow);
}

.loading-spinner p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* ============ УВЕДОМЛЕНИЯ ============ */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    background: rgba(18, 23, 32, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--space-orange);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    border-left-color: var(--space-success);
}

.toast.error {
    border-left-color: var(--space-danger);
}

.toast.warning {
    border-left-color: var(--space-warning);
}

.toast.info {
    border-left-color: var(--space-info);
}

.toast i {
    font-size: 1.2rem;
}

/* ============ USDT ИНФО ГРИД ============ */
.usdt-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.info-card {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--space-neon-blue);
    border-radius: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.info-card:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.info-card i {
    font-size: 20px;
}

.info-card small {
    color: var(--text-tertiary);
    font-size: 0.7rem;
}

.info-card strong {
    color: var(--space-neon-blue);
    font-size: 0.9rem;
}

/* ============ АНИМАЦИЯ ПЛАНЕТЫ ============ */
.planet-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.floating-planet {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 2px solid transparent;
    border-top: 2px solid var(--space-orange);
    border-right: 2px solid var(--cosmic-purple);
    border-radius: 50%;
    animation: orbit 8s linear infinite;
}

/* ============ СТИЛИ ДЛЯ СТРАНИЦЫ НАСТРОЙКИ ============ */
.setup-section {
    max-width: 800px;
    margin: 0 auto;
}

.setup-steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--space-orange);
    color: var(--space-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--space-orange-glow);
}

.step h4 {
    color: var(--space-orange);
    margin-bottom: 15px;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    border-color: var(--space-orange);
    color: var(--space-orange);
    transform: scale(1.1);
}

/* ============ СТИЛИ ДЛЯ ВАЛИДАТОРОВ (ДЕТАЛИ) ============ */
.stats-mini-card {
    transition: all 0.3s;
    border: 1px solid rgba(255,215,0,0.1);
}

.stats-mini-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 5px 15px rgba(255,215,0,0.2);
}

.delegators-section {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255,215,0,0.1);
}

.delegator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    animation: slideIn 0.3s ease-out;
}

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

.delegator-item:hover {
    background: rgba(255,215,0,0.05);
}

.delegator-address {
    color: #ffb266;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
}

.delegator-earned {
    color: #33cc33;
    font-weight: bold;
    font-size: 0.9rem;
}

.delegator-joined {
    color: #cc8c66;
    font-size: 0.8rem;
}

/* ============ СТИЛИ ДЛЯ СЛОТОВ ============ */
.slot-type-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.slot-type-card {
    flex: 1;
    min-width: 120px;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.slot-type-card:hover {
    border-color: #ff8c00;
    background: rgba(255,140,0,0.1);
    transform: translateY(-2px);
}

.slot-type-card.selected {
    border-color: #ff8c00;
    background: rgba(255,140,0,0.2);
    box-shadow: 0 0 20px rgba(255,140,0,0.3);
}

.slot-type-card .type-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.slot-type-card .type-name {
    font-weight: bold;
    color: #ff8c00;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.slot-type-card .type-price {
    font-size: 1.1rem;
    color: #ffd700;
    margin: 5px 0;
    font-weight: bold;
}

.slot-type-card .type-desc {
    font-size: 0.7rem;
    color: #cc8c66;
}

/* ============ УЛУЧШЕННЫЕ СТИЛИ СКРОЛЛБАРА ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

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

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

/* ============ ГАРАНТИЯ КЛИКАБЕЛЬНОСТИ ============ */
button, .btn, .btn-refresh, .action-btn, .setup-button, .device-log-btn, 
.log-clear-btn, .nav-link, .user-address-badge, .logout-btn, .refresh-usdt,
[onclick], .btn-primary, .btn-secondary, .btn-success, .btn-danger,
.btn-outline-primary, .btn-outline-success, .btn-outline-danger,
.btn-address-action, .btn-quick-amount, .btn-select-validator,
.btn-connect-validator {
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    cursor: pointer !important;
}

a {
    cursor: pointer !important;
}

/* ============ УЛУЧШЕННЫЕ КАРТОЧКИ ВАЛИДАТОРОВ ============ */

.validator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.validator-card {
    background: linear-gradient(145deg, rgba(26, 15, 10, 0.9), rgba(44, 26, 18, 0.9));
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.validator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.validator-card:hover::before {
    transform: translateX(100%);
}

.validator-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
}

.validator-card.online {
    border-left: 3px solid #00ff88;
}

.validator-card.offline {
    opacity: 0.6;
    border-left: 3px solid #ff4444;
}

.validator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.validator-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd966;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 5px #00ff88;
}

.status-dot.offline {
    background: #ff4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.validator-rating {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.validator-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.validator-stats > div {
    font-size: 0.85rem;
    color: #cc8c66;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.validator-stats i {
    width: 20px;
    color: #ff8c00;
}

.validator-bonus {
    grid-column: span 2;
    background: rgba(255, 140, 0, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #ffb266;
}

.btn-connect-validator {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-connect-validator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-connect-validator:active::after {
    width: 200%;
    height: 200%;
}

.btn-connect-validator:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-connect-validator:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666, #444);
}

.validator-footer {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.btn-refresh-validators {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 25px;
    color: #ff8c00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-refresh-validators:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: rotate(180deg);
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
}

.online-badge {
    color: #00ff88;
}

.price-badge {
    color: #ff8c00;
}

/* Добавить в style.css */

.validator-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.validator-stats > div {
    font-size: 0.85rem;
    color: #cc8c66;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding-left: 6px;
}

.validator-stats i {
    width: 20px;
    color: #ff8c00;
}

.validator-bonus {
    grid-column: span 2;
    background: rgba(255, 140, 0, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #ffb266;
}

/* Анимация обновления карточки */
@keyframes cardUpdate {
    0% { background: rgba(255, 140, 0, 0); }
    50% { background: rgba(255, 140, 0, 0.3); }
    100% { background: rgba(255, 140, 0, 0); }
}

.validator-card.updating {
    animation: cardUpdate 0.5s ease;
}

/* Стили для наград делегатора */
.reward-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.reward-item:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateX(4px);
}

.reward-time {
    font-size: 0.75rem;
    color: #cc8c66;
    font-family: monospace;
}

.reward-amount {
    font-weight: 600;
    color: #33cc33;
    font-size: 0.85rem;
}

.reward-from {
    font-size: 0.7rem;
    color: #ff8c00;
}

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

.stats24h-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.8rem;
}

.stats24h-label {
    color: #cc8c66;
}

.stats24h-value {
    color: #ffd700;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ДАШБОРДА ============ */
.action-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 140, 0, 0.3);
    margin: 0 10px;
}

.refresh-usdt {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.refresh-usdt:hover { opacity: 1; }

.btn-refresh {
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: #ff8c00;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-refresh:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: rotate(180deg);
}



/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .validator-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .action-divider {
        display: none;
    }
}

/* Анимация загрузки */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.1) 25%, rgba(255, 140, 0, 0.2) 50%, rgba(255, 140, 0, 0.1) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 992px) {
    .action-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-divider {
        width: 100%;
        height: 1px;
        margin: 5px 0;
    }
    
    .action-btn {
        min-width: 100px;
    }
    
    .user-section {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .logs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logs-controls {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .stats-card {
        min-height: 120px;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .balance-value {
        font-size: 2.2rem;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amount-input-group, .address-input-group {
        flex-direction: column;
    }
    
    .currency-badge {
        padding: 15px;
        justify-content: center;
    }
    
    .address-actions {
        justify-content: flex-end;
    }
    
    .esp-id-number {
        font-size: 48px;
    }
    
    .chart-container {
        min-height: 350px;
    }
    
    .device-selector, .log-filter {
        min-width: 120px;
    }
    
    .slot-type-selector {
        flex-direction: column;
    }
    
    .btn-cosmic-primary, .btn-cosmic-secondary {
        width: 100%;
        margin: 5px 0;
    }
    
    .cosmic-modal-footer {
        flex-direction: column;
    }
    
    .validator-grid {
        grid-template-columns: 1fr;
    }
}

