/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.nav-logo img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.navbar-inner > p {
    font-weight: 600;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links li a {
    text-decoration: none;
    color: #cbd5e0;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #ec4899);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover {
    color: #a78bfa;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #cbd5e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ===== USER MENU DROPDOWN ===== */
.user-menu {
    position: relative;
}

.user-menu .username-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-top: 10px;
    z-index: 100;
    padding: 0;
}

.user-menu:hover .dropdown {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.user-menu .dropdown li {
    list-style: none;
    padding: 0;
}

.user-menu .dropdown a {
    display: block;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px;
}

.user-menu .dropdown a:hover {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15)),
                url("assets/banner.jpg") center/cover no-repeat;
    position: relative;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.85));
}

.header-inner {
    position: relative;
    max-width: 1100px;
    margin: auto;
    padding: 90px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.header-inner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.header-inner p {
    color: #cbd5e0;
    font-size: 15px;
    margin: 2px 0;
    max-width: 600px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 48px 24px;
}

.main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ===== CARD ===== */
.card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.card h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.3px;
}

/* Full Width Cards */
.card.full-width {
    grid-column: 1 / -1;
}

/* ===== SELECT ===== */
.select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
    margin-bottom: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.select:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(30, 41, 59, 0.8);
}

.select:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== BUTTON ===== */
.btn {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    letter-spacing: 0.3px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(71, 85, 105, 0.5);
    box-shadow: none;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #ec4899;
    transform: rotate(90deg);
}

.modal-box h3 {
    margin: 0 0 20px 0;
    color: #a78bfa;
    font-size: 24px;
}

.modal-box input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-box input:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.modal-box input::placeholder {
    color: #64748b;
}

.modal-box .btn {
    width: 100%;
    margin-top: 10px;
}

