/* SoFi Malaysia Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sofi-navy: #0A2540;
    --sofi-blue: #00AACC;
    --sofi-blue-hover: #008fae;
    --sofi-cyan: #00D2D2;
    --sofi-dark: #06121E;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Impeccable Accessibility: High-contrast keyboard focus indicators */
:focus-visible {
    outline: 2px solid #00AACC !important;
    outline-offset: 2px !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Glassmorphism Header */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-nav {
    background: rgba(10, 37, 64, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Slider */
.HeroSlider {
    position: relative;
    width: 100%;
    height: 86vh;
    min-height: 600px;
    max-height: 840px;
    overflow: hidden;
}

.HeroSlider-slider,
.HeroSlider-slider .slick-track,
.HeroSlider-slider .slick-list {
    height: 100%;
}

.HeroSlider-slide {
    position: relative;
    height: 86vh;
    min-height: 600px;
    max-height: 840px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.HeroSlider-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.HeroSlider-image {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slick-active .HeroSlider-image {
    transform: scale(1.08);
}

.HeroSlider-slide--overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.72) 0%, rgba(6, 18, 30, 0.88) 100%);
    z-index: 2;
}

.HeroSlider-content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    text-align: center;
    color: #ffffff;
}

/* Slider Nav Tabs */
.HeroSlider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 4;
}

.HeroSlider-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 16px;
}

.HeroSlider-tab {
    flex: 1;
    position: relative;
    padding-top: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.HeroSlider-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.HeroSlider-tab.slick-current {
    color: #ffffff;
}

.HeroSlider-tab.slick-current::before {
    background: #00AACC;
    box-shadow: 0 0 12px rgba(0, 170, 204, 0.6);
}

.HeroSlider-tab:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Responsive Breakpoints for HeroSlider & Navigation */
@media (max-width: 1024px) {
    .HeroSlider,
    .HeroSlider-slide {
        height: auto;
        min-height: 600px;
    }
    .HeroSlider-content {
        padding: 50px 20px 90px;
    }
    .HeroSlider-nav {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .HeroSlider,
    .HeroSlider-slide {
        height: auto;
        min-height: 540px;
    }
    .HeroSlider-content {
        padding: 40px 16px 80px;
    }
    .HeroSlider-nav {
        bottom: 12px;
    }
    .HeroSlider-nav-inner {
        padding: 0 12px;
        gap: 6px;
    }
    .HeroSlider-tab {
        padding-top: 6px;
    }
    .HeroSlider-tab .tab-detail {
        display: none !important;
    }
    .HeroSlider-tab .tab-label {
        font-size: 0.7rem;
        text-align: center;
        display: block;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 640px) {
    .floating-dock {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .dock-btn {
        width: 44px;
        height: 44px;
    }
    .dock-btn svg {
        width: 22px;
        height: 22px;
    }
    .HeroSlider h1,
    .HeroSlider h2 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }
}

/* Buttons */
.sofi-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00AACC 0%, #008fae 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 170, 204, 0.35);
}

.sofi-btn-primary:hover {
    background: linear-gradient(135deg, #00badf 0%, #00AACC 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 170, 204, 0.45);
}

.sofi-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 13px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.sofi-btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Floating Contact Dock */
.floating-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dock-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.dock-btn.telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.dock-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.dock-btn.apply-pill {
    width: auto;
    border-radius: 26px;
    padding: 0 20px;
    background: linear-gradient(135deg, #00AACC 0%, #008fae 100%);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 8px;
}

/* Calculator Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 4px;
}

.dark input[type=range]::-webkit-slider-runnable-track {
    background: #334155;
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #00AACC;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -8px;
    box-shadow: 0 2px 8px rgba(0, 170, 204, 0.5);
    border: 3px solid #ffffff;
    transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Trust Card Hover */
.feature-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 170, 204, 0.15);
}

/* Gradient Texts */
.text-gradient-sofi {
    background: linear-gradient(135deg, #00AACC 0%, #00D2D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
