@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #060612;
    --bg-secondary: #0c0c1d;
    --bg-card: rgba(12, 12, 35, 0.75);
    --bg-card-hover: rgba(18, 18, 50, 0.9);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 229, 255, 0.25);
    --primary: #FFD700;
    --primary-hover: #FFC107;
    --primary-glow: rgba(255, 215, 0, 0.35);
    --accent-cyan: #00E5FF;
    --accent-purple: #7C4DFF;
    --success: #00E676;
    --success-bg: rgba(0, 230, 118, 0.12);
    --danger: #FF1744;
    --danger-bg: rgba(255, 23, 68, 0.12);
    --warning: #FF9100;
    --warning-bg: rgba(255, 145, 0, 0.12);
    --text-primary: #E8E8F0;
    --text-secondary: #6A6A8A;
    --text-muted: #3A3A5A;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    width: 100% !important;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(124, 77, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 10px 12px;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .container {
        padding: 20px 5%;
    }
}

/* ============ GLASS CARD ============ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    max-width: 100%;
}

@media (min-width: 768px) {
    .glass-card {
        padding: 24px;
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent 40%, rgba(0, 229, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.15);
}

/* ============ NAVBAR ============ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(6, 6, 18, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    nav {
        padding: 16px 5%;
    }
}

nav .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (min-width: 768px) {
    nav .logo {
        font-size: 22px;
        letter-spacing: 3px;
    }
}

nav .logo a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    background: rgba(6, 6, 18, 0.98);
    backdrop-filter: blur(25px);
    display: none;
    flex-direction: column;
    padding: 30px 0;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    align-items: center;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

nav .nav-links.open {
    display: flex !important;
}

@media (min-width: 768px) {
    nav .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 24px;
        background: transparent;
        backdrop-filter: none;
        border-bottom: none;
        transform: none;
        width: auto;
        height: auto;
    }
}

nav .nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    width: 80%;
    text-align: center;
}

@media (min-width: 768px) {
    nav .nav-links a {
        padding: 6px 12px;
        width: auto;
    }
}

nav .nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.08);
}

nav .nav-links a.active-link {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.nav-balance {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem !important;
    color: var(--primary) !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-xl);
    background: rgba(255, 215, 0, 0.05) !important;
    white-space: nowrap;
}

/* Mobile menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    z-index: 1002;
    position: relative;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.hamburger:active {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* ============ HERO ============ */
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 15px;
    position: relative;
    background:
        radial-gradient(circle at 30% 40%, rgba(124, 77, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
}

@media (min-width: 768px) {
    .hero {
        min-height: 65vh;
        padding: 60px 10%;
    }
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.3));
    }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* ============ BUTTONS ============ */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FFA000);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #D50000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00C853);
    color: #000;
    font-weight: 700;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ============ PRICE CARDS ============ */
.price-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 10px;
}

@media (min-width: 640px) {
    .price-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 40px 5%;
    }
}

