@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #10b981;
    --accent: #06b6d4;
    --accent-color: #10b981;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8);
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --glow-primary: rgba(79, 70, 229, 0.4);
    --glow-secondary: rgba(16, 185, 129, 0.4);
}
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text: #1e293b;
    --text-dim: #64748b;
    --border: rgba(0, 0, 0, 0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-dark); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }
.bg-animation { position: fixed; inset: 0; z-index: -1; }
.bg-animation::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 20% 80%, var(--glow-primary) 0%, transparent 25%), radial-gradient(circle at 80% 20%, var(--glow-secondary) 0%, transparent 25%); animation: bgFloat 20s ease-in-out infinite; }
@keyframes bgFloat { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(30px, -30px) rotate(3deg); } }
.grid-overlay { position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(rgba(128, 128, 128, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 128, 128, 0.03) 1px, transparent 1px); background-size: 50px 50px; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
[data-theme="light"] header { background: rgba(248, 250, 252, 0.9); }
.logo { font-size: 1.3rem; font-weight: 800; text-decoration: none; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.nav-link { padding: 0.5rem 1rem; border-radius: 100px; text-decoration: none; color: var(--text-dim); font-size: 0.9rem; font-weight: 500; transition: all 0.3s; border: 1px solid transparent; }
.nav-link:hover { color: var(--text); background: rgba(128, 128, 128, 0.1); }
.nav-link.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }
.nav-link.primary:hover { transform: scale(1.05); box-shadow: 0 10px 30px var(--glow-primary); }
.theme-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: all 0.3s; }
.theme-toggle:hover { border-color: var(--primary); transform: scale(1.1); }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8rem 2rem 4rem; }
.hero-badge { padding: 0.5rem 1.2rem; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 100px; font-size: 0.85rem; color: var(--primary-light); margin-bottom: 2rem; animation: fadeInUp 0.8s ease; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease 0.1s both; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-dim); max-width: 550px; margin-bottom: 2.5rem; animation: fadeInUp 0.8s ease 0.2s both; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.8s ease 0.3s both; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 12px; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 4px 20px var(--glow-primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--glow-primary); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.stats { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.8s ease 0.4s both; }
.stat { text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.85rem; color: var(--text-dim); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-dim); max-width: 450px; margin: 0 auto; }
.search-box { max-width: 500px; margin: 0 auto 2rem; }
.search-box input { width: 100%; padding: 1rem 1.5rem; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 1rem; outline: none; transition: all 0.3s; }
.search-box input::placeholder { color: var(--text-dim); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 20px var(--glow-primary); }
.filter-bar { display: flex; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 0.5rem 1.25rem; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); color: var(--text); background: rgba(139, 92, 246, 0.1); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.offer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem; transition: all 0.4s; position: relative; }
.offer-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px var(--glow-primary); }
.offer-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.offer-logo { width: 50px; height: 50px; border-radius: 12px; object-fit: contain; background: white; padding: 6px; }
.offer-info { flex: 1; min-width: 0; }
.offer-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.65rem; font-weight: 500; background: rgba(128, 128, 128, 0.1); border: 1px solid var(--border); color: var(--text-dim); }
.badge.region { border-color: rgba(6, 182, 212, 0.3); color: var(--secondary); }
.badge.category { border-color: rgba(244, 114, 182, 0.3); color: var(--accent); }
.offer-payout { font-size: 1.5rem; font-weight: 800; color: #10b981; margin: 0.75rem 0; }
.offer-btn { display: block; width: 100%; padding: 0.75rem; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; text-decoration: none; font-weight: 600; text-align: center; font-size: 0.9rem; transition: all 0.3s; }
.offer-btn:hover { transform: scale(1.02); box-shadow: 0 5px 20px var(--glow-primary); }
footer { padding: 3rem 1.5rem; text-align: center; color: var(--text-dim); border-top: 1px solid var(--border); font-size: 0.9rem; }
footer a { color: var(--primary); text-decoration: none; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.pagination { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; padding: 1rem; }
.pagination>div, .pagination>nav, .pagination>p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; width: 100%; }
.pagination p { font-size: 0.9rem; color: var(--text-dim); margin: 0; order: -1; }
.pagination a, .pagination span:not(.pagination p span) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: rgba(139, 92, 246, 0.1); transform: translateY(-1px); }
.pagination .active span, .pagination span[aria-current="page"] { background: linear-gradient(135deg, var(--primary), var(--accent-color)); border-color: transparent; color: white; font-weight: 600; }
.pagination span[aria-disabled="true"], .pagination .disabled span { opacity: 0.4; cursor: not-allowed; }
.pagination svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .pagination a, .pagination span:not(.pagination p span) { min-width: 36px; height: 36px; padding: 0.4rem 0.6rem; font-size: 0.8rem; } .pagination p { font-size: 0.8rem; } }
.copy-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--primary); color: white; padding: 1rem 2rem; border-radius: 12px; font-weight: 600; opacity: 0; transition: all 0.3s; z-index: 9999; }
.copy-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (max-width: 768px) { header { padding: 1rem; } .nav-link { padding: 0.4rem 0.75rem; font-size: 0.8rem; } .hero h1 { font-size: 2rem; } .stats { gap: 2rem; } .offers-grid { grid-template-columns: 1fr; } }
