:root {
    --primary: #00ff66;
    --primary-dark: #00cc52;
    --accent-gold: #ffb700;
    --accent-cyan: #00e5ff;
    --bg-base: #090c10;
    --bg-surface: rgba(15, 22, 32, 0.85);
    --bg-card: rgba(20, 29, 42, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(0, 255, 102, 0.2);
    
    --mythic: #00ff66;
    --legendary: #ffb700;
    --epic: #a855f7;
    --rare: #00e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .warzone-brand, .terminal-header {
    font-family: 'Outfit', sans-serif;
}

/* Background & Tactical Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.tactical-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.8;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 255, 102, 0.3) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite alternate;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 183, 0, 0.2) 0%, transparent 70%);
    animation: float 16s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    top: 40%;
    left: 45%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    animation: float 14s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 6%) scale(1.08); }
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 12, 16, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.warzone-brand {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
}

.accent-badge {
    background: var(--primary);
    color: #000000;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 900;
    margin-left: 0.3rem;
}

.server-status {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: blink 1.5s infinite;
}

.status-highlight {
    color: var(--primary);
    font-weight: 800;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hero Section */
.hero-conversion {
    padding: 9rem 5% 3.5rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 255, 102, 0.08), transparent 60%);
}

.urgency-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 0.5rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
    letter-spacing: 2px;
}

/* Trust Steps */
.trust-section {
    padding: 2rem 5% 3.5rem;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #000;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255,255,255,0.03);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Showcase Section */
.showcase {
    padding: 4rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tab-btn {
    padding: 0.65rem 1.4rem;
    background: rgba(15, 22, 32, 0.8);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.35);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 255, 102, 0.15);
    border-color: var(--primary);
}

.image-wrapper {
    position: relative;
    padding: 1rem;
    background: radial-gradient(circle at center, rgba(0, 255, 102, 0.05), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.item-card:hover .image-wrapper img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.mythic { background: var(--mythic); color: #000; box-shadow: 0 0 10px var(--mythic); }
.tag.legendary { background: var(--legendary); color: #000; }
.tag.epic { background: var(--epic); color: #fff; }
.tag.rare { background: var(--rare); color: #000; }

.item-details {
    padding: 1.25rem;
    text-align: center;
}

.item-details h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-primary, .cpa-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: var(--primary);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover, .cpa-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 102, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-surface);
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    text-align: center;
    max-width: 560px;
    width: 92%;
    box-shadow: 0 0 35px rgba(0, 255, 102, 0.25);
    box-sizing: border-box;
}

.modal-badge {
    display: inline-block;
    background: rgba(0, 255, 102, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.warzone-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
    text-align: center;
}

.warzone-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.platform-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.platform-btn {
    flex: 1;
    padding: 0.6rem 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.platform-btn.active, .platform-btn:hover {
    background: rgba(0, 255, 102, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.terminal-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.progress-container {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.4s ease, background-color 0.3s ease;
}

/* Live Feed Notifications */
.live-feed-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.live-feed-item {
    background: rgba(15, 22, 32, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease-out forwards;
    max-width: 320px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.live-feed-item.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

.feed-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.feed-content {
    font-size: 0.82rem;
    line-height: 1.35;
}

.feed-name {
    font-weight: 800;
    color: #ffffff;
}

.feed-item-name {
    color: var(--primary);
    font-weight: 800;
}

.feed-time {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 5rem;
}

/* Native CPA API Offer Wall Styling */
.warning-badge {
    background: rgba(255, 183, 0, 0.15) !important;
    color: #ffb700 !important;
    border-color: #ffb700 !important;
}

.api-offers-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    max-height: 330px;
    overflow-x: hidden !important;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.4);
}

/* Custom Scrollbar for Offers List - Hide ugly scrollbar buttons */
.api-offers-list::-webkit-scrollbar {
    width: 5px;
}

.api-offers-list::-webkit-scrollbar-button {
    display: none !important;
    width: 0;
    height: 0;
}

.api-offers-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.api-offers-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.offer-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    gap: 1rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    user-select: none;
}

.offer-card:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 102, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 22px rgba(0, 255, 102, 0.22);
}

.offer-card.card-clicked {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}

.offer-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f1620;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.offer-info {
    flex: 1;
    min-width: 0; /* Crucial for flex child text wrapping */
    text-align: left;
}

.offer-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.offer-step-tag {
    background: rgba(0, 255, 102, 0.15);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 102, 0.3);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.offer-title-text {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

.offer-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary), #00cc52);
    color: #050b14;
    font-weight: 900;
    font-size: 0.82rem;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.offer-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.6);
    color: #000;
}

.offer-btn.clicked {
    background: linear-gradient(135deg, #00e5ff, #0088cc);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.offer-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.spinner-mini {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.offers-loading {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 255, 102, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.verification-status-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ffb700;
    border-radius: 50%;
    display: inline-block;
}

.live-dot.pulse {
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.9); }
}

.offer-error {
    color: #ef4444;
    padding: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive Rules */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-conversion { padding-top: 7rem; }
    .countdown-timer { font-size: 1.8rem; padding: 0.4rem 1.5rem; }
    .grid-container { grid-template-columns: 1fr; }
    .cpa-btn { padding: 1.1rem; font-size: 1.05rem; }
    .live-feed-container { bottom: 1rem; left: 1rem; right: 1rem; }
    .live-feed-item { max-width: 100%; }
    .offer-card { padding: 0.6rem 0.75rem; }
    .offer-title { font-size: 0.85rem; }
    .offer-btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}

