@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --primary: #b9e2ff;
    --primary-glow: rgba(185, 226, 255, 0.5);
    --accent: #dcd0ff;
    --bg-deep: #080c14;
    --bg-light: #162438;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #f0f9ff;
    --text-dim: #cbd5e1;
    --success: #00ff88;
    --wheel-dist: -100px;
    --shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

body {
    background: radial-gradient(circle at top right, #1a2a44, var(--bg-deep));
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(185, 226, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(220, 208, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
    }

    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Header Section */
header {
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.active-users-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(185, 226, 255, 0.05);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-main);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(185, 226, 255, 0.3), inset 0 0 10px rgba(185, 226, 255, 0.1);
    margin: 1.5rem 0;
    backdrop-filter: blur(20px);
    text-transform: uppercase;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Item Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.item-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shimmer);
    transform: translateX(-150%);
    transition: none;
    pointer-events: none;
}

.item-card:hover::after {
    animation: shimmer 1.5s infinite;
}

.item-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.item-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    background: rgba(185, 226, 255, 0.1);
}

.item-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop_shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.item-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, rgba(22, 36, 56, 0.9), rgba(8, 12, 20, 0.95));
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.input-box {
    width: 100%;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.input-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
}

.btn-continue {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(90deg, #b9e2ff, #dcd0ff);
    border: none;
    border-radius: 1rem;
    color: #080c14;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(185, 226, 255, 0.4);
}

.btn-continue:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(185, 226, 255, 0.6);
    filter: brightness(1.1);
}

/* User Profile Section */
.profile-card {
    display: none;
    margin-top: 1rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin: 0 auto 1rem;
    background: #1e293b;
    padding: 5px;
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Live Feed Section */
.live-feed {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    pointer-events: none;
}

.feed-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.5s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feed-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-deep);
    object-fit: cover;
    flex-shrink: 0;
}

.feed-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.feed-text span {
    color: var(--primary);
    font-weight: 700;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 2rem 0;
}

/* Roblox Style Buttons */
.bonus-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-roblox {
    flex: 1;
    padding: 1.25rem;
    border: none;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 6px solid rgba(0, 0, 0, 0.2);
}

.btn-yes {
    background: #00e676;
    color: white;
}

.btn-no {
    background: #ff5252;
    color: white;
}

.btn-roblox:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-roblox:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

/* Wheel Styles */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FFD700;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    background: #333;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
    /* Background will be set via JS: conic-gradient */
}

.wheel-icon img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.segment-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    white-space: nowrap;
}

.btn-spin {
    width: 200px;
    padding: 1rem;
    background: #8bc34a;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1.5rem;
    cursor: pointer;
    border-bottom: 6px solid #689f38;
    transition: all 0.2s;
}

.btn-spin:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
/* CPA Locker Styles */
.locker-offers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.offer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.offer-item:hover {
    background: rgba(185, 226, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.offer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.offer-item.featured-offer {
    border-color: var(--accent);
    background: rgba(220, 208, 255, 0.08);
    position: relative;
    box-shadow: 0 0 15px rgba(220, 208, 255, 0.2);
}

.featured-tag {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--accent);
    color: #080c14;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent);
    z-index: 10;
}

.offer-payout {
    background: linear-gradient(90deg, #b9e2ff, #dcd0ff);
    color: #080c14;
    padding: 0.6rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(185, 226, 255, 0.3);
}

.featured-offer {
    border-color: var(--accent);
    position: relative;
}

.featured-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--accent);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.verification-status {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 768px) {
    :root {
        --wheel-dist: -80px;
    }

    .container {
        padding: 1rem;
    }

    .title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .wheel-container {
        width: 260px;
        height: 260px;
    }

    .wheel-icon img {
        width: 55px;
        height: 55px;
    }

    .wheel-icon {
        width: 60px;
        height: 60px;
        margin-left: -30px;
        margin-top: -30px;
    }

    .live-feed {
        left: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 640px) {
    .title {
        font-size: 2.5rem;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .item-card {
        padding: 1rem;
    }

    .item-image {
        height: 120px;
    }

    .item-name {
        font-size: 1rem;
    }

    .btn-roblox {
        font-size: 1.2rem;
        padding: 1rem;
    }
}