:root {
    --gold-primary: #ffd700;
    --gold-secondary: #ffb700;
    --gold-gradient: linear-gradient(135deg, #FFF5C3 0%, #FFD700 20%, #DAA520 60%, #B8860B 100%);
    --gold-text-shine: linear-gradient(to bottom, #FFF8DC, #FFD700);
    --dark-bg: #110e19;
    --darker-bg: #0b090f;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 215, 0, 0.15);
    --text-white: #ffffff;
    --text-muted: #b4b4b4;
    --accent-purple: #9d4edd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 80px;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold-secondary);
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
.font-lalezar {
    font-family: 'Lalezar', cursive;
}

.gold-text {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Content Spacing */
.section-title {
    padding: 0 20px;
    margin-top: 40px;
    /* Increased separation */
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 90px;
}

/* Header */
header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.header-slogan {
    font-size: 10px;
    opacity: 0.7;
    white-space: nowrap;
}

.user-points {
    background: var(--glass-bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 20px 20px 40px;
    text-align: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.hero-icon-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

.main-gold-icon {
    font-size: 90px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
}

.icon-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: pulse 3s infinite ease-in-out;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Buttons */
.cta-button {
    background: var(--gold-gradient);
    color: #000;
    padding: 14px 36px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border: none;
    transition: all 0.2s;
}

.btn-gold-rounded {
    background: var(--gold-gradient);
    color: #000 !important;
    border-radius: 50px !important;
    font-weight: bold;
    border: none;
    padding: 8px 18px !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-white-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-white-outline:hover,
.btn-white-outline:active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Ticker Wins - Modern Glassmorphism Marquee */
.live-wins {
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.03), transparent);
    margin: 20px 0 35px;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-top: 1px solid rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Elegant fade out effect on sides */
.live-wins::before,
.live-wins::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.live-wins::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.live-wins::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

.wins-track {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 15px;
    padding-right: 15px;
    /* TranslateX(50%) moves it half of its width (the duplicate size) */
    animation: scroll-marquee 25s linear infinite;
}

.live-wins:hover .wins-track {
    animation-play-state: paused;
}

.win-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 50px;
    padding: 6px 18px 6px 10px;
    font-size: 13px;
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.win-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
}

.win-item-icon {
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
}

.win-item-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.win-phone {
    font-weight: 700;
    color: var(--gold-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Opportunities Grid 2x2 */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.opportunity-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.opportunity-card:active {
    transform: scale(0.96);
    background: rgba(255, 215, 0, 0.05);
}

.icon-box-simple {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold-primary);
}

/* Reward Categories 3 cols */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 15px;
}

.reward-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.reward-icon {
    font-size: 30px !important;
    margin-bottom: 6px;
}



/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
}

.brand-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.brand-logo-place {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 9px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(17, 14, 25, 0.92);
    backdrop-filter: blur(20px);
    height: 75px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 20px;
}

.nav-spin-btn {
    background: var(--gold-gradient);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -35px;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
    border: 4px solid var(--dark-bg);
    animation: rotate-slow 10s linear infinite;
}

.nav-spin-btn i {
    font-size: 26px;
    color: #110e19 !important;
    /* Premium Dark */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* PWA Install Promo */
.pwa-promo {
    margin: 30px 20px;
    padding: 22px;
    background: linear-gradient(135deg, #4c1d95, #312e81);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Icon Effect Wrapper */
.icon-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
    transform: perspective(500px) translateZ(10px);
    display: inline-block;
}

/* Specific Gradient Colors */
.text-info.icon-gradient {
    background: linear-gradient(45deg, #00f260, #0575E6);
    -webkit-background-clip: text;
    background-clip: text;
}

.text-danger.icon-gradient {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    background-clip: text;
}

.text-warning.icon-gradient {
    background: linear-gradient(45deg, #fce38a, #f38181);
    -webkit-background-clip: text;
    background-clip: text;
}

.text-purple.icon-gradient {
    background: linear-gradient(45deg, #c471ed, #f64f59);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Mission Cards */
.mission-card {
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
    margin: 12px 20px;
    padding: 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.mission-card:active {
    background: rgba(255, 215, 0, 0.08);
}

.mission-icon {
    width: 46px;
    height: 46px;
    background: var(--gold-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
}

/* Scrollbar Hide */
.brand-strip::-webkit-scrollbar {
    display: none;
}

.brand-strip {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Intro Screen (Loading) */
#introScreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 40%, #111122 0%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#introScreen.hidden-intro {
    opacity: 0;
    visibility: hidden;
}

.intro-text-wrapper {
    position: relative;
    text-align: center;
    padding: 20px;
}

.intro-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: 18px;
    color: var(--text-white);
    opacity: 0;
    animation: fadeInIntro 1s 0.5s forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.1);
    border-top: 5px solid var(--gold-primary);
    border-radius: 50%;
    animation: spinIntro 1s linear infinite;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes spinIntro {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}