/* ===================================================================
   RAJA DURIAN (rajadurian.my.id) - LUXURY BLACK & GOLD THEME
   Handcrafted Modern Elegant Styling
   =================================================================== */

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

:root {
    --bg-main: #0B0C10;
    --bg-surface: #12141A;
    --bg-card: #161821;
    --bg-card-hover: #1C202A;
    --bg-input: #0F1116;
    --bg-glass: rgba(18, 20, 26, 0.85);

    --gold-primary: #D4AF37;
    --gold-light: #F7E192;
    --gold-hover: #E2BC43;
    --gold-dark: #997519;
    --gold-gradient: linear-gradient(135deg, #F9E79F 0%, #D4AF37 50%, #B8860B 100%);
    --gold-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
    --gold-border: rgba(212, 175, 55, 0.25);
    --gold-border-glow: rgba(212, 175, 55, 0.55);
    --gold-glow: 0 4px 20px rgba(212, 175, 55, 0.22);
    --gold-glow-lg: 0 8px 32px rgba(212, 175, 55, 0.35);

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --text-gold: #E5C358;

    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-info: #06B6D4;
    --status-danger: #EF4444;
    --status-purple: #8B5CF6;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Mobile Frame Wrapper for App-like experience on Desktop */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-surface);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    border-left: 1px solid rgba(212, 175, 55, 0.08);
    border-right: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    flex-direction: column;
    padding-bottom: 95px; /* space for bottom bar */
}

/* Default Mobile Hidden Elements (Enabled on Desktop) */
.desktop-sidebar {
    display: none !important;
}
.desktop-layout-wrapper {
    display: block;
}
.desktop-nav-links {
    display: none;
}
.desktop-cart-label {
    display: none;
}
.banner-carousel-arrow {
    display: none;
}
.desktop-header-cart {
    display: none;
}
.desktop-header-status {
    display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

.text-gold {
    color: var(--gold-light) !important;
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Header Section */
.app-header {
    padding: 16px 20px;
    padding-top: max(16px, calc(12px + env(safe-area-inset-top, 0px)));
    background: rgba(18, 20, 26, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--gold-glow);
}

.brand-info h1 {
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-info p {
    font-size: 11px;
    color: var(--text-gold);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cart-icon-btn:hover {
    background: var(--gold-gradient);
    color: #000;
    transform: scale(1.05);
}

.cart-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
    border: 2px solid var(--bg-surface);
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    background: #14161E;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Promo Banner Hero (Auto-Sliding Multiple Banners Carousel) */
.hero-banner-wrapper {
    padding: 14px 20px 0;
}

.banner-carousel-container {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: var(--shadow-card), 0 4px 20px rgba(0, 0, 0, 0.6);
    background: #141720;
    touch-action: pan-y;
}

.banner-carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.banner-carousel-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 7.2;
    position: relative;
    flex-shrink: 0;
}

.banner-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.banner-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 18px;
    background: var(--gold-gradient);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.hero-banner-img-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: var(--shadow-card), 0 4px 20px rgba(0, 0, 0, 0.6);
    background: #141720;
    position: relative;
    aspect-ratio: 16 / 7.2;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-banner-img-container:hover .hero-banner-img {
    transform: scale(1.02);
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1B1E28 0%, #12131A 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 18px 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.hero-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pill {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Categories Bar */
.categories-section {
    padding: 16px 20px 8px;
}

.section-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cat-chip:hover {
    transform: translateY(-2px);
}

.cat-chip-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.25s ease;
}

.cat-chip.active .cat-chip-icon,
.cat-chip:hover .cat-chip-icon {
    background: var(--gold-gradient);
    color: #0B0C10;
    border-color: transparent;
    box-shadow: var(--gold-glow);
}

.cat-chip-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.cat-chip.active .cat-chip-text {
    color: var(--gold-light);
}

/* Products Grid */
.products-section {
    padding: 8px 20px 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-border);
    box-shadow: var(--gold-glow);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0B0C10;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(18, 20, 26, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-light);
    z-index: 2;
}

.product-weight {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-sm);
    font-size: 9px;
    color: #CBD5E1;
    z-index: 2;
}

.product-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.product-pricing-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.product-price-col {
    display: flex;
    flex-direction: column;
}

.product-original-price {
    font-size: 10px;
    color: var(--text-dim);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.btn-add-cart {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    border: none;
    color: #0B0C10;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    transform: scale(1.12);
    box-shadow: var(--gold-glow);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* Floating Sticky Cart Indicator Bar */
.sticky-cart-bar {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    background: linear-gradient(135deg, #1C1F2B 0%, #111319 100%);
    border: 1px solid var(--gold-border-glow);
    border-radius: var(--radius-full);
    padding: 8px 16px 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), var(--gold-glow);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cart-bar.visible {
    opacity: 1;
    pointer-events: auto;
    bottom: 80px;
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
}

.cart-bar-count {
    font-size: 11px;
    color: var(--text-muted);
}

.cart-bar-total {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-light);
    font-family: var(--font-heading);
}

.btn-checkout-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #0B0C10;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--gold-glow);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-checkout-bar:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(18, 20, 26, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--gold-light);
}

.nav-item.active i {
    transform: translateY(-2px);
    color: var(--gold-primary);
}

/* Modals & Drawers */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sembunyikan bottom bar mobile saat ada modal dialog yang aktif */
body.modal-open .admin-mobile-bottom-nav,
body:has(.modal-overlay.active) .admin-mobile-bottom-nav,
body.modal-open .bottom-nav,
body:has(.modal-overlay.active) .bottom-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay .admin-modal-box,
    .modal-overlay > div:not(.drawer-content) {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 20px))) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
    }
}

