/* ==========================================================================
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)
========================================================================== */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.search-container { position: relative; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.search-input {
width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
border-radius: 999px; padding: 8px 14px 8px 34px; color: var(--text); font-size: 0.7rem;
box-shadow: inset 0 2px 10px rgba(0,0,0,0.1); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); outline: none;
}
@media (min-width: 768px) { .search-input { padding: 9px 16px 9px 38px; font-size: 0.75rem; } }
.search-input::placeholder { color: var(--muted-2); font-weight: 400; }
.search-input:focus {
background: rgba(255,255,255,0.06); 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: 14px; top: 50%; transform: translateY(-50%);
color: var(--muted-2); font-size: 0.75rem; transition: color 0.4s 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: 4px;
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 12px; 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 16px; 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: 15%; width: 70%; height: 2px;
background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: center;
transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 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.6); }

#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: 5px 12px; border-radius: 50px; 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: 260px;
display: flex; justify-content: center; align-items: center; overflow: hidden;
margin-top: 1rem; margin-bottom: 0.5rem;
}
.carousel-track { position: relative; width: 100%; height: 100%; }

.ea-card {
position: absolute; top: 50%; left: 50%; width: 145px; height: 205px;
background: rgba(15, 15, 20, 0.8);
border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; cursor: pointer; overflow: hidden;
transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
transform-origin: center center; display: flex; flex-direction: column; user-select: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .carousel-container { height: 320px; }
    .ea-card { width: 180px; height: 250px; border-radius: 20px; }
}

.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.5s 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.5) 50%, rgba(10, 10, 15, 0.05) 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.16, 1, 0.3, 1); }
@keyframes glassShine { 0% { left: -150%; } 15% { left: 150%; } 100% { left: 150%; } }

.card-left-1 { transform: translate(calc(-50% - 175px), -50%) scale(0.85); z-index: 5; opacity: 0.55; }
.card-right-1 { transform: translate(calc(-50% + 175px), -50%) scale(0.85); z-index: 5; opacity: 0.55; }
.card-left-2 { transform: translate(calc(-50% - 290px), -50%) scale(0.65); z-index: 2; opacity: 0.15; border-color: transparent !important; }
.card-right-2 { transform: translate(calc(-50% + 290px), -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; }

@media (min-width: 768px) {
    .card-left-1 { transform: translate(calc(-50% - 220px), -50%) scale(0.85); }
    .card-right-1 { transform: translate(calc(-50% + 220px), -50%) scale(0.85); }
    .card-left-2 { transform: translate(calc(-50% - 370px), -50%) scale(0.65); }
    .card-right-2 { transform: translate(calc(-50% + 370px), -50%) scale(0.65); }
}

.ea-card .card-name { font-size: 0.8rem; 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: 6px; font-weight: 500; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tiny-pair-badge {
font-size: 0.4rem; padding: 2.5px 6px; 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); flex-shrink: 0;
}

/* ==========================================================================
5. DETAIL KONTEN & TOMBOL (MICRO-INTERACTIONS)
========================================================================== */
.premium-title {
font-size: 1.6rem; 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: 2.2rem; } }

.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 10px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
text-decoration: none; gap: 8px; user-select: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-btn {
cursor: pointer; position: relative; overflow: hidden;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
will-change: transform;
}
.interactive-btn:active { transform: scale(0.95) !important; }

.btn-primary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #ffffff; border: none; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4); }

