@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-blue: #00d2ff;
    --accent-purple: #9d50bb;
    --accent-pink: #f22ec1;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --ad-gold: #ffd700;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-blue);
}

/* Banner Ad Area */
.top-ad-zone {
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    background: #000;
}

.ad-banner {
    width: 728px;
    height: 90px;
    background: var(--card-bg);
    border: 1px dashed var(--ad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ad-banner::after {
    content: "SPONSORED";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    color: var(--ad-gold);
    border: 1px solid var(--ad-gold);
    padding: 2px 4px;
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(157, 80, 187, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(0, 210, 255, 0.1), transparent);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5);
}

/* Main Content Grid */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 4rem 5%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--accent-pink);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

.price span {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-right: 5px;
}

/* In-Grid Ad Card */
.ad-card {
    grid-column: span 1;
    background: linear-gradient(135deg, #111, #000);
    border: 2px solid var(--ad-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
}

.ad-card h3 {
    color: var(--ad-gold);
    margin-bottom: 1rem;
}

/* Sidebar Ads */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-ad {
    width: 100%;
    height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.sidebar-ad::before {
    content: "Advertisment";
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* Ad Popups Simulation */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-toast {
    background: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ad-timer {
    background: var(--accent-blue);
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
}

.ad-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-placeholder {
    text-align: center;
    color: var(--text-dim);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.reward-container {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.reward-container.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HIGH CTR AD ANIMATIONS */
.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Anti-Adblock Overlay */
.ab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.ab-overlay.active {
    display: flex;
}

.ab-content {
    max-width: 500px;
    background: #111;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 0 100px rgba(0, 210, 255, 0.1);
}

.ab-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.ab-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.ab-text {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ab-footer {
    font-size: 0.8rem;
    color: var(--accent-blue);
    opacity: 0.7;
    margin-top: 2rem;
}