: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);
    }
}

/* AdBlueMedia Offers Integration & Locker UI */
.locker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    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: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.locker-header {
    background: linear-gradient(135deg, var(--bs-panel), var(--bs-bg));
    padding: 25px 20px;
    text-align: center;
    border-bottom: 4px solid var(--bs-blue);
}

.locker-header h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.offers-instruction {
    color: #cbd5e1 !important;
    font-size: 1rem;
    font-family: sans-serif;
    font-weight: normal;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 25px 20px;
    max-height: 60vh;
    overflow-y: auto;
    background: #f8fafc;
}

.locker-footer {
    background: #f1f5f9;
    padding: 15px;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.offer-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.offer-item:hover {
    border-color: var(--bs-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.offer-item.recommended {
    border-color: var(--bs-yellow);
    background: #fff;
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.2);
}

.offer-item.recommended:hover {
    border-color: var(--bs-yellow-dark);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.offer-item.recommended a {
    padding-top: 28px;
}

.offer-item.recommended a i {
    color: var(--bs-red);
}

.offer-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-yellow);
    color: #1e293b;
    font-size: 0.65rem;
    padding: 4px 12px;
    font-family: sans-serif;
    font-weight: 900;
    border-bottom-right-radius: 10px;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.offer-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: #1e293b;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.95rem;
}

.offer-item a i {
    color: var(--bs-yellow-dark);
    font-size: 1.2rem;
}