/**
 * Frontend Layout Styles - OMFAI
 * Global styles for header, navigation, footer, and common components
 */

:root {
    --primary: #FF8200;
    --primary-light: #FFB066;
    --primary-dark: #994E00;
    --secondary: #0f172a;
    --accent: #994E00;
    --bg-body: #FFEFDE;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --slate-100: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.95);
    --radius: 12px;
    --max-width: 1280px;

    /* --- V3 LAYOUT RESPONSIVE VARIABLES (FLUID SCALING - PC ONLY) --- */

    /* 
       ========================================================================
       1. VARIABEL DASAR PC (Sebagai Acuan)
       ========================================================================
    */
    --pc-logo-size: clamp(30px, 2.5vw, 44px);
    --pc-nav-size: clamp(11px, 0.8vw + 4px, 14px);
    --pc-title-size: clamp(40px, 2vw + 18px, 56px);
    --pc-maskot-size: clamp(100px, 6vw + 30px, 147px);
    --pc-maskot-translate: clamp(-138px, -10vw, -135px);
    --pc-promo-size: clamp(50%, calc(40% + 10vw), 60%);
    --pc-promo-translate: clamp(-150px, -10vw, -145px);
    --pc-search-pill-size: clamp(920px, 65vw, 1240px);
    --pc-promo-section-margin: -126px;
    --pc-utility-size: clamp(12px, 0.8vw + 3px, 13px);
    --pc-utility-btn-size: clamp(12px, 0.8vw + 4px, 14px);

    /* 
       ========================================================================
       2. VARIABEL AKTIF PC (Default Tampilan Layar Lebar)
       ========================================================================
    */
    --logo-size: var(--pc-logo-size);
    --nav-size: var(--pc-nav-size);
    --title-size: var(--pc-title-size);
    --maskot-size: var(--pc-maskot-size);
    --maskot-translate: var(--pc-maskot-translate);
    --promo-size: var(--pc-promo-size);
    --promo-translate: var(--pc-promo-translate);
    --search-pill-size: var(--pc-search-pill-size);
    --promo-section-margin: var(--pc-promo-section-margin);

    /* Utility Header Variables */
    --utility-size: var(--pc-utility-size);
    --utility-btn-size: var(--pc-utility-btn-size);
    --utility-btn-padding: 8px 20px;
    --utility-btn-padding-reg: 8px 24px;
}

@media (max-width: 1024px) {
    :root {
        /* 
           =========================================
           TABLET (Lebar browser 769px - 1024px)
           (Memiliki bottom menu bar)
           =========================================
           Nilai di bawah ini sudah disamakan dengan PC 
           dan diperkecil sedikit agar pas di layar tablet.
        */
        --logo-size: 32px;
        --nav-size: 12px;
        --title-size: 42px;
        --maskot-size: 115px;
        --maskot-translate: -125px;
        --promo-size: 55%;
        --promo-translate: -135px;
        --search-pill-size: 90%;
        --promo-section-margin: -110px;

        --utility-size: 12px;
        --utility-btn-size: 13px;
        --utility-btn-padding: 6px 16px;
        --utility-btn-padding-reg: 6px 18px;
    }
}