.drawer-content {
    background: #141720;
    border-top: 1px solid var(--gold-border);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .drawer-content {
    transform: translateY(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-drag-pill {
    width: 40px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    margin: 8px auto 0;
}

.drawer-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #111319;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

/* Cart Items in Drawer */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #0B0C10;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0C0E14;
    padding: 3px 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-qty:hover {
    background: var(--gold-primary);
    color: #000;
}

.qty-number {
    font-size: 12px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-label span.req {
    color: #EF4444;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    background: #13161F;
}

textarea.form-control {
    resize: vertical;
    min-height: 75px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0B0C10;
    box-shadow: var(--gold-glow);
}

.btn-gold:hover {
    filter: brightness(1.1);
    box-shadow: var(--gold-glow-lg);
}

.btn-gold:active {
    transform: scale(0.98);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-primary);
}

.btn-block {
    width: 100%;
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background: #20BD5A;
}

/* Status Timeline & Tracking */
.tracking-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-primary {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-info {
    background: rgba(6, 182, 212, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #C084FC;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-accent {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Pulsing radar for waiting state */
.pulsing-box {
    text-align: center;
    padding: 24px 16px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(18, 20, 26, 0) 70%);
}

.radar-circle {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--gold-light);
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* QRIS Display Container */
.qris-card {
    background: #FFFFFF;
    color: #111827;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 16px 0;
}

.qris-header-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #E5E7EB;
}

.qris-brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
}

.qris-merchant {
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 8px;
}

.qris-image-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 12px;
    background: #FFF;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qris-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qris-amount-box {
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 10px;
    margin-top: 10px;
}

.qris-amount-label {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
}

.qris-amount-val {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    font-family: var(--font-heading);
}

/* Toast Notifications */
.toast-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1E222D;
    color: #F8FAFC;
    border: 1px solid var(--gold-border);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), var(--gold-glow);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}

/* ===================================================================
   ADMIN SPECIFIC & MOBILE APP-LIKE STYLES
   =================================================================== */
.admin-body {
    background: #0B0D12;
    color: #F8FAFC;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #11141C;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
}

.admin-main {
    flex-grow: 1;
    padding: 24px 32px;
    overflow-y: auto;
    background: radial-gradient(circle at 50% 0%, #151822 0%, #0B0D12 100%);
}

/* Mobile Admin Header (Top Bar on Mobile) */
.admin-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 20, 26, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 12px 16px;
    padding-top: max(12px, calc(10px + env(safe-area-inset-top, 0px)));
    align-items: center;
    justify-content: space-between;
}

/* Mobile Admin Bottom Navigation Bar */
.admin-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 16, 23, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
}

.admin-mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #64748B;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 2px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    user-select: none;
}

