@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary-color: #ffcc00;
    --secondary-color: #0088ff;
    --accent-color: #ff3366;
    --bg-dark: #0f1020;
    --bg-card: #1a1c3a;
    --text-white: #ffffff;
    --text-gray: #b0b3c1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at top right, #1e214d, #0f1020);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-bottom: 2.5rem;
}

.logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.4));
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Item Selection Grid */
.item-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 2.5rem;
}

.item-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.item-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.item-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
}

.item-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.item-card.selected {
    border-color: var(--primary-color);
    background: rgba(255, 204, 0, 0.15);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.item-card.selected span {
    color: var(--primary-color);
}

/* QR Section */
.qr-section {
    margin-bottom: 2.5rem;
}

.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 24px;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 136, 255, 0.3);
    margin-bottom: 1.5rem;
}

.qr-code {
    width: 180px;
    height: 180px;
    display: block;
}

.qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.qr-overlay img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.qr-hint {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #000;
    border: none;
    padding: 1.3rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 153, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #0088ff, #0055ff);
    color: #fff;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-secondary:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fdfdfd;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    color: #333;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.status-content {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

.captcha-box {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* OgAds Container Styling */
.ogads-modal .modal-content {
    padding: 10px !important;
    max-width: 500px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-captcha-enable="true"] {
    width: 100%;
    min-height: 250px;
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-container input {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.checkbox-container label {
    font-family: Roboto, helvetica, arial, sans-serif;
    font-size: 15px;
    color: #333;
}

.captcha-logo {
    width: 45px;
    height: 45px;
}

/* Loader */
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.status-step p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.status-step strong {
    font-size: 1.4rem;
}

.error-title strong {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 600px) {
    .item-selection {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .item-selection {
        gap: 8px;
    }
}