@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --obsidian: #0a0a0a;
    --imperial-gold: #d4af37;
    --imperial-gold-glow: rgba(212, 175, 55, 0.4);
    --blood-crimson: #8b0000;
    --ethereal-white: #f5f5f5;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --transition-speed: 0.4s;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--imperial-gold); border-radius: 5px; border: 2px solid var(--obsidian); }
::-webkit-scrollbar-thumb:hover { background: #e8c84a; }
* { scrollbar-width: thin; scrollbar-color: var(--imperial-gold) var(--obsidian); }

::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }
::-moz-selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--imperial-gold); outline-offset: 3px; }

body {
    background-color: var(--obsidian);
    color: var(--ethereal-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.footer-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   IMMERSIVE BACKGROUND — DRAGON & MONK THEME
   ============================================ */

/* --- Base layer: game background --- */
.site-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.7) 100%),
        url('../img/cobeasts_hero_bg.png?v=4') no-repeat 50% 70px fixed;
    background-size: cover;
    z-index: -4;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { transform: scale(1); filter: brightness(0.8); }
    100% { transform: scale(1.03); filter: brightness(0.9); }
}

/* --- Layer: Light rays from top --- */
.bg-light-rays {
    position: fixed;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    animation: raysMove 12s ease-in-out infinite alternate;
}

@keyframes raysMove {
    0% { transform: translateX(-2%) rotate(-1deg); opacity: 0.6; }
    100% { transform: translateX(2%) rotate(1deg); opacity: 1; }
}

/* --- Layer: Mystic fog at bottom --- */
.bg-fog {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.6), transparent);
    z-index: -2;
    pointer-events: none;
}

.bg-fog::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05), transparent 60%);
    animation: fogDrift 15s ease-in-out infinite alternate;
}

@keyframes fogDrift {
    0% { transform: translateX(-5%); }
    100% { transform: translateX(5%); }
}

/* --- Vignette overlay --- */
.site-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, transparent 20%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(ellipse at 50% 100%, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation Overhaul */
.navbar-dark.bg-dark {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 2px solid var(--imperial-gold);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--imperial-gold) !important;
    text-shadow: 0 0 10px var(--imperial-gold-glow);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-speed);
}

.navbar-brand:hover {
    text-shadow: 0 0 20px var(--imperial-gold-glow);
    transform: scale(1.02);
}

