/* ============================================
   ROBATEA INDONESIA - MODERN COMPACT STYLE SYSTEM
   Desktop & Mobile Friendly, Crisp & Clean Corners
   ============================================ */

:root {
    /* Color Palette */
    --bg-main: #0B0F17;
    --bg-surface: #111726;
    --bg-card: #151D2F;
    --bg-card-hover: #1C263D;
    --bg-glass: rgba(17, 23, 38, 0.92);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(16, 185, 129, 0.35);

    /* Accents */
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-dim: rgba(16, 185, 129, 0.12);
    --primary-glow: rgba(16, 185, 129, 0.2);

    --amber: #F59E0B;
    --amber-dim: rgba(245, 158, 11, 0.12);
    --danger: #EF4444;
    --danger-dim: rgba(239, 68, 68, 0.12);
    --blue: #3B82F6;
    --blue-dim: rgba(59, 130, 246, 0.12);

    /* Typography Colors */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-sub: #64748B;
    --text-white: #FFFFFF;

    /* Compact & Reduced Border Radii (Kurangi Lengkungan) */
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 10px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Global Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 80px;
    font-size: 14px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 14px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   HEADER & NAVBAR
   ============================================ */
.glass-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10B981, #047857);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    background: linear-gradient(to right, #F8FAFC, #A7F3D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

@media (min-width: 640px) {
    .brand-text p {
        max-width: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav,
.btn-track-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 7px 12px;
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.btn-nav:hover,
.btn-track-nav:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   HERO COMPACT BANNER
   ============================================ */
.hero-section {
    padding: 14px 0 10px;
}

.hero-banner {
    background: linear-gradient(135deg, #06372B 0%, #111726 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: #A7F3D0;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.hero-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 550px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   SEARCH & CATEGORY FILTERS
   ============================================ */
.sticky-toolbar {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: rgba(11, 15, 23, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    position: relative;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 14px 10px 38px;
    border-radius: var(--r-sm);
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.category-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.cat-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.cat-pill.active {
    background: var(--primary);
    color: #022C22;
    border-color: var(--primary);
    font-weight: 700;
}

/* ============================================
   PRODUCT GRID & CARDS
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card);
    background: var(--bg-card-hover);
}

.product-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 70%;
    /* Compact Aspect Ratio */
    background: #182030;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.badge-list {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.card-badge {
    padding: 2px 6px;
    border-radius: var(--r-xs);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.badge-bestseller {
    background: #F59E0B;
    color: #451A03;
}

.badge-promo {
    background: #EF4444;
    color: #FFFFFF;
}

.badge-new {
    background: #3B82F6;
    color: #FFFFFF;
}

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

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

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

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 4px;
}

.price-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 1;
}

.price-curr {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-strike {
    font-size: 0.7rem;
    color: var(--text-sub);
    text-decoration: line-through;
    white-space: nowrap;
}

.btn-add-cart {
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #022C22;
    transform: scale(1.05);
}

/* Store Closed Disabled State */
.product-card.store-closed {
    opacity: 0.52;
    filter: grayscale(85%);
    cursor: not-allowed;
}

.product-card.store-closed:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.product-card.store-closed .btn-add-cart {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.store-closed-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #FCA5A5;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   COMPACT FLOATING CART BAR
   ============================================ */
.floating-cart-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 24px);
    max-width: 480px;
    background: #0E1624;
    border: 1px solid var(--primary);
    padding: 10px 14px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
    box-shadow: var(--shadow-pop);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.floating-cart-bar.show {
    transform: translateX(-50%) translateY(0);
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge {
    background: var(--primary);
    color: #022C22;
    font-weight: 800;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-total-text p:first-child {
    font-size: 0.7rem;
    color: #A7F3D0;
    font-weight: 600;
    line-height: 1;
}

.cart-total-text p:last-child {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
}

.cart-checkout-btn {
    background: var(--primary);
    color: #022C22;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   MODALS & DRAWERS (CENTERED POPUP & FIXED OVERLAY)
   ============================================ */
.modal,
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.modal.active,
.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Mobile-specific customer drawer */
@media (max-width: 639px) {
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-drawer {
        border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
        max-height: 88vh !important;
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

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

.modal-box,
.modal-drawer {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    position: relative;
    z-index: 1000;
}

.modal-header {
    padding: 12px 16px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.modal-header-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0;
    flex: 1;
}

.modal-header-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--r-sm);
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.modal-header-icon i,
.modal-header-icon svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--primary) !important;
    stroke: var(--primary) !important;
}

.modal-header-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0;
    flex: 1;
}

.modal-header-text h3 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--text-main);
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-header-text p {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

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

.modal-content {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-content::-webkit-scrollbar,
.modal-box::-webkit-scrollbar,
.modal-drawer::-webkit-scrollbar,
.modal::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.modal-footer {
    padding: 12px 16px;
    background: rgba(14, 22, 36, 0.95);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 10;
}

.modal-footer .btn-submit-order {
    margin: 0 !important;
}

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

.cart-item-meta {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-options {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 3px 6px;
    flex-shrink: 0;
}

.btn-qty {
    background: none;
    border: none;
    color: var(--text-main);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--r-xs);
}

.btn-qty:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-val {
    font-weight: 700;
    font-size: 0.82rem;
    min-width: 16px;
    text-align: center;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: 12px;
}

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

.form-input,
.form-select,
.form-textarea,
.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Ensure Customer Branch Picker is strictly on top of checkout modal */
#branchCustomerModal {
    z-index: 1050 !important;
}

#branchCustomerModal .modal-drawer {
    z-index: 1051 !important;
}

.type-segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-color);
}

.type-option {
    text-align: center;
    padding: 8px 6px;
    border-radius: var(--r-xs);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.type-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
}

.type-option .type-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.type-option .type-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
}

.type-option.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.type-option.active .type-title {
    color: #022C22;
}

.type-option.active .type-sub {
    color: #064E3B;
    font-weight: 700;
}

.btn-submit-order,
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #022C22;
    border: none;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-submit-order:hover,
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ============================================
   ORDER TRACKING TIMELINE
   ============================================ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.step-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.timeline-step.completed .step-icon-wrap {
    background: var(--primary);
    border-color: var(--primary);
    color: #022C22;
}

.timeline-step.current .step-icon-wrap {
    background: var(--amber);
    border-color: var(--amber);
    color: #451A03;
}

.step-text h4 {
    font-size: 0.88rem;
    font-weight: 700;
}

.step-text p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ============================================
   ADMIN SPECIFIC STYLES
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .sidebar {
        display: none;
    }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.brand-badge {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #022C22;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-link.active {
    background: var(--primary);
    color: #022C22;
    font-weight: 700;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    max-width: 1200px;
    min-width: 0;
}

@media (max-width: 640px) {
    .main-content {
        padding: 14px;
    }
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.page-title h2 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 2px;
    line-height: 1.2;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--primary-dim);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tables in Admin */
.card-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.table-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.84rem;
}

th {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   ADMIN TOP BAR & ACTION CONTROLS
   ============================================ */
.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

@media (max-width: 640px) {
    .top-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.store-selector-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 7px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.store-selector-badge select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

.store-selector-badge select option {
    background: #0F172A;
    color: #F8FAFC;
}

/* Primary, Secondary, Danger General Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #022C22;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    background: #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #FFFFFF;
}

/* ============================================
   TABLE INLINE ACTION BUTTONS (AKSI)
   ============================================ */
.td-actions {
    white-space: nowrap;
    width: 1%;
    text-align: right;
}

.action-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-action-edit {
    background: rgba(59, 130, 246, 0.12);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-action-edit:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.6);
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.6);
}

.btn-action-view {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-action-view:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.6);
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pending {
    background: var(--amber-dim);
    color: #FBBF24;
}

.status-confirmed {
    background: var(--blue-dim);
    color: #60A5FA;
}

.status-processing {
    background: rgba(139, 92, 246, 0.15);
    color: #C4B5FD;
}

.status-ready {
    background: var(--primary-dim);
    color: #34D399;
}

.status-completed {
    background: rgba(16, 185, 129, 0.25);
    color: #10B981;
}

.status-cancelled {
    background: var(--danger-dim);
    color: #F87171;
}

/* ============================================
   TABLE PAGINATION COMPONENT
   ============================================ */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pagination-info strong {
    color: var(--text-main);
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-page {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-page:hover:not(.disabled) {
    background: var(--primary);
    color: #022C22;
    border-color: var(--primary);
}

.btn-page.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.page-number-current {
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-sm);
}

/* ============================================
   SETTINGS TAB NAVIGATION
   ============================================ */
.settings-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.15s ease;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.settings-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.settings-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.settings-tab-pane {
    display: none;
    animation: fadeInTab 0.2s ease-in-out;
}

.settings-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CUSTOMER FOOTER
   ============================================ */
/* ============================================
   PREMIUM CUSTOMER FOOTER
   ============================================ */
.main-footer {
    background: #080D18;
    border-top: 1px solid var(--border-color);
    padding: 48px 0 110px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: start;
}

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

/* Section Title & Subtitle in Footer */
.footer-section-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-section-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 2px 0 10px 0;
    line-height: 1.3;
}

/* ============================================
   FRONTEND MENU PAGINATION
   ============================================ */
.frontend-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 10px;
    flex-wrap: wrap;
}

.frontend-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    background: #0E1624;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.frontend-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.frontend-page-btn.active {
    background: var(--primary);
    color: #022C22;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.frontend-page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-brand-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.footer-brand-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Footer Card Headers (matching modal style) */
.footer-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-card-icon i,
.footer-card-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    stroke: var(--primary);
}

