/* ===== BRAINROTS LANDING - PREMIUM STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-purple: #9333ea;
    --gold: #FFD700;
    --gold-dark: #d4af37;
    --white: #ffffff;
    --dark: #1a1a2e;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html, body {
    font-family: 'Cairo', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: white;
    text-align: center;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 25px auto;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.loading-content p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

/* ===== LOGO ===== */
.logo-container {
    text-align: center;
    padding: 20px 0;
}

.logo-container img {
    max-width: 220px;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
    transition: all 0.4s ease;
}

.logo-container img:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.active-users-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(147, 51, 234, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 800;
    box-shadow: 
        0 8px 32px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.active-users-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.active-users-box:hover::before {
    left: 100%;
}

.active-users-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.active-users-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3em;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== STEP SYSTEM ===== */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    border-radius: 30px;
    padding: 40px;
    color: var(--dark);
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--gold));
}

/* ===== SELECT TITLE ===== */
.select-title {
    margin: 40px 0 35px 0;
    font-size: 2em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff, #ffd700, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
    text-shadow: none;
    position: relative;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.select-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

/* ===== ITEMS GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px;
}

.item-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.item-card:hover::before {
    opacity: 1;
}

.item-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.2),
        0 0 0 3px var(--gold);
    border-color: var(--gold);
}

.item-card:active {
    transform: translateY(-8px) scale(1.05) rotate(-1deg);
}

.item-card.selected {
    background: linear-gradient(135deg, #ffd700, #ffbf00, #ffd700);
    background-size: 200% 200%;
    animation: goldenShine 2s ease infinite;
    border-color: var(--gold-dark);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.6),
        0 20px 40px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255,255,255,0.3);
}

@keyframes goldenShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.item-card.og-rarity {
    border: 3px solid #ff69b4;
    position: relative;
}

.item-card.og-rarity::after {
    content: '✨ OG';
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    font-size: 0.7em;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
    animation: ogBadgePulse 2s ease-in-out infinite;
}

@keyframes ogBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.item-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.item-card:hover .item-img {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.item-card.selected .item-img {
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.item-name {
    font-size: 0.85em;
    color: #333;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.item-card.selected .item-name {
    color: #5a4a00;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}


/* ===== POPUP - GLASSMORPHISM ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    padding: 35px;
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: white;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: popupSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold), var(--primary-purple));
}

@keyframes popupSlide {
    from { transform: translateY(50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-header h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: white;
    letter-spacing: 1px;
}

.popup-item-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    margin-bottom: 20px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        0 10px 30px rgba(0,0,0,0.3);
    animation: itemFloat 3s ease-in-out infinite;
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.popup-item-name {
    font-size: 1.4em;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.popup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.popup-username {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.popup-error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cancel-btn, .continue-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cancel-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.cancel-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.continue-btn {
    background: linear-gradient(135deg, var(--gold), #ffbf00);
    color: #1a1a2e;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.continue-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

.continue-btn.full-width {
    width: 100%;
    margin-top: 15px;
}

.error-icon {
    font-size: 5em;
    margin: 25px 0;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-text {
    color: #ff6b6b;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* ===== SEARCHING ANIMATION ===== */
.searching-animation {
    margin: 40px 0;
}

.folding {
    margin: 0 auto;
    width: 70px;
    height: 70px;
    position: relative;
    transform: rotateZ(45deg);
}

.sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
}

.sk-cube:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), #ffbf00);
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    transform-origin: 100% 100%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.sk-cube2 { transform: scale(1.1) rotateZ(90deg); }
.sk-cube3 { transform: scale(1.1) rotateZ(180deg); }
.sk-cube4 { transform: scale(1.1) rotateZ(270deg); }

.sk-cube2:before { animation-delay: 0.3s; }
.sk-cube3:before { animation-delay: 0.6s; }
.sk-cube4:before { animation-delay: 0.9s; }

@keyframes sk-foldCubeAngle {
    0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; }
    25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; }
    90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; }
}

.searching-text {
    color: rgba(255,255,255,0.8);
    font-size: 1.2em;
    margin-top: 25px;
    letter-spacing: 1px;
}

/* ===== OFFERS STEP ===== */
.selected-item-display {
    margin-bottom: 25px;
}

.mini-item-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--gold), #ffbf00);
    padding: 12px 25px;
    border-radius: 50px;
    color: #1a1a2e;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mini-item-card img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
}

.offers-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-badges .badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border: 2px solid var(--primary-blue);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.trust-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.offer-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-blue);
}

.offer-image img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1) rotate(5deg);
}

.offer-title {
    color: var(--dark);
    font-size: 1.1em;
    font-weight: 800;
    margin-bottom: 10px;
}

.offer-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 18px;
    line-height: 1.4;
}

.offer-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}


/* ===== WAITING STEP - PREMIUM ===== */
.selected-item-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, var(--gold), #ffbf00, var(--gold));
    background-size: 200% 200%;
    animation: goldenShine 3s ease infinite;
    padding: 25px 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.waiting-item-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.waiting-item-info {
    text-align: left;
}

