/* ============================================
   Aviator Predictor AI - Main Stylesheet
   Premium Dark Theme with Glassmorphism
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a3e;
    --bg-glass: rgba(26, 26, 62, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b8a;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #ff6b35;
    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffd700;
    --info: #00bfff;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent-primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    animation: load 2s ease-in-out infinite;
}

.preloader-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Glass Effect */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 1rem;
    height: 72px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.admin-link {
    color: var(--accent-tertiary);
}

.nav-link.admin-link:hover {
    background: rgba(255, 107, 53, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 600;
}

.user-balance i {
    font-size: 0.75rem;
}

.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    padding-top: 72px;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-section h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
}

.page-title-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* Welcome Banner */
.welcome-banner {
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.1), transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.1), transparent 60%);
    pointer-events: none;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.welcome-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: var(--text-secondary);
}

.welcome-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-stat i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.mini-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.mini-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-hit .stat-icon,
.stat-icon.stat-hit {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.stat-miss .stat-icon,
.stat-icon.stat-miss {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.stat-pending .stat-icon,
.stat-icon.stat-pending {
    background: rgba(255, 215, 0, 0.15);
    color: var(--warning);
}

.stat-accuracy .stat-icon,
.stat-icon.stat-accuracy {
    background: rgba(0, 191, 255, 0.15);
    color: var(--info);
}

.stat-icon.stat-users {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-secondary);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

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

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.stat-trend.down {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.card-header h3 i {
    color: var(--accent-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-body.p-0 {
    padding: 0;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-primary);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--warning);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc6a);
    color: var(--bg-primary);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc0000);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-warning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(0, 191, 255, 0.15);
    color: var(--info);
}

.status-badge.hit {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.status-badge.miss {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.status-badge.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.status-badge.suspended {
    background: rgba(255, 215, 0, 0.15);
    color: var(--warning);
}

.status-badge.banned {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.round-id {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* Prediction List */
.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prediction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.prediction-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.prediction-round {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    min-width: 100px;
}

.prediction-multiplier .multiplier-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-primary);
}

.prediction-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin-top: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.timeline-content p {
    font-size: 0.85rem;
    margin: 0;
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Predictor Page */
.predictor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.predictor-title h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
}

.predictor-title p {
    color: var(--text-muted);
}

.predictor-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auto-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition);
}

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

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

/* Predictor Grid */
.predictor-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Game Container */
.game-container {
    border-radius: var(--radius);
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
}

.round-info {
    display: flex;
    flex-direction: column;
}

.round-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.round-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.game-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.flying {
    background: var(--success);
    animation: pulse 1s infinite;
}

.status-indicator.complete {
    background: var(--accent-primary);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.game-canvas-container {
    position: relative;
    background: #0d0d20;
}

#gameCanvas {
    width: 100%;
    height: auto;
    display: block;
}

.multiplier-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.multiplier-current {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-muted);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.multiplier-display.active .multiplier-current {
    color: var(--success);
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}

.multiplier-display.complete .multiplier-current {
    color: var(--accent-primary);
    text-shadow: 0 0 50px rgba(0, 212, 255, 0.7);
}

.prediction-overlay {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.ai-prediction-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.predicted-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.confidence-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.confidence-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.confidence-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Game Footer */
.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.game-stats {
    display: flex;
    gap: 1.5rem;
}

.game-stat {
    display: flex;
    flex-direction: column;
}

.game-stat .stat-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.game-stat .stat-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
}

.history-dots {
    display: flex;
    gap: 4px;
}

.history-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.history-dot.hit {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.history-dot.miss {
    background: var(--danger);
}

/* Prediction Panel */
.prediction-panel {
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.engine-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.engine-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.engine-status.online .status-dot {
    background: var(--success);
    animation: pulse 2s infinite;
}

.panel-body {
    padding: 1.5rem;
}

.prediction-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 1.5rem;
    text-align: center;
}

.prediction-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.prediction-label i {
    color: var(--accent-primary);
}

.big-multiplier {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.big-confidence {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

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

.detail-value {
    font-weight: 500;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.signal-bars span {
    width: 4px;
    border-radius: 2px;
    background: var(--accent-primary);
    animation: signalBar 1s ease-in-out infinite;
}

.signal-bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.signal-bars span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.signal-bars span:nth-child(3) { height: 70%; animation-delay: 0.2s; }
.signal-bars span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.signal-bars span:nth-child(5) { height: 100%; animation-delay: 0.4s; }

.prediction-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.page-link.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.user-item .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

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

.user-item .user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-item .user-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-item .user-role {
    font-size: 0.7rem;
}

.user-status {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.user-status.status-suspended {
    background: rgba(255, 215, 0, 0.1);
    color: var(--warning);
}

.user-status.status-banned {
    background: rgba(255, 68, 68, 0.1);
    color: var(--danger);
}

/* User Cell */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-xs {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 0.35rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.filter-tab.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.action-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.action-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Search Form */
.search-form {
    min-width: 300px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
}

.search-wrapper i {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.search-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    outline: none;
    font-family: var(--font-primary);
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.setting-group label {
    font-size: 0.85rem;
    font-weight: 500;
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--accent-primary);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.form-options {
    margin-bottom: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.alert i {
    font-size: 1.1rem;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    border-radius: 50%;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.auth-box {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.auth-logo i {
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    margin-top: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

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

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.empty-state.small {
    padding: 1rem;
}

.empty-state.small i {
    font-size: 1.5rem;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    z-index: 9999;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 380px;
}

.notification.show {
    transform: translateX(0);
}

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

.notification-success i {
    color: var(--success);
}

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

.notification-error i {
    color: var(--danger);
}

.notification-warning {
    border-color: rgba(255, 215, 0, 0.3);
}

.notification-warning i {
    color: var(--warning);
}

/* Footer */
.site-footer {
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.6rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
}

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

/* Footer Security Seals */
.footer-seals {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 0;
}

.seals-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.seal-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: var(--transition);
}

.seal-item:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.seal-item i {
    font-size: 0.7rem;
    color: var(--accent-primary);
}

.seal-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .seals-container {
        gap: 0.75rem;
    }
    
    .seal-item {
        font-size: 0.65rem;
    }
    
    .seal-divider:nth-child(6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .seal-item span {
        display: none;
    }
    
    .seal-item i {
        font-size: 0.85rem;
    }
    
    .seal-divider {
        display: none;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

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

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(0, 212, 255, 0.6); }
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes signalBar {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================
   Aviator Game - Authentic UI Styles
   ============================================ */

.aviator-page {
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    overflow: hidden;
    background: #0d1117;
}

/* Top Bar */
.aviator-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(22, 27, 34, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.history-strip {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.history-strip::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(22,27,34,0.95));
    pointer-events: none;
}

.history-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
    align-items: center;
}

.history-scroll::-webkit-scrollbar {
    display: none;
}

.history-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    color: #8b949e;
}

.history-item.low {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
}

.history-item.mid {
    background: rgba(188, 140, 255, 0.15);
    color: #bc8cff;
}

.history-item.high {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
}

.history-item.epic {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    animation: historyGlow 1.5s ease-in-out infinite;
}

.history-placeholder {
    color: #484f58;
    font-size: 0.85rem;
}

.topbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.round-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.rc-label {
    font-size: 0.6rem;
    color: #484f58;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rc-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: #58a6ff;
}

.auto-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
}

.switch {
    position: relative;
    width: 36px;
    height: 20px;
    display: inline-block;
}

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

.switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s;
}

.switch .slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #8b949e;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: rgba(0, 255, 136, 0.3);
}

.switch input:checked + .slider::before {
    transform: translateX(16px);
    background: #00ff88;
}

/* ===== Power ON/OFF Toggle ===== */
.power-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
}

.power-toggle.power-on {
    border-color: rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.06);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.power-toggle.power-off {
    border-color: rgba(255, 68, 68, 0.15);
    background: rgba(255, 68, 68, 0.04);
}

.power-label {
    font-family: 'Orbitron', 'Inter', monospace;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    min-width: 28px;
    text-align: center;
    transition: color 0.3s ease;
}

.power-icon {
    font-size: 0.85rem;
    color: #ffd700;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3));
}

.power-off .power-icon {
    color: #666 !important;
    filter: none;
}

.power-switch .power-slider {
    width: 36px;
    height: 20px;
}

.power-switch .power-slider::before {
    width: 14px;
    height: 14px;
}

.power-switch input:checked + .power-slider::before {
    transform: translateX(16px);
}

.power-switch .power-slider {
    background: rgba(255, 68, 68, 0.3);
}

.power-switch input:checked + .power-slider {
    background: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.power-switch input:checked + .power-slider::before {
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.power-switch .power-slider::before {
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

@media (max-width: 768px) {
    .power-toggle {
        padding: 0.2rem 0.4rem;
        gap: 0.35rem;
    }
    .power-label {
        font-size: 0.6rem;
        min-width: 22px;
    }
}

/* Main Game Area */
.aviator-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.game-area {
    flex: 1;
    position: relative;
    background: #0d1117;
    min-width: 0;
}

.canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Multiplier Overlay */
.multiplier-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.multiplier-big {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 80px rgba(255,68,68,0.2);
    line-height: 1;
    transition: color 0.3s;
}

.multiplier-sub {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 0.5rem;
}

/* AI Badge */
.ai-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 140px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.ai-badge-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.ai-badge-header i {
    font-size: 0.7rem;
}

.ai-badge-mult {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: #58a6ff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.ai-badge-conf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-conf-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.ai-conf-fill {
    height: 100%;
    background: linear-gradient(90deg, #58a6ff, #00ff88);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.ai-conf-text {
    font-size: 0.65rem;
    color: #8b949e;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

/* Crash Overlay */
.crash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(4px);
}

.crash-text {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #ff4444;
    text-shadow: 0 0 60px rgba(255, 68, 68, 0.5);
    animation: crashPulse 0.5s ease-in-out;
}

.crash-multiplier {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.5rem;
}

/* Prediction Sidebar */
.prediction-sidebar {
    width: 280px;
    background: rgba(22, 27, 34, 0.95);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    overflow-y: auto;
}

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

.sidebar-header h3 {
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i {
    color: #58a6ff;
}

.status-badge.online {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.sidebar-prediction {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.sp-label {
    font-size: 0.7rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.sp-multiplier {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: #58a6ff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.sp-confidence {
    font-size: 0.8rem;
    color: #8b949e;
    margin: 0.5rem 0 0.75rem;
}

.sp-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.sp-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.5s ease;
}

.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ss-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ss-label {
    color: #8b949e;
}

.ss-value {
    font-weight: 600;
    color: #c9d1d9;
}

.ss-value.accent {
    color: #00ff88;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-predict, .btn-auto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-predict {
    background: linear-gradient(135deg, #58a6ff, #1f6feb);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.btn-predict:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

.btn-auto {
    background: rgba(255,255,255,0.05);
    color: #c9d1d9;
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-auto:hover {
    background: rgba(255,255,255,0.08);
}

.btn-auto.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

/* Betting Panel */
.betting-panel {
    background: rgba(22, 27, 34, 0.98);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.betting-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 100%;
}

.bet-slot {
    flex: 1;
    max-width: 380px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.75rem;
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bet-label {
    font-size: 0.7rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bet-clear {
    background: none;
    border: none;
    color: #484f58;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: 0.2s;
}

.bet-clear:hover {
    color: #ff4444;
    background: rgba(255,68,68,0.1);
}

.bet-amount-group {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.bet-half, .bet-double, .bet-max {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: #8b949e;
}

.bet-half:hover, .bet-double:hover, .bet-max:hover {
    background: rgba(255,255,255,0.1);
    color: #c9d1d9;
}

.bet-input {
    flex: 1;
    padding: 4px 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #c9d1d9;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    outline: none;
    text-align: center;
    min-width: 0;
}

.bet-input:focus {
    border-color: #58a6ff;
}

.bet-auto-group {
    margin-bottom: 0.5rem;
}

.auto-cashout-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #8b949e;
}

.auto-cashout-label span:first-child {
    flex-shrink: 0;
}

.auto-input {
    width: 60px;
    padding: 3px 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-align: center;
    outline: none;
}

.auto-input:focus {
    border-color: #ffd700;
}

.btn-place-bet, .btn-cashout {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-place-bet {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 160, 67, 0.3);
}

.btn-place-bet:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4);
}

.btn-place-bet:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-cashout {
    background: linear-gradient(135deg, #da3633, #f85149);
    color: white;
    box-shadow: 0 4px 15px rgba(248, 81, 73, 0.3);
}

.btn-cashout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(248, 81, 73, 0.5);
}

/* Bet Stats */
.bet-stats {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    min-width: 120px;
}

.bs-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.bs-label {
    color: #8b949e;
}

.bs-value {
    font-weight: 600;
    color: #c9d1d9;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
}

.bs-value.accent {
    color: #00ff88;
}

/* Notification Container */
.notif-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.notif {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    color: #c9d1d9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
    pointer-events: auto;
}

.notif.show {
    transform: translateX(0);
}

.notif-success {
    border-color: rgba(0, 255, 136, 0.3);
}
.notif-success i { color: #00ff88; }

.notif-error {
    border-color: rgba(255, 68, 68, 0.3);
}
.notif-error i { color: #ff4444; }

.notif-warning {
    border-color: rgba(255, 215, 0, 0.3);
}
.notif-warning i { color: #ffd700; }

.notif-info {
    border-color: rgba(88, 166, 255, 0.3);
}
.notif-info i { color: #58a6ff; }

/* Signal Bars */
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-bars span {
    width: 3px;
    border-radius: 2px;
    background: #58a6ff;
    animation: signalBar 1s ease-in-out infinite;
}

.signal-bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.signal-bars span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.signal-bars span:nth-child(3) { height: 70%; animation-delay: 0.2s; }
.signal-bars span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.signal-bars span:nth-child(5) { height: 100%; animation-delay: 0.4s; }

/* Animations */
@keyframes historyGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,68,68,0.3); }
    50% { box-shadow: 0 0 15px rgba(255,68,68,0.6); }
}

@keyframes crashPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes signalBar {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Responsive Aviator */
@media (max-width: 1024px) {
    .prediction-sidebar {
        width: 240px;
        padding: 0.75rem;
    }
    
    .sp-multiplier {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .aviator-page {
        height: auto;
        min-height: 100vh;
    }
    
    .aviator-main {
        flex-direction: column;
    }
    
    .game-area {
        height: 50vh;
        min-height: 300px;
    }
    
    .prediction-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
    }
    
    .prediction-sidebar .sidebar-prediction {
        flex: 1;
        min-width: 200px;
    }
    
    .prediction-sidebar .sidebar-stats {
        flex: 1;
        min-width: 150px;
    }
    
    .prediction-sidebar .sidebar-actions {
        width: 100%;
        flex-direction: row;
        margin-top: 0;
    }
    
    .betting-inner {
        flex-wrap: wrap;
    }
    
    .bet-slot {
        flex: 1;
        min-width: 200px;
    }
    
    .bet-stats {
        flex-direction: row;
        min-width: 100%;
        justify-content: space-around;
        padding: 0.5rem 0;
    }
    
    .multiplier-big {
        font-size: 2.5rem;
    }
    
    .crash-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .game-area {
        height: 40vh;
        min-height: 250px;
    }
    
    .bet-slot {
        min-width: 100%;
    }
    
    .history-item {
        font-size: 0.7rem;
        padding: 3px 7px;
    }
    
    .ai-badge {
        bottom: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }
    
    .ai-badge-mult {
        font-size: 1.2rem;
    }
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Margin utilities */
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
