@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

:root { --reward-line: #dce6f5; }
html.dark-theme { --reward-line: #2b3548; }
/* ==========================================================================
   UU Bus Heroes Leaderboard - Premium Glassmorphic Design
   ========================================================================== */

/* Hub Navbar & Top Controls */
.hub-navbar {
    width: 100%;
    max-width: 760px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border, rgba(220, 230, 245, 0.8));
    box-sizing: border-box;
}

.dark-theme .hub-navbar {
    background: rgba(14, 15, 22, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.hub-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hub-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 81, 196, 0.06);
    color: var(--ink, #0E1B33);
    border: 1px solid var(--border, #DCE6F5);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hub-back-btn:hover {
    background: rgba(36, 81, 196, 0.12);
    color: var(--theme-accent-text, #2451C4);
    transform: translateX(-1px);
}

.hub-back-btn:active {
    transform: scale(0.95);
}

.dark-theme .hub-back-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

.hub-nav-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hub-nav-title {
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
    white-space: nowrap;
}

.dark-theme .hub-nav-title {
    color: #FFFFFF;
}

.hub-vip-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--status-warning-text);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.2px;
}

.dark-theme .hub-vip-pill {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.hub-vip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D97706;
    animation: uuPulse 2s infinite ease-in-out;
}

.dark-theme .hub-vip-dot {
    background: #FBBF24;
}

.hub-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hub-pts-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(36, 81, 196, 0.08);
    border: 1px solid rgba(36, 81, 196, 0.2);
    color: var(--theme-accent-text, #2451C4);
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .hub-pts-chip {
    background: rgba(36, 81, 196, 0.18);
    border-color: rgba(96, 165, 250, 0.3);
    color: #93C5FD;
}

/* Leaderboard Page Wrapper */
.leaderboard-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 16px 90px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    animation: uuSmoothContentFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* 3-Segmented Tabs Navigation */
.hub-tabs-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.hub-tabs-container {
    display: flex;
    align-items: center;
    background: #EEF2F7;
    padding: 5px;
    border-radius: 16px;
    gap: 6px;
    border: 1px solid rgba(14, 27, 51, 0.08);
    box-sizing: border-box;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 2px rgba(14, 27, 51, 0.03);
}

.dark-theme .hub-tabs-container {
    background: #0F131D;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hub-tab-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid rgba(14, 27, 51, 0.08);
    border-radius: 12px;
    background: #FFFFFF;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1.5px 3px rgba(14, 27, 51, 0.04);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap !important;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.dark-theme .hub-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.2);
}

.hub-tab-btn:hover {
    color: var(--ink, #0E1B33);
    border-color: rgba(14, 27, 51, 0.16);
    background: #F8FAFC;
}

.dark-theme .hub-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
}

.hub-tab-btn:active {
    transform: scale(0.97);
}

.hub-tab-btn.active {
    background: linear-gradient(135deg, #2451C4 0%, #1A3DA8 100%) !important;
    color: #FFFFFF !important;
    border-color: rgba(36, 81, 196, 0.3) !important;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.35) !important;
}

.hub-tab-btn.active svg {
    stroke: #FFFFFF;
}

.dark-theme .hub-tab-btn.active {
    background: linear-gradient(135deg, #2A5FE8 0%, #1E46B8 100%) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 16px rgba(42, 95, 232, 0.45) !important;
}

.hub-tab-btn svg {
    flex-shrink: 0;
}

.hub-tab-label-short {
    display: none;
}

.hub-tab-label-full {
    display: inline;
}

/* Compact Tab Hero Banner */
.hub-tab-hero-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border, #DCE6F5);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(14, 27, 51, 0.04);
    box-sizing: border-box;
}

.dark-theme .hub-tab-hero-compact {
    background: rgba(14, 15, 22, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.hub-hero-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hub-hero-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
}

.dark-theme .hub-hero-title {
    color: #FFFFFF;
}

.hub-hero-sub {
    font-size: 11.5px;
    color: var(--ink-soft, #5C6B8A);
}

.dark-theme .hub-hero-sub {
    color: #94A3B8;
}

.hub-hero-badge {
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .hub-hero-badge {
    background: rgba(36, 81, 196, 0.2);
    color: #60A5FA;
}

/* The List Container */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--reward-line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card, #fff);
}

/* Individual Leaderboard Card */
.hero-card {
    display: grid;
    grid-template-columns: 36px 36px minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: center;
    padding: 16px;
    min-height: 76px;
    border: 0;
    border-bottom: 1px solid var(--reward-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.dark-theme .hero-card {
    background: transparent;
    border-bottom-color: var(--reward-line);
    box-shadow: none;
}

.hero-card:active {
    transform: none;
}

/* Rank Indicator */
.hero-rank {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft);
    background: var(--surface, #f3f6fc);
}

.dark-theme .hero-rank {
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.08);
}

/* Top 3 Ranks get Special Treatment */
.hero-card[data-rank="1"] .hero-rank {
    background: rgba(36, 81, 196, 0.1);
    color: var(--theme-accent-text);
    box-shadow: none;
}

.hero-card[data-rank="2"] .hero-rank {
    background: rgba(36, 81, 196, 0.1);
    color: var(--theme-accent-text);
    box-shadow: none;
}

.hero-card[data-rank="3"] .hero-rank {
    background: rgba(36, 81, 196, 0.1);
    color: var(--theme-accent-text);
    box-shadow: none;
}

/* Avatar */
.hero-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface, #f3f6fc);
    color: var(--ink-soft);
    font-weight: 650;
    font-size: 12px;
}

.dark-theme .hero-avatar {
    background: #1E293B;
}

/* Info Column */
.hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-name {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dark-theme .hero-name {
    color: #F8FAFC;
}

.hero-dept {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 500;
}

.dark-theme .hero-dept {
    color: #94A3B8;
}

/* Points & Badge */
.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.hero-points {
    font-size: 20px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    color: var(--theme-accent-text);
    overflow-wrap: anywhere;
}

.dark-theme .hero-points {
    color: var(--theme-accent-text);
}

/* Skeleton Loading State for Leaderboard */
.skeleton-card {
    position: relative;
    overflow: hidden;
    height: 76px;
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface, #f3f6fc);
    opacity: 0.65;
}

.dark-theme .skeleton-card {
    background: rgba(30, 41, 59, 0.6);
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

.dark-theme .skeleton-card::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* ==========================================================================
   Rewards & Leaderboard Hub (3 Tabs & Views)
   ========================================================================== */
.hub-view-pane {
    animation: hubFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hubFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Claim View Styles */
.claim-hero-card {
    background: linear-gradient(135deg, rgba(36, 81, 196, 0.06) 0%, rgba(36, 81, 196, 0.02) 100%);
    border: 1px solid rgba(36, 81, 196, 0.16);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark-theme .claim-hero-card {
    background: linear-gradient(135deg, rgba(36, 81, 196, 0.12) 0%, rgba(14, 15, 22, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.09);
}

.claim-hero-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.claim-hero-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-soft, #5C6B8A);
    width: 100%;
}

.claim-hero-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink, #0E1B33);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.dark-theme .claim-hero-value {
    color: #FFFFFF;
}

.claim-pts-unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-accent-text, #2451C4);
}

.claim-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
    border: 1px solid rgba(36, 81, 196, 0.18);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .claim-tier-badge {
    background: rgba(96, 165, 250, 0.12);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.25);
}

.claim-hero-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.claim-progress-track {
    height: 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.dark-theme .claim-progress-track {
    background: rgba(255, 255, 255, 0.1);
}

.claim-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1E40AF, #3B82F6);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.claim-progress-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft, #5C6B8A);
    display: flex;
    justify-content: space-between;
}

.hub-section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink, #0E1B33);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dark-theme .hub-section-title {
    color: #F1F5F9;
}

.claim-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.claim-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #DCE6F5);
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(14, 27, 51, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark-theme .claim-task-item {
    background: rgba(14, 15, 22, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.task-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
}

.dark-theme .task-icon-box {
    background: rgba(96, 165, 250, 0.12);
    color: #93C5FD;
}

.task-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
}

.dark-theme .task-title {
    color: #FFFFFF;
}

.task-reward-chip {
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .task-reward-chip {
    background: rgba(96, 165, 250, 0.12);
    color: #93C5FD;
}

.task-desc {
    font-size: 11.5px;
    color: var(--ink-soft, #5C6B8A);
    line-height: 1.4;
}

.task-action-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    border: none;
    background: var(--primary, #2451C4);
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.task-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 81, 196, 0.28);
}

.task-action-btn.secondary {
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4) !important;
    border: 1px solid rgba(36, 81, 196, 0.2);
}

.dark-theme .task-action-btn.secondary {
    background: rgba(36, 81, 196, 0.18);
    color: #93C5FD !important;
    border-color: rgba(96, 165, 250, 0.3);
}

.task-action-btn.claimed {
    background: rgba(14, 27, 51, 0.06) !important;
    color: var(--ink-soft, #5C6B8A) !important;
    border: 1px solid var(--border, #DCE6F5);
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

.dark-theme .task-action-btn.claimed {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Redeem VIP Pass Vault & Tiers (Clean Monochromatic Enterprise Design)
   ========================================================================== */
.redeem-vault-card {
    margin-bottom: 20px;
    border: 1px solid var(--border, #DCE6F5);
    background: var(--card, #FFFFFF);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(14, 27, 51, 0.03);
}

.dark-theme .redeem-vault-card {
    background: rgba(14, 15, 22, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.redeem-vault-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.redeem-vault-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.redeem-vault-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink, #0E1B33);
    letter-spacing: 0.2px;
}

.dark-theme .redeem-vault-title {
    color: #FFFFFF;
}

.redeem-vault-title svg {
    color: var(--theme-accent-text, #2451C4);
    flex-shrink: 0;
}

.redeem-vault-desc {
    font-size: 11.5px;
    color: var(--ink-soft, #5C6B8A);
    line-height: 1.4;
    margin: 0;
}

.dark-theme .redeem-vault-desc {
    color: #94A3B8;
}

.redeem-tier-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #DCE6F5);
    border-radius: 14px;
    background: var(--surface, #F8FAFC);
    overflow: hidden;
}

.dark-theme .redeem-tier-list {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.redeem-tier-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--reward-line);
}

.dark-theme .redeem-tier-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.redeem-tier-row:last-child {
    border-bottom: none;
}

.redeem-tier-row:hover {
    background: rgba(36, 81, 196, 0.03);
}

.dark-theme .redeem-tier-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.redeem-tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.redeem-tier-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.redeem-tier-name {
    font-size: 13px;
    font-weight: 750;
    color: var(--ink, #0E1B33);
}

.dark-theme .redeem-tier-name {
    color: #F1F5F9;
}

.tier-pill {
    font-size: 9px;
    font-weight: 750;
    padding: 1.5px 6px;
    border-radius: 6px;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
    border: 1px solid rgba(36, 81, 196, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .tier-pill {
    background: rgba(96, 165, 250, 0.12);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.25);
}

.redeem-tier-sub {
    font-size: 11px;
    color: var(--ink-soft, #5C6B8A);
    line-height: 1.35;
}

.dark-theme .redeem-tier-sub {
    color: #94A3B8;
}

.redeem-tier-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.redeem-tier-cost {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink, #0E1B33);
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(14, 27, 51, 0.04);
    white-space: nowrap !important;
    letter-spacing: 0.2px;
}

.dark-theme .redeem-tier-cost {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.06);
}

.redeem-action-btn {
    min-height: 40px;
    min-width: 96px;
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: var(--primary, #2451C4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.redeem-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(36, 81, 196, 0.3);
}

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

/* Voucher / Redeem Card */
.hub-redeem-card {
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #DCE6F5);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.dark-theme .hub-redeem-card {
    background: rgba(14, 15, 22, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.hub-redeem-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
    margin-bottom: 4px;
}

.dark-theme .hub-redeem-title {
    color: #FFFFFF;
}

.hub-redeem-desc {
    font-size: 11.5px;
    color: var(--ink-soft, #5C6B8A);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.dark-theme .hub-redeem-desc {
    color: #94A3B8;
}

.hub-redeem-row {
    display: flex;
    gap: 8px;
}

.hub-redeem-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #DCE6F5);
    background: var(--surface, #F3F6FC);
    color: var(--ink, #0E1B33);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    text-transform: uppercase;
}

.dark-theme .hub-redeem-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.hub-redeem-submit {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    background: var(--primary, #2451C4);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.hub-ref-stat-vip {
    color: var(--theme-accent-text, #2451C4);
    font-weight: 700;
}

.dark-theme .hub-ref-stat-vip {
    color: #60A5FA;
}

/* History & Guide Styles */
.hub-pill-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 12px;
    background: rgba(36, 81, 196, 0.1);
    color: var(--theme-accent-text, #2451C4);
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.dark-theme .hub-pill-tag {
    background: rgba(36, 81, 196, 0.2);
    color: #60A5FA;
}

.guide-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #DCE6F5);
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(14, 27, 51, 0.03);
}

.dark-theme .guide-item {
    background: rgba(14, 15, 22, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.guide-item.vip-perk {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
}

.dark-theme .guide-item.vip-perk {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.08);
}

.guide-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 81, 196, 0.08);
    color: var(--theme-accent-text, #2451C4);
    flex-shrink: 0;
    margin-top: 2px;
}

.dark-theme .guide-icon-box {
    background: rgba(36, 81, 196, 0.2);
    color: #60A5FA;
}

.guide-item.vip-perk .guide-icon-box {
    background: rgba(245, 158, 11, 0.15);
    color: var(--status-warning-text);
}

.guide-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.guide-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink, #0E1B33);
}

.dark-theme .guide-title {
    color: #FFFFFF;
}

.guide-reward {
    font-size: 11px;
    font-weight: 700;
    color: var(--status-success-text);
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.guide-item.vip-perk .guide-reward {
    color: var(--status-warning-text);
}

.guide-desc {
    font-size: 11.5px;
    color: var(--ink-soft, #5C6B8A);
    line-height: 1.45;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--reward-line);
    border-radius: 16px;
    background: var(--card, #fff);
    overflow: hidden;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--reward-line);
    border-radius: 0;
}

.dark-theme .history-item {
    background: transparent;
    border-bottom-color: var(--reward-line);
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.history-icon-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-icon-dot.bonus { background: #10B981; }
.history-icon-dot.referral { background: var(--primary, #2451C4); }
.history-icon-dot.report { background: #F59E0B; }
.history-icon-dot.welcome { background: #8B5CF6; }

.history-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.history-title {
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dark-theme .history-title {
    color: #FFFFFF;
}

.history-meta {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.history-pts {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.history-pts.positive {
    background: rgba(16, 185, 129, 0.12);
    color: var(--status-success-text);
}

.history-pts.negative {
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-danger-text);
}

.history-icon-dot.redeem { background: #8B5CF6; }

/* ==========================================================================
   Mobile Responsiveness & Media Queries (Strict AGENTS.md Hierarchy)
   ========================================================================== */

/* 1. All Standard Mobile Devices (iPhone 13-16, Samsung Galaxy, Pixel: 361px - 480px) */
@media (max-width: 480px) {
    .hub-navbar {
        padding: 0 12px;
        height: 52px;
    }
    .hub-back-btn {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .hub-nav-title {
        font-size: 14px;
    }
    .hub-vip-pill {
        font-size: 9px;
        padding: 2px 5px;
    }
    .hub-pts-chip {
        padding: 4px 8px;
        font-size: 11px;
    }
    .has-dock-nav .dash-content {
        padding-bottom: 0 !important;
    }
    .leaderboard-container {
        padding: 8px 12px calc(80px + env(safe-area-inset-bottom, 12px)) 12px !important;
        gap: 12px;
    }
    .hub-tab-label-full {
        display: none !important;
    }
    .hub-tab-label-short {
        display: inline !important;
    }
    .hub-tabs-container {
        padding: 4px;
        gap: 5px;
        border-radius: 14px;
        margin-bottom: 14px;
    }
    .hub-tab-btn {
        min-height: 38px;
        padding: 8px 6px;
        font-size: 11.5px;
        font-weight: 700;
        gap: 4px;
        border-radius: 10px;
    }
    .hub-tab-btn svg {
        width: 13.5px;
        height: 13.5px;
    }
    .hub-tab-hero-compact {
        padding: 10px 12px;
        border-radius: 14px;
    }
    .hub-hero-title {
        font-size: 12.5px;
    }
    .hub-hero-sub {
        font-size: 10.5px;
    }
    .hero-card {
        padding: 12px 14px !important;
        border-radius: 0;
        grid-template-columns: 30px minmax(0, 1fr) 80px;
        gap: 10px;
    }
    .hero-rank {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-right: 0;
    }
    .hero-avatar {
        display: none;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        margin-right: 10px;
    }
    .hero-name {
        font-size: 14px;
    }
    .hero-dept {
        font-size: 11px;
    }
    .hero-points {
        font-size: 15px;
    }
    .claim-hero-card {
        padding: 14px 14px !important;
        border-radius: 16px !important;
    }
    .claim-hero-value {
        font-size: 26px;
    }
    .claim-task-item {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }
    .task-title {
        font-size: 12px;
    }
    .task-action-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }
    .reward-store-card,
    .hub-redeem-card {
        padding: 13px 14px !important;
        border-radius: 16px !important;
    }
    .guide-item {
        padding: 12px 14px !important;
        border-radius: 16px !important;
    }
    .guide-title {
        font-size: 12px;
    }
    .guide-reward {
        font-size: 10.5px !important;
    }
    .history-item {
        padding: 10px 14px !important;
        border-radius: 0;
    }
    .history-title {
        font-size: 12px;
    }
    .history-pts {
        font-size: 11px;
        padding: 2.5px 7px;
    }
}

/* 2. Narrow Mobile Viewports (<= 410px - prevents header clutter) */
@media (max-width: 410px) {
    .hub-vip-pill {
        display: none !important;
    }
    .hub-tab-btn {
        font-size: 10.5px;
        padding: 7px 2px;
        gap: 3px;
    }
    .hero-points {
        font-size: 14px;
    }
}

/* 3. Ultra-Compact Mobile Devices (<= 360px) */
@media (max-width: 360px) {
    .hub-navbar {
        padding: 0 10px;
        height: 48px;
    }
    .hub-nav-title {
        font-size: 13px;
    }
    .hub-pts-chip {
        padding: 3px 6px;
        font-size: 10px;
    }
    .leaderboard-container {
        padding: 6px 10px calc(80px + env(safe-area-inset-bottom, 12px)) 10px !important;
        gap: 10px;
    }
    .hub-tabs-container {
        padding: 3px;
        gap: 3px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .hub-tab-btn {
        min-height: 36px;
        font-size: 10.5px;
        font-weight: 700;
        padding: 7px 3px;
        gap: 3px;
        border-radius: 9px;
    }
    .hub-tab-btn svg {
        width: 12px;
        height: 12px;
    }
    .hero-card {
        padding: 10px 10px !important;
        border-radius: 0;
        grid-template-columns: 26px minmax(0, 1fr) 76px;
        gap: 8px;
    }
    .hero-avatar {
        width: 36px;
        height: 36px;
        margin-right: 8px;
        border-radius: 10px;
    }
    .hero-rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 0;
    }
    .hero-name {
        font-size: 13px;
    }
    .hero-dept {
        font-size: 10px;
    }
    .hero-points {
        font-size: 13px;
    }
    .claim-hero-card,
    .redeem-vault-card,
    .claim-task-item,
    .hub-redeem-card,
    .guide-item {
        padding: 12px 12px !important;
        border-radius: 14px !important;
    }
    .redeem-tier-row {
        padding: 10px 10px;
        gap: 8px;
    }
    .redeem-tier-name {
        font-size: 12px;
    }
    .redeem-tier-sub {
        font-size: 10px;
    }
    .redeem-tier-cost {
        font-size: 11px;
        padding: 2.5px 6px;
    }
    .redeem-action-btn {
        height: 29px;
        padding: 0 10px;
        font-size: 11px;
    }
    .task-title {
        font-size: 11px;
    }
}


/* Rewards information hierarchy and explicit request states. */
.hero-card:last-child, .history-item:last-child { border-bottom: 0; }
.hero-points-unit, .history-kind { font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.hero-dept span { font-weight: 400; }
.rewards-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; color: var(--ink-soft); font-size: 12px; }
.rewards-text-btn { padding: 8px 2px; border: 0; background: transparent; color: var(--theme-accent-text); font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.leaderboard-columns { display: grid; grid-template-columns: 36px minmax(0, 1fr) 112px; gap: 12px; padding: 8px 16px; font-size: 11px; color: var(--ink-soft); }
.leaderboard-columns span:last-child { text-align: right; }
.rewards-empty { padding: 28px 20px; color: var(--ink); font-size: 14px; line-height: 1.6; }
.rewards-empty p { color: var(--ink-soft); font-size: 12px; margin: 6px 0 12px; }
.rewards-empty a { color: var(--theme-accent-text); font-weight: 650; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 0; }
.history-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.history-direction { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--theme-accent-text); flex-shrink: 0; }
.history-direction.positive { color: var(--status-success-text); }
.history-direction.negative { color: var(--status-danger-text); }
.reward-rules { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.reward-rules summary { cursor: pointer; color: var(--ink-soft); font-size: 13px; font-weight: 650; margin-bottom: 16px; }
.redeem-eligibility { color: var(--theme-accent-text); font-size: 11px; font-weight: 600; line-height: 1.5; margin-top: 6px; }
.redeem-tier-cost { font-variant-numeric: tabular-nums; }
.redeem-action-btn:disabled { background: var(--surface, #edf2f8); border-color: var(--border); color: var(--ink-soft); cursor: not-allowed; box-shadow: none; transform: none; }
.reward-balance-status { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
.reward-feedback { padding: 12px; margin: 0 0 14px; border: 1px solid var(--border); border-left: 3px solid var(--theme-accent-text); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; line-height: 1.5; }
.reward-feedback[data-kind="error"] { border-left-color: var(--status-danger-text); }
.reward-feedback[data-kind="success"] { border-left-color: var(--status-success-text); }
.redeem-confirm-dialog {
    margin: auto;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    width: min(420px, calc(100% - 32px));
    box-sizing: border-box;
    padding: 28px 24px 22px;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
:root.dark-theme .redeem-confirm-dialog,
html.dark-theme .redeem-confirm-dialog,
.dark-theme .redeem-confirm-dialog {
    background: #101624 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}
.redeem-confirm-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.redeem-confirm-dialog h2 {
    font-family: 'Switzer', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}
:root.dark-theme .redeem-confirm-dialog h2,
html.dark-theme .redeem-confirm-dialog h2,
.dark-theme .redeem-confirm-dialog h2 {
    color: #F8FAFC !important;
}
.redeem-confirm-dialog p {
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #475569;
}
:root.dark-theme .redeem-confirm-dialog p,
html.dark-theme .redeem-confirm-dialog p,
.dark-theme .redeem-confirm-dialog p {
    color: #94A3B8 !important;
}
.redeem-confirm-note {
    color: #64748B;
    font-size: 12px;
}
.redeem-confirm-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.redeem-confirm-actions button {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Switzer', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.reward-cancel-btn {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #E2E8F0;
}
.reward-cancel-btn:hover {
    background: #E2E8F0;
}
:root.dark-theme .reward-cancel-btn,
html.dark-theme .reward-cancel-btn,
.dark-theme .reward-cancel-btn {
    background: #172033 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}
.reward-confirm-btn {
    background: #0066FF;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}
.reward-confirm-btn:hover {
    background: #0052CC;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}
@media (max-width: 480px) {
    .leaderboard-columns { grid-template-columns: 30px minmax(0, 1fr) 80px; gap: 10px; padding: 8px 14px; }
    .hub-tab-btn, .task-action-btn { min-height: 44px; }
    .hub-tabs-container { margin-bottom: 4px; }
    .hero-points { font-size: 17px; }
    .redeem-tier-row { padding: 14px 12px; gap: 12px; }
    .redeem-action-btn { min-height: 44px; min-width: 86px; }
    .redeem-tier-name { font-size: 14px; }
    .redeem-tier-sub { font-size: 11px; line-height: 1.5; }
    .history-meta span { display: block; }
    .history-item-left { gap: 8px; }
    .redeem-confirm-dialog { padding: 20px 16px; }
}
@media (max-width: 360px) {
    .leaderboard-columns { grid-template-columns: 26px minmax(0, 1fr) 76px; gap: 8px; padding: 8px 10px; }
}

/* ==========================================================================
   Clean White + Blue UI v2 Theme — Rewards & Leaderboard Hub
   Scoped strictly under body.ui-v2 to preserve existing behavior & other pages
   ========================================================================== */

body.ui-v2 {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ui-bg, #F4F7FB);
    color: var(--ui-ink, #0E1B33);
    -webkit-font-smoothing: antialiased;
}

/* Hub Navbar */
body.ui-v2 .hub-navbar {
    background: var(--ui-surface, #FFFFFF) !important;
    border-bottom: 1px solid var(--ui-border, #E5E7EB) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.ui-v2 .hub-back-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ui-bg, #F4F7FB);
    border: 1px solid var(--ui-border, #E5E7EB);
    color: var(--ui-ink-soft, #5C6B8A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

body.ui-v2 .hub-back-btn:hover {
    background: #EEF4FF;
    color: var(--ui-primary, #0066FF);
    border-color: rgba(0, 102, 255, 0.3);
}

body.ui-v2 .hub-nav-title {
    font-family: 'Switzer', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .hub-vip-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-family: 'Switzer', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

body.ui-v2 .hub-vip-dot {
    background: #D97706;
}

body.ui-v2 .hub-pts-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #EEF4FF;
    border: 1px solid rgba(0, 102, 255, 0.2);
    color: var(--ui-primary, #0066FF);
    font-family: 'Switzer', monospace;
    font-size: 12px;
    font-weight: 700;
}

body.ui-v2 .hub-pts-chip svg {
    color: #F59E0B;
}

/* Leaderboard Container */
body.ui-v2 .leaderboard-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 16px 90px;
    box-sizing: border-box;
}

/* Segmented Tabs Navigation */
body.ui-v2 .hub-tabs-container {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 14px;
    padding: 4px;
    display: flex;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.ui-v2 .hub-tab-btn {
    flex: 1;
    min-height: 40px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Switzer', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ui-ink-soft, #5C6B8A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.ui-v2 .hub-tab-btn:hover {
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .hub-tab-btn.active {
    background: #EEF4FF;
    color: var(--ui-primary, #0066FF);
    box-shadow: 0 1px 2px rgba(0, 102, 255, 0.1);
}

/* Tab Hero Compact */
body.ui-v2 .hub-tab-hero-compact {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.ui-v2 .hub-hero-title {
    font-family: 'Switzer', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ui-ink, #0E1B33);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ui-v2 .hub-hero-sub {
    font-size: 11.5px;
    color: var(--ui-ink-soft, #5C6B8A);
}

body.ui-v2 .hub-hero-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-family: 'Switzer', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: 9999px;
    background: #EEF4FF;
    color: var(--ui-primary, #0066FF);
}

/* Leaderboard Columns & List */
body.ui-v2 .leaderboard-columns {
    font-family: 'Switzer', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ui-ink-soft, #5C6B8A);
    padding: 6px 14px;
}

body.ui-v2 .leaderboard-list {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.ui-v2 .leaderboard-row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ui-border, #E5E7EB);
    display: grid;
    align-items: center;
    transition: background 0.15s ease;
}

body.ui-v2 .leaderboard-row:hover {
    background: var(--ui-bg, #F8FAFC);
}

body.ui-v2 .leaderboard-row:last-child {
    border-bottom: none;
}

body.ui-v2 .hero-name {
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .hero-points {
    font-family: 'Switzer', monospace;
    font-weight: 700;
    color: var(--ui-primary, #0066FF);
}

/* Claim & Redeem View */
body.ui-v2 .claim-hero-card,
body.ui-v2 .redeem-vault-card,
body.ui-v2 .hub-redeem-card {
    background: var(--ui-surface, #FFFFFF) !important;
    border: 1px solid var(--ui-border, #E5E7EB) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

body.ui-v2 .claim-hero-label {
    font-family: 'Switzer', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--ui-ink-soft, #5C6B8A);
}

body.ui-v2 .claim-hero-value {
    font-family: 'Switzer', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--ui-ink, #0E1B33);
    margin: 4px 0;
}

body.ui-v2 .claim-pts-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--ui-primary, #0066FF);
}

body.ui-v2 .claim-tier-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-family: 'Switzer', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2.5px 8px;
    border-radius: 9999px;
    background: #FEF3C7;
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.ui-v2 .claim-progress-track {
    background: var(--ui-bg, #F4F7FB);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

body.ui-v2 .claim-progress-fill {
    background: var(--ui-primary, #0066FF);
    border-radius: 9999px;
    height: 100%;
    transition: width 0.3s ease;
}

body.ui-v2 .redeem-vault-title,
body.ui-v2 .hub-redeem-title {
    font-family: 'Switzer', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ui-ink, #0E1B33);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ui-v2 .redeem-vault-desc,
body.ui-v2 .hub-redeem-desc {
    font-size: 12px;
    color: var(--ui-ink-soft, #5C6B8A);
    margin-top: 4px;
    margin-bottom: 12px;
    line-height: 1.45;
}

body.ui-v2 .redeem-tier-row {
    background: var(--ui-bg, #F8FAFC);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.15s ease;
}

body.ui-v2 .redeem-tier-row:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

body.ui-v2 .redeem-tier-name {
    font-family: 'Switzer', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .redeem-tier-sub {
    font-size: 11.5px;
    color: var(--ui-ink-soft, #5C6B8A);
    display: block;
    margin-top: 2px;
}

body.ui-v2 .redeem-tier-cost {
    font-family: 'Switzer', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--ui-primary, #0066FF);
}

body.ui-v2 .redeem-action-btn {
    padding: 7px 16px;
    border-radius: 10px;
    background: var(--ui-primary, #0066FF);
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.ui-v2 .redeem-action-btn:hover:not(:disabled) {
    background: #0052CC;
}

body.ui-v2 .redeem-action-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

body.ui-v2 .claim-task-item {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

body.ui-v2 .task-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #EEF4FF;
    color: var(--ui-primary, #0066FF);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ui-v2 .task-title {
    font-family: 'Switzer', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .task-reward-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-family: 'Switzer', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7.5px;
    border-radius: 9999px;
    background: #ECFDF5;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

body.ui-v2 .task-action-btn {
    padding: 7px 16px;
    border-radius: 10px;
    background: var(--ui-primary, #0066FF);
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.ui-v2 .task-action-btn:hover {
    background: #0052CC;
}

body.ui-v2 .task-action-btn.secondary {
    background: #EEF4FF;
    color: var(--ui-primary, #0066FF);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

body.ui-v2 .task-action-btn.secondary:hover {
    background: #E0ECFF;
}

body.ui-v2 .hub-redeem-input {
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 10px;
    background: var(--ui-bg, #F8FAFC);
    color: var(--ui-ink, #0E1B33);
    font-family: 'Switzer', sans-serif;
    font-size: 12.5px;
    padding: 8px 12px;
    outline: none;
    flex: 1;
    transition: border-color 0.15s ease;
}

body.ui-v2 .hub-redeem-input:focus {
    border-color: var(--ui-primary, #0066FF);
}

body.ui-v2 .hub-redeem-submit {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--ui-primary, #0066FF);
    color: #FFFFFF;
    font-family: 'Switzer', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.ui-v2 .hub-redeem-submit:hover {
    background: #0052CC;
}

/* Recent Activity */
body.ui-v2 .history-item {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.ui-v2 .reward-rules {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 16px;
    padding: 14px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Redeem Confirmation Dialog */
body.ui-v2 .redeem-confirm-dialog {
    background: var(--ui-surface, #FFFFFF) !important;
    border: 1px solid var(--ui-border, #E5E7EB) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18) !important;
    color: var(--ui-ink, #0E1B33) !important;
}

body.ui-v2 .reward-confirm-btn {
    background: var(--ui-primary, #0066FF) !important;
    border-color: var(--ui-primary, #0066FF) !important;
}

/* Floating Bottom Dock */
body.ui-v2 .dock-island-main {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.ui-v2 .dock-tab {
    color: #6B7280;
    transition: color 0.15s ease, background 0.15s ease;
}

body.ui-v2 .dock-tab:hover {
    color: var(--primary, #2451C4);
}

body.ui-v2 .dock-tab.active {
    background: var(--primary, #2451C4) !important;
    color: #FFFFFF !important;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.35) !important;
}

body.ui-v2 .dock-tab.active svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

body.ui-v2 .dock-island-action {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.ui-v2 .dock-action-btn {
    color: #374151;
}

/* Full Dark Theme Pairing */
:root.dark-theme body.ui-v2,
html.dark-theme body.ui-v2,
body.ui-v2.dark-theme {
    background-color: var(--ui-bg, #0B0F19);
    color: var(--ui-ink, #F9FAFB);
}

:root.dark-theme body.ui-v2 .hub-navbar,
html.dark-theme body.ui-v2 .hub-navbar,
body.ui-v2.dark-theme .hub-navbar {
    background: var(--ui-surface, #111827) !important;
    border-bottom-color: var(--ui-border, #1F2937) !important;
}

:root.dark-theme body.ui-v2 .hub-nav-title,
html.dark-theme body.ui-v2 .hub-nav-title,
body.ui-v2.dark-theme .hub-nav-title,
:root.dark-theme body.ui-v2 .hub-hero-title,
html.dark-theme body.ui-v2 .hub-hero-title,
body.ui-v2.dark-theme .hub-hero-title,
:root.dark-theme body.ui-v2 .hero-name,
html.dark-theme body.ui-v2 .hero-name,
body.ui-v2.dark-theme .hero-name,
:root.dark-theme body.ui-v2 .claim-hero-value,
html.dark-theme body.ui-v2 .claim-hero-value,
body.ui-v2.dark-theme .claim-hero-value,
:root.dark-theme body.ui-v2 .redeem-vault-title,
html.dark-theme body.ui-v2 .redeem-vault-title,
body.ui-v2.dark-theme .redeem-vault-title,
:root.dark-theme body.ui-v2 .hub-redeem-title,
html.dark-theme body.ui-v2 .hub-redeem-title,
body.ui-v2.dark-theme .hub-redeem-title,
:root.dark-theme body.ui-v2 .redeem-tier-name,
html.dark-theme body.ui-v2 .redeem-tier-name,
body.ui-v2.dark-theme .redeem-tier-name,
:root.dark-theme body.ui-v2 .task-title,
html.dark-theme body.ui-v2 .task-title,
body.ui-v2.dark-theme .task-title {
    color: var(--ui-ink, #F9FAFB);
}

:root.dark-theme body.ui-v2 .hub-back-btn,
html.dark-theme body.ui-v2 .hub-back-btn,
body.ui-v2.dark-theme .hub-back-btn {
    background: #1F2937;
    border-color: #374151;
    color: #D1D5DB;
}

:root.dark-theme body.ui-v2 .hub-tabs-container,
html.dark-theme body.ui-v2 .hub-tabs-container,
body.ui-v2.dark-theme .hub-tabs-container,
:root.dark-theme body.ui-v2 .hub-tab-hero-compact,
html.dark-theme body.ui-v2 .hub-tab-hero-compact,
body.ui-v2.dark-theme .hub-tab-hero-compact,
:root.dark-theme body.ui-v2 .leaderboard-list,
html.dark-theme body.ui-v2 .leaderboard-list,
body.ui-v2.dark-theme .leaderboard-list,
:root.dark-theme body.ui-v2 .claim-hero-card,
html.dark-theme body.ui-v2 .claim-hero-card,
body.ui-v2.dark-theme .claim-hero-card,
:root.dark-theme body.ui-v2 .redeem-vault-card,
html.dark-theme body.ui-v2 .redeem-vault-card,
body.ui-v2.dark-theme .redeem-vault-card,
:root.dark-theme body.ui-v2 .hub-redeem-card,
html.dark-theme body.ui-v2 .hub-redeem-card,
body.ui-v2.dark-theme .hub-redeem-card,
:root.dark-theme body.ui-v2 .claim-task-item,
html.dark-theme body.ui-v2 .claim-task-item,
body.ui-v2.dark-theme .claim-task-item,
:root.dark-theme body.ui-v2 .history-item,
html.dark-theme body.ui-v2 .history-item,
body.ui-v2.dark-theme .history-item,
:root.dark-theme body.ui-v2 .reward-rules,
html.dark-theme body.ui-v2 .reward-rules,
body.ui-v2.dark-theme .reward-rules,
:root.dark-theme body.ui-v2 .redeem-confirm-dialog,
html.dark-theme body.ui-v2 .redeem-confirm-dialog,
body.ui-v2.dark-theme .redeem-confirm-dialog {
    background: var(--ui-surface, #111827) !important;
    border-color: var(--ui-border, #1F2937) !important;
}

:root.dark-theme body.ui-v2 .hub-tab-btn,
html.dark-theme body.ui-v2 .hub-tab-btn,
body.ui-v2.dark-theme .hub-tab-btn,
:root.dark-theme body.ui-v2 .hub-hero-sub,
html.dark-theme body.ui-v2 .hub-hero-sub,
body.ui-v2.dark-theme .hub-hero-sub,
:root.dark-theme body.ui-v2 .claim-hero-label,
html.dark-theme body.ui-v2 .claim-hero-label,
body.ui-v2.dark-theme .claim-hero-label,
:root.dark-theme body.ui-v2 .redeem-vault-desc,
html.dark-theme body.ui-v2 .redeem-vault-desc,
body.ui-v2.dark-theme .redeem-vault-desc,
:root.dark-theme body.ui-v2 .hub-redeem-desc,
html.dark-theme body.ui-v2 .hub-redeem-desc,
body.ui-v2.dark-theme .hub-redeem-desc,
:root.dark-theme body.ui-v2 .redeem-tier-sub,
html.dark-theme body.ui-v2 .redeem-tier-sub,
body.ui-v2.dark-theme .redeem-tier-sub {
    color: #9CA3AF;
}

:root.dark-theme body.ui-v2 .hub-tab-btn.active,
html.dark-theme body.ui-v2 .hub-tab-btn.active,
body.ui-v2.dark-theme .hub-tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

:root.dark-theme body.ui-v2 .redeem-tier-row,
html.dark-theme body.ui-v2 .redeem-tier-row,
body.ui-v2.dark-theme .redeem-tier-row {
    background: #0B0F19;
    border-color: #1F2937;
}

:root.dark-theme body.ui-v2 .leaderboard-row,
html.dark-theme body.ui-v2 .leaderboard-row,
body.ui-v2.dark-theme .leaderboard-row {
    border-bottom-color: #1F2937;
}

:root.dark-theme body.ui-v2 .leaderboard-row:hover,
html.dark-theme body.ui-v2 .leaderboard-row:hover,
body.ui-v2.dark-theme .leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

:root.dark-theme body.ui-v2 .task-icon-box,
html.dark-theme body.ui-v2 .task-icon-box,
body.ui-v2.dark-theme .task-icon-box {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

:root.dark-theme body.ui-v2 .hub-redeem-input,
html.dark-theme body.ui-v2 .hub-redeem-input,
body.ui-v2.dark-theme .hub-redeem-input {
    background: #1F2937;
    border-color: #374151;
    color: #F9FAFB;
}

:root.dark-theme body.ui-v2 .task-action-btn.secondary,
html.dark-theme body.ui-v2 .task-action-btn.secondary,
body.ui-v2.dark-theme .task-action-btn.secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

:root.dark-theme body.ui-v2 .dock-island-main,
:root.dark-theme body.ui-v2 .dock-island-action,
html.dark-theme body.ui-v2 .dock-island-main,
html.dark-theme body.ui-v2 .dock-island-action,
body.ui-v2.dark-theme .dock-island-main,
body.ui-v2.dark-theme .dock-island-action {
    background: rgba(17, 24, 39, 0.94);
    border-color: rgba(31, 41, 55, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

:root.dark-theme body.ui-v2 .dock-tab,
html.dark-theme body.ui-v2 .dock-tab,
body.ui-v2.dark-theme .dock-tab {
    color: #9CA3AF;
}

:root.dark-theme body.ui-v2 .dock-tab.active,
html.dark-theme body.ui-v2 .dock-tab.active,
body.ui-v2.dark-theme .dock-tab.active {
    background: #3B82F6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45) !important;
}

:root.dark-theme body.ui-v2 .dock-tab.active svg,
html.dark-theme body.ui-v2 .dock-tab.active svg,
body.ui-v2.dark-theme .dock-tab.active svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

:root.dark-theme body.ui-v2 .dock-action-btn,
html.dark-theme body.ui-v2 .dock-action-btn,
body.ui-v2.dark-theme .dock-action-btn {
    color: #D1D5DB;
}

/* Mobile Breakpoint Standards (Rule 1.1) */
@media (max-width: 480px) {
    body.ui-v2 .leaderboard-container {
        padding: 14px 12px 85px !important;
        max-width: 100%;
    }
    body.ui-v2 .claim-hero-card,
    body.ui-v2 .redeem-vault-card,
    body.ui-v2 .hub-redeem-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    body.ui-v2 .redeem-tier-row {
        padding: 12px 10px !important;
    }
}

@media (max-width: 360px) {
    body.ui-v2 .hub-nav-title {
        font-size: 14.5px !important;
    }
    body.ui-v2 .claim-hero-value {
        font-size: 22px !important;
    }
    body.ui-v2 .claim-hero-card,
    body.ui-v2 .redeem-vault-card,
    body.ui-v2 .hub-redeem-card {
        padding: 14px 10px !important;
    }
    body.ui-v2 .hub-tab-btn {
        font-size: 11px !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body.ui-v2 .hub-tab-btn,
    body.ui-v2 .redeem-tier-row,
    body.ui-v2 .redeem-action-btn,
    body.ui-v2 .task-action-btn,
    body.ui-v2 .hub-redeem-submit {
        transition: none !important;
    }
}