.waiting-item-name {
    display: block;
    font-size: 1.5em;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.waiting-item-status {
    font-size: 0.95em;
    color: #5a4a00;
    font-weight: 600;
}

.verification-section {
    text-align: center;
    margin-bottom: 30px;
}

.verification-title {
    font-size: 1.8em;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.verification-subtitle {
    color: #666;
    font-size: 1.05em;
    margin-bottom: 25px;
}

.verification-progress {
    max-width: 550px;
    margin: 0 auto;
}

.progress-bar-animated {
    height: 10px;
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill-animated {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--gold));
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

@keyframes progressShimmer {
    0% { background-position: 0% 50%; width: 50%; }
    50% { background-position: 100% 50%; width: 70%; }
    100% { background-position: 0% 50%; width: 50%; }
}

.verification-steps {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.v-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.v-step.completed { opacity: 1; }
.v-step.completed .v-step-icon { 
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)); 
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.v-step.active { opacity: 1; }
.v-step.active .v-step-icon { 
    background: linear-gradient(135deg, var(--gold), #ffbf00);
    color: #1a1a2e;
    animation: stepPulse 1.5s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7); }
}

.v-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 700;
    transition: all 0.3s ease;
}

.v-step-text {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.speedup-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(147, 51, 234, 0.05));
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.speedup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

.speedup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.speedup-icon {
    font-size: 1.8em;
    animation: flashIcon 1s ease-in-out infinite;
}

@keyframes flashIcon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.speedup-header h3 {
    color: var(--primary-blue);
    font-size: 1.3em;
    margin: 0;
}

.speedup-desc {
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1em;
}

/* ===== SUCCESS STEP ===== */
.success-animation {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 6em;
    margin-bottom: 25px;
    animation: successBounce 1s ease infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-25px) scale(1.1); }
    60% { transform: translateY(-12px) scale(1.05); }
}

.success-animation h2 {
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-animation p {
    color: #666;
    font-size: 1.1em;
}

.success-details {
    margin: 30px 0;
}

.success-item {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--gold), #ffbf00);
    padding: 18px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    animation: floatBadge 3s ease-in-out infinite;
}

.success-item img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid white;
}

.success-item span {
    font-weight: 800;
    font-size: 1.1em;
    color: #1a1a2e;
}

.play-again-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.15em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 25px;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-again-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
}

/* ===== SOCIAL PROOF - PREMIUM ===== */
.social-proof {
    position: fixed;
    bottom: 25px;
    left: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--gold);
    z-index: 9998;
    width: 50%;
    min-width: 220px;
    max-width: 300px;
    animation: slideInProof 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInProof {
    from { transform: translateX(-120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.proof-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-item-icon img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.proof-info {
    text-align: left;
    min-width: 0;
    flex: 1;
}

.proof-main {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.proof-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.9em;
}

.proof-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.proof-item-name {
    font-size: 0.85em;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proof-time {
    font-size: 0.65em;
    color: #999;
    margin-top: 1px;
}

/* ===== LANGUAGE SELECTOR - PREMIUM ===== */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, var(--gold), #ffbf00);
}

.lang-flag {
    font-size: 1.3em;
}

.btn-flag-img {
    width: 26px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-name {
    font-size: 0.95em;
    color: #333;
}

.lang-arrow {
    font-size: 0.75em;
    transition: transform 0.3s;
    color: #666;
}

.language-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.language-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    padding-left: 25px;
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.option-flag-img {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.option-name {
    font-weight: 700;
    font-size: 0.95em;
    color: inherit;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .items-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .items-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .item-img { width: 90px; height: 90px; }
    .select-title { font-size: 1.5em; }
}

@media (max-width: 600px) {
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 5px; }
    .item-card { padding: 15px 10px; border-radius: 15px; }
    .item-img { width: 80px; height: 80px; }
    .item-name { font-size: 0.8em; }
    .select-title { font-size: 1.2em; letter-spacing: 1px; }
    .logo-container img { max-width: 150px; }
    .social-proof { left: 15px; width: 50%; min-width: 200px; max-width: 280px; bottom: 15px; }
    .lang-name { display: none; }
    .verification-steps { flex-direction: column; gap: 20px; }
    .step-container { padding: 25px 20px; border-radius: 20px; }
    .active-users-box { padding: 12px 20px; font-size: 1em; }
}

/* ===== RTL SUPPORT ===== */
html[dir="rtl"] body, body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .language-selector { right: auto; left: 20px; }
body.rtl .lang-dropdown { right: auto; left: 0; }
body.rtl .social-proof { left: auto; right: 25px; }
body.rtl .proof-info { text-align: right; }
body.rtl .waiting-item-info { text-align: right; }
body.rtl .selected-item-card { flex-direction: row-reverse; }
body.rtl .proof-content { flex-direction: row-reverse; }
body.rtl .proof-main { flex-direction: row-reverse; }
body.rtl .mini-item-card { flex-direction: row-reverse; }
body.rtl .lang-option:hover { padding-left: 20px; padding-right: 25px; }

@media (max-width: 600px) {
    body.rtl .social-proof { right: 15px; left: auto; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--gold));
}
