/* --- VARIABLES & RESET --- */
:root {
    --primary: #0070ba;
    --dark: #003087;
    --accent: #f6f9fc;
    --text: #2d3436;
    --gray: #636e72;
    --white: #ffffff;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
}

/* DARK MODE VARS */
body.dark-mode {
    --primary: #0070ba;
    --dark: #001f4d;
    --accent: #111111;
    --text: #e0e0e0;
    --gray: #b0b0b0;
    --white: #121212;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--bg-color); color: var(--text); overflow-x: hidden; transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }

/* --- LOADER --- */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.loader-overlay.active { opacity: 1; pointer-events: all; }
.loader-logo { width: 80px; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.bar-fill { width: 0%; height: 100%; background: white; transition: width 3.5s linear; }
.loader-overlay.active .bar-fill { width: 100%; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* --- NAVBAR --- */
.navbar { background: var(--card-bg); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; transition: background 0.3s; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 20px; }
.brand-logo img { height: 40px; }

.desktop-only { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--text); transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--primary); color: white; padding: 10px 24px; border-radius: 50px; font-weight: 600; border: 1px solid var(--primary); transition: 0.3s; white-space: nowrap; }
.btn-primary:hover { background: var(--dark); }
.btn-wallet { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 9px 20px; border-radius: 50px; font-weight: 600; transition: 0.3s; white-space: nowrap; }
.btn-wallet:hover { background: var(--primary); color: white; }

.theme-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text); padding: 5px; }
.mobile-menu-icon { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text); margin-left: 15px; }