@media (max-width: 768px) {
    :root {
        /* 
           =========================================
           SMARTPHONE / MOBILE (Lebar browser <= 768px)
           =========================================
        */
        --logo-size: 38px;
        --nav-size: 11px;
        --title-size: 22px;
        --maskot-size: 107px;
        --maskot-translate: -81px;
        --promo-size: 85%;
        --promo-translate: -87px;
        --search-pill-size: 95%;
        --promo-section-margin: -69px;

        --utility-size: 11px;
        --utility-btn-size: 11px;
        --utility-btn-padding: 4px 10px;
        --utility-btn-padding-reg: 4px 12px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        "Gotham",
        "Montserrat",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
}

html {
    scroll-behavior: smooth;
}

html.frontend-zoom-root {
    background: var(--bg-body);
    --frontend-zoom: 1.3;
}

@media (max-width: 1400px) {
    html.frontend-zoom-root {
        --frontend-zoom: 1.0;
    }
}

@media (max-width: 1200px) {
    html.frontend-zoom-root {
        --frontend-zoom: 0.8;
    }
}

@supports (zoom: 1) {
    html.frontend-zoom-root {
        zoom: var(--frontend-zoom);
    }
}

@supports not (zoom: 1) {
    html.frontend-zoom-root {
        transform: scale(var(--frontend-zoom));
        transform-origin: top left;
        width: calc(100% / var(--frontend-zoom));
        min-height: calc(100vh / var(--frontend-zoom));
    }
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.frontend-shell {
    /* Zoom dipindahkan ke html.frontend-zoom-root */
}

@media (min-width: 1025px) {
    html.frontend-zoom-root {
        /* Memastikan lebar layout desktop minimal selalu stabil di 1200px secara fisik di layar */
        min-width: calc(1200px / var(--frontend-zoom, 1.3)) !important;
        overflow-x: auto;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    html.frontend-zoom-root {
        min-width: 100% !important;
    }
}



/* --- HEADER BASE --- */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    transition: 0.3s all ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: var(--logo-size) !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}

.logo .logo-scrolled {
    display: none !important;
}

header.scrolled .logo .logo-normal {
    display: none !important;
}

header.scrolled .logo .logo-scrolled {
    display: block !important;
    height: 50px !important;
    /* Buat sedikit lebih besar saat text hilang */
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NEW HEADER DESIGN (Premium & Modern) --- */
.new-header {
    background: transparent;
    isolation: isolate;
    padding: 15px 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.is-home .nav-container {
    position: relative;
    z-index: 1;
}

header.is-home .nav-container::before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 0;
    background-image: var(--home-header-curve-image, url('/assets/img/header-home-curve.png'));
    background-position: left top;
    background-repeat: no-repeat;
    background-size: contain;
    height: 200px;
    left: -200px;
    opacity: 0.35;
    top: -70px;
    width: 500px;
}

header.is-home .header-top-row {
    position: relative;
    z-index: 3;
}

header.is-home .header-bottom-row,
header.is-home .logo,
header.is-home .main-nav-links {
    position: relative;
    z-index: 2;
}

header.scrolled {
    background: white !important;
    padding: 8px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

header.scrolled .new-header {
    padding: 0;
}

header.scrolled .logo-text {
    /* display: none !important; */
}

header.scrolled .utility-link,
header.scrolled .btn-user-profile,
header.scrolled .nav-link-new {
    color: #1e293b !important;
}

header.scrolled .utility-link i {
    color: var(--primary) !important;
}

header.scrolled .btn-login-new {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

header.scrolled .header-bottom-row {
    display: none !important;
}

header.is-home.scrolled .nav-container::before {
    background-size: contain;
    height: 200px;
    left: -200px;
    opacity: 0.35;
    top: -70px;
    width: 500px;
}

header.is-not-home {
    background: #FFEFDE !important;
    /* Light Orange Background */
    padding: 10px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(255, 130, 0, 0.1);
}

header.is-not-home .logo-text h1,
header.scrolled .logo-text h1 {
    color: var(--primary) !important;
}

header.is-not-home .utility-link,
header.is-not-home .btn-user-profile,
header.is-not-home .nav-link-new {
    color: #475569 !important;
    /* Dark Slate for contrast */
}

header.is-not-home .nav-link-new:hover,
header.is-not-home .nav-link-new.active {
    color: var(--primary) !important;
}

header.is-not-home .utility-link i {
    color: var(--primary) !important;
}

header.is-not-home .logo img {
    filter: none;
}

header.is-not-home .logo-text span,
header.scrolled .logo-text span {
    color: #64748b !important;
}

header.is-not-home .btn-login-new {
    border: 1px solid #FFD8A8;
    background: white;
    color: var(--primary) !important;
}

header.is-not-home .header-bottom-row {
    border-top: 1px solid rgba(255, 130, 0, 0.1);
}

.header-top-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    position: relative;
    z-index: 3;
}

header.scrolled .header-top-row {
    margin-bottom: 5px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.top-utilities {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 20px;
}

.utility-link {
    color: white;
    text-decoration: none;
    font-size: var(--utility-size);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    white-space: nowrap;
}

header.scrolled .utility-link {
    color: #1e293b;
}

.utility-link:hover {
    color: var(--primary);
}

.utility-link i {
    font-size: 16px;
    color: var(--primary);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* Auth Buttons New */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.btn-login-new {
    background: white;
    color: #1e293b;
    padding: var(--utility-btn-padding);
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--utility-btn-size);
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-login-new:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-register-new {
    background: var(--primary);
    color: white;
    padding: var(--utility-btn-padding-reg);
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--utility-btn-size);
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 130, 0, 0.3);
}

.btn-register-new:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 130, 0, 0.4);
}

/* Main Nav Links New */
.header-bottom-row {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}



.main-nav-links {
    display: flex;
    gap: 30px;
}

.nav-link-new {
    color: white;
    text-decoration: none;
    font-size: var(--nav-size);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    position: relative;
    padding-bottom: 10px;
}

.nav-link-new:hover,
.nav-link-new.active {
    color: var(--primary);
}

.nav-link-new.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}



.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.btn-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}



