@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700;900&family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;700;900&family=Amiri:wght@400;700&family=Reem+Kufi:wght@400;700;900&display=swap');

:root {
    --primary-color: #00e5ff;
    --primary-hover: #ffffff;
    --primary-deep: #0077b6;
    --accent-color: #7b2ff7;
    --accent-hover: #a25cfa;
    --secondary-color: #b0c4de;
    --bg-dark: #02050b;
    --bg-card: rgba(2, 6, 16, 0.88);
    --border-color: rgba(0, 229, 255, 0.3);
    --text-main: #ffffff;
    --danger-color: #ff3b30;
    
    /* Luxury Gaming Theme Extensions */
    --gold-primary: #ffd700;
    --gold-dark: #c5a012;
    --gold-glow: rgba(255, 215, 0, 0.5);
    --cyan-glow: rgba(0, 229, 255, 0.6);
    --gold-gradient: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #b37d14 100%);
    --cyan-gradient: linear-gradient(135deg, #00f2fe 0%, #00e5ff 100%);
    --glass-bg: rgba(2, 6, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-dark) !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #02050b 0%, #040c1a 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Outfit', 'Cairo', 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #010205;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--primary-color));
    border-radius: 10px;
    border: 3px solid #010205;
    box-shadow: 0 0 15px var(--gold-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Typography & Luxury Text Gradients */
h1, h2, h3, h4, h5, h6, .cinzel-font {
    font-family: 'Cinzel', serif;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Royal Ornate Borders */
.gold-line-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-dark), transparent);
    box-shadow: 0 0 10px var(--gold-glow);
    margin: 20px auto;
    width: 60%;
}

/* ===== RPG CARD WITH ORNATE CORNER BRACKETS ===== */
.wolf-card, .rpg-card {
    position: relative;
    background: rgba(3, 8, 22, 0.88) !important;
    border: 1px solid rgba(0, 229, 255, 0.28) !important;
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 25px rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

/* Vintage Corner Ornaments */
.wolf-card::before, .wolf-card::after,
.rpg-card::before, .rpg-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--gold-primary);
    border-style: solid;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.wolf-card::before, .rpg-card::before {
    top: 8px; left: 8px;
    border-width: 3px 0 0 3px;
}
.wolf-card::after, .rpg-card::after {
    bottom: 8px; right: 8px;
    border-width: 0 3px 3px 0;
}

.wolf-card:hover, .rpg-card:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.9),
        0 0 45px rgba(0, 229, 255, 0.25);
}
.wolf-card:hover::before, .rpg-card:hover::before {
    top: 4px; left: 4px;
    filter: drop-shadow(0 0 10px var(--gold-primary));
}
.wolf-card:hover::after, .rpg-card:hover::after {
    bottom: 4px; right: 4px;
    filter: drop-shadow(0 0 10px var(--gold-primary));
}

/* ===== MAGIC GLOW COUNTDOWN BOX (DOUBLE METALLIC BORDERS) ===== */
.gold-border-frame {
    background: rgba(2, 6, 16, 0.92) !important;
    border: 3px solid var(--gold-primary) !important;
    box-shadow: 
        0 0 0 1px #010307, 
        0 0 35px var(--cyan-glow), 
        inset 0 0 30px rgba(255, 215, 0, 0.25) !important;
    position: relative;
    border-radius: 16px;
    padding: 35px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gold-border-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(0, 229, 255, 0.65);
    border-radius: 22px;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.gold-border-frame:hover {
    border-color: #ffffff !important;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 0 0 1px #010307, 
        0 0 50px rgba(0, 229, 255, 0.75), 
        0 20px 50px rgba(0, 0, 0, 0.9),
        inset 0 0 35px rgba(255, 255, 255, 0.15) !important;
}
.gold-border-frame:hover::before {
    inset: -12px;
    border-color: var(--gold-primary);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(1, 3, 7, 0.92) !important;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3) !important;
    padding: 18px 0;
    box-shadow: 
        0 12px 50px rgba(0, 0, 0, 0.9), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 3px 25px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.nav-link {
    font-family: 'Cinzel', serif;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 6px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--primary-color));
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 90%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px var(--glow-primary);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #b37d14, var(--gold-primary)) !important;
    color: #010307 !important;
    font-weight: 900 !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    font-family: 'Cinzel', serif;
    padding: 14px 32px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-primary), #ffffff) !important;
    box-shadow: 
        0 0 40px var(--gold-glow), 
        0 10px 30px rgba(0, 0, 0, 0.6) !important;
    color: #010307 !important;
    transform: translateY(-4px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 1px;
}

.btn-outline-primary:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* ===== INPUTS ===== */
.form-control {
    background-color: rgba(1, 3, 7, 0.85) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6);
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4) !important;
    background-color: rgba(3, 10, 22, 0.95) !important;
}

/* ===== TABLES (Rankings) ===== */
.rank-table {
    width: 100%;
    color: #fff;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.rank-table th {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--gold-glow);
}

.rank-table td {
    padding: 18px;
    background: rgba(4, 12, 28, 0.75);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-align: center;
    vertical-align: middle;
}

.rank-table tr td:first-child {
    border-left: 1px solid rgba(255,255,255,0.03);
    border-radius: 10px 0 0 10px;
}

.rank-table tr td:last-child {
    border-right: 1px solid rgba(255,255,255,0.03);
    border-radius: 0 10px 10px 0;
}

.rank-table tr:hover td {
    background: rgba(0, 229, 255, 0.12);
    color: #fff;
    border-color: rgba(0, 229, 255, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: #000102;
    border-top: 2px solid rgba(255, 215, 0, 0.35);
    padding: 50px 0;
    margin-top: 100px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.9);
}

.footer-brand {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(135deg, var(--gold-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px var(--gold-glow));
}

/* ===== BLINK & FLOATING ANIMATIONS ===== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.blink { animation: blink 1.5s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 45px rgba(255, 215, 0, 0.55), 0 0 75px rgba(255, 215, 0, 0.25); }
}

/* ===== PARTICLES BACKGROUND ===== */
.oxygen-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(105vh) scale(0.3);
    }
    20% {
        opacity: 0.75;
    }
    80% {
        opacity: 0.45;
    }
    100% {
        opacity: 0;
        transform: translateY(-5vh) scale(1.3);
    }
}

/* ===== LEADERBOARD CHAMPION PODIUM ===== */
.rank-champion-card {
    position: relative;
    background: rgba(2, 6, 16, 0.9) !important;
    border: 2px solid var(--gold-primary) !important;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.85), 
        0 0 25px rgba(255, 215, 0, 0.15),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
}

.rank-champion-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.9), 
        0 0 35px rgba(0, 229, 255, 0.3),
        inset 0 0 25px rgba(0, 229, 255, 0.08);
    border-color: var(--primary-color) !important;
}

.rank-champion-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px var(--gold-primary));
}

