/* MINIMALIST GLASS NAVBAR REDESIGN */

.navbar {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 1232px !important;
    height: 60px !important;
    /* Clean Minimalist Glass */
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 999px !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all var(--transition-base) !important;
    padding: 0 !important;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 16px 0 58px;
}

/* Red glow removed for minimalist look */
.navbar::before {
    display: none !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 767.98px) {
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
    }
    .navbar {
        top: 22px !important;
        width: calc(100% - 32px) !important;
        height: 56px !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-container {
        column-gap: 0;
        padding: 0 16px;
    }

    .navbar-actions {
        margin-left: 0 !important;
    }
}

.navbar-brand {
    color: #111827 !important;
    text-shadow: none !important;
}
.navbar-brand:hover {
    color: #000 !important;
}
.navbar-wordmark {
    filter: none !important;
}

/* Mobile: wordmark-only brand, the round icon is hidden */
@media (max-width: 991.98px) {
    .navbar-brand picture,
    .navbar-logo {
        display: none !important;
    }

    .navbar-wordmark {
        display: block !important;
        height: 16px !important;
    }
}

.navbar-menu a {
    color: #4b5563 !important; /* Elegant gray for minimalist */
    text-shadow: none !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    transition: all 0.2s ease !important;
}
.navbar-menu a::after {
    display: none !important; /* Remove underline for cleaner look */
}
.navbar-menu a:hover,
.navbar-menu a.active {
    color: #111827 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
/* Link Cuan: plain yellow text washes out on the light glass navbar, so
   it uses a bold orange-amber gradient clipped to the text (no pill
   background), staying visible while still reading as the brand accent. */
.navbar-menu a.nav-link-core {
    color: #f97316 !important; /* fallback when background-clip:text is unsupported */
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 50%, #ef4444 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
}

.navbar-menu a.nav-link-core:hover,
.navbar-menu a.nav-link-core.active {
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.35));
}

/* Clean minimalist actions button */
.navbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #111827 !important;
    border-radius: 999px !important;
    padding: 0px 12px !important;
    height: 44px !important;
    gap: 8px !important;
    margin-right: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: none !important;
}

@media (max-width: 767.98px) {
    .navbar-actions {
        height: 40px !important;
        padding: 0 8px !important;
        gap: 6px !important;
    }
}

/* Guest variant: no dark capsule, just Masuk (text) + Daftar (dark pill) */
.navbar-actions.navbar-actions--guest {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 6px !important;
}

.navbar-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-auth-btn:active {
    transform: scale(0.97);
}

.navbar-auth-btn--ghost {
    color: #111827;
}

.navbar-auth-btn--ghost:hover {
    color: #111827;
    background: rgba(17, 24, 39, 0.06);
}