/* Scroll Effect */
header.scrolled .top-bar {
    margin-top: -40px;
    opacity: 0;
}

header.scrolled .main-nav {
    padding: 10px 0;
    background: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Mobile Utility */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary);
}

.mobile-header-search {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1024px) {

    /* NEW MOBILE MENU DRAWER */
    .nav-links-wrapper {
        display: none;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 10001;
        /* Above drawer */
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        color: #ffffff;
    }

    .top-bar {
        display: none;
    }

    .main-nav {
        background: var(--primary);
        padding: 10px 0;
        box-shadow: 0 3px 14px rgba(255, 107, 53, 0.22);
    }

    .nav-container {
        gap: 10px;
        padding: 0 14px;
    }

    .nav-container .logo {
        display: flex;
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
        flex: 1;
        height: 44px;
        min-width: 0;
        background: var(--bg-body);
        border-radius: 10px;
        padding: 0 14px;
        gap: 10px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .mobile-header-search i {
        color: #111827;
        font-size: 17px;
        flex: 0 0 auto;
    }

    .mobile-header-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text-main);
        font: inherit;
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-header-search input::placeholder {
        color: #94a3b8;
        font-weight: 600;
    }

    header.scrolled .main-nav {
        background: var(--primary);
        padding: 8px 0;
    }

    body {
        padding-bottom: 72px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: 66px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: var(--bg-body);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
    }

    .mobile-bottom-link {
        min-width: 0;
        color: #475569;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.1;
        transition: 0.2s ease;
    }

    .mobile-bottom-link i {
        font-size: 20px;
        line-height: 1;
    }

    .mobile-bottom-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .mobile-bottom-link.active,
    .mobile-bottom-link:hover {
        color: var(--primary);
    }

    .mobile-menu-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 430px);
        background: linear-gradient(180deg, #fff4e6 0%, #ffefde 100%);
        padding: 84px 0 26px;
        z-index: 10000;
        /* Extreme Z-Index */
        overflow-y: auto;
        box-shadow: 8px 0 30px rgba(15, 23, 42, 0.14);
        transform: translateX(-105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu-drawer.active {
        transform: translateX(0);
        box-shadow:
            8px 0 30px rgba(15, 23, 42, 0.14),
            0 0 0 1000px rgba(15, 23, 42, 0.62);
        /* Backdrop */
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-height: 100%;
    }

    .mobile-nav-link {
        width: 100%;
        min-height: 48px;
        padding: 10px 24px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 700;
        color: #334155;
        border: 1px solid transparent;
        transition: 0.2s;
        background: transparent;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(255, 130, 0, 0.12);
        color: var(--primary);
        border-color: rgba(255, 130, 0, 0.08);
    }

    .mobile-nav-link i {
        width: 22px;
        font-size: 16px;
        text-align: center;
        flex: 0 0 22px;
    }

    .mobile-menu-divider {
        height: 1px;
        background: rgba(255, 130, 0, 0.16);
        margin: 10px 0;
    }

    .mobile-icon-blue,
    .mobile-icon-orange,
    .mobile-icon-red,
    .mobile-icon-teal,
    .mobile-icon-purple,
    .mobile-icon-yellow {
        color: var(--primary);
    }
}

@media (max-width: 768px) {
    .new-header {
        padding: 10px 0;
    }

    header.is-home .nav-container::before {
        background-size: contain;
        height: 150px;
        left: -4px;
        opacity: 0.28;
        top: -52px;
        width: 300px;
    }

    header.is-home.scrolled .nav-container::before {
        background-size: contain;
        height: 200px;
        left: -100px;
        opacity: 0.35;
        top: -70px;
        width: 400px;
    }

    header.is-not-home {
        padding: 8px 0 !important;
    }

    .nav-container {
        gap: 8px;
        padding: 0 12px;
    }

    .header-top-row {
        margin-bottom: 8px;
        gap: 12px;
        align-items: center;
    }

    .nav-container .logo {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .logo img {
        height: 38px !important;
        max-width: 38px !important;
        flex: 0 0 38px;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 15px;
        line-height: 1.05;
    }

    .logo-text span {
        display: block;
        font-size: 8px;
        letter-spacing: 0.7px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-utilities,
    .auth-buttons {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
    }

    header.is-not-home .mobile-toggle {
        background: #ffffff;
        color: var(--primary);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .header-bottom-row {
        padding-top: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .header-bottom-row::-webkit-scrollbar {
        display: none;
    }

    .main-nav-links {
        gap: 18px;
        min-width: max-content;
        padding-right: 6px;
    }

    .nav-link-new {
        gap: 8px;
        font-size: var(--nav-size);
        padding-bottom: 8px;
        white-space: nowrap;
    }

    .nav-link-new i {
        font-size: calc(var(--nav-size) + 2px);
    }
}

@media (max-width: 420px) {
    .mobile-nav-link {
        min-height: 46px;
        padding: 9px 22px;
        font-size: 15px;
        gap: 14px;
    }

    .mobile-nav-link i {
        font-size: 16px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 7px;
        max-width: 150px;
    }

    .main-nav-links {
        gap: 16px;
    }

    .nav-link-new {
        font-size: 12px;
    }
}

/* Desktop-only elements handled inside media queries or specific classes */

/* --- FOOTER --- */
/* --- FOOTER V2 --- */
footer {
    padding: 80px 20px 0;
    background: transparent;
    margin-top: 80px;
}

.footer-main-wrapper {
    background: #0b1120;
    color: white;
    border-radius: 40px;
    padding: 90px 0 0;
    overflow: visible;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-brand-img {
    height: 60px;
}

.brand-text h3 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

.brand-text p {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.about-desc {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Payment Grid */
.payment-partners-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.payment-item {
    background: white;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.payment-item span {
    font-size: 10px;
    font-weight: 900;
    color: #0b1120;
}

.payment-item i {
    color: #0b1120;
    font-size: 18px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-follow {
    margin-top: 40px;
}

/* App Promo */
.promo-illustration {
    position: relative;
    padding-top: 0;
    margin-top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.char-img {
    width: 120%;
    max-width: 190px;
    margin: 0 auto -5px;
    display: block;
    z-index: 1;
    position: relative;
    transform: none;
}

.promo-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.promo-wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-icon-tr {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.promo-icon-tr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-content h5 {
    color: #0b1120;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    max-width: 150px;
}

.app-badges img {
    height: 40px;
}

.promo-qr {
    background: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

/* Bottom Bar */
.footer-bottom-bar {
    background: var(--primary);
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 0 0 40px 40px;
}

.footer-bottom-bar p {
    margin: 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Floating WhatsApp */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 20px;
    }

    .promo-card {
        padding: 20px;
    }

    .payment-grid {
        gap: 6px;
    }

    .payment-item span {
        font-size: 9px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .promo-card {
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .promo-content h5 {
        max-width: 100%;
    }

    .social-follow {
        text-align: center;
        margin-top: 40px;
    }

    .social-icons {
        justify-content: center;
    }

    .char-img {
        width: 100% !important;
        max-width: 160px !important;
        margin: 0 auto !important;
        transform: translateY(30px) !important;
        z-index: 5;
    }
}

/* --- STANDARD UI PATTERNS --- */
.content-section {
    max-width: var(--max-width);
    margin: 100px auto;
    padding: 0 24px;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.text-muted-minimal {
    color: #64748b;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.6;
}

/* --- GLOBAL HERO BANNER --- */
.hero-banner {
    background-size: cover;
    background-position: center;
    min-height: 450px;
    /* Ditingkatkan dari 400px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 0;
    position: relative;
    padding-top: 220px;
    /* Ditingkatkan dari 160px */
}

.hero-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 20px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 220px;
        /* More compact on mobile */
    }

    .hero-banner h2 {
        font-size: 1.75rem !important;
        /* Smaller font on mobile */
        padding: 0 15px;
    }
}

/* Standard Hero Pattern - Minimalist Polish */
.hero-clean {
    background: var(--bg-body);
    padding: 120px 24px 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 0;
    /* Let layout handle top spacing if needed, but usually 80px for fixed header */
    padding-top: 220px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title-main {
    font-size: 52px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-desc-main {
    font-size: 19px;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Minimal Card Standard - Clean & Lite */
.minimal-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

.minimal-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #e2e8f0;
}

.minimal-body {
    padding: 32px;
}

.item-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

@media (max-width: 992px) {
    .hero-title-main {
        font-size: 42px;
    }

    .content-section {
        margin: 80px auto;
    }
}

@media (max-width: 768px) {
    .content-section {
        margin: 60px auto;
        padding: 0 20px;
    }

    .hero-clean {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title-main {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-desc-main {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .section-header h3 {
        font-size: 26px;
    }
}

/* --- LOGIN MODAL PREMIUM STYLING --- */
.modal-backdrop.show {
    z-index: 20000 !important;
}

#loginModal,
#registerModal {
    z-index: 20001 !important;
}

.auth-modal-dialog {
    margin: 150px auto 24px !important;
    min-height: calc(100% - 174px);
    display: flex;
    align-items: flex-start;
}

.auth-modal-dialog .modal-content {
    width: 100%;
}

.login-modal-content {
    border-radius: 32px !important;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .auth-modal-dialog {
        margin: 110px auto 16px !important;
        min-height: calc(100% - 126px);
    }
}

.btn-close-custom {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    z-index: 10;
    transition: 0.3s;
}

.btn-close-custom:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.login-modal-header {
    padding: 30px 0 10px;
}

.login-logo-circle {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.login-logo-circle img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: none !important;
}

.login-modal-header h2 {
    font-weight: 900;
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 0;
}

.social-login-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-btn {
    width: 60px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn img {
    height: 20px;
}

.social-btn i {
    font-size: 20px;
    color: #1e293b;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 15px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.form-group-new label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: 0.3s;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.btn-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.form-check-new {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-new input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check-new label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-signin-full {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    margin-top: 10px;
}

.btn-signin-full:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.register-link-modal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.login-footer p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* --- BUTTON SIGN IN OUTLINE (Figma Exact) --- */
.btn-signin-outline {
    width: 100%;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-signin-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

/* FIX FLATPICKR Z-INDEX */
.flatpickr-calendar {
    z-index: 99999 !important;
}

/* PC Responsive Header, Nav & Logo Scaling */
@media (max-width: 1400px) {
    .new-header {
        padding: 8px 0;
    }

    .header-top-row {
        margin-bottom: 8px;
    }

    .logo img {
        height: 34px !important;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .top-utilities {
        gap: 15px;
    }

    .main-nav-links {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .new-header {
        padding: 5px 0;
    }

    .header-top-row {
        margin-bottom: 5px;
    }

    .logo img {
        height: 30px !important;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text span {
        display: none !important;
        /* Sembunyikan subteks logo untuk hemat ruang vertikal */
    }

    .top-utilities {
        gap: 8px;
    }

    .main-nav-links {
        gap: 12px;
    }
}