/* Mobile Menu */
.mobile-menu { display: none; flex-direction: column; background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 20px; position: absolute; top: 100%; left: 0; width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.mobile-menu a { padding: 15px 0; border-bottom: 1px solid var(--border-color); font-size: 1.1rem; font-weight: 500; }
.mobile-theme-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.mobile-menu.open { display: flex; }

/* --- HERO --- */
.compact-hero { background: linear-gradient(135deg, #001f4d 0%, #0070ba 100%); color: white; padding: 60px 20px 20px; text-align: center; position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: center; }
.hero-center-content h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 30px; }
.highlight { color: #00d2ff; }
.transfer-animation-box { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 30px 0 50px; }
.coin-stack { position: relative; width: 80px; height: 80px; }
.anim-coin { width: 60px; position: absolute; transition: 0.3s; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); }
.c1 { top: 0; left: 0; z-index: 3; animation: float 3s infinite; }
.c2 { top: 10px; left: 15px; z-index: 2; opacity: 0.8; animation: float 3s infinite 0.5s; }
.c3 { top: 20px; left: 30px; z-index: 1; opacity: 0.6; animation: float 3s infinite 1s; }
.flow-path { width: 150px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; position: relative; overflow: hidden; display: flex; align-items: center; }
.moving-dot { width: 40px; height: 4px; background: linear-gradient(90deg, transparent, #00d2ff, transparent); position: absolute; animation: flowRight 1.5s linear infinite; }
.d2 { animation-delay: 0.5s; } .d3 { animation-delay: 1s; }
.arrow-icon { position: absolute; right: -5px; color: #00d2ff; font-size: 1.2rem; }
.paypal-target { width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); box-shadow: 0 0 30px rgba(0, 112, 186, 0.5); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes flowRight { 0% { left: -50px; opacity: 0; } 50% { opacity: 1; } 100% { left: 150px; opacity: 0; } }
.hero-btns { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.btn-hero { background: white; color: var(--primary); padding: 12px 30px; border-radius: 8px; font-weight: 700; transition: 0.2s; }
.btn-hero-outline { border: 2px solid white; color: white; padding: 12px 30px; border-radius: 8px; font-weight: 700; transition: 0.2s; }

/* Ticker */
.hero-ticker-wrap { width: 100%; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); border-top: 1px solid rgba(255,255,255,0.1); padding: 15px 0; overflow: hidden; position: absolute; bottom: 0; left: 0; }
.ticker-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.ticker-item { width: 100px; flex-shrink: 0; text-align: center; }
.ticker-item img { height: 35px; opacity: 0.8; filter: grayscale(100%) brightness(200%); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-33.333%); } }

/* --- RETAIL CARDS --- */
.retail-section { padding: 60px 20px; background: var(--accent); border-bottom: 1px solid var(--border-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.category-title { font-size: 1.5rem; color: var(--text); margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.retail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.retail-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); transition: 0.3s; position: relative; }
.retail-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--primary); }
.retail-img { height: 140px; display: flex; align-items: center; justify-content: center; padding: 15px; border-bottom: 1px solid var(--border-color); background: white; } /* Keep images on white */
.retail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.retail-info { padding: 15px; }
.retail-info h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.retail-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--gray); margin-bottom: 15px; }
.rating i { color: #ffc107; }
.btn-retail { display: block; width: 100%; text-align: center; border: 1px solid var(--primary); color: var(--primary); padding: 8px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.btn-retail:hover { background: var(--primary); color: white; }
.discount-badge { position: absolute; top: 10px; right: 10px; background: #ff4757; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; z-index: 5; }

/* --- 3D SLIDER --- */
.featured-section { background: var(--bg-color); padding: 50px 0; overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.section-header h2 { font-size: 1.8rem; color: var(--text); }
.view-all-link { color: var(--primary); font-weight: 600; }
.coverflow-container { position: relative; height: 350px; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.coverflow-track { position: relative; width: 300px; height: 100%; transform-style: preserve-3d; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.1); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 50; font-size: 1.2rem; color: var(--text); }
.slider-nav:hover { background: rgba(0,0,0,0.2); }
.prev { left: 20px; } .next { right: 20px; }

/* Slide Stack Card */
.slide-card { position: absolute; top: 30px; left: 0; width: 300px; height: 200px; background: var(--card-bg); border-radius: 15px; display: flex; overflow: hidden; transition: 0.5s; box-shadow: 0 10px 20px rgba(0,0,0,0.1), 5px 5px 0 var(--card-bg), 10px 10px 0 rgba(0,0,0,0.1); border: 1px solid var(--border-color); }
.slide-left { flex: 1.5; padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.slide-left h3 { font-size: 1.2rem; font-weight: 800; line-height: 1; margin-bottom: 5px; color: var(--text); text-transform: uppercase; }
.slide-left h4 { font-size: 1rem; font-weight: 800; color: var(--text); text-transform: uppercase; margin-bottom: 15px; opacity: 0.8; }
.btn-slide { background: var(--coin-color); color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 700; cursor: pointer; width: fit-content; text-transform: uppercase; }
.slide-right { flex: 1; background: var(--coin-color); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%); display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; }
.slide-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.slide-icon img { width: 30px; height: 30px; }
.slide-card.active { transform: translateX(0) translateZ(100px) scale(1.2); z-index: 10; opacity: 1; }
.slide-card.prev { transform: translateX(-120%) translateZ(-100px) rotateY(15deg) scale(0.9); z-index: 5; opacity: 0.6; }
.slide-card.next { transform: translateX(120%) translateZ(-100px) rotateY(-15deg) scale(0.9); z-index: 5; opacity: 0.6; }
.slide-card.hidden { opacity: 0; transform: translateZ(-200px); }

/* --- AFFILIATE --- */
.affiliate-banner { background: var(--dark); color: white; padding: 60px 20px; margin-bottom: 50px; }
.affiliate-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.aff-text h2 { font-size: 2.5rem; margin: 15px 0; }
.btn-affiliate { background: #ffd700; color: #000; padding: 12px 30px; border-radius: 8px; font-weight: 800; display: inline-block; }
.aff-visual i { font-size: 8rem; color: rgba(255,255,255,0.1); }

/* --- AUTO SCROLL GRID --- */
.shop-grid { 
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none; 
}
.shop-grid::-webkit-scrollbar { display: none; }
.shop-item { 
    flex: 0 0 220px; /* Fixed Width prevents overlap */
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; 
    display: flex; flex-direction: column; padding: 20px; align-items: center; text-align: center; 
}
.coin-logo-png { width: 60px; height: 60px; margin-bottom: 15px; }
.shop-item-details h4 { color: var(--text); }
.shop-link { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* --- FOOTER --- */
footer { background: #111; color: white; padding: 60px 20px 20px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding-bottom: 40px; margin-bottom: 20px; }
.footer-brand img { height: 30px; margin-bottom: 10px; }
.social-icon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-weight: 600; margin-left: 10px; }
.discord { background: #5865F2; } .email { background: #333; }
.footer-bottom { text-align: center; color: #555; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-menu-icon { display: block; }
    .nav-container { padding: 0 15px; }
    .hide-mobile-text { display: none; }
    .btn-primary { padding: 8px 12px; font-size: 0.85rem; }
    .btn-wallet { padding: 8px; border-radius: 50%; }
    
    .retail-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .retail-img { height: 100px; }
    .affiliate-content { flex-direction: column; text-align: center; }
    .aff-visual { display: none; }
    .hero-center-content h1 { font-size: 2rem; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}