:root {
    --bg-main: #0b0e11;
    --bg-card: #15191e;
    --bg-header: rgba(11, 14, 17, 0.85);
    --primary-cyan: #00ecff;
    --primary-blue: #007aff;
    --primary-yellow: #ffc107;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
}

/* Premium Background Glows */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(0, 236, 255, 0.08), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.05), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Global Styles */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.body-wrapper {
    background-color: transparent !important;
    min-height: 100vh;
    padding-top: 100px;
}

.app-header {
    background-color: var(--bg-header) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-color) !important;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    white-space: nowrap !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title {
    color: var(--text-white) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
}

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

/* Cards - Premium Gaming Style */
.card-cvh {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card-cvh::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.card-cvh:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 236, 255, 0.4) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 236, 255, 0.1);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-header-cvh {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1.5rem;
}

/* Custom Table */
.table-responsive {
    border-radius: 16px;
}

.table-cvh {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    margin-bottom: 0;
}

.table-cvh thead th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.table-cvh tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 20px;
    color: var(--text-main);
    vertical-align: middle;
}

/* Rank Styling */
.rank-1 {
    color: #ffd700 !important;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.rank-2 {
    color: #c0c0c0 !important;
    font-size: 1.1rem;
}

.rank-3 {
    color: #cd7f32 !important;
    font-size: 1.05rem;
}

/* Buttons - Premium Gradients */
.btn-cvh-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    color: white !important;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px -4px rgba(0, 236, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap !important;
}

.btn-cvh-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

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

.btn-cvh-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px -6px rgba(0, 236, 255, 0.5);
}

.btn-cvh-primary,
.btn-cvh-warning {
    font-family: 'Inter', sans-serif !important;
}

.btn-cvh-warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: #000;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 14px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms */
.form-control-cvh {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-white) !important;
    border-radius: 12px;
    padding: 12px 18px;
    transition: var(--transition);
}

.form-control-cvh:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1) !important;
}

.form-select-cvh {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-white) !important;
    border-radius: 12px;
    padding: 12px 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    appearance: none;
}

.form-select-cvh:focus {
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

/* Mobile Optimizations */
@media (max-width: 767px) {
    .body-wrapper {
        padding-top: 80px;
    }

    .card-cvh {
        border-radius: 16px;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .app-header {
        height: 70px;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .shop-item-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.shop-option-box {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    padding: 8px 4px !important;
    width: 100%;
    display: block;
}

.shop-buy-btn {
    white-space: nowrap !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
}

/* Hero Section */
.hero-section {
    padding: 20px 0 60px 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 210, 255, 0.05), transparent),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.03;
    pointer-events: none;
}

/* Glassmorphism Variants */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Vibrant Ranking Glows */
.rank-card-1 {
    border-color: rgba(255, 215, 0, 0.4) !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent) !important;
}

.rank-card-2 {
    border-color: rgba(192, 192, 192, 0.4) !important;
}

.rank-card-3 {
    border-color: rgba(205, 127, 50, 0.4) !important;
}

.badge-rank-1 {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.badge-rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #000;
}

.badge-rank-3 {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #fff;
}

/* Responsive Grid Adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

/* Utilities */
.text-cyan {
    color: var(--primary-cyan) !important;
}

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

.bg-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    transition: var(--transition);
    white-space: nowrap !important;
}

.navbar-brand img {
    height: 50px !important;
}

.navbar-nav {
    gap: 10px !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.rounded-5 {
    border-radius: 2.5rem !important;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}