@media (min-width: 1024px) {
    .price-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.price-card {
    text-align: center;
    position: relative;
}

.coin-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.coin-btc {
    background: linear-gradient(135deg, #F7931A, #E8850A);
    color: #fff;
}

.coin-eth {
    background: linear-gradient(135deg, #627EEA, #4A63B8);
    color: #fff;
}

.coin-sol {
    background: linear-gradient(135deg, #9945FF, #14F195);
    color: #fff;
}

.coin-bnb {
    background: linear-gradient(135deg, #F0B90B, #D4A30A);
    color: #000;
}

.price-card .symbol {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-card .current-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.price-card .price-change {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tick animations */
@keyframes pulseGreen {
    0% {
        box-shadow: inset 0 0 0 rgba(0, 230, 118, 0);
    }

    50% {
        box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.15);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(0, 230, 118, 0);
    }
}

@keyframes pulseRed {
    0% {
        box-shadow: inset 0 0 0 rgba(255, 23, 68, 0);
    }

    50% {
        box-shadow: inset 0 0 30px rgba(255, 23, 68, 0.15);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(255, 23, 68, 0);
    }
}

.tick-up {
    animation: pulseGreen 0.6s ease;
}

.tick-up .current-price {
    color: var(--success);
}

.tick-down {
    animation: pulseRed 0.6s ease;
}

.tick-down .current-price {
    color: var(--danger);
}

/* ============ DASHBOARD ============ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 8px;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 5fr 2fr;
        gap: 30px;
        padding: 30px 5%;
    }
}

/* ============ WALLET ============ */
.wallet-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(124, 77, 255, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.wallet-balance {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

/* ============ FORMS ============ */
.responsive-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .responsive-form-grid {
        grid-template-columns: 1fr;
    }
}

.markets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.markets-grid .glass-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 100px;
}

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============ TABLES ============ */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

@media (min-width: 768px) {

    th,
    td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr {
    transition: background 0.2s;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ============ STATUS BADGES ============ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-win,
.status-confirmed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.status-loss,
.status-rejected {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 145, 0, 0.2);
}

.status-draw {
    background: rgba(100, 100, 200, 0.1);
    color: #8888cc;
    border: 1px solid rgba(100, 100, 200, 0.2);
}

/* ============ PAGINATION ============ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination {
    display: flex;
    gap: 6px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 215, 0, 0.08);
}

.page-link.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
}

.page-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

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

/* ============ FILTER TABS ============ */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
}

/* ============ LIVE PREDICTION ============ */
.live-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 5%;
}

.live-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: livePulse 2s ease-in-out infinite;
}

.live-badge.active {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.live-badge.resolved {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.3);
    animation: none;
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 23, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
    }
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.price-display {
    text-align: center;
    padding: 40px 20px;
}

.price-display .current-price-lg {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin: 16px 0;
    transition: color 0.3s;
}

.price-display .entry-price-line {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    display: inline-block;
}

.price-diff {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 12px;
}

.price-diff.positive {
    color: var(--success);
}

.price-diff.negative {
    color: var(--danger);
}

.price-diff.neutral {
    color: var(--text-secondary);
}

.countdown-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    letter-spacing: 4px;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 8px;
}

.prediction-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.prediction-info-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.prediction-info-item .label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.prediction-info-item .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* Chart canvas */
.chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

#priceChart {
    width: 100%;
    height: 100%;
}

/* Result overlay */
.result-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: rgba(6, 6, 18, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

.result-card {
    text-align: center;
    padding: 60px 50px;
    border-radius: var(--radius-xl);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-card.win {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.05));
    border: 2px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 60px rgba(0, 230, 118, 0.2);
}

.result-card.loss {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.15), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.2);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.result-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 16px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

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

/* ============ FEATURE CARDS ============ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 15px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        padding: 60px 5%;
    }
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 40px 24px;
    }
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ ADMIN STAT CARDS ============ */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        margin-bottom: 40px;
    }
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.gold::after {
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.stat-card.green::after {
    background: var(--success);
}

.stat-card.red::after {
    background: var(--danger);
}

.stat-card.purple::after {
    background: var(--accent-purple);
}

.stat-card.cyan::after {
    background: var(--accent-cyan);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 8px;
}

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

/* ============ ADMIN CARDS GRID ============ */
.admin-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .admin-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

.admin-action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 140px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.admin-action-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

/* ============ UTILITIES ============ */
.mb-1 {
    margin-bottom: 4px !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.mb-5 {
    margin-bottom: 40px !important;
}

.section-title {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

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

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

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

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

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

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

.w-full {
    width: 100% !important;
}

/* ============ FLASH MESSAGES ============ */
.flash-message {
    padding: 12px 16px;
    margin: 12px 10px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 1002;
    animation: slideDown 0.4s ease;
}

@media (min-width: 768px) {
    .flash-message {
        padding: 14px 20px;
        margin: 16px 5%;
        font-size: 0.9rem;
    }
}

.flash-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.flash-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.flash-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 145, 0, 0.2);
}

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

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

/* ============ FOOTER ============ */
footer {
    padding: 30px 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    footer {
        padding: 40px 5%;
        margin-top: 60px;
        font-size: 0.85rem;
    }
}

/* ============ ANIMATION ENTRANCE ============ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============ DIRECTION BADGES ============ */
.direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.direction-high {
    background: var(--success-bg);
    color: var(--success);
}

.direction-low {
    background: var(--danger-bg);
    color: var(--danger);
}

.direction-equal {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}

/* ============ SEARCH ============ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
}

.search-bar .btn {
    flex-shrink: 0;
}

/* ============ RESPONSIVE ============ */
/* ============ END OF MOBILE-FIRST ARCHITECTURE ============ */

/* ============ CONFETTI ============ */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 3000;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Active prediction card */
.active-pred-card {
    border-left: 3px solid var(--warning);
    cursor: pointer;
    transition: all 0.3s;
}

.active-pred-card:hover {
    border-left-color: var(--primary);
    background: var(--bg-card-hover);
}

/* Mini countdown */
.mini-countdown {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--warning);
}

/* ============ RESULT POPUP ============ */
.result-popup-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.result-popup-overlay.show { opacity: 1; visibility: visible; }
.result-popup { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); width: 90%; max-width: 400px; padding: 30px; text-align: center; transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.result-popup-overlay.show .result-popup { transform: scale(1) translateY(0); }
.result-icon { font-size: 4rem; margin-bottom: 20px; }
.result-popup.win .result-icon { color: var(--success); filter: drop-shadow(0 0 15px var(--success)); }
.result-popup.loss .result-icon { color: var(--danger); filter: drop-shadow(0 0 15px var(--danger)); }
.result-title { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.result-details { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.4; }
.payout-amount { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 15px 0; }
@keyframes winGlow { 0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.2); } 70% { box-shadow: 0 0 0 20px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }
.result-popup.win { border-color: rgba(0, 230, 118, 0.3); animation: winGlow 2s infinite; }