.navbar-brand::before {
    content: '';
    width: 45px;
    height: 45px;
    background: url('../img/rakionco_dragon_premium.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 8px var(--imperial-gold-glow));
}

.nav-link {
    color: var(--ethereal-white) !important;
    font-weight: 500;
    transition: var(--transition-speed);
    position: relative;
    padding: 0.5rem 1rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-link:hover {
    color: var(--imperial-gold) !important;
    text-shadow: 0 0 8px var(--imperial-gold-glow);
}

/* Mobile Toggler Mastery */
.navbar-toggler {
    border: 1px solid var(--imperial-gold) !important;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1) !important;
    transition: var(--transition-speed);
}

.navbar-toggler:focus {
    box-shadow: 0 0 15px var(--imperial-gold-glow) !important;
}

.navbar-toggler .ya-bar {
    color: var(--imperial-gold) !important;
    font-size: 1.5rem;
}

/* Responsive Breakpoints & Collapsible Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--glass-bg);
        border: 2px solid var(--imperial-gold);
        border-radius: 8px;
        margin-top: 1.5rem;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
        animation: navSlideIn 0.4s ease-out;
    }

    .navbar-nav {
        align-items: center;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem !important;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-right {
        margin-top: 1rem;
        justify-content: center;
        gap: 0.5rem;
    }

    .navbar-right .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto !important;
        width: 90%;
        max-width: 320px;
        z-index: 9999;
    }

    .dropdown-cart .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand::before {
        width: 30px;
        height: 30px;
    }

    .navbar-brand small {
        font-size: 0.6rem !important;
        letter-spacing: 2px !important;
    }

    .navbar-right .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.85rem;
    }

    .navbar-right.d-flex {
        gap: 0.25rem;
    }

    .dropdown-cart .nav-link {
        max-width: 120px;
        font-size: 0.8rem;
    }

    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 0.9rem;
        gap: 6px;
    }

    .navbar-brand::before {
        width: 24px;
        height: 24px;
    }

    .navbar-brand small {
        display: none !important;
    }

    .navbar-toggler {
        padding: 6px;
    }

    .navbar-toggler .ya-bar {
        font-size: 1.2rem;
    }

    .navbar-right .nav-link {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.75rem;
    }

    .navbar-right.d-flex {
        gap: 0.15rem;
    }

    .dropdown-cart .nav-link {
        max-width: 90px;
        font-size: 0.75rem;
    }
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Premium Card / UI Frame */
.card {
    background: var(--glass-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-speed);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

.card-header {
    background: rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid var(--imperial-gold);
    padding: 1.5rem;
}

.card-title {
    color: var(--imperial-gold);
    margin: 0;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Transparent status cards (Server Status, Players Online, etc.) */
.row.my-4 > [class*="col-"] > .card {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-color: rgba(212, 175, 55, 0.15);
    animation: fadeInUp 0.6s ease-out both;
}

.row.my-4 > [class*="col-"] > .card:hover {
    background: rgba(10, 10, 10, 0.3);
    border-color: var(--imperial-gold);
    box-shadow: 0 0 30px var(--imperial-gold-glow);
    transform: translateY(-5px);
}

.row.my-4 > [class*="col-"]:nth-child(1) .card { animation-delay: 0.1s; }
.row.my-4 > [class*="col-"]:nth-child(2) .card { animation-delay: 0.2s; }
.row.my-4 > [class*="col-"]:nth-child(3) .card { animation-delay: 0.3s; }
.row.my-4 > [class*="col-"]:nth-child(4) .card { animation-delay: 0.4s; }

/* Form Hardening Decor */
.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: var(--ethereal-white) !important;
    border-radius: 2px;
    transition: var(--transition-speed);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--imperial-gold) !important;
    box-shadow: 0 0 15px var(--imperial-gold-glow) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #8b0000, #4a0000);
    border: 1px solid var(--imperial-gold);
    color: var(--ethereal-white);
    font-family: 'Cinzel', serif;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    transition: var(--transition-speed);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00000, #600000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Footer Premium */
.site-footer {
    background: rgba(0, 0, 0, 0.95) !important;
    border-top: 3px solid var(--imperial-gold);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-title {
    color: var(--imperial-gold);
    margin-bottom: 1.5rem;
}

.footer-tags a {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--ethereal-white);
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    display: inline-block;
    border-radius: 2px;
    transition: var(--transition-speed);
}

.footer-tags a:hover {
    background: var(--imperial-gold);
    color: var(--obsidian);
    text-decoration: none;
}

/* Glass Card Enhancements */
.card-img-lg {
    display: block;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.card-img-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 1;
}

.card-img-lg .badge {
    z-index: 2;
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.8) contrast(1.2);
    transition: var(--transition-speed);
}

.card:hover .card-img-top {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .card-img-top {
        height: 160px;
    }
}

.ya-ranking.icon {
    font-size: 3rem;
    color: var(--imperial-gold);
    text-shadow: 0 0 15px var(--imperial-gold-glow);
    margin-bottom: 20px;
}

/* Store Specifics */
.badge-danger {
    background-color: var(--blood-crimson);
    border: 1px solid var(--imperial-gold);
    color: var(--ethereal-white);
    font-family: 'Cinzel', serif;
    padding: 0.5em 0.8em;
}

/* Secondary Button - Subtle & Harmonized */
.btn-default {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: var(--imperial-gold) !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition-speed);
}

.btn-default:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--imperial-gold) !important;
    color: var(--ethereal-white) !important;
    text-shadow: 0 0 5px var(--imperial-gold-glow);
}

/* Global Text Readability & Contrast */
p,
.lead,
.card-text {
    color: #dfdfdf !important;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.text-muted {
    color: #b0b0b0 !important;
}

strong,
b {
    color: var(--imperial-gold);
}

/* Social Media Section Refinement */
.social-frame {
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.7);
    border: 2px solid var(--imperial-gold);
    border-radius: 4px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.social-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--imperial-gold);
    opacity: 0.1;
    pointer-events: none;
}

.social-title {
    font-family: 'Cinzel', serif;
    color: var(--imperial-gold);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--imperial-gold-glow);
    font-size: 1.5rem;
}

/* Phase 3: Premium Rebranding Styles */
.premium-heading {
    font-family: 'Cinzel', serif;
    color: var(--imperial-gold) !important;
    text-shadow: 0 0 15px var(--imperial-gold-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-error {
    color: #e45454;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-error p {
    color: inherit !important;
    margin-bottom: 0.25rem;
}

.form-error-server {
    color: #ffcc00 !important;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 2px;
    margin-bottom: 0.75rem !important;
}

/* Store / Shop */
.shop-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0a0a0a 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.shop-hero .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.85);
}