.navbar-auth-btn--solid {
    color: #ffffff;
    background: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-auth-btn--solid:hover {
    color: #ffffff;
    background: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
    .navbar-auth-btn {
        height: 36px;
        padding: 0 14px;
        font-size: 0.85rem;
    }
}

.navbar-icon-btn {
    color: #f3f4f6 !important;
    background: transparent !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.navbar-icon-btn:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
}

/* Adjust hamburger menu toggle */
.navbar-toggler {
    color: #111827 !important;
    text-shadow: none !important;
}

/* FLOATING MOBILE MENU */
.mobile-menu {
    top: 80px !important; /* Below the 56px mobile navbar + 12px margin + 12px gap */
    left: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 320px !important;
    height: auto !important; /* hug the content instead of leaving an empty tail */
    max-height: calc(100dvh - 96px) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transform: translateX(calc(-100% - 24px)) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-bottom: 16px !important;
}

.mobile-menu.open {
    transform: translateX(0) !important;
}

/* Fix mobile menu overlay to cover the whole screen and put navbar above it */
.mobile-menu-overlay {
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1040 !important; /* Bootstrap modal backdrop z-index */
}

.navbar {
    z-index: 1045 !important; /* Above overlay */
}

.mobile-menu {
    z-index: 1050 !important; /* Above navbar */
}

/* ===================================================================
   MOBILE MENU CONTENT - grouped sections, icon tiles, quick actions
   and a dark CTA card. Selectors are scoped under .mobile-menu with
   extra classes so they beat the generic `.mobile-menu a` rules in
   app.css (padding shift on hover, icon scale, etc).
   =================================================================== */
.mobile-menu .mobile-menu-body {
    padding: 18px 14px 20px;
    gap: 6px;
}

.mobile-menu .mm-label {
    margin: 10px 10px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.mobile-menu .mm-label:first-child {
    margin-top: 0;
}

.mobile-menu .mm-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu .mm-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 16px;
    color: #111827;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu .mm-item:hover,
.mobile-menu .mm-item:focus-visible {
    background: rgba(17, 24, 39, 0.05);
    color: #111827;
    padding-left: 10px;
}

.mobile-menu .mm-item:active {
    transform: scale(0.98);
}

.mobile-menu .mm-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu .mm-icon i,
.mobile-menu .mm-item:hover .mm-icon i {
    font-size: 1.1rem;
    transform: none;
}

.mobile-menu .mm-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mobile-menu .mm-text strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.mobile-menu .mm-text small {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu .mm-chevron {
    font-size: 0.8rem !important;
    color: #d1d5db;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu .mm-item:hover .mm-chevron {
    color: #6b7280;
    transform: translateX(3px);
}

/* Active page: dark icon tile + left accent bar */
.mobile-menu .mm-item.is-active {
    background: rgba(17, 24, 39, 0.05);
}

.mobile-menu .mm-item.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 4px;
    height: 22px;
    border-radius: 0 4px 4px 0;
    background: #111827;
    transform: translateY(-50%);
}

.mobile-menu .mm-item.is-active .mm-icon {
    background: #111827;
    color: #ffffff;
}

/* Link Cuan: yellow tile so the core product stands out */
.mobile-menu .mm-item--core .mm-icon {
    background: var(--color-action, #ffeb00);
    color: #111827;
}

.mobile-menu .mm-pill {
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: #111827;
    color: var(--color-action, #ffeb00);
}

.mobile-menu .mm-item--danger,
.mobile-menu .mm-item--danger:hover {
    color: #dc2626;
}

.mobile-menu .mm-item--danger .mm-icon {
    background: #fef2f2;
    color: #dc2626;
}

/* Quick actions: two compact tiles */
.mobile-menu .mm-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.mobile-menu .mm-tile {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid rgba(17, 24, 39, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu .mm-tile:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.14);
    color: #111827;
    padding-left: 12px;
}

.mobile-menu .mm-tile:active {
    transform: scale(0.97);
}

.mobile-menu .mm-tile.is-active {
    border-color: #111827;
}

.mobile-menu .mm-tile-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-menu .mm-tile-icon i,
.mobile-menu .mm-tile:hover .mm-tile-icon i {
    font-size: 1rem;
    transform: none;
}

.mobile-menu .mm-tile--wa .mm-tile-icon {
    background: #25d366;
    color: #ffffff;
}

.mobile-menu .mm-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    border: 2px solid #ffffff;
}

/* Guest CTA card */
.mobile-menu .mm-cta {
    position: relative;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: radial-gradient(120% 140% at 100% 0%, #3a3a3a 0%, #111827 60%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 24px -8px rgba(17, 24, 39, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu .mm-cta::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--color-action, #ffeb00);
    opacity: 0.18;
    filter: blur(18px);
    pointer-events: none;
}

.mobile-menu .mm-cta:hover {
    color: #ffffff;
    background: radial-gradient(120% 140% at 100% 0%, #3a3a3a 0%, #111827 60%);
    padding-left: 14px;
    box-shadow: 0 14px 28px -8px rgba(17, 24, 39, 0.55);
}

.mobile-menu .mm-cta:active {
    transform: scale(0.98);
}

.mobile-menu .mm-cta-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-action, #ffeb00);
    color: #111827;
}

.mobile-menu .mm-cta-icon i,
.mobile-menu .mm-cta:hover .mm-cta-icon i {
    font-size: 1.1rem;
    transform: none;
}

.mobile-menu .mm-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mobile-menu .mm-cta-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-menu .mm-cta-text small {
    margin-top: 2px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.mobile-menu .mm-cta-arrow {
    font-size: 1rem !important;
    color: var(--color-action, #ffeb00);
    transition: transform 0.2s ease;
}

.mobile-menu .mm-cta:hover .mm-cta-arrow {
    transform: translateX(3px);
}

.mobile-menu .mm-login,
.mobile-menu .mm-login:hover {
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
}

.mobile-menu .mm-login strong {
    color: #111827;
}

.mobile-menu .mm-login i,
.mobile-menu .mm-login:hover i {
    font-size: 1rem;
    transform: none;
}

/* Staggered entrance when the drawer opens */
.mobile-menu .mobile-menu-body > * {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-menu-body > * {
    opacity: 1;
    transform: none;
}

.mobile-menu.open .mobile-menu-body > :nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu-body > :nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-body > :nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu-body > :nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-menu-body > :nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-body > :nth-child(6) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
    .mobile-menu .mobile-menu-body > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
