* {
    box-sizing: border-box;
}

.top-nav {
    height: 52px;
    background: #2a2c31;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    height: 22px;
    display: block;
}

.main-menu {
    display: flex;
    gap: 20px;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.75;
}

.menu-link.active,
.menu-link:hover {
    opacity: 1;
    font-weight: 700;
}

.connect-btn {
    border: none;
    background: #ffffff;
    color: #111;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
}

.icon-svg,
.icon-btn svg,
.icon-btn svg path {
    fill: #ffffff;
}

.top-search-bar {
    display: none;
    background: #1b1c20;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 10px;
}

.top-search-bar.visible {
    display: flex;
}

.top-search-bar input {
    flex: 1;
    background: #262830;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.top-search-bar button {
    border: none;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.wallet-modal-overlay.active {
    display: flex;
}

.wallet-modal {
    position: relative;
    width: min(33vw, 520px);
    min-width: 340px;
    height: min(70vh, 720px);
    background: linear-gradient(180deg, #1b1d22 0%, #131316 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        0 0 30px rgba(109, 232, 146, 0.08);
    overflow: hidden;
    animation: walletModalPop 0.22s ease;
}

.wallet-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wallet-modal-close:hover {
    background: rgba(255,255,255,0.16);
}

.wallet-modal-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #131316;
}

@keyframes walletModalPop {
    0% {
        transform: scale(0.94);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0e0f12;
    color: #ffffff;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #9fffc9;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
}

.hero-subtext {
    max-width: 760px;
    margin: 14px auto 0;
    color: #9fb8a8;
    font-size: 16px;
    line-height: 1.6;
}

.search-shell {
    max-width: 720px;
    margin: 26px auto 0;
    padding: 10px;
    border-radius: 24px;
    background: #16181d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-search {
    width: 100%;
    border: none;
    outline: none;
    background: #1a1c21;
    color: #ffffff;
    font-size: 16px;
    padding: 18px 22px;
    border-radius: 18px;
}

.wallet-search::placeholder {
    color: #7f9a88;
}
.wallet-search:focus {
    border: 1px solid rgba(109, 232, 146, 0.4);
    box-shadow: 0 0 0 2px rgba(109, 232, 146, 0.08);
}

.leaderboard-panel {
    background: #14161b;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.leaderboard-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.leaderboard-head h2 {
    margin: 0 0 6px;
}

.leaderboard-head p,
.sort-note {
    margin: 0;
    color: #9fb8a8;
}

.table-wrap {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.leaderboard-table th {
    color: #8fd9b0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leaderboard-table td {
    color: #ffffff;
    font-size: 15px;
}

.wallet-link {
    color: #69e892;
    text-decoration: none;
    font-weight: 600;
}

.wallet-link:hover {
    text-decoration: none;
    color: #86ffb7;
}

.wallet-full {
    color: #6f8f7c;
    font-size: 12px;
    margin-top: 4px;
    word-break: break-all;
}

.error-box {
    background: rgba(140, 38, 38, 0.35);
    color: #ffd7d7;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 140, 140, 0.25);
}

.redeem-btn {
    border: none;
    outline: none;
    background: linear-gradient(135deg, #69e892 0%, #3bbd73 100%);
    color: #0c120e;
    font-weight: 800;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(109, 232, 146, 0.18);
    display: inline-block;
    text-decoration: none;
}

.redeem-btn:hover {
    transform: translateY(-1px);
    opacity: 0.96;
    box-shadow: 0 10px 24px rgba(109, 232, 146, 0.30);
}

.redeem-btn:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .top-nav {
        height: auto;
        padding: 10px 18px;
    }

    .nav-left,
    .nav-right {
        flex-wrap: wrap;
    }

    .wallet-modal {
        width: min(92vw, 520px);
        min-width: 0;
        height: min(78vh, 720px);
        border-radius: 18px;
    }
}
.claim-toast {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, rgba(105, 232, 146, 0.52) 0%, rgba(59, 189, 115, 0.52) 100%);
    color: #0c120e;
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.25),
        0 0 12px rgba(109, 232, 146, 0.12);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
    min-width: 260px;
    max-width: 340px;
}

.claim-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.toast-wallet {
    font-weight: 800;
}

.toast-text {
    opacity: 0.75;
}

.toast-amount {
    font-weight: 900;
}
#countdownWrap {
    margin-top: 12px;
    text-align: center;
}

.countdown-label {
    font-size: 13px;
    color: #9fb8a8;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

#countdownTimer {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;

    background: linear-gradient(135deg, #69e892, #3bbd73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 10px rgba(109, 232, 146, 0.25);
}