.admin-mobile-nav-btn span {
    font-size: 10px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.admin-mobile-nav-btn i {
    font-size: 17px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.admin-mobile-nav-btn:hover, .admin-mobile-nav-btn.active {
    color: var(--gold-light);
}

.admin-mobile-nav-btn.active i {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.admin-nav-badge {
    position: absolute;
    top: -2px;
    right: 50%;
    transform: translateX(12px);
    background: #EF4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Responsive breakpoint for Mobile HP (max-width: 768px) */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        display: none !important; /* Hide bulky sidebar on mobile */
    }
    .admin-mobile-header {
        display: flex !important; /* Show sleek mobile header */
    }
    .admin-mobile-bottom-nav {
        display: flex !important; /* Show mobile bottom nav */
    }
    .admin-main {
        padding: 16px 16px 95px !important; /* Extra bottom padding for mobile bar */
    }
    .admin-topbar {
        display: none !important; /* Replaced by mobile header */
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 12px 14px !important;
    }
    .stat-val {
        font-size: 20px !important;
    }
    .desktop-table-view {
        display: none !important; /* Hide wide table on mobile */
    }
    .mobile-cards-view {
        display: flex !important; /* Show touch-friendly mobile cards */
        flex-direction: column;
        gap: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-cards-view {
        display: none !important;
    }
    .desktop-table-view {
        display: block !important;
    }
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.stat-card.highlight {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, #161821 100%);
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-top: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Admin Order Card (Mobile Native View) */
.admin-order-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.admin-order-card:hover {
    border-color: var(--gold-border);
}

.admin-order-card.alert-pulse {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.aoc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
}

.aoc-code {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-light);
    font-family: var(--font-heading);
}

.aoc-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.aoc-customer {
    margin-bottom: 12px;
}

.aoc-cust-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.aoc-cust-address {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 6px;
}

.aoc-items-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.aoc-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.aoc-item-row:last-child {
    margin-bottom: 0;
}

.aoc-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 14px;
}

.aoc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Table for Orders (Desktop) */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    background: #0E1017;
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Pulse animation for new order alert in admin */
.new-order-alert {
    animation: goldGlowPulse 1.5s infinite;
}

@keyframes goldGlowPulse {
    0% { border-color: rgba(212, 175, 55, 0.3); }
    50% { border-color: rgba(212, 175, 55, 1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    100% { border-color: rgba(212, 175, 55, 0.3); }
}

/* ===================================================================
   DESKTOP CUSTOMER EXPERIENCE (>= 992px)
   Khusus Layar Desktop: Sidebar Mewah di Kiri, Lebar & Modern
   =================================================================== */
@media (min-width: 992px) {
    body {
        background: #080A0F;
        background-image: 
            radial-gradient(circle at 60% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
            radial-gradient(circle at 100% 50%, rgba(26, 29, 39, 0.7) 0%, transparent 50%),
            radial-gradient(circle at 20% 100%, rgba(20, 23, 31, 0.7) 0%, transparent 50%);
        background-attachment: fixed;
    }

    /* 1. Desktop Two-Column Layout (Sidebar + Main Content) */
    .desktop-layout-wrapper {
        display: flex !important;
        flex-direction: row !important;
        min-height: 100vh !important;
        width: 100% !important;
        background: transparent !important;
    }

    /* 2. Desktop Left Sidebar (Mewah, Modern & Sticky) */
    .desktop-sidebar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 300px !important;
        min-width: 300px !important;
        height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        background: #0D1017 !important;
        border-right: 1px solid rgba(212, 175, 55, 0.16) !important;
        padding: 24px 20px !important;
        z-index: 100 !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.65) !important;
        overflow-y: auto !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.2) transparent;
    }

    .desktop-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .desktop-sidebar::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.25);
        border-radius: 4px;
    }

    .sidebar-top-group {
        display: flex;
        flex-direction: column;
    }

    .sidebar-brand-box {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 22px;
    }

    .sidebar-brand-box .brand-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sidebar-brand-box .brand-logo-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 20px;
        border-radius: var(--radius-md);
        box-shadow: var(--gold-glow);
        background: var(--gold-gradient);
        color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-nav-container {
        margin-bottom: 20px;
    }

    .sidebar-menu-label {
        font-size: 11px;
        font-weight: 700;
        color: #64748B;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 12px;
        padding-left: 10px;
    }

    .desktop-sidebar-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Navigation Pills Matching User Image 2 */
    .sidebar-nav-pill {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 18px;
        border-radius: var(--radius-full);
        text-decoration: none;
        color: #94A3B8;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid transparent;
        background: transparent;
    }

    .sidebar-nav-pill i {
        font-size: 16px;
        width: 22px;
        text-align: center;
        color: #94A3B8;
        transition: color 0.2s ease;
    }

    .sidebar-nav-pill.active {
        background: rgba(212, 175, 55, 0.14) !important;
        color: #F7E192 !important;
        border: 1px solid rgba(212, 175, 55, 0.45) !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15) !important;
    }

    .sidebar-nav-pill.active i {
        color: #FCD34D !important;
    }

    .sidebar-nav-pill:hover:not(.active) {
        color: #F8FAFC !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        transform: translateX(3px);
    }

    .sidebar-nav-pill:hover:not(.active) i {
        color: #F8FAFC !important;
    }

    /* Sidebar Footer: Guarantee Card (Matching User Image 1) & WA */
    .desktop-sidebar-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto;
        padding-top: 16px;
    }

    .sidebar-hero-card {
        position: relative;
        border-radius: 16px;
        background: linear-gradient(145deg, #181B25 0%, #10121A 100%);
        border: 1px solid rgba(212, 175, 55, 0.26);
        padding: 16px 14px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    }

    .sidebar-hero-card::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 110px;
        height: 110px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
        pointer-events: none;
    }

    .sidebar-hero-card .hero-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        background: rgba(212, 175, 55, 0.14);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: var(--radius-full);
        font-size: 10px;
        color: #FCD34D;
        font-weight: 700;
        letter-spacing: 0.4px;
        margin-bottom: 10px;
    }

    .sidebar-hero-card .hero-tag i {
        color: #FCD34D;
        font-size: 11px;
    }

    .sidebar-hero-card .hero-title {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.25;
        margin: 0 0 6px 0;
        color: #E5C058;
    }

    .sidebar-hero-card .hero-desc {
        font-size: 11px;
        color: #94A3B8;
        line-height: 1.45;
        margin: 0 0 12px 0;
    }

    .sidebar-hero-card .hero-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sidebar-hero-card .hero-pill {
        font-size: 10px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        color: #E2E8F0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .sidebar-hero-card .hero-pill i {
        color: #FCD34D;
        font-size: 10px;
    }

    .sidebar-wa-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 16px;
        border-radius: var(--radius-full);
        background: rgba(37, 211, 102, 0.12);
        border: 1px solid rgba(37, 211, 102, 0.35);
        color: #25D366;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .sidebar-wa-action:hover {
        background: #25D366;
        color: #000;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }

    /* 3. Main Content Container Alongside Sidebar */
    .app-container {
        flex: 1;
        min-width: 0;
        max-width: none;
        margin: 0;
        background: transparent;
        border-left: none;
        border-right: none;
        box-shadow: none;
        padding: 0 36px 60px 36px;
    }

    /* 4. Desktop Header inside Main Content */
    .app-header {
        padding: 18px 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.14) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 24px !important;
    }

    .app-header .header-top {
        display: none !important; /* Brand is in the left sidebar */
    }

    .app-header .search-container {
        margin: 0 !important;
        max-width: 480px !important;
        flex: 1 !important;
        background: rgba(14, 17, 24, 0.8) !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        border-radius: var(--radius-full) !important;
        padding: 10px 18px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .app-header .search-container:focus-within {
        border-color: #FCD34D !important;
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.25) !important;
    }

    .app-header .search-icon {
        color: var(--gold-light) !important;
        font-size: 14px !important;
    }

    .app-header .search-input {
        background: transparent !important;
        border: none !important;
        color: #F8FAFC !important;
        font-size: 13px !important;
        width: 100% !important;
        outline: none !important;
    }

    .desktop-header-status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 16px !important;
        background: rgba(16, 185, 129, 0.08) !important;
        border: 1px solid rgba(16, 185, 129, 0.25) !important;
        border-radius: var(--radius-full) !important;
        font-size: 12px !important;
        color: #34D399 !important;
        font-weight: 600 !important;
    }

    .status-pulse-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10B981;
        box-shadow: 0 0 8px #10B981;
        animation: pulseGlow 2s infinite;
    }

    @keyframes pulseGlow {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.85); }
    }

    .desktop-header-title {
        display: block !important;
    }

    .desktop-header-action {
        display: flex !important;
        align-items: center;
    }

    /* Desktop Cart Button inside Top Header */
    .desktop-header-cart {
        display: flex !important;
        align-items: center;
    }

    .desktop-cart-btn {
        width: auto !important;
        height: auto !important;
        padding: 10px 22px !important;
        border-radius: var(--radius-full) !important;
        background: var(--gold-gradient) !important;
        color: #0B0D12 !important;
        font-weight: 800 !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        box-shadow: var(--gold-glow) !important;
        border: none !important;
        cursor: pointer;
        transition: transform 0.2s ease, filter 0.2s ease;
    }

    .desktop-cart-btn:hover {
        transform: scale(1.04);
        filter: brightness(1.08);
    }

    .desktop-cart-btn i {
        font-size: 16px;
        color: #0B0D12;
    }

    .desktop-cart-label {
        display: inline !important;
        font-weight: 800;
    }

    .cart-counter {
        position: static !important;
        background: #0B0D12 !important;
        color: var(--gold-light) !important;
        border: 1px solid var(--gold-border) !important;
        font-size: 11px !important;
        min-width: 20px !important;
        height: 20px !important;
        margin-left: 2px;
    }

    /* 5. Hero Carousel Banner on Desktop (Proporsional & Elegan) */
    .hero-banner-wrapper {
        margin: 0 0 28px 0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        border: 1px solid rgba(212, 175, 55, 0.22) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65) !important;
        position: relative !important;
    }

    .banner-carousel-container {
        border-radius: 16px !important;
    }

    .banner-carousel-slide {
        height: 230px !important;
    }

    .banner-carousel-slide img {
        height: 230px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .banner-carousel-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(15, 18, 25, 0.8);
        border: 1px solid var(--gold-border);
        color: var(--gold-light);
        align-items: center;
        justify-content: center;
        font-size: 15px;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s ease;
        backdrop-filter: blur(8px);
    }

    .banner-carousel-arrow:hover {
        background: var(--gold-primary);
        color: #000;
        box-shadow: var(--gold-glow);
    }

    .banner-arrow-prev { left: 16px; }
    .banner-arrow-next { right: 16px; }

    /* 6. Categories Section on Desktop (Sleek Horizontal Pills) */
    .categories-section {
        padding: 0 0 24px 0 !important;
    }

    .categories-section .section-label {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-bottom: 8px !important;
    }

    .categories-scroll {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding-bottom: 0 !important;
        overflow-x: visible !important;
    }

    .cat-chip {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 18px !important;
        border-radius: 99px !important;
        font-size: 13px !important;
        transition: all 0.2s ease !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        cursor: pointer !important;
    }

    .cat-chip-icon {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        font-size: 13px !important;
        background: rgba(212, 175, 55, 0.12) !important;
        color: var(--gold-light) !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .cat-chip-text {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #94A3B8 !important;
    }

    .cat-chip:hover {
        border-color: rgba(212, 175, 55, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    .cat-chip.active {
        background: rgba(212, 175, 55, 0.14) !important;
        border-color: var(--gold-light) !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15) !important;
    }

    .cat-chip.active .cat-chip-text {
        color: #FFF !important;
        font-weight: 700 !important;
    }

    .cat-chip.active .cat-chip-icon {
        background: var(--gold-gradient) !important;
        color: #000 !important;
    }

    /* 7. Products Grid on Desktop (Auto-Fill Balanced Grid) */
    .products-section {
        padding: 0 0 40px 0 !important;
    }

    .products-section .section-label {
        font-size: 15px !important;
        margin-bottom: 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-bottom: 8px !important;
    }

    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
        gap: 20px !important;
    }

    .product-card {
        background: #11141D !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        transition: all 0.25s ease !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-card:hover {
        transform: translateY(-6px) !important;
        border-color: rgba(212, 175, 55, 0.45) !important;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15) !important;
    }

    .product-img-wrapper {
        height: 180px !important;
        background: #161922 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .product-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.3s ease !important;
    }

    .product-card:hover .product-img {
        transform: scale(1.06) !important;
    }

    .product-content {
        padding: 14px !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .product-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #FFF !important;
        margin-bottom: 4px !important;
    }

    .product-desc {
        font-size: 12px !important;
        color: var(--text-muted) !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }

    .product-pricing-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .product-price {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--gold-light) !important;
    }

    .btn-add-cart {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: var(--gold-gradient) !important;
        color: #000 !important;
        font-size: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        cursor: pointer !important;
        transition: transform 0.2s ease !important;
    }

    .btn-add-cart:hover {
        transform: scale(1.1) !important;
    }

    /* 8. Hide Mobile Bottom Nav on Desktop */
    .bottom-nav {
        display: none !important;
    }

    /* 9. Floating Cart Indicator on Desktop */
    .sticky-cart-bar {
        left: auto;
        right: 40px;
        transform: none;
        width: 380px;
        bottom: 20px;
        border-radius: var(--radius-full);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), var(--gold-glow);
    }

    .sticky-cart-bar.visible {
        bottom: 36px;
    }

    /* 10. Luxury Slide-Over Cart Drawer on Desktop */
    .modal-overlay {
        align-items: stretch;
        justify-content: flex-end;
    }

    .drawer-content {
        width: 500px;
        max-width: 500px;
        height: 100vh;
        max-height: 100vh;
        border-radius: 24px 0 0 24px;
        border-left: 1px solid var(--gold-border);
        border-top: none;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
    }

    .modal-overlay.active .drawer-content {
        transform: translateX(0);
    }

    .drawer-drag-pill {
        display: none;
    }

    /* 11. Pusat Bantuan Desktop 2-Column Grid */
    .help-desktop-grid {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 32px;
        align-items: start;
        padding: 24px 0;
    }

    /* 12. Riwayat Pesanan Desktop Centered */
    .riwayat-desktop-container {
        max-width: 860px;
        margin: 24px auto;
        padding: 0 20px;
    }

    /* 13. Order Status Desktop 2-Column Grid */
    .status-desktop-grid {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 32px;
        align-items: start;
        padding: 24px 0;
    }
}

