/* ==========================================================================
   PaciBit Markets - Custom Theme Overrides & Bespoke UI Components
   ========================================================================== */

:root {
    --bg-dark: #030816;
    --bg-card: rgba(10, 20, 44, 0.7);
    --bg-card-solid: #0a142c;
    --bg-card-hover: rgba(16, 30, 64, 0.85);
    
    /* Brand Accent Colors */
    --accent-blue: #1a6dff;
    --accent-blue-hover: #0052e0;
    --accent-cyan: #00d2ff;
    --accent-gold-start: #f39c12;
    --accent-gold-end: #d35400;
    
    /* Typography & Contrast Colors */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted-custom: #94a3b8;
    --border-glow: rgba(0, 210, 255, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(0, 102, 255, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 90% 65%, rgba(0, 210, 255, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* --- Text Visibility Overrides --- */
p, .text-muted, small {
    color: var(--text-secondary) !important;
}

/* --- Animated Slant Arrow for All Buttons --- */
.btn-arrow-icon {
    display: inline-block;
    margin-left: 8px;
    transform: rotate(-45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover .btn-arrow-icon,
a.btn:hover .btn-arrow-icon {
    transform: rotate(0deg);
}

/* --- Scroll Animated Navigation Bar --- */
.navbar-custom {
    background: rgba(3, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Initial state at top of page */
.navbar-custom.at-top {
    position: absolute;
    transform: translateY(0);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Slide down animation state when scrolling down */
.navbar-custom.navbar-scrolled {
    position: fixed;
    transform: translateY(0);
    background: rgba(3, 8, 22, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 0.75rem 0;
}

/* Hidden state before sliding down */
.navbar-custom.navbar-hidden {
    position: fixed;
    transform: translateY(-100%);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan) !important;
}

.dropdown-menu-dark {
    background-color: var(--bg-card-solid);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
}

/* Custom Hamburger Icon Toggle */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.hamburger-line {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: var(--accent-cyan);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 8px; width: 75%; right: 0; }
.hamburger-line:nth-child(3) { top: 16px; }

.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.custom-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Buttons --- */
.btn-nav-login {
    border: 1px solid rgba(0, 102, 255, 0.6);
    background: rgba(0, 102, 255, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-nav-login:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-cyan);
}

.btn-nav-signup {
    background: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.6rem;
    border-radius: 10px;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 109, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-nav-signup:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 6px 20px rgba(26, 109, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold-action {
    background: linear-gradient(180deg, #ffc107 0%, #e67e22 100%);
    color: #000000 !important;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
    filter: brightness(1.05);
}

/* --- Hero Section & Video Overlay --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.7) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3,8,22,0.3) 0%, rgba(3,8,22,0.2) 85%, #030816 100%);
    z-index: -1;
}

.quick-feature-list {
    background: rgba(10, 20, 44, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 2rem;
}

.quick-feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-feature-item:last-child {
    border-bottom: none;
}

/* --- Cards & General Layout --- */
.custom-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.15);
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .custom-card {
    border-color: var(--accent-cyan);
}

.gradient-section {
    background: linear-gradient(180deg, #030816 0%, #07122b 50%, #030816 100%);
}

.custom-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   About Us Section (Exact Screenshot Match)
   ========================================================================== */
#about-us {
    background-color: #030712;
    position: relative;
}

.about-tag {
    color: #4f46e5;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.about-lead {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Bullet List Styling */
.about-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
    font-size: 0.92rem;
}

.about-check-list li i {
    color: #22c55e; /* Bright Green Icon */
    font-size: 1.1rem;
}

/* Read More Button */
.btn-about-readmore {
    background-color: #1f2937;
    color: #ffffff;
    border: 1px solid #374151;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.btn-about-readmore:hover {
    background-color: #374151;
    color: #ffffff;
    border-color: #4b5563;
}

/* Image Wrapper with Dark Border Frame */
.about-image-card {
    position: relative;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px;
}

.about-image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Overlay Gold Badge */
.about-badge-gold {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-badge-gold small {
    color: #fef3c7;
    font-size: 0.7rem;
}

/* About Us Expandable Text */
.about-extra-content {
    display: none;
    margin-top: 1rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5deg); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
}


/* ==========================================================================
   How to Start (3-Step Onboarding Process)
   ========================================================================== */

.step-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.15);
}

.step-number-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-gold-start) 0%, var(--accent-gold-end) 100%);
    color: #000000;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: transform 0.3s ease;
}


.step-card:hover .step-number-badge {
    transform: scale(1.1) rotate(5deg);
}


/* ==========================================================================
   Mission & Vision Section Styles
   ========================================================================== */
.mv-card {
    background: rgba(10, 20, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.3);
}

.mv-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mv-icon-mission {
    background: rgba(0, 210, 255, 0.12);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.mv-icon-vision {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.mv-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}

.mv-text {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
}


/* ==========================================================================
   Certifications & Security Section (Exact Match to Design)
   ========================================================================== */
.cert-wrapper {
    background: #040a1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
}

.cert-head-desc {
    color: #94a3b8;
    max-width: 540px;
    font-size: 0.95rem;
}

/* Base Card */
.cert-card {
    background: rgba(7, 16, 38, 0.8);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
}

.cert-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.cert-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.cert-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 1.25rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.5px;
}

/* Green Theme (FinCEN, KYC) */
.cert-card-green { border: 1px solid rgba(46, 204, 113, 0.25); }
.cert-icon-green { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.cert-pill-green { background: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }

/* Blue Theme (SEC) */
.cert-card-blue { border: 1px solid rgba(26, 109, 255, 0.25); }
.cert-icon-blue { background: rgba(26, 109, 255, 0.1); color: #1a6dff; border: 1px solid rgba(26, 109, 255, 0.3); }
.cert-pill-blue { background: rgba(26, 109, 255, 0.15); color: #1a6dff; border: 1px solid rgba(26, 109, 255, 0.3); }

/* Purple Theme (ISO 27001) */
.cert-card-purple { border: 1px solid rgba(155, 89, 182, 0.25); }
.cert-icon-purple { background: rgba(155, 89, 182, 0.1); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.3); }
.cert-pill-purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.3); }

/* Cyan Theme (GDPR) */
.cert-card-cyan { border: 1px solid rgba(0, 210, 255, 0.25); }
.cert-icon-cyan { background: rgba(0, 210, 255, 0.1); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.3); }
.cert-pill-cyan { background: rgba(0, 210, 255, 0.15); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.3); }

/* Gold Theme (SSL) */
.cert-card-gold { border: 1px solid rgba(243, 156, 18, 0.25); }
.cert-icon-gold { background: rgba(243, 156, 18, 0.1); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.3); }
.cert-pill-gold { background: rgba(243, 156, 18, 0.15); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.3); }

/* Download Banner Button */
.cert-download-btn {
    background: linear-gradient(90deg, rgba(13, 40, 95, 0.9) 0%, rgba(10, 28, 68, 0.9) 100%);
    border: 1px solid rgba(26, 109, 255, 0.4);
    border-radius: 12px;
    padding: 1.1rem 1.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cert-download-btn:hover {
    border-color: #00d2ff;
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* Footer Trust Bar */
.cert-footer-bar {
    background: rgba(10, 20, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-shield {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(26, 109, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .cert-wrapper {
        padding: 2rem 1.25rem;
    }
    .cert-footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cert-footer-bar .text-end {
        text-align: center !important;
    }
}

/* --- Academy Articles & Modals --- */
.academy-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.academy-filter-btn:hover, .academy-filter-btn.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.article-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.article-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 102, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-gold-start);
    flex-shrink: 0;
}

/* Modal Styling */
.custom-modal .modal-content {
    background-color: #07122b;
    border: 1px solid var(--border-glow);
    border-radius: 18px;
    color: var(--text-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.custom-modal .modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
}

.custom-modal .modal-body {
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.custom-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- 3-Step Onboarding Process --- */
.step-card {
    background: rgba(10, 20, 44, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.step-number-badge {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ffc107 0%, #e67e22 100%);
    color: #000;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- FAQ Accordion Custom Styling --- */
.custom-accordion .accordion-item {
    background-color: var(--bg-card-solid);
    border: 1px solid var(--border-subtle);
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background-color: var(--bg-card-solid);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(0, 210, 255, 0.08);
    color: var(--accent-cyan);
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-body {
    background-color: rgba(3, 8, 22, 0.5);
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* --- Pre-Footer Call to Action (CTA) --- */
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 210, 255, 0.1) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Floating Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-cyan);
    color: #000000;
    transform: translateY(-4px);
}

/* --- Footer --- */
.footer-custom {
    position: relative;
    background: #01040d;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
}

.footer-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================================================
   Affiliate Program Section Styles
   ========================================================================== */
#affiliate-program {
    background-color: #030712;
}

.affiliate-tag {
    color: #4f46e5;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.affiliate-desc {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.65;
}

.btn-affiliate-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.btn-affiliate-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* Image Container with Badge */
.affiliate-image-box {
    position: relative;
    background: #0b132b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 12px;
}

.affiliate-image-box img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.affiliate-badge-green {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: #16a34a;
    color: #ffffff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.affiliate-badge-green small {
    color: #dcfce7;
    font-size: 0.68rem;
}

/* Statistics Bar */
.affiliate-stats-bar {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem 1rem;
}

.stat-col {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-col:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Step Cards */
.affiliate-step-card {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.affiliate-step-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.step-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.icon-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
}

.icon-purple {
    background: rgba(147, 51, 234, 0.15);
    color: #a855f7;
}

.icon-green {
    background: rgba(22, 163, 74, 0.15);
    color: #22c55e;
}

@media (max-width: 768px) {
    .stat-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .stat-col:last-child {
        border-bottom: none;
    }
}


/* ==========================================================================
   Custom Flag Translator (Exact Overlay Design Match)
   ========================================================================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.lang-btn-trigger {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn-trigger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #131f38;
}

/* Flag Icon Standard Dimensions */
.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Expanded Flag Image Mappings */
.flag-us { background-image: url('https://flagcdn.com/w40/us.png'); }
.flag-es { background-image: url('https://flagcdn.com/w40/es.png'); }
.flag-fr { background-image: url('https://flagcdn.com/w40/fr.png'); }
.flag-de { background-image: url('https://flagcdn.com/w40/de.png'); }
.flag-it { background-image: url('https://flagcdn.com/w40/it.png'); }
.flag-pt { background-image: url('https://flagcdn.com/w40/pt.png'); }
.flag-nl { background-image: url('https://flagcdn.com/w40/nl.png'); }
.flag-ru { background-image: url('https://flagcdn.com/w40/ru.png'); }
.flag-cn { background-image: url('https://flagcdn.com/w40/cn.png'); }
.flag-tw { background-image: url('https://flagcdn.com/w40/tw.png'); }
.flag-jp { background-image: url('https://flagcdn.com/w40/jp.png'); }
.flag-kr { background-image: url('https://flagcdn.com/w40/kr.png'); }
.flag-sa { background-image: url('https://flagcdn.com/w40/sa.png'); }
.flag-in { background-image: url('https://flagcdn.com/w40/in.png'); }
.flag-tr { background-image: url('https://flagcdn.com/w40/tr.png'); }
.flag-vn { background-image: url('https://flagcdn.com/w40/vn.png'); }
.flag-th { background-image: url('https://flagcdn.com/w40/th.png'); }
.flag-id { background-image: url('https://flagcdn.com/w40/id.png'); }
.flag-pl { background-image: url('https://flagcdn.com/w40/pl.png'); }
.flag-ua { background-image: url('https://flagcdn.com/w40/ua.png'); }
.flag-se { background-image: url('https://flagcdn.com/w40/se.png'); }
.flag-no { background-image: url('https://flagcdn.com/w40/no.png'); }
.flag-fi { background-image: url('https://flagcdn.com/w40/fi.png'); }
.flag-gr { background-image: url('https://flagcdn.com/w40/gr.png'); }
.flag-il { background-image: url('https://flagcdn.com/w40/il.png'); }

/* Custom Scrollbar styling for long menu lists */
.lang-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.lang-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.lang-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

/* Dropdown Menu Container */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #0c1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
}

.lang-dropdown-wrapper.show .lang-dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu li {
    padding: 8px 16px;
    color: #94a3b8;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-dropdown-menu li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.lang-dropdown-menu li.active {
    color: #ffffff;
    font-weight: 600;
}

.lang-dropdown-menu li.active::before {
    content: "✓";
    font-size: 0.8rem;
    color: #38bdf8;
    margin-right: -4px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide default Google Translate bar if injected */
.goog-te-banner-frame, iframe.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }

/* ==========================================================================
   Interactive Section Scroll-Slide Animations
   ========================================================================== */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}


  /* Match dark theme background and glow */
  .auth-section {
    background-color: #0b0d14;
    color: #e5e7eb;
    min-height: 100vh;
  }
  
  .auth-glow-bg {
    background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.5), transparent 70%), #0b0d14;
  }

  /* Custom styled input groups with inside icons */
  .custom-input-group {
    position: relative;
    background-color: #06080e;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease-in-out;
  }

  .custom-input-group:focus-within {
    border-color: #3b82f6;
  }

  .custom-input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 5;
  }

  .custom-input-group .form-control,
  .custom-input-group .form-select {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding-left: 2.75rem !important;
    box-shadow: none !important;
    font-size: 0.9rem;
  }

  .custom-input-group .form-control::placeholder {
    color: #475569;
  }

  .custom-input-group .btn-eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    z-index: 5;
  }

  .custom-input-group .btn-eye:hover {
    color: #94a3b8;
  }

  .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  }


/* ================= TICKER TAPE ================= */

.ticker-tape-wrapper {
    width: 100%;
    max-width: 100%;
    display: block;
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0a142c;
}

.ticker-tape-wrapper tv-ticker-tape {
    display: block;
    width: 100%;
}


/* ================= HERO SECTION ================= */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 75vh;
    overflow: hidden;
}