/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: #020617 !important;
    background-color: #020617 !important;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.font-display { font-family: 'Space Grotesk', sans-serif !important; }

/* Стеклянный эффект */
.glass {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Градиентный текст */
.gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Фоновая сетка */
.bg-grid {
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Свечения */
.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow-amber {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
}

/* Карточки */
.card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    color: white;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(16, 185, 129, 0.6);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    color: white;
}
.btn-amber:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(245, 158, 11, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transition: all 0.3s ease;
}
.btn-danger:hover { transform: translateY(-2px); }

/* Скроллбар */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 4px; }

/* ============================================
   LOADER
   ============================================ */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #020617;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.loader-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.loader-content {
    text-align: center;
    animation: loaderFadeIn 0.5s ease-out;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px -10px rgba(16, 185, 129, 0.5);
    animation: logoPulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px -10px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 25px 70px -5px rgba(16, 185, 129, 0.7); }
}

.loader-logo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: logoRing 2s ease-in-out infinite;
}

@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
    margin-top: 20px;
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ============================================
   МОДАЛКИ
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-slide-up { animation: slideUp 0.4s ease-out; }

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}
.pulse-dot { position: relative; }
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #10b981;
    opacity: 0.6;
    animation: pulse 2s ease-out infinite;
}

/* Кнопки выбора */
.crypto-btn, .country-btn, .operator-btn, .amount-btn { transition: all 0.3s ease; }
.crypto-btn:hover, .country-btn:hover, .operator-btn:hover, .amount-btn:hover { transform: translateY(-2px); }
.crypto-btn.active, .country-btn.active { border-color: #10b981 !important; background: rgba(16, 185, 129, 0.1) !important; }
.operator-btn.active { border-color: #f59e0b !important; background: rgba(245, 158, 11, 0.1) !important; }
.amount-btn.active { border-color: #10b981 !important; background: rgba(16, 185, 129, 0.15) !important; }

/* Статусы */
.status-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-expired { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-blocked { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    transform: translateX(400px);
    transition: transform 0.4s ease;
}
.toast.active { transform: translateX(0); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 40;
}
.mobile-menu.active { transform: translateY(0); }

/* Админ-панель */
.admin-sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-tab {
    transition: all 0.2s ease;
}
.admin-tab:hover { background: rgba(255, 255, 255, 0.05); }
.admin-tab.active {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
    color: #10b981;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-glow { width: 400px; height: 400px; }
}