/* Tablet Responsive Adjustment (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .app-container {
        max-width: 750px;
        margin: 0 auto;
        padding-bottom: 95px;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================================================
   ENTRANCE ANIMATION: DURIAN JATUH RUNTUH (Ringan, Halus & Cepat)
   =================================================================== */
.durian-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #151821 0%, #07080B 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
    user-select: none;
    overflow: hidden;
}

.durian-splash-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    animation: screenThud 1.4s ease forwards;
}

/* 1. Falling & Bouncing Durian */
.falling-durian {
    width: 95px;
    height: 110px;
    position: relative;
    z-index: 3;
    animation: durianDropBounce 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(0 15px 25px rgba(212, 175, 55, 0.35));
}

.durian-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 2. Impact Shockwave Rings */
.impact-ring {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    pointer-events: none;
    z-index: 1;
    animation: shockwave 1.2s ease-out forwards;
}

.impact-ring.delay-1 {
    animation-delay: 0.12s;
    border-color: rgba(247, 225, 146, 0.6);
}

/* 3. Gold Sparks on Impact */
.impact-sparks {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 40px;
    pointer-events: none;
    z-index: 2;
}

.spark {
    position: absolute;
    color: var(--gold-light);
    font-size: 13px;
    opacity: 0;
    animation: sparkFly 0.8s ease-out forwards;
}

