:root {
    --bs-yellow: #facc15;
    --bs-yellow-dark: #eab308;
    --bs-blue: #3b82f6;
    --bs-blue-dark: #1d4ed8;
    --bs-red: #ef4444;
    --bs-green: #10b981;
    --bs-bg: #0f172a;
    --bs-panel: #1e293b;
    --bs-text: #ffffff;
    --font-main: 'Lilita One', cursive;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #1a2969 0%, #2d4596 50%, #4565c9 100%);
    background-attachment: fixed;
    color: var(--bs-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px;

    /* Anti-copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: 0;
    width: 100vw;
    height: 200vh;
    background-image: url('img/brawl_stars_pattern_transparent.png');
    background-repeat: repeat;
    background-size: 400px auto;
    opacity: 0.15;
    animation: scrollPattern 120s linear infinite;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes scrollPattern {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 40px 30px;
    position: relative;
    z-index: 10;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: var(--bs-yellow);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    margin-bottom: -10px;
}

header h2 {
    font-size: 1.5rem;
    color: var(--bs-blue);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Utils */
.hidden {
    display: none !important;
}

.mt-4 {
    margin-top: 20px;
}

.highlight-text {
    color: var(--bs-blue);
    font-weight: bold;
}

/* Sections */
.step {
    animation: fadeIn 0.4s ease-out forwards;
}

.step h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step p {
    font-family: sans-serif;
    font-weight: bold;
    color: #64748b;
    margin-bottom: 20px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    font-size: 1.2rem;
    font-family: 'Lilita One', cursive;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    text-transform: uppercase;
}

.input-group input:focus {
    border-color: var(--bs-blue);
    background: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
}

/* Platform Selector */
.platform-selector {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-btn {
    flex: 1;
    padding: 15px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.platform-btn:hover {
    background: #e2e8f0;
}

.platform-btn.active {
    background: var(--bs-blue);
    border-color: var(--bs-blue);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Buttons */
.action-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.8rem;
    font-family: var(--font-main);
    color: #fff;
    background: linear-gradient(to bottom, var(--bs-yellow), var(--bs-yellow-dark));
    border: 4px solid #000;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    box-shadow: 0 6px 0 #000, 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.action-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #000, 0 5px 10px rgba(0, 0, 0, 0.5);
}

.action-btn:disabled {
    background: #64748b;
    color: #94a3b8;
    text-shadow: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 0 #000;
}

/* Reward Grid */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.reward-card {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.reward-card:hover {
    border-color: var(--bs-blue);
}

.reward-card.selected {
    background: #fff;
    border-color: var(--bs-blue);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.reward-img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reward-card:hover .reward-img {
    transform: scale(1.15) rotate(5deg);
}

.shadow-pulse {
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
    }

    50% {
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(250, 204, 21, 0.8));
    }
}

.reward-card h4 {
    font-size: 1.2rem;
    color: #1e293b;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.reward-card.highlight {
    border-color: var(--bs-yellow);
}

.popular-tag {
    position: absolute;
    top: 15px;
    right: -35px;
    width: 140px;
    background: var(--bs-yellow);
    color: #1e293b;
    font-size: 0.70rem;
    padding: 5px 0;
    text-align: center;
    transform: rotate(45deg);
    font-family: sans-serif;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

/* Modern Loading Sequence */
.modern-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    position: relative;
    margin: 20px 0;
}

.loader-ring {
    width: 120px;
    height: 120px;
    border: 5px solid rgba(59, 130, 246, 0.2);
    border-top: 5px solid var(--bs-yellow);
    border-right: 5px solid var(--bs-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    position: absolute;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.loader-icon {
    font-size: 3rem;
    color: #fff;
    animation: burst 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.dynamic-status {
    height: 60px;
}

#status-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.text-muted {
    font-size: 0.95rem;
    color: #64748b;
    font-family: sans-serif;
    font-weight: normal;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes burst {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        text-shadow: 0 0 20px rgba(59, 130, 246, 1);
    }
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bs-blue), #60a5fa);
    transition: width 0.3s linear;
}

/* Verification */
.pulse-ring {
    width: 100px;
    height: 100px;
    background: var(--bs-red);
    border-radius: 50%;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    animation: pulse 1.5s infinite;
}

.verify-btn {
    background: linear-gradient(to bottom, var(--bs-red), #b91c1c);
}

/* Footer & Live Activity */
footer {
    margin-top: 20px;
    font-family: sans-serif;
}

.live-activity {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 15px;
    font-weight: bold;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fa-circle-play.blink {
    color: var(--bs-red);
    animation: blink 1s infinite;
}

.disclaimer {
    font-size: 0.7rem;
    color: #64748b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }

    .action-btn {
        font-size: 1.5rem;
    }

    .reward-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- PREMIUM MYLEAD LOCKER UI (GLASSMORPHISM) --- */
.locker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease-out forwards;
}

.locker-overlay.hidden {
    display: none !important;
}

.locker-modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.3) inset;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    color: #fff;
}

/* Add a glowing top edge */
.locker-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-blue), #00d2ff, var(--bs-blue));
    z-index: 2;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.locker-header {
    background: rgba(15, 23, 42, 0.4);
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.locker-header h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 162, 255, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.locker-header h3 i {
    color: var(--bs-yellow);
    font-size: 1.5rem;
}

.offers-instruction {
    color: #94a3b8 !important;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    line-height: 1.5;
    padding: 0 10px;
}

.offers-instruction b {
    color: #fff;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 20px;
    max-height: 55vh;
    overflow-y: auto;
    background: transparent;
}

/* Custom Scrollbar for offers */
.offers-list::-webkit-scrollbar {
    width: 6px;
}

.offers-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.offers-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.locker-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ten-countdown {
    color: var(--bs-yellow);
    font-family: 'Lilita One', cursive;
    font-size: 24px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* --- Dot Elastic Loader --- */
.stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.dot-elastic {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--bs-blue);
    color: var(--bs-blue);
    animation: dotElastic 1s infinite linear;
}

.dot-elastic::before,
.dot-elastic::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-elastic::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--bs-blue);
    color: var(--bs-blue);
    animation: dotElasticBefore 1s infinite linear;
}

.dot-elastic::after {
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: var(--bs-blue);
    color: var(--bs-blue);
    animation: dotElasticAfter 1s infinite linear;
}

@keyframes dotElasticBefore {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1, 1.5); }
    50% { transform: scale(1, 0.67); }
    75% { transform: scale(1, 1); }
    100% { transform: scale(1, 1); }
}

@keyframes dotElastic {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1, 1); }
    50% { transform: scale(1, 1.5); }
    75% { transform: scale(1, 1); }
    100% { transform: scale(1, 1); }
}