.btn-telegram { background: rgba(36, 161, 222, 0.08); color: #24A1DE; border: 1px solid rgba(36, 161, 222, 0.25); }
.btn-telegram:hover { background: rgba(36, 161, 222, 0.2); border-color: rgba(36, 161, 222, 0.6); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(36, 161, 222, 0.25); color: #fff;}

.youtube-elegant-btn {
background: rgba(255, 51, 51, 0.05); color: #ff4d4d; border: 1px solid rgba(255, 51, 51, 0.2);
border-radius: 50px; padding: 10px 20px; font-size: 0.75rem; font-weight: 600;
display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.youtube-elegant-btn:hover { background: rgba(255, 51, 51, 0.15); border-color: rgba(255, 51, 51, 0.45); color: #ffffff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(255, 51, 51, 0.25); }

/* TABEL PRESET */
.preset-table-wrapper {
width: 100%; margin: 1.5rem auto;
background: linear-gradient(145deg, rgba(15, 15, 20, 0.5) 0%, rgba(5, 5, 10, 0.8) 100%);
border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; backdrop-filter: blur(12px);
}
.preset-table { width: 100%; border-collapse: collapse; text-align: left; }
.preset-table th {
background: rgba(255,255,255,0.02); padding: 14px 16px; font-size: 0.65rem;
color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
border-bottom: 1px solid var(--border-soft);
}
.preset-table td { padding: 14px 16px; font-size: 0.75rem; 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.08); color: #60a5fa; display: inline-flex; align-items: center; justify-content: center;
padding: 6px 14px; border-radius: 50px; font-size: 0.65rem; font-weight: 600; gap: 6px;
border: 1px solid rgba(59, 130, 246, 0.2); white-space: nowrap; text-decoration: none;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.preset-dl-btn:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); transform: translateY(-2px); color: #fff; }

/* ==========================================================================
6. TRANSISI LAYOUT & KATEGORI (SMOOTH & ELEGANT)
========================================================================== */
.content-wrapper { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 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.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide-in-left { animation: inLeft 0.5s cubic-bezier(0.16, 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; }

.category-transition-wrapper {
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.category-fade-out {
    opacity: 0 !important;
    transform: scale(0.97) translateY(10px) !important;
    pointer-events: none;
}

/* Garis Tipis (Thin Line) dengan ketebalan yang pas */
.elegant-divider {
width: 100%; max-width: 300px; height: 1px; margin-left: auto; margin-right: auto;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.smooth-fade { transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ==========================================================================
7. PREMIUM ACTION BUTTONS (TUTORIAL & TELEGRAM)
========================================================================== */
.premium-action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Rata Kiri sesuai permintaan */
    gap: 10px;
    padding: 10px 14px; /* Frame diperkecil agar minimalis */
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.6) 0%, rgba(15, 15, 20, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.premium-action-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(40, 40, 45, 0.8) 0%, rgba(20, 20, 25, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}
.premium-action-btn:active {
    transform: scale(0.96);
}

.btn-icon {
    font-size: 1.15rem; /* Icon disesuaikan dengan frame kecil */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.3s ease;
}
.btn-text {
    font-size: 0.75rem; /* Font disesuaikan dengan frame kecil */
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: 0.3px;
    text-align: left;
}

/* Tema Spesifik (Warna & Glow) */
.telegram-theme .btn-icon { color: #24A1DE; }
.telegram-theme:hover { 
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.15), 0 4px 15px rgba(0, 0, 0, 0.4); 
    border-color: rgba(36, 161, 222, 0.3); 
}
.telegram-theme:hover .btn-icon { 
    transform: scale(1.15) rotate(-5deg); 
    text-shadow: 0 0 15px rgba(36, 161, 222, 0.6); 
}

.youtube-theme .btn-icon { color: #ff4d4d; }
.youtube-theme:hover { 
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.12), 0 4px 15px rgba(0, 0, 0, 0.4); 
    border-color: rgba(255, 51, 51, 0.25); 
}
.youtube-theme:hover .btn-icon { 
    transform: scale(1.15); 
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6); 
}

/* ==========================================================================
8. ANIMASI KHUSUS & MODAL DOWNLOAD
========================================================================== */
.animate-shine { 
    animation: shine 3.5s infinite; 
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* ==========================================================================
10. SUPER PREMIUM MEMBERSHIP BUTTON
========================================================================== */
.membership-premium-btn {
    background: linear-gradient(135deg, #e4c25a 0%, #b8860b 100%);
    border: 1px solid #fce883;
    color: #050508; /* Teks gelap pekat agar sangat kontras dan mudah dibaca */
    padding: 10px 20px; 
    border-radius: 50px; 
    font-size: 0.75rem; 
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(228, 194, 90, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}
.membership-premium-btn:hover {
    background: linear-gradient(135deg, #fce883 0%, #e4c25a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(228, 194, 90, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8);
}
.membership-premium-btn:active {
    transform: scale(0.95);
}