.spark.s-1 { left: 10%; animation-delay: 0.35s; }
.spark.s-2 { right: 10%; animation-delay: 0.38s; }
.spark.s-3 { left: 30%; top: -10px; animation-delay: 0.36s; }
.spark.s-4 { right: 30%; top: -12px; animation-delay: 0.37s; }

/* 4. Brand Text Reveal */
.splash-brand-box {
    margin-top: 18px;
    opacity: 0;
    transform: translateY(12px);
    animation: textReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
    z-index: 4;
}

.splash-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.splash-subtitle {
    font-size: 11px;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.splash-skip-tip {
    position: absolute;
    bottom: 24px;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* Keyframes */
@keyframes durianDropBounce {
    0% {
        transform: translateY(-360px) rotate(-22deg) scale(0.65);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    38% {
        /* Impact point - squash slightly */
        transform: translateY(0) rotate(0deg) scale(1.28, 0.72);
    }
    54% {
        /* First bounce up */
        transform: translateY(-30px) rotate(5deg) scale(0.9, 1.1);
    }
    70% {
        /* Second hit */
        transform: translateY(0) rotate(-2deg) scale(1.1, 0.92);
    }
    82% {
        /* Small spring */
        transform: translateY(-8px) rotate(1deg) scale(0.97, 1.03);
    }
    94%, 100% {
        /* Settle perfectly */
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes shockwave {
    0%, 35% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }
    38% {
        opacity: 0.95;
    }
    80% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes sparkFly {
    0%, 35% {
        opacity: 0;
        transform: scale(0.2);
    }
    38% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-24px) scale(1.2);
    }
}

@keyframes screenThud {
    0%, 36% {
        transform: translateY(0);
    }
    38% {
        transform: translateY(4px);
    }
    42% {
        transform: translateY(-2px);
    }
    46%, 100% {
        transform: translateY(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