.footer-card-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.footer-card-title-group h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin: 0;
}

.footer-card-title-group p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    line-height: 1.2;
}

/* Tracking Card */
.footer-track-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-track-form {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.footer-track-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    color: #F8FAFC;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 700;
    outline: none;
    text-transform: uppercase;
    transition: border-color 0.15s;
}

.footer-track-input:focus {
    border-color: var(--primary);
}

.footer-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #022C22;
    border: none;
    border-radius: var(--r-sm);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.footer-track-btn:hover {
    background: #059669;
    color: #FFFFFF;
}

.footer-quick-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}

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

/* Footer Bottom Bar */
.footer-bottom-bar {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.76rem;
    color: var(--text-sub);
}

.footer-bottom-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

/* ============================================
   ADMIN LOGIN SCREEN
   ============================================ */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.08) 0%, #060A12 70%, #03070E 100%);
    padding: 24px 16px;
    box-sizing: border-box;
}

.login-card {
    background: #0E1626;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg, 16px);
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary, #10B981), transparent);
}

.login-badge {
    width: 52px;
    height: 52px;
    background: var(--primary-dim, rgba(16, 185, 129, 0.12));
    border: 1px solid var(--border-accent, rgba(16, 185, 129, 0.3));
    color: var(--primary, #10B981);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.login-card .form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--r-sm, 8px);
    padding: 11px 14px;
    color: var(--text-main, #F8FAFC);
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.login-card .form-control:focus {
    border-color: var(--primary, #10B981);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.login-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    margin-top: 6px;
    border-radius: var(--r-sm, 8px);
}