:root {
    --primary: #f77000;
    --primary-light: #ffa055;
    --primary-dark: #c65700;
    --secondary: #1e1710;
    --neutral-white: #ffffff;
    --neutral-gray: #dcdcdc;
    --neutral-dark: #282828;
    --success: #1fc16b;
    --warning: #dfb400;

    /* Theme dependent variables (Dark by default) */
    --bg-dark: #0f0d0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(15, 13, 10, 0.8);
    --input-bg: rgba(255, 255, 255, 0.05);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --error: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    --bg-dark: #fbfbfb;
    --secondary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.7);
    --input-bg: #ffffff;
    --shadow: none;
    --shadow-lg: none;
}

/* Global Light Mode Overrides - Stripping All Shadows */
[data-theme="light"] * {
    text-shadow: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .info-alert {
    background: #fff7ed;
    color: var(--primary);
    border: 1px solid #ffedd5;
}

[data-theme="light"] .info-alert span {
    color: var(--primary) !important;
    background: transparent !important;
}

[data-theme="light"] .rewards-info-box {
    border: 1px solid #f3f4f6;
    background: #ffffff;
}

[data-theme="light"] .rewards-item-bg {
    background: #fdfaf8;
    border: 1px solid #f3f4f6;
}

/* Logo swapping logic */
.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

[data-theme="light"] .logo-white {
    display: none;
}

[data-theme="light"] .logo-black {
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(247, 112, 0, 0.08) 0%, transparent 60%);
    background-size: 100% 100%;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loader-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent !important;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

[data-theme="light"] .nav-link {
    color: #0f0d0a;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 112, 0, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(247, 112, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(247, 112, 0, 0.4);
}

.btn-ghost {
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(247, 112, 0, 0.1);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-copy {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition);
}

.user-menu-trigger:hover {
    background: var(--bg-card-hover);
}

.user-menu-trigger .chevron {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.user-menu.open .chevron {
    transform: rotate(180deg);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.main {
    padding-top: 72px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -72px;
    padding: 152px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    display: none;
}

.hero-pattern {
    display: none;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 1100px;
}

.hero-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(247, 112, 0, 0.1);
    border: 1px solid rgba(247, 112, 0, 0.2);
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {

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

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

.promo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.promo-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

[data-theme="light"] .promo-text {
    color: var(--primary);
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-visual {
    position: relative;
}

.floating-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-img {
    position: absolute;
    width: 120px;
    height: auto;
    filter: blur(0.8px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    transition: var(--transition-bounce);
    pointer-events: auto;
}

.float-img:hover {
    transform: scale(1.1) rotate(5deg) !important;
    filter: blur(0) drop-shadow(0 15px 30px rgba(247, 112, 0, 0.4));
    z-index: 10;
}

.img-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.img-2 {
    top: 20%;
    right: 10%;
    width: 160px;
    animation-delay: 1.5s;
}

.img-3 {
    bottom: 15%;
    left: 14%;
    width: 150px;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }

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

.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: var(--transition-bounce);
}

.hero-image:hover {
    transform: scale(1.02);
}



.hero-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 5s ease-in-out infinite alternate;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
}

.hero-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-card .card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card .card-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.hero-card .card-text {
    display: flex;
    flex-direction: column;
}

.hero-card .card-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-card .card-value {
    font-size: 24px;
    font-weight: 700;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-bounce);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

[data-theme="light"] .glass-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-color: #f3f4f6;
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

/* Rewards Info Box Styles */
.rewards-info-box {
    margin-bottom: 48px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(247, 112, 0, 0.3);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .rewards-info-box {
    box-shadow: var(--shadow-lg);
}

.rewards-icon-circle {
    background: rgba(247, 112, 0, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(247, 112, 0, 0.2);
}

.rewards-item-bg {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex: 1 1 280px;
    max-width: 450px;
}

[data-theme="light"] .rewards-item-bg {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button Styles - Premium Switch */
.theme-toggle {
    width: 64px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--primary);
}

.theme-toggle .icon-wrapper {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.theme-toggle .toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(247, 112, 0, 0.3);
    z-index: 1;
}

[data-theme="light"] .theme-toggle {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .theme-toggle .toggle-thumb {
    transform: translateX(32px);
    box-shadow: 0 4px 12px rgba(247, 112, 0, 0.4);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.theme-toggle .moon {
    color: var(--primary-light);
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon {
    color: #6b7280;
    opacity: 1;
}

.theme-toggle .sun {
    color: #6b7280;
    opacity: 1;
}

[data-theme="light"] .theme-toggle .sun {
    color: #ffffff;
    opacity: 1;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(247, 112, 0, 0.2);
}

.how-it-works {
    padding: 100px 0;
}

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

.step-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(247, 112, 0, 0.2) 0%, rgba(247, 112, 0, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.leaderboard-section {
    padding: 100px 0;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 64px;
    padding-top: 80px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 280px;
    position: relative;
}

.podium-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0px;
    z-index: 2;
    transform: translateY(-45px);
    /* Raised significantly */
    position: relative;
}

/* Crown Animation Restored */
.crown {
    position: absolute;
    top: -55px;
    /* Raised further */
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

.crown svg {
    width: 50px;
    /* Reduced from 64px */
    height: 50px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

.podium-avatar-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.podium-1 .podium-avatar-wrapper {
    width: 90px;
    height: 90px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.podium-2 .podium-avatar-wrapper,
.podium-3 .podium-avatar-wrapper {
    width: 70px;
    height: 70px;
}

.podium-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.podium-box {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(80, 45, 10, 0.4) 0%, rgba(20, 10, 2, 0.8) 100%);
    border-radius: 0 0 16px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 24px;
}

.podium-box-top {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, rgba(100, 60, 20, 0.6) 0%, rgba(60, 35, 10, 0.8) 100%);
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.podium-box-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.podium-1 .podium-box {
    height: 340px;
    background: linear-gradient(180deg, rgba(120, 70, 20, 0.5) 0%, rgba(40, 20, 5, 0.9) 100%);
    padding-top: 50px;
}

.podium-2 .podium-box {
    height: 280px;
    padding-top: 30px;
}

.podium-3 .podium-box {
    height: 230px;
    /* Shorter than 2nd place */
    padding-top: 30px;
}

.podium-1 .podium-box-top {
    background: linear-gradient(180deg, rgba(150, 90, 20, 0.7) 0%, rgba(100, 60, 10, 0.9) 100%);
    clip-path: polygon(8% 0, 92% 0, 100% 100%, 0% 100%);
}

.podium-rank-text {
    font-size: 36px;
    font-weight: 800;
    margin-top: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.podium-1 .podium-rank-text {
    font-size: 52px;
    margin-top: 24px;
}

.podium-points-pill {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
}

[data-theme="light"] .podium-points-pill {
    background: #ffffff !important;
    color: var(--text-secondary);
    border: 1px solid #f3f4f6;
}

.pill-icon {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    font-weight: 800;
}

.pill-icon.gold {
    background: var(--gold);
    color: white;
}

.pill-icon.silver {
    background: #C0C0C0;
    color: white;
}

.pill-icon.bronze {
    background: #CD7F32;
    color: white;
}

/* Podium Light Mode Redesign */
[data-theme="light"] .podium-box-top {
    background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%) !important;
}

[data-theme="light"] .podium-box {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
    border: 1px solid #ffedd5;
}

[data-theme="light"] .podium-1 .podium-box {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
}

[data-theme="light"] .podium-1 .podium-box-top {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%) !important;
}

[data-theme="light"] .podium-rank-text {
    background: var(--primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.leaderboard-table-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-lg);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.leaderboard-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none !important;
    border-right: none !important;
}

.leaderboard-table th.col-points,
.leaderboard-table th.col-trend {
    text-align: center;
}

.leaderboard-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    transition: var(--transition);
}

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

.leaderboard-table tbody tr {
    transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.col-rank {
    width: 80px;
}

.col-user {
    width: 100%;
}

.col-points {
    width: 120px;
    text-align: center;
}

.col-referrals {
    width: 150px;
    text-align: center;
}

.col-trend {
    width: 80px;
    text-align: center;
}

.trend-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.trend-cell.up {
    color: var(--success);
}

.trend-cell.down {
    color: var(--error);
}

.trend-cell.same {
    color: var(--text-muted);
}

.trend-cell svg {
    width: 16px;
    height: 16px;
}

.rank-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.rank-badge.gold {
    background: var(--gold);
    color: #8a6d00;
}

.rank-badge.silver {
    background: var(--silver);
    color: #666;
}

.rank-badge.bronze {
    background: var(--bronze);
    color: #6b4423;
}

.rank-badge.default {
    background: var(--bg-card);
    color: var(--text-muted);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-cell .username {
    font-weight: 600;
}

.points-cell {
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

.referrals-cell {
    text-align: right;
    color: var(--text-secondary);
}

.leaderboard-actions {
    text-align: center;
}

.all-rankings-section {
    padding: 48px 0 100px;
    background: linear-gradient(180deg, rgba(20, 16, 13, 0.4) 0%, var(--secondary) 12%);
    border-top: 1px solid var(--border-color);
}

.all-rankings-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .all-rankings-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.all-rankings-heading {
    text-align: left;
}

.all-rankings-heading .section-title {
    margin-bottom: 4px;
}

.all-rankings-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.all-rankings-table-scroll {
    max-height: min(70vh, 720px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.all-rankings-loading,
.all-rankings-error {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--text-secondary);
}

.all-rankings-error {
    color: var(--danger, #e85d4c);
}

.leaderboard-preview {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.preview-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.preview-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
}

.preview-rank.gold {
    background: var(--gold);
    color: #8a6d00;
}

.preview-rank.silver {
    background: var(--silver);
    color: #666;
}

.preview-rank.bronze {
    background: var(--bronze);
    color: #6b4423;
}

.preview-rank.default {
    background: var(--bg-card);
    color: var(--text-muted);
}

.preview-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.preview-name {
    font-weight: 600;
}

.preview-points {
    font-weight: 700;
    color: var(--primary);
}

.preview-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.preview-link:hover {
    color: var(--primary-light);
}

.cta-section {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(247, 112, 0, 0.15) 0%, rgba(198, 87, 0, 0.1) 100%);
    border: 1px solid rgba(247, 112, 0, 0.3);
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.dashboard-section {
    padding: 100px 0;
}

.dashboard-header {
    margin-bottom: 48px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.dashboard-title span {
    color: var(--primary);
}

.dashboard-subtitle {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(247, 112, 0, 0.2) 0%, rgba(247, 112, 0, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.stat-icon.pending {
    background: rgba(223, 180, 0, 0.2);
}

.stat-icon.pending svg {
    stroke: var(--warning);
}

.stat-info .stat-value.pending {
    color: var(--warning);
}

.stat-icon.available {
    background: rgba(31, 193, 107, 0.2);
}

.stat-icon.available svg {
    stroke: var(--success);
}

.stat-info .stat-value.available {
    color: var(--success);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: 700;
}

.referral-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.referral-card {
    padding: 24px;
}

.referral-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.referral-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.referral-code {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary);
    letter-spacing: 2px;
}

.referral-link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.referral-link-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.referral-link-input:focus {
    outline: none;
    border-color: var(--primary);
}

.share-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-btn.x {
    background: #000000;
    border-color: #000000;
}

.share-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.email {
    background: var(--primary);
    border-color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.x:hover {
    background: #333333;
}

.share-btn.x:hover svg {
    fill: white;
}

.share-btn.twitter:hover svg {
    fill: white;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-btn.whatsapp:hover svg {
    fill: white;
}

.share-btn.email:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.share-btn.email:hover svg {
    fill: white;
}

.referrals-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.referrals-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.referrals-table th {
    padding: 16px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.referrals-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.referrals-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.referral-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-name-cell .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.referral-name-cell .name {
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(223, 180, 0, 0.15);
    color: var(--warning);
}

.status-badge.active {
    background: rgba(31, 193, 107, 0.15);
    color: var(--success);
}

.referral-reward {
    font-weight: 600;
    color: var(--success);
}

.referral-reward.pending {
    color: var(--warning);
}

.referral-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.referrals-table-container+.empty-state {
    display: none;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.footer {
    background: var(--secondary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 24px;
    padding: 32px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

/* ── All Rankings Modal (larger) ── */
.rankings-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.rankings-modal-header {
    padding: 32px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.rankings-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rankings-modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.all-rankings-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.rankings-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 32px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.rankings-modal-body::-webkit-scrollbar {
    width: 6px;
}

.rankings-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.rankings-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .rankings-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        margin: 8px;
        border-radius: 16px;
    }

    .rankings-modal-header {
        padding: 16px 16px 12px;
    }

    .rankings-modal-body {
        padding: 12px 16px 20px;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-text {
    font-size: 32px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-intro {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.auth-form-footer {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.auth-form-link {
    margin: -8px 0 0 0;
    text-align: right;
    font-size: 14px;
}

.auth-inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
}

.register-terms input {
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.register-terms a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.register-terms a:hover {
    color: var(--text-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

[data-theme="light"] .auth-modal-content {
    background: #ffffff !important;
    border: 1px solid #f3f4f6;
}

[data-theme="light"] .auth-tabs {
    background: #f3f4f6;
}

[data-theme="light"] .auth-tab:not(.active) {
    color: #6b7280;
}

[data-theme="light"] .form-group input {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #111827;
}

[data-theme="light"] .auth-form-intro,
[data-theme="light"] .form-group label {
    color: #374151;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .referral-section {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.mobile-nav-overlay.open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.mobile-nav-panel {
    position: absolute;
    top: 72px; /* Below header */
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.mobile-nav-overlay.open .mobile-nav-panel {
    transform: translateY(0);
}

.mobile-nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

[data-theme="light"] .mobile-nav-link {
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

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

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    padding-left: 8px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .logo-img {
        height: 20px !important;
    }

    .nav {
        display: none;
    }

    /* Show hamburger on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Hide login/register text buttons in header on mobile */
    .header-actions #loginBtn, 
    .header-actions #registerBtn {
        display: none !important;
    }

    .hero {
        padding: 80px 16px 60px;
    }

    .hero-title {
        font-size: 38px !important; 
        line-height: 1.25;
    }

    .hero-title .title-line:first-child {
        display: inline;
        font-size: 38px !important;
        white-space: normal;
    }

    /* Float images hidden on mobile */
    .img-2, .img-3, .float-img {
        display: none !important;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-promo-badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-cta .btn {
        width: auto;
        flex: 1;
        min-width: 140px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }

    .stat-divider {
        display: none;
    }

    .section-title {
        font-size: 26px;
    }

    /* Reduce spacing between sections */
    .how-it-works,
    .leaderboard-section,
    .cta-section,
    .dashboard-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .rewards-info-box {
        padding: 24px 16px !important;
    }

    .rewards-info-box h3 {
        font-size: 1.25rem !important;
        margin-bottom: 20px !important;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* Podium Mobile - Miniature Side-by-Side */
    .podium {
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: 6px;
        padding-top: 20px;
        margin-top: 30px;
    }

    .podium-place {
        order: unset !important;
        width: 104px; /* Fixed width to fit mobile */
        max-width: 32%;
    }

    .podium-user-info {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 4px;
        text-align: center;
        transform: translateY(-15px); /* Reduced from -45px to bring it down */
    }

    .podium-name {
        font-size: 11px;
    }

    .crown {
        display: block;
        top: -30px;
        margin-bottom: 0;
    }

    .crown svg {
        width: 32px;
        height: 32px;
    }

    .podium-1 .podium-avatar-wrapper {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .podium-2 .podium-avatar-wrapper,
    .podium-3 .podium-avatar-wrapper {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .podium-box {
        padding: 8px 4px !important;
        margin-top: 10px !important;
    }
    
    .podium-box-top {
        height: 10px;
        top: -10px;
    }

    .podium-1 .podium-box { height: 160px !important; }
    .podium-2 .podium-box { height: 120px !important; }
    .podium-3 .podium-box { height: 100px !important; }

    .podium-box-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 8px 4px;
        gap: 6px;
    }

    .podium-rank-text {
        font-size: 24px;
        margin-top: 0;
    }

    .podium-points-pill {
        font-size: 10px;
        padding: 4px 6px;
        white-space: nowrap;
    }

    .pill-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .leaderboard-table-container {
        overflow-x: hidden;
        padding: 0;
    }

    .leaderboard-table {
        min-width: 100%;
        width: 100%;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 12px;
        font-size: 13px;
    }
    
    .leaderboard-table td.reward-cell {
        font-size: 11px;
    }

    .cta-content {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 26px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .modal {
        align-items: flex-start;
        padding: 24px 0;
        overflow-y: auto;
    }

    .modal-content {
        margin: 0 auto;
        padding: 24px;
        max-width: 90%;
    }
}

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

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

.step-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.step-card:nth-child(1) {
    animation-delay: 0.1s;
}

.step-card:nth-child(2) {
    animation-delay: 0.2s;
}

.step-card:nth-child(3) {
    animation-delay: 0.3s;
}

.step-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Premium Particle Burst Animation */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    opacity: 0;
}

.particle.active {
    animation: particle-burst var(--duration, 3s) var(--easing, ease-out) forwards;
}

.particle.large-orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff9500 0%, #f77000 60%, #cc5500 100%);
    box-shadow: 0 0 20px rgba(247, 112, 0, 0.8), 0 0 40px rgba(247, 112, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    filter: blur(1px);
}

.particle.medium-orb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd700 0%, #f77000 70%, #cc5500 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(247, 112, 0, 0.4);
}

.particle.small-sparkle {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ffed4a 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 215, 0, 0.6);
    animation: sparkle-twinkle var(--duration, 3s) var(--easing, ease-out) forwards;
}

.particle.tiny-sparkle {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 215, 0, 0.8);
    animation: sparkle-twinkle var(--duration, 3s) var(--easing, ease-out) forwards;
}

.particle.ring-wave {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(247, 112, 0, 0.6);
    background: transparent;
    box-shadow: 0 0 10px rgba(247, 112, 0, 0.4);
    animation: ring-expand var(--duration, 3s) var(--easing, ease-out) forwards;
}

.particle.floating-bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(247, 112, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float-up var(--duration, 3s) var(--easing, ease-out) forwards;
}

.particle.glow-orb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(247, 112, 0, 0.4) 50%, transparent 70%);
    filter: blur(3px);
    animation: glow-pulse var(--duration, 3s) var(--easing, ease-out) forwards;
}

/* Diamond/Star particles */
.particle.diamond {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 50%, #ffd700 100%);
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: diamond-spin var(--duration, 3s) ease-out forwards;
}

/* Starburst particles */
.particle.starburst {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 50%, transparent 70%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-pulse var(--duration, 3s) ease-out forwards;
}

/* Energy trail particles */
.particle.energy-trail {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(247, 112, 0, 0.8) 50%, rgba(255, 215, 0, 1) 100%);
    border-radius: 2px;
    animation: energy-fly var(--duration, 2.5s) ease-out forwards;
}

/* Pulse ring particles */
.particle.pulse-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.8);
    background: transparent;
    animation: pulse-expand var(--duration, 2s) ease-out forwards;
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.3);
    }
}

@keyframes sparkle-twinkle {

    0%,
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.1) rotate(360deg);
    }
}

@keyframes ring-expand {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.2);
        border-width: 4px;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(var(--scale, 3));
        border-width: 0px;
    }
}

@keyframes float-up {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(1.2);
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }

    60% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(2);
    }
}

@keyframes diamond-spin {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg) scale(0);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(180deg) scale(1.3);
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) rotate(720deg) scale(0);
    }
}

@keyframes star-pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) rotate(45deg);
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.2) rotate(180deg);
    }
}

@keyframes energy-fly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(0);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scaleX(0.1);
    }
}

@keyframes pulse-expand {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
        border-width: 4px;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4);
        border-width: 0px;
    }
}

/* Screen flash effect */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, rgba(247, 112, 0, 0.1) 50%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    animation: flash-burst 0.5s ease-out forwards;
}

@keyframes flash-burst {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    30% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Screen shake */
.screen-shake {
    animation: shake 0.3s ease-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Confetti Animation (Legacy) */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti-particle.active {
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.5);
    }
}

.confetti-particle.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #ffd700 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.confetti-particle.orange {
    background: linear-gradient(135deg, #f77000 0%, #ff9500 50%, #f77000 100%);
    box-shadow: 0 0 10px rgba(247, 112, 0, 0.6);
}

.confetti-particle.white {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@keyframes position-count-up {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.position-count-animation {
    animation: position-count-up 0.5s ease-out forwards;
}

/* Referral Popup Modal */
.referral-popup-modal .modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.referral-popup-content {
    max-width: 440px;
    padding: 40px 32px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 23, 16, 0.95) 0%, rgba(15, 13, 10, 0.98) 100%);
    border: 1px solid rgba(247, 112, 0, 0.3);
    box-shadow: 0 0 60px rgba(247, 112, 0, 0.2), 0 0 100px rgba(255, 215, 0, 0.1);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.referral-popup-modal.open .referral-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: popup-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popup-entrance {
    0% {
        transform: scale(0.8) translateY(20px) rotate(-2deg);
        opacity: 0;
    }

    40% {
        transform: scale(1.02) translateY(-3px) rotate(1deg);
    }

    60% {
        transform: scale(0.99) translateY(1px) rotate(-0.5deg);
    }

    80% {
        transform: scale(1.005) translateY(-1px) rotate(0.3deg);
    }

    100% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
    }
}

.referral-popup-header {
    margin-bottom: 24px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(247, 112, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(247, 112, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(247, 112, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
    }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 2.5;
}

.referral-popup-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #fff5cc 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-popup-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.position-display {
    background: rgba(247, 112, 0, 0.1);
    border: 1px solid rgba(247, 112, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.position-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.position-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-link-section {
    margin-bottom: 24px;
}

.referral-link-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.popup-referral-link {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}

.popup-referral-link .referral-link-input {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
}

.popup-referral-link .referral-link-input:focus {
    outline: none;
}

.popup-referral-link .btn-copy {
    padding: 10px 16px;
    white-space: nowrap;
}

.popup-share-section {
    margin-bottom: 24px;
}

.share-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}



.popup-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.popup-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    border: 2px solid transparent;
}

.popup-share-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.popup-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.popup-share-btn.x {
    background: #000000;
    border-color: #000000;
}

.popup-share-btn.x:hover {
    background: #333333;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.popup-share-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.popup-share-btn.whatsapp:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.popup-share-btn.email {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
}

.popup-share-btn.email:hover {
    box-shadow: 0 0 20px rgba(247, 112, 0, 0.4);
}

.popup-done-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}