/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* --- Brand Colors --- */
    --bs-primary: #19E6D3;          /* Teal Utama */
    --bs-primary-rgb: 25, 230, 211;
    --bs-primary-hover: #14C9B8;    /* Teal Gelap (Hover) */
    
    --bs-secondary: #6c757d;
    --bs-success: #00d09c;          /* Green for Profits */
    --bs-danger: #ff4d4f;           /* Red for Losses */
    --bs-info: #3399ff;

    /* --- Backgrounds --- */
    --bs-body-bg: #0b111a;          /* Deep Dark Blue/Black */
    --bs-card-bg: #151f2e;          /* Lighter Dark for Cards */
    --glass-bg: rgba(11, 17, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* --- Typography --- */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   2. GLOBAL RESET & BODY
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bs-body-bg);
    /* Premium Multi-Gradient Background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(25, 230, 211, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(13, 110, 253, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    font-family: var(--font-body);
    color: #e0e6ed;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b111a;
}
::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.5px;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bs-primary);
}

.text-brand { color: var(--bs-primary) !important; }
.text-muted { color: #a0aec0 !important; }

/* =========================================
   4. NAVBAR & NAVIGATION
   ========================================= */
.navbar-glass {
    background: var(--glass-bg);
    /* FIXED: Webkit prefix diletakkan SEBELUM standar property */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Dropdown Menu Dark Style */
.dropdown-menu {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 0.5rem;
}
.dropdown-item {
    color: #e0e6ed;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 0.3rem;
    margin: 0 0.2rem;
    width: auto;
}
.dropdown-item:hover {
    background-color: rgba(25, 230, 211, 0.1);
    color: var(--bs-primary);
}
.dropdown-divider {
    border-color: var(--glass-border);
}

/* =========================================
   5. BUTTONS (PREMIUM OVERRIDES)
   ========================================= */
/* Primary Button (Teal) */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #0b111a;
    font-weight: 700;
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(25, 230, 211, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 230, 211, 0.4);
}

/* Outline Light (Login Buttons) */
.btn-outline-light {
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}
.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Small Button Fix */
.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* Social Buttons (Round) */
.btn-social {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    transition: all 0.3s ease;
}
.btn-social:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #0b111a;
    transform: translateY(-3px);
}

/* =========================================
   6. FORMS (LOGIN / REGISTER / INPUTS)
   ========================================= */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(25, 230, 211, 0.1);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Input Group (Subscribe form) */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* =========================================
   7. CARDS & GLASSMORPHISM
   ========================================= */
.card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-glass {
    background: linear-gradient(145deg, rgba(21, 31, 46, 0.9), rgba(11, 17, 26, 0.9));
    /* FIXED: Webkit prefix diletakkan SEBELUM standar property */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header, .card-footer {
    background-color: transparent;
    border-color: var(--glass-border);
}

/* =========================================
   8. TABLES (DASHBOARD)
   ========================================= */
.table {
    color: #e0e6ed;
    vertical-align: middle;
}
.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--glass-border);
    padding: 1rem 0.5rem;
}
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* =========================================
   9. UTILITIES & ANIMATIONS
   ========================================= */
.bg-brand-soft {
    background-color: rgba(25, 230, 211, 0.1) !important;
}

.border-glass {
    border-color: var(--glass-border) !important;
}

/* Animation: Fade Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* =========================================
   10. FOOTER SPECIFICS
   ========================================= */
/* Note: Empty rule 'footer .social-btn' removed for linting compliance */

.back-to-top {
    opacity: 0.8;
    z-index: 1030;
}
.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}