/* ==========================================================
   MASTER STYLE & ANIMATION - CRYPTO TRADER PREMIUM THEME
   ========================================================== */
/* --- 1. PENGATURAN LATAR & ANIMASI TRADER BTC MODERN --- */
body {
    /* Menggabungkan Grid Trading Chart + Glow Bitcoin Gold & Deep Blue */
    background-color: #05060f;
    background-image: 
        /* Lapisan 1 & 2: Grid kotak-kotak halus ala layar grafik (Candlestick Chart Grid) */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        /* Lapisan 3 & 4: Cahaya ambient Bitcoin Gold (Kiri) & Cyber Blue (Kanan) */
        radial-gradient(circle at 20% 50%, rgba(247, 147, 26, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
        /* Lapisan 5: Gradasi warna latar terminal trading gelap */
        linear-gradient(-45deg, #05060f, #0b0e23, #131738, #05060f);
    
    /* Atur ukuran grid 30px x 30px dan ukuran glow */
    background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%, 400% 400%;
    animation: btcTraderShift 16s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Animasi pergerakan grid dan cahaya seolah grafik sedang aktif */
@keyframes btcTraderShift {
    0% { 
        background-position: 0 0, 0 0, 0% 50%, 100% 50%, 0% 50%; 
    }
    50% { 
        background-position: 15px 15px, 15px 15px, 100% 50%, 0% 50%, 100% 50%; 
    }
    100% { 
        background-position: 0 0, 0 0, 0% 50%, 100% 50%, 0% 50%; 
    }
}

/* --- 2. EFEK KACA KARTU & GLOWING (GLASSMORPHISM) --- */
.auth-card, .glass-card {
    background: rgba(10, 12, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 3. ANIMASI HOVER KARTU PASAR/KOIN (MELAYANG & MENYALA) --- */
.crypto-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.crypto-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4); /* Glow Biru */
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.15), 
                0 10px 15px -6px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.04) !important;
}

/* --- 4. ANIMASI IKON MELAYANG (FLOATING ICON) --- */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
    display: inline-block;
}

/* --- 5. ANIMASI DENYUT INDIKATOR TRADING (PULSE GLOW) --- */
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.2); transform: scale(1.02); }
}

@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 12px 4px rgba(239, 68, 68, 0.2); transform: scale(1.02); }
}

.badge-naik {
    animation: pulseGreen 2s infinite;
}

.badge-turun {
    animation: pulseRed 2s infinite;
}

/* --- 6. DESAIN KOLOM INPUT MODERN --- */
.input-field, .admin-input {
    width: 100%;
    background-color: #060711;
    border: 1px solid #1a1e2e;
    border-radius: 14px;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 13px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.input-field::placeholder, .admin-input::placeholder {
    color: #4b5563;
}

.input-field:focus, .admin-input:focus {
    border-color: #3b82f6;
    background-color: #0b0d1e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- 7. TOMBOL LOGIN & REGISTER DENGAN EFEK TEKAN --- */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

/* --- 8. UTILITY CLASS --- */
.hidden {
    display: none !important;
}

/* ==========================================================
   STYLE GOOGLE TRANSLATE - SLIM MINI BAR (PANJANG & TIPIS)
   ========================================================== */

/* Sembunyikan Top Bar Google */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}

/* Pembungkus dibuat memanjang penuh */
.custom-translate-box {
    width: 100%;
    display: block;
}

/* Ubah dropdown menjadi Bar Panjang & Mini (Slim Bar) */
.custom-translate-box .goog-te-gadget-simple {
    background-color: rgba(6, 7, 17, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 12px !important; /* Nol vertikal agar sangat tipis */
    border-radius: 8px !important;
    font-size: 11px !important;
    color: #cbd5e1 !important;
    width: 100% !important; /* Memanjang horizontal 100% */
    height: 28px !important; /* Tinggi dikunci super mini (28px) */
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

/* Efek saat mouse diarahkan (Hover) */
.custom-translate-box .goog-te-gadget-simple:hover {
    border-color: #3b82f6 !important;
    background-color: #0b0d1e !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* Sembunyikan ikon logo Google & elemen pemisah yang tidak perlu */
.goog-te-gadget-icon, 
.goog-te-gadget-simple img,
.goog-te-gadget-simple span style {
    display: none !important;
}

/* Teks nama bahasa diatur pas di tengah bar */
.custom-translate-box .goog-te-menu-value {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.goog-te-menu-value span {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
}

.custom-translate-box .goog-te-gadget-simple:hover .goog-te-menu-value span {
    color: #ffffff !important;
}

/* ==========================================================
   TOMBOL EKSEKUSI TRADING MODERN (CYBER BLUE GLOW)
   ========================================================== */

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 14px;
    border-radius: 14px;
    /* Border neon biru tipis agar menyatu dengan latar gelap */
    border: 1px solid rgba(96, 165, 250, 0.3); 
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px; /* Mendukung efek tracking-widest */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Shadow ganda: cahaya biru di luar + highlight putih tipis di dalam */
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Efek Kilau Cahaya (Shimmer/Shine) yang melewati tombol saat di-hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Efek saat mouse mengarah ke tombol (Hover) */
.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(147, 197, 253, 0.6); /* Border menyala lebih terang */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Efek saat tombol diklik (Active Push) */
.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* ==========================================================
   TOMBOL REGISTRASI SUKSES (CYBER GREEN GLOW)
   ========================================================== */

.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    /* Border neon hijau tipis agar menyatu dengan latar gelap */
    border: 1px solid rgba(52, 211, 153, 0.3); 
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Mengaktifkan efek kilau cahaya (shimmer) saat di-hover */
.btn-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s ease;
}

.btn-success:hover::after {
    left: 100%;
}

/* Efek saat mouse mengarah ke tombol REGISTER (Hover) */
.btn-success:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(110, 231, 183, 0.6); /* Border hijau menyala lebih terang */
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Efek saat tombol diklik (Active Push) */
.btn-success:active {
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}

/* ==========================================================
   ALERT NOTIFICATION STYLE - CRYPTO TRADER THEME
   ========================================================== */

/* Struktur Dasar Alert Card */
.trader-alert {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
    /* Animasi muncul halus dari atas */
    animation: slideDownAlert 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownAlert {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- TEMA 1: ERROR / GAGAL (Cyber Red Glow) --- */
.trader-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5; /* Teks merah muda terang */
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trader-alert-error i {
    color: #ef4444; /* Ikon merah menyala */
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}

/* --- TEMA 2: SUCCESS / BERHASIL (Cyber Green Glow) --- */
.trader-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7; /* Teks hijau muda terang */
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trader-alert-success i {
    color: #10b981; /* Ikon hijau zamrud menyala */
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}