/* ===== LOADING ===== */
.loading {
    display: none;
    text-align: center;
    margin-top: 24px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(71, 85, 105, 0.3);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.loading p {
    color: #94a3b8;
    font-size: 14px;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat {
    text-align: center;
    padding: 24px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(71, 85, 105, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat h3 {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

/* ===== CHART WRAPPER ===== */
.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    max-width: 720px;
    margin: 16px auto 0;
    display: flex;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.empty-state p {
    font-size: 16px;
    margin-top: 8px;
}

/* ===== INFO BOX ===== */
.info-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.7;
}

.info-box strong {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.info-box a {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.info-box a:hover {
    border-bottom-color: #a78bfa;
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-color: rgba(251, 146, 60, 0.3);
}

.info-box.warning strong {
    background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.info-box ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.info-box ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== COUNTDOWN ===== */
.countdown-box {
    margin-top: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.countdown-box .time {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.countdown-box p {
    color: #94a3b8;
    font-size: 14px;
    margin: 8px 0;
}

/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 24px;
}

.popup.show {
    display: flex;
}

.popup-box {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    padding: 40px 32px;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: popupSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@keyframes popupSlide {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-box h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.popup-box .acc-link {
    display: block;
    margin: 20px 0;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(71, 85, 105, 0.5);
    border-radius: 16px;
    color: #a78bfa;
    word-break: break-all;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.popup-box .acc-link:hover {
    border-color: rgba(139, 92, 246, 0.8);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.popup-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.popup-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

.popup-box .close {
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    border: 1.5px solid rgba(71, 85, 105, 0.5);
    box-shadow: none;
}

.popup-box .close:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===== FAQ SECTION ===== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1.5px solid rgba(71, 85, 105, 0.4);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(30, 41, 59, 0.5);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(30, 41, 59, 0.3);
}

.faq-question span {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 15px;
    flex: 1;
}

.faq-icon {
    color: #a78bfa;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding-top: 4px;
}

/* ===== LEADERBOARD STYLES ===== */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #a78bfa, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(167, 139, 250, 0.4);
    transform: translateX(5px);
}

.leaderboard-item:hover::before {
    opacity: 1;
}

/* Top 3 special styles */
.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(30, 41, 59, 0.4));
    border-color: rgba(255, 215, 0, 0.4);
}

.leaderboard-item.rank-1::before {
    background: linear-gradient(180deg, transparent, #ffd700, transparent);
    opacity: 0.5;
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(30, 41, 59, 0.4));
    border-color: rgba(192, 192, 192, 0.4);
}

.leaderboard-item.rank-2::before {
    background: linear-gradient(180deg, transparent, #c0c0c0, transparent);
    opacity: 0.5;
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(30, 41, 59, 0.4));
    border-color: rgba(205, 127, 50, 0.4);
}

.leaderboard-item.rank-3::before {
    background: linear-gradient(180deg, transparent, #cd7f32, transparent);
    opacity: 0.5;
}

/* Current user highlight */
.leaderboard-item.current-user {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(30, 41, 59, 0.5));
    border: 2px solid rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.leaderboard-item.current-user::before {
    opacity: 1;
    background: linear-gradient(180deg, #a78bfa, #ec4899, #a78bfa);
}

/* Rank medal */
.rank-medal {
    font-size: 24px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.rank-1 .rank-medal {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rank-2 .rank-medal {
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.3);
    color: #c0c0c0;
}

.rank-3 .rank-medal {
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.3);
    color: #cd7f32;
}

.rank-other .rank-medal {
    color: #94a3b8;
    font-size: 18px;
}

/* User info */
.user-info {
    flex: 1;
    margin-left: 20px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.you-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(167, 139, 250, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.7);
    }
}

/* User claims */
.user-claims {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.claims-count {
    font-size: 24px;
    font-weight: 700;
    color: #a78bfa;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-1 .claims-count {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-2 .claims-count {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-3 .claims-count {
    background: linear-gradient(135deg, #cd7f32, #e89657);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.claims-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* ===== HISTORY TABLE ===== */
.history-table {
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    -webkit-overflow-scrolling: touch;
}

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

.history-table thead {
    background: rgba(15, 23, 42, 0.6);
}

.history-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 2px solid rgba(71, 85, 105, 0.4);
    font-size: 14px;
    white-space: nowrap;
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    font-size: 14px;
}

.history-table tbody tr {
    transition: background 0.3s ease;
}

.history-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.6);
}

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

.time-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.game-badge {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.link-btn {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* History Card Layout - Thay thế table trên mobile */
.history-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.history-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-card-row:last-child {
    margin-bottom: 0;
}

.history-card-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-card-value {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    color: #64748b;
    margin-top: 64px;
    padding: 32px;
    border-top: 1.5px solid rgba(71, 85, 105, 0.3);
    font-size: 14px;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 40px 20px;
    }
    
    .main {
        gap: 20px;
    }
    
    .card {
        padding: 28px;
    }
}

/* Tablet nhỏ & Mobile lớn: 600px - 900px */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 75%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 24px;
        padding-top: 100px;
        padding-left: 32px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
        border-right: 1px solid rgba(71, 85, 105, 0.3);
    }
    
    .nav-links.show {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-inner {
        padding: 80px 20px 32px 20px;
    }
    
    .header-inner h1 {
        font-size: 2rem;
    }
    
    .chart-wrapper {
        height: 280px;
    }
    
    .chart-wrapper canvas {
        max-height: 280px !important;
    }
}

/* Mobile: 600px - 768px */
@media (max-width: 768px) {
    .modal-box {
        padding: 25px;
        max-width: 90%;
    }
    
    .modal-box h3 {
        font-size: 20px;
    }
    
    .user-menu .dropdown {
        right: auto;
        left: 0;
    }
    
    .navbar .nav-links.show .user-menu .dropdown {
        position: relative;
        box-shadow: none;
        border: none;
        margin: 10px 0;
        background: rgba(30, 41, 59, 0.5);
    }
    
    .navbar .nav-links.show .user-menu:hover .dropdown {
        display: none;
    }
    
    .navbar .nav-links.show .user-menu.active .dropdown {
        display: block;
    }
    
    .leaderboard-item {
        padding: 14px 16px;
    }
    
    .rank-medal {
        font-size: 20px;
        min-width: 45px;
        padding: 6px;
    }
    
    .rank-other .rank-medal {
        font-size: 16px;
    }
    
    .user-info {
        margin-left: 15px;
    }
    
    .user-name {
        font-size: 15px;
    }
    
    .claims-count {
        font-size: 20px;
    }
    
    .claims-label {
        font-size: 12px;
    }
    
    .you-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* History Table Responsive */
    .history-table {
        font-size: 13px;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .history-table th:first-child,
    .history-table td:first-child {
        padding-left: 12px;
    }
    
    .history-table th:last-child,
    .history-table td:last-child {
        padding-right: 12px;
    }
    
    .time-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .game-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .link-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Mobile: dưới 600px */
@media (max-width: 600px) {
    .navbar-inner {
        padding: 12px 16px;
    }
    
    .navbar-inner > p {
        font-size: 13px;
    }
    
    .nav-logo img {
        width: 40px;
        height: 40px;
    }
    
    .header-inner {
        padding: 70px 16px 28px 16px;
        gap: 10px;
    }
    
    .header-inner h1 {
        font-size: 1.6rem;
    }
    
    .header-inner p {
        font-size: 14px;
    }
    
    .container {
        padding: 32px 16px;
    }
    
    .card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 13px;
        font-size: 14px;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .stat {
        padding: 20px 12px;
    }
    
    .stat h3 {
        font-size: 1.6rem;
    }
    
    .stat span {
        font-size: 12px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .chart-wrapper canvas {
        max-height: 250px !important;
    }
    
    .faq-question {
        padding: 16px 18px;
    }
    
    .faq-question span {
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 16px 18px;
    }
    
    .countdown-box {
        padding: 24px;
    }
    
    .countdown-box .time {
        font-size: 2rem;
    }
    
    .popup {
        padding: 16px;
    }
    
    .popup-box {
        padding: 32px 24px;
    }
    
    .popup-box h3 {
        font-size: 1.4rem;
    }
    
    .footer {
        margin-top: 48px;
        padding: 24px 16px;
        font-size: 13px;
    }
    
    /* History Table - Switch to Card Layout on Mobile */
    .history-table table {
        display: none;
    }
    
    .history-cards {
        display: flex;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .time-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .game-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .link-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Mobile: dưới 480px */
@media (max-width: 480px) {
    .leaderboard-item {
        padding: 12px 14px;
    }
    
    .rank-medal {
        font-size: 18px;
        min-width: 40px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .claims-count {
        font-size: 18px;
    }
}

/* Mobile rất nhỏ: dưới 400px */
@media (max-width: 400px) {
    .header-inner h1 {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        width: 85%;
    }
}