@keyframes dotElasticAfter {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1, 1); }
    50% { transform: scale(1, 0.67); }
    75% { transform: scale(1, 1.5); }
    100% { transform: scale(1, 1); }
}

/* Individual Offer styling (Premium Cards) */
.offer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.offer-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
}

.offer-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.offer-content-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.offer-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.offer-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--bs-yellow);
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.4));
}

.offer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    flex: 1;
}

.offer-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #f8fafc;
    letter-spacing: 0.1px;
    line-height: 1.2;
}

.offer-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3;
}

.offer-btn {
    background: linear-gradient(135deg, var(--bs-blue), #2563eb);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
    text-transform: uppercase;
}

.offer-item:hover .offer-btn {
    background: linear-gradient(135deg, #60a5fa, var(--bs-blue));
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Premium Recommended Badge */
.offer-item.recommended {
    border: 1px solid rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.03);
}

.offer-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.offer-item.recommended a {
    padding-top: 32px;
    /* Push content down for the badge */
}

/* Mobile Fixes for Text Clipping */
@media (max-width: 480px) {
    .offer-title {
        font-size: 0.85rem;
    }

    .offer-desc {
        font-size: 0.7rem;
    }

    .offer-item a {
        padding: 10px 8px;
        gap: 8px;
    }
    
    .offer-content-wrapper {
        gap: 10px;
    }
    
    .offer-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .offer-icon-wrapper i {
        font-size: 1.2rem;
    }
    
    .offer-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* Extra Mobile Fixes for very narrow screens (e.g., Galaxy S8, old iPhones) */
@media (max-width: 360px) {
    .offer-item a {
        padding: 8px 6px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .offer-content-wrapper {
        width: 100%;
        gap: 8px;
    }
    
    .offer-title {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .offer-desc {
        font-size: 0.65rem;
    }

    .offer-btn {
        align-self: flex-start;
        margin-left: 46px; /* Align with text by skipping icon width (38px + 8px gap) */
        padding: 6px 12px;
        font-size: 0.7rem;
        width: calc(100% - 46px);
        text-align: center;
    }
}