/* ==========================================================================
1. VARIABEL WARNA & TEMA (GELAP)
========================================================================== */
:root {
--bg: #030305;
--surface: #0a0a0f;
--border: rgba(255, 255, 255, 0.08);
--border-soft: rgba(255, 255, 255, 0.03);
--text: #f5f5f7;
--muted: #8b8b99;
--muted-2: #5c5c68;
--gold: #e4c25a;
--blue: #3b82f6;
}

* { box-sizing: border-box; }

html, body {
background-color: var(--bg);
color: var(--text);
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: 'Inter', sans-serif;
position: relative;
min-height: 100vh;
display: flex;
flex-direction: column;
}

/* ==========================================================================
2. EFEK BACKGROUND & ANIMASI
========================================================================== */
.ambient-bg {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
z-index: -2; overflow: hidden; pointer-events: none;
background: radial-gradient(circle at center, #07070b 0%, #000000 100%);
}
.mesh-blob {
position: absolute; border-radius: 50%; filter: blur(120px);
opacity: 0.45; mix-blend-mode: screen;
animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.bg-blue-glow { width: 50vw; height: 50vw; background: rgba(29, 78, 216, 0.12); top: -10%; left: -10%; }
.bg-purple-glow { width: 45vw; height: 45vw; background: rgba(109, 40, 217, 0.08); bottom: 10%; left: 30%; animation-delay: -5s; animation-duration: 25s; }
.bg-gold-glow { width: 40vw; height: 40vw; background: rgba(228, 194, 90, 0.06); top: 20%; right: -10%; animation-delay: -10s; animation-duration: 22s; }

.noise-overlay {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

@keyframes drift {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(5vw, 5vh) scale(1.05); }
100% { transform: translate(-5vw, 10vh) scale(0.95); }
}

/* ==========================================================================
3. KOMPONEN UI UTAMA (Search, Tabs, Badges)
========================================================================== */
.search-container { position: relative; transition: all 0.3s ease; }
.search-input {
width: 100%; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
border-radius: 999px; padding: 7px 14px 7px 32px; color: var(--text); font-size: 0.7rem;
box-shadow: inset 0 2px 10px rgba(0,0,0,0.2); transition: all 0.3s ease; outline: none;
}
@media (min-width: 768px) { .search-input { padding: 8px 16px 8px 36px; font-size: 0.75rem; } }
.search-input::placeholder { color: var(--muted-2); font-weight: 400; }
.search-input:focus {
background: rgba(255,255,255,0.05); border-color: rgba(59, 130, 246, 0.4);
box-shadow: inset 0 2px 10px rgba(0,0,0,0.2), 0 0 15px rgba(59, 130, 246, 0.15);
}
.search-icon {
position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
color: var(--muted-2); font-size: 0.7rem; transition: color 0.3s ease; pointer-events: none;
}
.search-input:focus + .search-icon, .search-input:not(:placeholder-shown) + .search-icon { color: var(--blue); }

.tab-nav { display: flex; align-items: center; gap: 0.2rem; position: relative; }
.tab-scrollable {
overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px;
cursor: grab; scroll-behavior: smooth; user-select: none;
}
.tab-scrollable:active { cursor: grabbing; scroll-behavior: auto; }
.tab-scrollable::-webkit-scrollbar { display: none; }
.tab-item {
position: relative; padding: 6px 8px; font-size: 0.7rem; font-weight: 500; color: var(--muted);
transition: color 0.4s ease; white-space: nowrap; letter-spacing: 0.3px; flex-shrink: 0; cursor: pointer;
}
@media (min-width: 768px) { .tab-item { padding: 8px 12px; font-size: 0.75rem; } .tab-nav { gap: 0.25rem; } }
.tab-item:hover { color: #d1d1d6; }
.tab-item.active { color: var(--text); font-weight: 600; }

.tab-item::after {
content: ''; position: absolute; bottom: 0; left: 10%; width: 80%; height: 2px;
background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: center;
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}
.tab-item.active::after { transform: scaleX(1); box-shadow: 0 0 10px rgba(59,130,246,0.5); }

#strategy-tabs {
--dynamic-strat-color: var(--blue);
--dynamic-strat-shadow: rgba(59, 130, 246, 0.5);
}
#strategy-tabs .tab-item::after { background: var(--dynamic-strat-color); }
#strategy-tabs .tab-item.active::after { box-shadow: 0 0 10px var(--dynamic-strat-shadow); }

.spec-badge {
font-size: 0.45rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
padding: 3px 8px; border-radius: 4px; border: 1px solid; display: inline-flex; align-items: center; justify-content: center;
}
.badge-blue { background: rgba(59, 130, 246, 0.06); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.badge-gold { background: rgba(228, 194, 90, 0.08); color: var(--gold); border-color: rgba(228, 194, 90, 0.35); }

/* ==========================================================================
4. CAROUSEL CARD EA
========================================================================== */
.carousel-container {
position: relative; width: 100%; height: 245px;
display: flex; justify-content: center; align-items: center; overflow: hidden;
margin-top: 0.5rem; margin-bottom: 0.2rem;
}
.carousel-track { position: relative; width: 100%; height: 100%; }

.ea-card {
position: absolute; top: 50%; left: 50%; width: 135px; height: 190px;
background: rgba(15, 15, 20, 0.8);
border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; cursor: pointer; overflow: hidden;
transition: transform 0.7s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
transform-origin: center center; display: flex; flex-direction: column; user-select: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ea-card-img {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background-size: cover; background-position: center;
opacity: 0.45; z-index: 0; transition: opacity 0.4s ease;
}
.ea-card-overlay {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(to top, rgba(10, 10, 15, 1) 0%, rgba(10, 10, 15, 0.6) 50%, rgba(10, 10, 15, 0.1) 100%);
z-index: 1; pointer-events: none;
}
.ea-card-content {
position: relative; z-index: 2; height: 100%; width: 100%;
display: flex; flex-direction: column; padding: 1rem;
}

.ea-card::before {
content: ''; position: absolute; top: 0; left: -150%; width: 80%; height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
transform: skewX(-25deg); z-index: 3; pointer-events: none;
}

.card-center { transform: translate(-50%, -50%) scale(1.15); z-index: 10; opacity: 1; }
.card-center::before { animation: glassShine 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes glassShine { 0% { left: -150%; } 15% { left: 150%; } 100% { left: 150%; } }

.card-left-1 { transform: translate(calc(-50% - 165px), -50%) scale(0.85); z-index: 5; opacity: 0.55; }
.card-right-1 { transform: translate(calc(-50% + 165px), -50%) scale(0.85); z-index: 5; opacity: 0.55; }
.card-left-2 { transform: translate(calc(-50% - 275px), -50%) scale(0.65); z-index: 2; opacity: 0.15; border-color: transparent !important; }
.card-right-2 { transform: translate(calc(-50% + 275px), -50%) scale(0.65); z-index: 2; opacity: 0.15; border-color: transparent !important; }
.card-hidden { transform: translate(-50%, -50%) scale(0.5); z-index: 1; opacity: 0; pointer-events: none; }

.ea-card .card-name { font-size: 0.75rem; font-weight: 700; color: var(--text); margin-top: auto; line-height: 1.25; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.ea-card .card-strat { font-size: 0.55rem; color: #d1d1d6; margin-top: 4px; font-weight: 500; z-index: 2; }
.tiny-pair-badge {
font-size: 0.4rem; padding: 1.5px 4px; border-radius: 4px;
background: rgba(228,194,90,0.15); color: var(--gold);
border: 1px solid rgba(228,194,90,0.4); font-weight: 700;
backdrop-filter: blur(4px);
}

/* ==========================================================================
5. DETAIL KONTEN & TOMBOL (MICRO-INTERACTIONS)
========================================================================== */
.premium-title {
font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .premium-title { font-size: 2rem; } }

/* Kelas Dasar Tombol (Membuat Bentuknya Kembali Tebal & Presisi) */
.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 18px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
text-decoration: none; gap: 6px; user-select: none; transition: all 0.2s ease;
}

/* Efek Klik Membal */
.interactive-btn {
cursor: pointer; position: relative; overflow: hidden;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
will-change: transform;
}
.interactive-btn:active { transform: scale(0.94) !important; }

/* Warna dan Style Spesifik Masing-Masing Tombol */
.btn-primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; border: none; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #4f90f7 0%, #2563eb 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); }

.btn-secondary { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-telegram { background: rgba(36, 161, 222, 0.1); color: #24A1DE; border: 1px solid rgba(36, 161, 222, 0.3); }
.btn-telegram:hover { background: rgba(36, 161, 222, 0.2); border-color: rgba(36, 161, 222, 0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(36, 161, 222, 0.2); }

/* TABEL PRESET */
.preset-table-wrapper {
width: 100%; margin: 1rem auto;
background: rgba(10, 10, 15, 0.5); border: 1px solid var(--border-soft);
border-radius: 12px; overflow: hidden; backdrop-filter: blur(10px);
}
.preset-table { width: 100%; border-collapse: collapse; text-align: left; }
.preset-table th {
background: rgba(255,255,255,0.04); padding: 10px 12px; font-size: 0.6rem;
color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
border-bottom: 1px solid var(--border-soft);
}
.preset-table td {
padding: 10px 12px; font-size: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.02); vertical-align: middle;
}
.preset-table tr:last-child td { border-bottom: none; }

.preset-dl-btn {
background: rgba(59, 130, 246, 0.1); color: #60a5fa; display: inline-flex; align-items: center; justify-content: center;
padding: 5px 10px; border-radius: 6px; font-size: 0.6rem; font-weight: 600; gap: 6px;
border: 1px solid rgba(59, 130, 246, 0.2); white-space: nowrap; text-decoration: none;
}
.preset-dl-btn:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); transform: translateY(-1px); color: #fff; }

/* ==========================================================================
6. TRANSISI LAYOUT
========================================================================== */
.content-wrapper { transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.3, 1); will-change: transform, opacity; }
.slide-out-left { opacity: 0; transform: translateX(-30px); }
.slide-out-right { opacity: 0; transform: translateX(30px); }
.slide-in-right { animation: inRight 0.4s cubic-bezier(0.25, 1, 0.3, 1) forwards; }
.slide-in-left { animation: inLeft 0.4s cubic-bezier(0.25, 1, 0.3, 1) forwards; }
@keyframes inRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
.hide-instant { opacity: 0 !important; transition: none !important; }

.elegant-divider {
width: 100%; max-width: 250px; height: 1px; margin: 1.5rem auto;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.smooth-fade { transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ==========================================================================
7. DONATION & LEADERBOARD (TEMA TERANG / WHITE THEME)
========================================================================== */
.donate-card-bright {
background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem;
position: relative; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.02);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.donate-card-bright:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04); }
.donate-card-bright::before {
content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
background: linear-gradient(90deg, #3b82f6, #0ea5e9, #3b82f6);
}

.donate-title-bright { color: #1e293b; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; text-align: center; letter-spacing: -0.3px; }
.donate-desc-bright { color: #64748b; font-size: 0.75rem; text-align: center; margin-bottom: 1.5rem; line-height: 1.5; }

/* Tombol Nominal 3x2 (Dipertahankan di CSS untuk jaga-jaga/backward compatibility) */
.preset-amount-btn-bright {
background: #f8fafc; border: 1px solid #cbd5e1; color: #475569;
padding: 10px 4px; border-radius: 8px; font-size: 0.7rem; font-weight: 700;
text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); user-select: none;
}
.preset-amount-btn-bright:hover { background: #f1f5f9; border-color: #94a3b8; color: #1e293b; transform: translateY(-1px); }
.preset-amount-btn-bright.selected {
background: #eff6ff; border-color: #3b82f6; color: #2563eb;
box-shadow: inset 0 0 0 1px #3b82f6, 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Tombol Biru WhatsApp (Dipertahankan) */
.btn-donate-blue {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; border: none;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
width: 100%; padding: 12px; font-size: 0.8rem;
}
.btn-donate-blue:hover { background: linear-gradient(135deg, #4f90f7 0%, #2563eb 100%); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4); transform: translateY(-2px); }

/* Leaderboard */
.top-donator-title-bright { color: #94a3b8; font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; text-align: center; margin-bottom: 0.75rem; }
.donator-card-bright {
background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 8px;
padding: 6px 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease;
}
.donator-card-bright:hover { background: #f1f5f9; border-color: #e2e8f0; }

.donator-name-bright { color: #334155; font-size: 0.7rem; font-weight: 600; }
.donator-amount-bright { color: #0f172a; font-size: 0.7rem; font-weight: 700; }

/* Frame Scroll Leaderboard */
.leaderboard-scroll-wrapper {
    position: relative;
    width: 100%;
}

.leaderboard-scroll {
    max-height: 420px; 
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom Desain Scrollbar Khusus Leaderboard agar Tetap Elegan */
.leaderboard-scroll::-webkit-scrollbar { width: 4px; }
.leaderboard-scroll::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
.leaderboard-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.leaderboard-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Fade gradient di tepi bawah frame */
.leaderboard-fade-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 6px; 
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 85%);
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.leaderboard-fade-bottom.is-hidden { opacity: 0; }

/* Panah kecil bounce sebagai penanda awal */
.leaderboard-scroll-hint {
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 0.7rem;
    pointer-events: none;
    animation: leaderboard-bounce 1.1s ease-in-out infinite;
    transition: opacity 0.5s ease;
    opacity: 1;
}
.leaderboard-scroll-hint.is-hidden { opacity: 0; }

@keyframes leaderboard-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(4px); }
}

.btn-toggle-bright {
color: #64748b; font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
letter-spacing: 0.5px; cursor: pointer; background: none; border: none;
transition: color 0.2s ease; display: flex; align-items: center; justify-content: center;
gap: 4px; margin: 0.5rem auto 0; padding: 5px 10px;
}
.btn-toggle-bright:hover { color: #1e293b; }

/* ==========================================================================
8. ANIMASI KHUSUS DONASI (SHINE & BOUNCE)
========================================================================== */
.animate-bounce-slow { 
    animation: bounceSlow 2.5s infinite ease-in-out; 
}
@keyframes bounceSlow { 
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px) rotate(-5deg); }
}

.animate-shine { 
    animation: shine 3.5s infinite; 
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* ==========================================================================
   ORANAMEN AKSEN MERAH KHAS QRIS (REF: Group 14.png)
========================================================================== */
.qris-accent-left {
    position: absolute;
    left: -2px; /* Ditarik sedikit ke luar agar menempel di border */
    top: 25%;
    width: 20px;
    height: 70px;
    background-color: #ED1C24; /* Warna Merah Khas QRIS/GPN */
    /* Membuat bentuk trapesium menghadap ke kanan */
    clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
    z-index: 0;
    opacity: 0.9;
}

.qris-accent-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 140px;
    height: 140px;
    background-color: #ED1C24; 
    /* Membuat bentuk segitiga besar di pojok kanan bawah */
    clip-path: polygon(100% 30%, 100% 100%, 15% 100%);
    z-index: 0;
    opacity: 0.85;
}

/* Custom Scrollbar Mini untuk area "Lihat Selengkapnya" */
.custom-scrollbar-mini::-webkit-scrollbar { width: 3px; }
.custom-scrollbar-mini::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar-mini::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-scrollbar-mini::-webkit-scrollbar-thumb:hover { background: #94a3b8; }