.price-gold {
    color: var(--imperial-gold);
}

.card-donate {
    border-top: 2px solid transparent;
    transition: var(--transition-speed);
}

.card-donate:hover {
    border-top-color: var(--imperial-gold);
    transform: translateY(-2px);
}

.card-donate .card-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.form-success {
    background: rgba(0, 180, 0, 0.1);
    border: 2px solid #00b400;
    border-radius: 4px;
    color: var(--ethereal-white);
    padding: 2rem 1.5rem;
}

.account-footer-text {
    color: #f5f5f5 !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: var(--transition-speed);
}

.account-footer-text:hover {
    color: var(--imperial-gold) !important;
    text-shadow: 0 0 12px var(--imperial-gold-glow);
    letter-spacing: 1px;
}

/* ============================================
   PREMIUM TABLE STYLING (Ranks, Stats)
   ============================================ */
.table {
    color: var(--ethereal-white) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    margin-bottom: 2rem;
}

.table thead th {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--imperial-gold) !important;
    font-family: 'Cinzel', serif;
    border-bottom: 2px solid var(--imperial-gold) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.table td,
.table th {
    border-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--ethereal-white) !important;
    padding: 0.8rem !important;
    vertical-align: middle !important;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05) !important;
}

.table tbody tr:nth-child(1) td:first-child { color: var(--imperial-gold); font-weight: bold; }
.table tbody tr:nth-child(2) td:first-child { color: #c0a030; font-weight: bold; }
.table tbody tr:nth-child(3) td:first-child { color: #a08020; font-weight: bold; }

.table-bordered {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(212, 175, 55, 0.15) !important;
}

/* ============================================
   DOWNLOAD CARDS
   ============================================ */
.card-default.text-center {
    background: var(--glass-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all var(--transition-speed);
}

.card-default.text-center:hover {
    border-color: var(--imperial-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.15);
}

.display-3.font-weight-semibold.text-primary {
    color: var(--imperial-gold) !important;
    font-family: 'Cinzel', serif;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--imperial-gold);
    color: var(--imperial-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    transition: var(--transition-speed);
}

.btn-outline:hover {
    background: var(--imperial-gold);
    color: var(--obsidian);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* ============================================
   SHOP FIXES
   ============================================ */
.card-footer .h3.font-weight-normal.text-dark {
    color: var(--imperial-gold) !important;
}

.card-footer form input[type="image"] {
    filter: brightness(0.9) sepia(1) hue-rotate(-10deg) saturate(3);
    transition: all var(--transition-speed);
    border-radius: 4px;
}

.card-footer form input[type="image"]:hover {
    filter: brightness(1) sepia(0.5) hue-rotate(-10deg) saturate(2);
    transform: scale(1.05);
}

/* ============================================
   VOTE PAGE
   ============================================ */
.vote-card {
    background: var(--glass-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 2rem;
    transition: all var(--transition-speed);
}

.vote-card:hover {
    border-color: var(--imperial-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

.vote-banner {
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition-speed);
}

.vote-banner:hover {
    border-color: var(--imperial-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.4); }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

/* Section animations */
section.py-5,
section.py-lg-6,
section.pt-4 {
    animation: fadeInUp 0.6s ease-out both;
}

/* ============================================
   STATS PAGE FIXES
   ============================================ */
.registration-login {
    padding: 2rem 0;
}

.registration-login .widget-title {
    color: var(--imperial-gold);
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px var(--imperial-gold-glow);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   PROGRESS BAR / COUNTER ANIMATIONS
   ============================================ */
.server-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--imperial-gold);
    text-shadow: 0 0 10px var(--imperial-gold-glow);
    display: block;
    line-height: 1.2;
}

/* ============================================
   MISC FIXES
   ============================================ */
.site-content {
    min-height: 60vh;
}

.page.normal-page .container {
    padding: 2rem 15px;
}

/* Fix any remaining white text-dark issues */
.text-dark {
    color: var(--ethereal-white) !important;
}

/* List unstyled in dark theme */
.list-unstyled li {
    color: var(--ethereal-white);
}

/* Input group styling for forgot_password */
.input-group-text {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--imperial-gold);
}

.alert.alert-info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--imperial-gold);
    color: var(--ethereal-white);
}

/* Table fix for ranks page */
.registration-login .table th,
.registration-login .table td {
    color: var(--ethereal-white) !important;
}

.registration-login .table th {
    color: var(--imperial-gold) !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 2px solid var(--imperial-gold);
    border-radius: 50%;
    color: var(--imperial-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all var(--transition-speed);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.scroll-top:hover {
    background: var(--imperial-gold);
    color: var(--obsidian);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.scroll-top.visible {
    display: flex;
}

/* ============================================
   NAVBAR ACTIVE LINK
   ============================================ */
.nav-item.active .nav-link {
    color: var(--imperial-gold) !important;
    text-shadow: 0 0 8px var(--imperial-gold-glow);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--imperial-gold);
    box-shadow: 0 0 8px var(--imperial-gold-glow);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .display-0 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--imperial-gold);
    text-shadow: 0 0 30px var(--imperial-gold-glow), 0 0 60px rgba(212, 175, 55, 0.2);
    line-height: 1;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
}

.error-404 h2 {
    color: var(--ethereal-white);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.error-404 p {
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ============================================
   VOTE SUCCESS PAGE
   ============================================ */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    position: relative;
}

.success-checkmark::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #7fad4a;
    text-shadow: 0 0 20px rgba(127, 173, 74, 0.5);
}

.success-checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #7fad4a;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(127, 173, 74, 0.3); }
    50% { box-shadow: 0 0 30px rgba(127, 173, 74, 0.6); }
}

/* ============================================
   PAYMENT RECEIVE PAGE
   ============================================ */
.payment-success {
    text-align: center;
    padding: 3rem 0;
}

.payment-success .fa-check-circle {
    font-size: 4rem;
    color: #7fad4a;
    text-shadow: 0 0 20px rgba(127, 173, 74, 0.5);
    margin-bottom: 1.5rem;
    display: block;
}

/* Active nav link styling */
.nav-item.active .nav-link {
    color: var(--imperial-gold) !important;
}

/* ============================================
   ANIMATED COUNTERS
   ============================================ */
.counter-value {
    display: inline-block;
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.2rem;
    }

    .premium-heading.display-5 {
        font-size: 1.6rem;
    }

    h1.premium-heading {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .card-body.p-4 {
        padding: 1.25rem !important;
    }

    .card-body.p-4 .input-group {
        flex-wrap: nowrap;
    }

    .card-body.p-4 .input-group-text {
        padding: 0.375rem 0.6rem;
    }

    .card-body.p-4 .form-control {
        font-size: 0.9rem;
    }

    .site-footer {
        padding: 2rem 0 1.5rem;
        margin-top: 2rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 0.5rem !important;
        white-space: nowrap;
    }

    .table td,
    .table th {
        padding: 0.5rem !important;
        font-size: 0.85rem;
    }

    .social-frame {
        padding: 0.8rem;
    }

    .social-title {
        font-size: 1.1rem;
    }

    .conquer-divider::before,
    .conquer-divider::after {
        width: 15%;
    }

    .row.my-4 > [class*="col-"] > .card {
        animation: none;
    }

    .fade-in {
        animation: none;
    }

    .site-bg-overlay {
        background:
            linear-gradient(rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.65) 50%, rgba(10, 10, 10, 0.8) 100%),
            url('../img/cobeasts_hero_bg.png?v=4') no-repeat 50% 30% fixed;
        background-size: cover;
        animation: none;
    }

    .bg-light-rays {
        animation: none;
    }

    .error-404 .display-0 {
        font-size: 5rem;
    }

    .footer-bottom .container {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }

    .card .card-body {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand::before {
        width: 30px;
        height: 30px;
    }

    .card-header {
        padding: 1rem;
    }
}

/* ============================================
   PAGE LOADER
   ============================================ */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(212, 175, 55, 0.15);
    border-top-color: var(--imperial-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: var(--imperial-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

/* ============================================
   CONQUER THEMED DECORATIONS
   ============================================ */
.conquer-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.conquer-divider::before,
.conquer-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--imperial-gold), transparent);
}

.conquer-divider::before { left: 0; }
.conquer-divider::after { right: 0; }

.conquer-divider i {
    color: var(--imperial-gold);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--imperial-gold-glow);
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.conquer-icon-lg {
    font-size: 3rem;
    color: var(--imperial-gold);
    text-shadow: 0 0 15px var(--imperial-gold-glow);
    display: block;
    margin-bottom: 1rem;
}

/* Feature badge */
.feature-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--imperial-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
