/* ============================================
   TOKO 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);
    --primary-text: #FFFFFF;
    --primary-subtext: rgba(255, 255, 255, 0.85);

    --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 Sesuai index.php) */
    --r-xs: 3px;
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 6px;

    --header-height: 60px;

    /* 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 & Scroll Standards (Restore Native Viewport Scrolling for Sticky Elements) */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

*,
*::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;
    min-height: 100dvh;
    padding-bottom: 0;
    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;
    overflow-x: clip;
}

/* Touch Action Fix for Interactive Elements to Prevent Double-Tap Zoom */
button,
input,
select,
textarea,
a,
.btn,
.product-card,
.type-option,
.cart-checkout-btn,
.btn-add-cart,
.btn-close-modal,
.cart-qty-ctrl,
.filter-chip {
    touch-action: manipulation;
}

@media (max-width: 768px) {

    .form-input,
    .form-select,
    .form-textarea,
    .form-control,
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Layout Containers - 100% Full Width across all screen sizes */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

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

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

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

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

/* ============================================
   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;
    width: 100%;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex-shrink: 1;
}

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

.brand-icon.brand-icon-has-logo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-accent);
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--r-xs);
    display: block;
}

.footer-brand-icon.has-logo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-accent);
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

.hub-card-icon.has-logo {
    padding: 2px;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.storefront-brand-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.storefront-brand-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-accent);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.storefront-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--r-xs);
    display: block;
}

.storefront-brand-info {
    flex: 1;
    min-width: 0;
}

.storefront-brand-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.storefront-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.storefront-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    padding: 2px 7px;
    border-radius: 20px;
}

.storefront-brand-tagline {
    font-size: 0.76rem;
    color: var(--text-sub);
    margin: 3px 0 0;
    line-height: 1.25;
}

@media (max-width: 640px) {
    .storefront-brand-hero {
        padding: 10px 12px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .storefront-brand-logo-wrap {
        width: 44px;
        height: 44px;
    }

    .storefront-brand-title {
        font-size: 0.95rem;
    }
}

.brand-text {
    min-width: 0;
    overflow: hidden;
}

.brand-text h1 {
    font-size: 1.05rem;
    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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}

.btn-nav,
.btn-track-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0 10px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    border-radius: var(--r-sm);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.btn-nav span,
.btn-track-nav span,
#navBranchLabel,
#navCustomerLabel {
    display: inline-block;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    line-height: normal;
}

.nav-subbar-mobile-row {
    display: none;
}

.nav-branch-mobile-bar {
    display: none;
}

.nav-store-info-btn-mobile {
    display: none;
}

@media (max-width: 640px) {

    .nav-branch-btn-desktop,
    .nav-store-info-btn-desktop {
        display: none !important;
    }

    .nav-subbar-mobile-row {
        display: flex;
        align-items: stretch;
        gap: 6px;
        margin: 0 0 8px 0;
        width: 100%;
    }

    .nav-branch-mobile-bar {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: space-between;
        background: rgba(16, 185, 129, 0.08);
        border: 1px solid rgba(16, 185, 129, 0.22);
        border-radius: var(--r-sm);
        padding: 6px 10px;
        margin: 0;
        cursor: pointer;
        transition: all 0.15s ease;
        text-decoration: none;
        min-width: 0;
    }

    .nav-branch-mobile-bar:hover {
        background: rgba(16, 185, 129, 0.14);
        border-color: rgba(16, 185, 129, 0.4);
    }

    .nav-store-info-btn-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: var(--r-sm);
        padding: 0 10px;
        color: var(--text-main);
        font-size: 0.74rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.15s ease;
        font-family: inherit;
    }

    .nav-store-info-btn-mobile:hover,
    .nav-store-info-btn-mobile:active {
        background: rgba(16, 185, 129, 0.12);
        border-color: rgba(16, 185, 129, 0.35);
        color: var(--primary);
    }

    .nav-branch-mobile-left {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }

    .nav-bar {
        height: 48px;
    }

    .brand-text p {
        max-width: none;
    }
}

@media (max-width: 479px) {

    .btn-nav,
    .btn-track-nav {
        padding: 0 8px;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        font-size: 0.74rem;
        gap: 4px;
    }

    .btn-nav span,
    .btn-track-nav span,
    #navBranchLabel,
    #navCustomerLabel {
        max-width: 70px;
    }
}

@media (min-width: 480px) {

    .btn-nav span,
    .btn-track-nav span,
    #navBranchLabel,
    #navCustomerLabel {
        max-width: 120px;
    }
}

@media (min-width: 768px) {

    .btn-nav span,
    .btn-track-nav span,
    #navBranchLabel,
    #navCustomerLabel {
        max-width: 150px;
    }
}

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

/* ============================================
   HERO COMPACT BANNER & SLIDER (MAX 5 SLIDES)
   ============================================ */
.hero-section {
    padding: 8px 0 6px;
}

.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dim, rgba(16, 185, 129, 0.15)) 0%, rgba(17, 23, 38, 0.96) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    padding: 10px 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
}

/* Ambient Floating Glow Auras */
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--primary-glow, rgba(16, 185, 129, 0.28)) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auraFloat1 8s ease-in-out infinite alternate;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auraFloat2 6s ease-in-out infinite alternate-reverse;
}

@keyframes auraFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, 15px) scale(1.18);
        opacity: 0.95;
    }

    100% {
        transform: translate(15px, -10px) scale(0.92);
        opacity: 0.5;
    }
}

@keyframes auraFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(18px, -12px) scale(1.15);
        opacity: 0.85;
    }

    100% {
        transform: translate(-12px, 15px) scale(0.95);
        opacity: 0.45;
    }
}

.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 52px;
    z-index: 1;
}

.hero-slide {
    display: none;
    opacity: 0;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

/* Premium Staggered Component Animations (Smooth & Calmer Pace) */
.hero-slide.active .hero-badge {
    animation: animHeroBadge 0.75s cubic-bezier(0.25, 1, 0.5, 1) 0s backwards;
}

.hero-slide.active .hero-badge i,
.hero-slide.active .hero-badge svg {
    animation: sparkleSpin 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.1s backwards;
}

.hero-slide.active .hero-title {
    animation: animHeroTitle 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
}

.hero-slide.active .hero-desc {
    animation: animHeroDesc 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards;
}

@keyframes animHeroBadge {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateX(-20deg) translateY(-8px) scale(0.9);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes sparkleSpin {
    0% {
        transform: rotate(-120deg) scale(0);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes animHeroTitle {
    0% {
        opacity: 0;
        transform: translateY(12px) skewY(0.6deg);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewY(0deg);
        filter: blur(0);
    }
}

@keyframes animHeroDesc {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-dim);
    border: 1px solid var(--border-accent);
    color: var(--primary, #A7F3D0);
    padding: 2.5px 8px;
    border-radius: var(--r-xs);
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
    box-shadow: 0 0 8px var(--primary-glow, rgba(16, 185, 129, 0.15));
}

.hero-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
    background: linear-gradient(110deg, #FFFFFF 20%, #A7F3D0 50%, #FFFFFF 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleShimmer {

    0%,
    25% {
        background-position: 100% 0;
    }

    75%,
    100% {
        background-position: -100% 0;
    }
}

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

.hero-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
    max-width: 620px;
    position: relative;
    z-index: 1;
}

/* Slider Controls & Dots */
.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-dot.active {
    width: 22px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px rgba(16, 185, 129, 0.35);
}

/* ============================================
   SEARCH & STORE CATALOG LAYOUT (SIDEBAR DESKTOP)
   ============================================ */
.store-layout-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.store-sidebar-col,
.store-main-col {
    display: contents;
}

.store-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.store-identity-card {
    display: none;
}

.store-hero-main {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-search-section {
    margin-bottom: 0;
}

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

.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;
}

/* Store Catalog Layout */
.store-catalog-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.store-category-sidebar {
    order: 2;
    width: 100%;
    box-sizing: border-box;
}

.store-main-content {
    order: 3;
    width: 100%;
}

.store-sidebar-header {
    display: none;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 4px 8px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

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

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: var(--r-sm, 4px);
    background: var(--bg-surface, #111827);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-main, #FFFFFF);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    text-align: left;
    user-select: none;
    box-sizing: border-box;
    margin: 2px 0;
}

.cat-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: none;
}

.cat-pill-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs, 4px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #10B981);
    transition: all 0.2s ease;
}

.cat-pill-icon-box i,
.cat-pill-icon-box svg {
    width: 15px;
    height: 15px;
}

.cat-pill-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    line-height: 1.15;
}

.cat-pill-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main, #FFFFFF);
    letter-spacing: -0.1px;
}

.cat-pill-sub {
    font-size: 0.64rem;
    font-weight: 500;
    color: var(--text-muted, #94A3B8);
}

/* Active State */
.cat-pill.active {
    background: var(--primary, #10B981);
    border-color: var(--primary, #10B981);
    box-shadow: 0 2px 10px var(--primary-shadow, rgba(16, 185, 129, 0.35));
    transform: none;
}

.cat-pill.active .cat-pill-icon-box {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--primary-text, #FFFFFF);
}

.cat-pill.active .cat-pill-title {
    color: var(--primary-text, #FFFFFF);
    font-weight: 800;
}

.cat-pill.active .cat-pill-sub {
    color: var(--primary-subtext, rgba(255, 255, 255, 0.85));
    font-weight: 700;
}

.store-main-content {
    flex: 1;
    min-width: 0;
}

/* Store Schedule List Styling in Modal */
.store-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.store-schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.72rem;
}

.store-schedule-day {
    font-weight: 700;
    color: var(--text-main, #F8FAFC);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.store-schedule-time {
    font-weight: 700;
    color: var(--primary, #10B981);
    background: var(--primary-dim, rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

/* Desktop Split Hero & Sidebar Mode (min-width: 992px) */
@media (min-width: 992px) {
    .store-layout-container {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 8px;
        align-items: start;
        margin-top: 8px;
        margin-bottom: 24px;
    }

    .store-sidebar-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: sticky;
        top: calc(var(--header-height, 60px) + 8px);
        width: 260px;
    }

    .store-main-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }

    .store-hero-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 8px;
        align-items: start;
        margin-top: 8px;
        margin-bottom: 0;
    }

    .store-identity-card {
        background: var(--bg-surface, #111827);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
        border-radius: var(--r-md, 6px);
        padding: 10px 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-self: stretch;
        width: 100%;
        box-sizing: border-box;
        height: fit-content;
        gap: 8px;
    }

    .store-id-top {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .store-id-logo {
        width: 44px;
        height: 44px;
        border-radius: var(--r-xs, 4px);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }

    .store-id-info {
        flex: 1;
        min-width: 0;
    }

    .store-id-name-row {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .store-id-name {
        font-size: 0.92rem;
        font-weight: 800;
        color: var(--text-main, #FFFFFF);
        margin: 0;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-id-tagline {
        font-size: 0.7rem;
        color: var(--text-muted, #94A3B8);
        margin: 2px 0 0 0;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-id-status-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--r-xs, 4px);
        padding: 5px 9px;
    }

    .store-id-hours {
        font-size: 0.7rem;
        color: var(--text-sub, #94A3B8);
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-store-info-quick {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 6px 10px;
        border-radius: var(--r-xs, 4px);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text-main, #FFFFFF);
        font-size: 0.74rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-store-info-quick:hover {
        background: rgba(16, 185, 129, 0.12);
        border-color: var(--primary, #10B981);
        color: var(--primary, #10B981);
    }

    .store-hero-main .hero-banner {
        margin-bottom: 0;
    }

    .store-catalog-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 24px;
        align-items: start;
        margin-top: 14px;
        margin-bottom: 40px;
    }

    .store-category-sidebar {
        position: static;
        background: var(--bg-surface, #111827);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
        border-radius: var(--r-md, 6px);
        padding: 10px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        max-height: calc(100vh - var(--header-height, 60px) - 230px);
        display: flex;
        flex-direction: column;
        z-index: 20;
    }

    .store-sidebar-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    }

    .store-sidebar-icon-box {
        width: 30px;
        height: 30px;
        border-radius: var(--r-xs, 4px);
        background: var(--primary-dim, rgba(16, 185, 129, 0.12));
        border: 1px solid rgba(16, 185, 129, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary, #10B981);
        flex-shrink: 0;
    }

    .store-sidebar-icon-box svg,
    .store-sidebar-icon-box i {
        width: 17px;
        height: 17px;
    }

    .store-sidebar-text-group {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
        flex: 1;
    }

    .store-sidebar-title {
        font-size: 0.85rem;
        font-weight: 800;
        color: var(--text-main, #FFFFFF);
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    .store-sidebar-subtitle {
        font-size: 0.68rem;
        color: var(--text-muted, #94A3B8);
        line-height: 1.2;
    }

    .store-category-sidebar .category-scroll {
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2px 4px 4px 2px;
        max-height: calc(100vh - 320px);
        flex: 1;
        min-height: 0;
    }

    .store-category-sidebar .cat-pill {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 9px;
        border-radius: var(--r-sm, 4px);
        box-sizing: border-box;
        white-space: normal;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .store-category-sidebar .cat-pill:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateX(3px);
    }

    .store-category-sidebar .cat-pill.active {
        background: var(--primary, #10B981);
        border-color: var(--primary, #10B981);
        box-shadow: 0 4px 14px var(--primary-shadow, rgba(16, 185, 129, 0.35));
        transform: translateX(3px);
    }

    .store-category-sidebar .cat-pill-text-group {
        flex: 1;
        min-width: 0;
    }

    .store-category-sidebar .cat-pill-title {
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.25;
        word-break: break-word;
    }

    .store-category-sidebar .cat-pill-sub {
        font-size: 0.66rem;
    }
}

/* Mobile Category Sticky Bar */
@media (max-width: 991px) {
    .store-category-sidebar {
        position: sticky;
        top: var(--header-height, 60px);
        z-index: 35;
        background: rgba(11, 15, 23, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 4px 0 6px 0;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    }
}

/* ============================================
   PRODUCT GRID & CARDS (4 COLUMNS ON DESKTOP)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px;
    }
}

.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%;
    aspect-ratio: 1 / 1;
    background: #182030;
    overflow: hidden;
    border-radius: var(--r-md) var(--r-md) 0 0;
}

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

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

/* 1. Top-Left Ribbon Discount Badge */
.prod-discount-flag {
    position: absolute;
    top: 0;
    left: 0;
    background: #F43F5E;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 7px 3px 5px;
    border-radius: 0 0 var(--r-xs, 3px) 0;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
    z-index: 3;
    letter-spacing: 0.2px;
}

/* 2. Top-Right NEW! Tag */
.prod-badge-new-angled {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--r-xs, 3px);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Bottom-Left Thumbnail Tag (Gajian Sale / Best Seller) */
.prod-thumb-bottom-tags {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 3;
}

.prod-tag-sale {
    background: #065F46;
    color: #ECFDF5;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-xs, 3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2px;
}

.prod-tag-sale-icon {
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Product Body */
.product-body {
    padding: 7px 8px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 3px;
}

.product-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.5em;
    max-height: 2.5em;
    word-break: break-word;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 1px;
}

.product-price-main {
    font-size: clamp(0.85rem, 1.05vw, 0.98rem);
    font-weight: 800;
    color: var(--text-main, #FFFFFF);
    letter-spacing: -0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-price-strike {
    font-size: 0.68rem;
    color: var(--text-muted, #94A3B8);
    text-decoration: line-through;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-promo-bonus {
    font-size: 0.66rem;
    font-weight: 700;
    color: #F97316;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

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

.product-rating-sold {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.product-star-rating {
    font-weight: 700;
    color: #FBBF24;
    flex-shrink: 0;
}

.product-meta-sep {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.product-sold-count {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.btn-add-cart-mini:hover {
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    transform: scale(1.08);
}

/* Star Rating Picker in Review Form */
.star-pick {
    transition: transform 0.15s;
}

.star-pick:hover {
    transform: scale(1.2);
}

/* Store Closed & Belum Initial State (Semua Produk Wajib Abu-Abu / Grayscale) */
.product-card.store-closed,
.product-card.not-initialized {
    opacity: 0.55;
    filter: grayscale(100%) contrast(90%);
    cursor: not-allowed !important;
}

.product-card.store-closed .product-img,
.product-card.not-initialized .product-img {
    filter: grayscale(100%) contrast(85%);
}

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

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

.store-closed-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: var(--r-sm, 6px);
    padding: 8px 12px;
    margin: 0;
    color: #FCA5A5;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.35;
    box-sizing: border-box;
    width: 100%;
}

.store-closed-banner i,
.store-closed-banner svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

/* ============================================
   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: var(--primary-text, #FFFFFF);
    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: var(--text-muted, #94A3B8);
    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: var(--primary-text, #FFFFFF);
    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,
.custom-confirm-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    overscroll-behavior: contain !important;
    touch-action: none;
}

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

/* Modal Open Body Scroll Lock */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: auto !important;
    min-height: 100% !important;
    overscroll-behavior: none !important;
}

.modal-content,
.modal-box,
.modal-drawer,
.custom-confirm-box {
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Mobile-specific customer drawer: Uniform 90% Screen Height */
@media (max-width: 768px) {

    .modal-overlay,
    .modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-drawer,
    .modal-box {
        border-radius: var(--r-lg, 16px) var(--r-lg, 16px) 0 0 !important;
        height: 90vh !important;
        height: 90dvh !important;
        min-height: 90vh !important;
        min-height: 90dvh !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

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

    .modal-header {
        padding: 10px 14px !important;
        flex-shrink: 0 !important;
    }

    .modal-content,
    .modal-body {
        padding: 12px 14px !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .modal-content .form-group {
        margin-bottom: 10px !important;
    }

    .modal-content .form-label {
        font-size: 0.76rem !important;
        margin-bottom: 3px !important;
    }

    .modal-content .form-input,
    .modal-content .form-select,
    .modal-content .form-textarea {
        padding: 7px 10px !important;
        font-size: 0.84rem !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: calc(92dvh - env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    position: relative;
    z-index: 10000;
    box-sizing: border-box;
}

.modal-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    flex-shrink: 0 !important;
    padding: 11px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: var(--bg-surface, #111726) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#orderDetailModal .modal-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
}

.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-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--r-sm) !important;
    background: var(--primary-dim) !important;
    border: 1px solid var(--border-accent) !important;
    color: var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.modal-header-close:hover {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

.modal-header-close:active {
    transform: scale(0.95);
}

.modal-header-close i,
.modal-header-close 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.92rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--text-main);
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.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: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.btn-close-modal,
.btn-close-master-modal {
    display: none !important;
}

.modal-content,
.modal-body {
    padding: 14px 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

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

/* Allow horizontal scroll ONLY on table containers */
.modal-content .table-responsive,
.modal-content .data-table-wrap,
.modal-content table,
.modal-body .table-responsive {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Modal Footer & Bottom Buttons - Sticky & Flexible 1-Row without wrapping */
.modal-footer,
.modal-actions,
.modal-box>form>.modal-footer,
.modal-content>form>.modal-footer,
.modal-box>form>.modal-actions,
.modal-content>form>.modal-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: var(--bg-surface, #111726) !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    z-index: 25 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35) !important;
}

.modal-footer>*,
.modal-actions>*,
.modal-box>form>.modal-footer>*,
.modal-content>form>.modal-footer>*,
.modal-box>form>.modal-actions>*,
.modal-content>form>.modal-actions>* {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 8px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    min-height: 38px !important;
    height: auto !important;
    border-radius: var(--r-sm, 6px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
}

.modal-footer button span,
.modal-actions button span,
.modal-footer a span,
.modal-actions a span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !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-img {
    width: 44px;
    height: 44px;
    border-radius: var(--r-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

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

.cart-item-name {
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

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

.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

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

.cart-item-right-ctrl {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.btn-edit-cart-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}

.btn-edit-cart-item:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.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);
}

/* Product Option Horizontal Scroll Pills (matching Table Selector) */
.custom-segmented-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.custom-segmented-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.custom-option-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: var(--r-sm);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    font-family: inherit;
}

.custom-option-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-option-pill.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.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;
}

/* Order Financial Summary Breakdown (Tax, Service, Rounding) */
.checkout-summary-breakdown {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-row.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.summary-row.summary-total .total-amount {
    color: var(--primary);
    font-size: 1.15rem;
}

/* Table Scroll Wrapper with Arrows */
.table-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-table-scroll {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 28px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--r-xs);
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.15s ease;
}

.btn-table-scroll:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-table-scroll.left-arrow {
    margin-right: 6px;
}

.btn-table-scroll.right-arrow {
    margin-left: 6px;
}

/* ============================================
   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: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-color);
    width: 100%;
}

.type-option {
    flex: 1 1 0px;
    min-width: 0;
    text-align: center;
    padding: 6px 4px;
    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;
    justify-content: center;
    gap: 2px;
    user-select: none;
    touch-action: manipulation;
}

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

.type-option .type-title {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.type-option .type-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

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

.type-option.active .type-title {
    color: var(--primary-text, #FFFFFF);
}

.type-option.active .type-sub {
    color: var(--primary-subtext, rgba(255, 255, 255, 0.85));
    font-weight: 700;
}

/* Variant Grid 4 (Sugar, Ice Level compact side-by-side) */
.variant-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
}

.variant-grid-4 .table-option {
    min-width: 0;
    width: 100%;
    padding: 6px 2px;
    flex: 1 1 auto;
    overflow: hidden;
}

.variant-grid-4 .table-option .table-title {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.variant-grid-4 .table-option .table-sub {
    font-size: 0.58rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Variant Clean Touch Scroll without arrow buttons */
.variant-scroll-clean {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.variant-scroll-clean::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.variant-scroll-clean .table-option {
    flex: 0 0 auto;
    min-width: 85px;
    padding: 6px 10px;
}

/* Horizontal Scrollable Table & Variant Segmented Selector */
.table-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.btn-table-scroll {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 26px;
    height: 34px;
    border-radius: var(--r-xs);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}

.btn-table-scroll:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.table-segmented-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.table-segmented-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.table-option {
    flex: 0 0 auto;
    min-width: 60px;
    text-align: center;
    padding: 5px 8px;
    border-radius: var(--r-xs);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    user-select: none;
    touch-action: manipulation;
}

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

.table-option .table-title {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    white-space: nowrap;
}

.table-option .table-sub {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.1;
    white-space: nowrap;
}

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

.table-option.active .table-title {
    color: var(--primary-text, #FFFFFF);
}

.table-option.active .table-sub {
    color: var(--primary-subtext, rgba(255, 255, 255, 0.85));
    font-weight: 700;
}

/* Disabled Table (Pesanan belum selesai / Terisi) */
.table-option.disabled {
    opacity: 0.38;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.table-option.disabled .table-title {
    color: var(--text-sub) !important;
    text-decoration: line-through;
}

.table-option.disabled .table-sub {
    color: #EF4444 !important;
    font-weight: 600;
}

/* Payment Methods List (1 Kolom Kompak Kebawah - Crisp Edges) */
.pay-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    width: 100%;
}

.pay-selected-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary-border, var(--border-accent));
    letter-spacing: 0.2px;
}

.pay-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 5px;
    padding: 7px 10px;
    min-height: 42px;
    height: auto;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    outline: none;
    user-select: none;
}

.pay-method-card:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.pay-method-card.active {
    border-color: var(--primary) !important;
    background: linear-gradient(90deg, var(--primary-dim, rgba(16, 185, 129, 0.12)) 0%, transparent 100%) !important;
    box-shadow: 0 0 0 1px var(--primary), 0 2px 10px var(--primary-glow, rgba(16, 185, 129, 0.14));
}

.pay-method-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Uniform Media Emblem for Logo & Icon (Crisp Edges) */
.pay-method-visual-box {
    width: 38px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* QRIS Official Logo Container */
.pay-method-visual-box.is-qris,
.pay-method-visual-box.is-logo {
    background: #FFFFFF;
    padding: 1px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-method-visual-box.is-qris img,
.pay-method-visual-box.is-logo img {
    max-height: 15px;
    max-width: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Bank Transfer Emblem */
.pay-method-visual-box.is-transfer {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(59, 130, 246, 0.22));
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38BDF8;
}

.pay-method-card.active .pay-method-visual-box.is-transfer {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.38));
    border-color: #38BDF8;
    color: #FFFFFF;
}

/* Cash / Kasir Emblem */
.pay-method-visual-box.is-cash,
.pay-method-visual-box.is-icon {
    background: var(--primary-dim);
    border: 1px solid var(--primary-border);
    color: var(--primary);
}

.pay-method-card.active .pay-method-visual-box.is-cash,
.pay-method-card.active .pay-method-visual-box.is-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.pay-method-visual-box svg,
.pay-method-visual-box i,
.pay-method-visual-box .pay-method-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.pay-method-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.pay-method-card .pay-method-name {
    font-size: 0.76rem;
    color: #CBD5E1;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.2s;
}

.pay-method-card.active .pay-method-name {
    color: #FFFFFF;
    font-weight: 800;
}

.pay-method-card .pay-method-sub {
    font-size: 0.65rem;
    color: var(--text-muted, #64748B);
    line-height: 1.1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 500;
    transition: color 0.2s;
}

.pay-method-card.active .pay-method-sub {
    color: var(--primary);
    font-weight: 600;
}

/* Radio Circle Check on Right */
.pay-method-card .pay-active-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    background: transparent;
    color: transparent;
}

.pay-method-card.active .pay-active-radio {
    border-color: var(--primary);
    background: var(--primary);
    color: #FFFFFF;
}

.pay-method-card .pay-active-radio svg,
.pay-method-card .pay-active-radio i {
    width: 10px;
    height: 10px;
    stroke-width: 3.2;
}

/* Polished Payment Method Info Notice (Crisp Edges) */
.pay-info-box {
    background: var(--primary-dim, rgba(16, 185, 129, 0.08));
    border: 1px solid var(--primary-border, rgba(16, 185, 129, 0.22));
    border-radius: 4px;
    padding: 6px 9px;
    margin-top: 5px;
    font-size: 0.71rem;
    color: var(--text-sub, #94A3B8);
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
}

.pay-info-box .pay-info-icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pay-info-box .pay-info-icon svg,
.pay-info-box .pay-info-icon i {
    width: 12px;
    height: 12px;
    stroke-width: 2.2;
}

.pay-info-box .pay-info-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.btn-submit-order {
    width: 100%;
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    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-primary {
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    border: none;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    width: auto;
}

.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-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main, #fff);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: var(--r-xs, 6px);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
}

.btn-order-success-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 14px;
    background: #16a34a;
    color: #ffffff !important;
    border: none;
    border-radius: var(--r-xs);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-order-success-wa:hover {
    background: #15803d;
    color: #ffffff !important;
}

.btn-order-success-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--r-xs);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.btn-order-success-track:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.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: var(--primary-text, #FFFFFF);
}

.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 (RESPONSIVE DESKTOP & MOBILE)
   ============================================ */
body.admin-page {
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 860px) {
    body.admin-page {
        height: auto;
        min-height: 100vh;
        overflow-x: clip;
        overflow-y: visible;
    }
}

.admin-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Mobile Header & Drawer Navigation */
.admin-mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.btn-sidebar-close {
    display: none;
}

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

.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: sticky;
    top: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 860px) {
    .admin-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        flex-direction: column;
    }

    .admin-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(11, 17, 30, 0.94);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid var(--border-color);
        padding: 10px 14px;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 990;
    }

    .btn-icon-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-main);
        cursor: pointer;
        transition: background 0.15s;
    }

    .btn-icon-mobile:active {
        background: rgba(255, 255, 255, 0.15);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #0F172A !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .sidebar .sidebar-brand {
        background: #0F172A !important;
    }

    .sidebar .sidebar-footer {
        background: #0F172A !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .btn-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-color);
        color: var(--text-muted);
        cursor: pointer;
    }

    .main-content {
        padding: 14px 12px 92px 12px !important;
    }

    .admin-bottom-nav {
        display: flex;
        position: fixed;
        bottom: max(12px, env(safe-area-inset-bottom, 12px));
        left: 14px;
        right: 14px;
        max-width: 460px;
        margin: 0 auto;
        height: 60px;
        background: rgba(15, 23, 42, 0.82);
        backdrop-filter: blur(20px) saturate(190%);
        -webkit-backdrop-filter: blur(20px) saturate(190%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
        z-index: 995;
        justify-content: space-around;
        align-items: center;
        padding: 4px 6px;
        box-sizing: border-box;
        transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            border-radius 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            padding 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: height, max-width, bottom;
    }

    .admin-bottom-nav.compact {
        height: 46px;
        bottom: 10px;
        max-width: 310px;
        border-radius: 28px;
        padding: 3px 8px;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94A3B8;
        text-decoration: none;
        gap: 3px;
        flex: 1;
        height: 100%;
        border: none;
        background: transparent;
        border-radius: 14px;
        margin: 0 2px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item span {
        font-size: 0.68rem;
        font-weight: 600;
        white-space: nowrap;
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
            max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            margin-top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 18px;
        overflow: hidden;
        opacity: 1;
        display: block;
    }

    .admin-bottom-nav.compact .bottom-nav-item span {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
        pointer-events: none;
    }

    .admin-bottom-nav.compact .bottom-nav-item {
        padding: 4px;
        border-radius: 14px;
        gap: 0;
    }

    .bottom-nav-item:active,
    .bottom-nav-item.active {
        color: var(--primary);
        background: rgba(249, 115, 22, 0.12);
    }

    .bottom-nav-item svg,
    .bottom-nav-item i {
        width: 19px;
        height: 19px;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
            width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
            height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .admin-bottom-nav.compact .bottom-nav-item svg,
    .admin-bottom-nav.compact .bottom-nav-item i {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item.active svg,
    .bottom-nav-item.active i {
        transform: scale(1.08);
    }

    .bottom-nav-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-icon-wrap .nav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: var(--danger);
        color: #FFFFFF;
        font-size: 0.6rem;
        font-weight: 800;
        padding: 1px 5px;
        border-radius: 9999px;
        line-height: 1.1;
        box-shadow: 0 2px 6px rgba(225, 29, 72, 0.5);
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-masonry-container {
        column-count: 1 !important;
    }
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.dashboard-masonry-container {
    column-count: 2;
    column-gap: 12px;
    width: 100%;
}

.dashboard-masonry-card {
    break-inside: avoid-column;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 12px;
    background: var(--card-bg, #111827);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    vertical-align: top;
}

/* Custom Date Range Form - Mobile & iOS Optimized */
.dash-date-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

@media (max-width: 640px) {
    .dash-date-form-grid {
        grid-template-columns: 1fr;
    }
}

.dash-date-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dash-date-label {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-date-field {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-sizing: border-box;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-date-field:focus {
    outline: none;
    border-color: var(--primary, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dash-date-submit-btn {
    min-height: 40px;
    background: var(--primary, #10b981);
    color: #022c22;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.dash-date-submit-btn:hover {
    opacity: 0.92;
}

.dash-date-submit-btn:active {
    transform: scale(0.98);
}

.sidebar-brand {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    flex-shrink: 0;
    margin: 0;
}

.brand-badge {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    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: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 12px 12px 14px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    margin-top: auto;
    flex-shrink: 0;
}

.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: var(--primary-text, #FFFFFF);
    font-weight: 700;
}

.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .main-content {
        height: auto !important;
        overflow: visible !important;
        padding: 14px 12px 85px 12px !important;
    }
}

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

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.page-title-icon {
    width: 34px;
    height: 34px;
    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;
}

.page-title-icon i,
.page-title-icon svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
    stroke: var(--primary);
}

.page-title-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-title-text h2,
.page-title h2 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-title-text p,
.page-title p {
    color: var(--text-muted);
    font-size: 0.73rem;
    margin: 2px 0 0 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

/* Product & Business Vertical Tabs (1 ROW HORIZONTAL SCROLL) */
.product-vertical-tabs,
.addons-vertical-tabs,
.settings-master-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.product-vertical-tabs::-webkit-scrollbar,
.addons-vertical-tabs::-webkit-scrollbar,
.settings-master-tabs::-webkit-scrollbar {
    display: none !important;
}

.product-tab-card {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    display: flex;
    align-items: center;
    text-align: left !important;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap !important;
}

.product-tab-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04) !important;
}

.product-tab-card.active {
    background: var(--primary-dim) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px var(--primary-glow) !important;
}

.product-tab-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.product-tab-icon i,
.product-tab-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.product-tab-info {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    text-align: left !important;
}

.product-tab-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left !important;
}

.product-tab-name {
    font-size: 0.86rem;
    color: var(--text-main);
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: left !important;
    font-weight: 700;
}

.product-tab-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    flex-shrink: 0;
}

.product-tab-badge.active,
.product-tab-card.active .product-tab-badge {
    background: var(--primary);
    color: var(--primary-text);
}

.product-tab-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    text-align: left !important;
}

/* Table Filter Bar (Desktop) */
.table-filter-bar {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 14px;
}

.filter-form-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-field-search {
    position: relative;
    flex: 1 1 180px;
    max-width: 260px;
    min-width: 140px;
}

.filter-field-search i,
.filter-field-search svg {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px !important;
    height: 13px !important;
    color: var(--text-muted);
    pointer-events: none;
}

.filter-field-search input {
    padding: 5px 8px 5px 28px !important;
    font-size: 0.78rem !important;
    height: 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
}

.filter-field {
    flex: 0 1 auto;
}

.filter-field select {
    font-size: 0.78rem !important;
    height: 32px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    width: auto;
    min-width: 130px;
}

.filter-actions-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.filter-actions-group button,
.filter-actions-group a {
    padding: 0 12px !important;
    height: 32px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

/* 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;
    gap: 14px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.table-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

.table-header-left h3,
.table-header-left h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-header-left p {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto;
    flex-wrap: nowrap;
}

.table-header-actions,
.table-header-btns {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.table-header-actions .btn-primary,
.table-header-actions .btn-secondary,
.table-header-actions button,
.table-header-actions a,
.table-header-btns .btn-primary,
.table-header-btns .btn-secondary,
.table-header-btns button,
.table-header-btns a,
.table-header-right .btn-primary,
.table-header-right .btn-secondary,
.table-header-right button,
.table-header-right a {
    width: auto !important;
    max-width: fit-content;
    height: 34px;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.table-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0 7px;
    height: 32px;
    border-radius: var(--r-xs);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }

    .table-header-left {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .table-header-left h3,
    .table-header-left h4 {
        font-size: 0.95rem;
        white-space: normal;
    }

    .table-header-left p {
        font-size: 0.72rem;
        line-height: 1.35;
        white-space: normal;
    }

    .table-header-right {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .table-header-actions,
    .table-header-btns {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .table-header-actions .btn-primary,
    .table-header-actions .btn-secondary,
    .table-header-actions button,
    .table-header-actions a,
    .table-header-btns .btn-primary,
    .table-header-btns .btn-secondary,
    .table-header-btns button,
    .table-header-btns a,
    .table-header-right .btn-primary,
    .table-header-right .btn-secondary,
    .table-header-right button,
    .table-header-right a {
        flex: 0 0 auto;
        min-width: auto;
        min-height: 28px;
        height: 28px;
        padding: 4px 9px;
        font-size: 0.72rem;
        font-weight: 700;
        border-radius: var(--r-xs);
        justify-content: center;
        text-align: center;
    }

    .table-scroll-hint {
        display: none !important;
    }

    .product-vertical-tabs,
    .addons-vertical-tabs,
    .settings-master-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .product-vertical-tabs::-webkit-scrollbar,
    .addons-vertical-tabs::-webkit-scrollbar,
    .settings-master-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .product-tab-card {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        padding: 7px 12px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }

    .product-tab-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
    }

    .product-tab-icon i,
    .product-tab-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .product-tab-info {
        flex: 0 0 auto !important;
    }

    .product-tab-title-row {
        gap: 6px !important;
    }

    .product-tab-name {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }

    .product-tab-badge {
        font-size: 0.68rem !important;
        padding: 1px 6px !important;
        border-radius: 4px !important;
    }

    .product-tab-desc {
        display: none !important;
    }

    /* Compact Table Filter Form on Mobile */
    .table-filter-bar {
        padding: 8px 10px !important;
    }

    .filter-form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .filter-field-search {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .filter-field {
        width: 100% !important;
        min-width: 0 !important;
    }

    .filter-field select {
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        font-size: 0.78rem !important;
    }

    .filter-actions-group {
        display: flex !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .filter-actions-group button,
    .filter-actions-group a {
        flex: 1 !important;
        height: 34px !important;
        justify-content: center !important;
    }

    /* Settings Mobile Form & Sub-nav Rules */
    .settings-compact-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding: 4px !important;
        margin-bottom: 12px !important;
        scrollbar-width: none !important;
    }

    .settings-compact-nav::-webkit-scrollbar {
        display: none !important;
    }

    .settings-compact-nav .settings-tab-card {
        flex: 0 0 auto !important;
        width: auto !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 0.76rem !important;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dashboard-quick-actions {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    .dashboard-quick-actions .action-pill {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.4) rgba(255, 255, 255, 0.05);
}

.table-responsive.is-dragging {
    cursor: grabbing !important;
    user-select: none;
}

.table-responsive::-webkit-scrollbar {
    height: 9px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.table-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.table-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.15s ease;
}

.table-scroll-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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;
    white-space: nowrap;
}

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;
    max-width: 210px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

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

/* Primary, Secondary, Danger General Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    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 var(--primary-shadow, rgba(16, 185, 129, 0.25));
}

.btn-primary:hover {
    background: var(--primary-hover, #059669);
    color: var(--primary-text, #FFFFFF);
    box-shadow: 0 4px 12px var(--primary-shadow, 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;
    text-align: right;
    vertical-align: middle;
}

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

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: var(--r-xs);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
}

.btn-action-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--r-xs);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn-action:hover,
.btn-action-text:hover {
    transform: translateY(-1px);
}

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

.btn-action-primary:hover,
.btn-action-view:hover {
    background: var(--primary-glow, rgba(16, 185, 129, 0.25));
    color: #A7F3D0;
    border-color: var(--primary-border, rgba(16, 185, 129, 0.6));
}

.btn-action-edit,
.btn-action-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-action-edit:hover,
.btn-action-warning:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #FDE68A;
    border-color: rgba(245, 158, 11, 0.6);
}

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

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

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

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

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

.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: var(--primary, #34D399);
}

.status-completed {
    background: var(--primary-glow, rgba(16, 185, 129, 0.25));
    color: var(--primary, #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: var(--primary-text, #FFFFFF);
    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-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    width: 100%;
    padding: 2px 0;
}

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

.btn-settings-tab-scroll {
    position: sticky;
    z-index: 2;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    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: all 0.15s ease;
}

.btn-settings-tab-scroll:hover {
    background: var(--primary-dim);
    border-color: var(--border-accent);
}

.btn-settings-tab-scroll.left-arrow {
    margin-right: 6px;
}

.btn-settings-tab-scroll.right-arrow {
    margin-left: 6px;
}

.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);
}

/* Compact Modern Settings Grid Tabs */
.settings-grid-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.settings-tab-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--r-xs);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.settings-tab-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.settings-tab-card.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.settings-tab-card.active .tab-card-title {
    color: var(--primary);
    font-weight: 800;
}

.settings-tab-card.active .tab-card-indicator {
    opacity: 1;
    transform: scale(1);
}

.tab-card-title {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.tab-card-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.15s ease;
    margin-left: auto;
}

.settings-tab-card.tab-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.settings-tab-card.tab-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
}

.settings-tab-card.tab-danger.active {
    background: rgba(239, 68, 68, 0.14);
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}

.settings-tab-card.tab-danger.active .tab-card-indicator {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

@media (max-width: 768px) {
    .settings-grid-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .settings-tab-card {
        padding: 7px 10px;
    }

    .tab-card-title {
        font-size: 0.74rem;
    }
}

@media (max-width: 480px) {
    .settings-grid-tabs {
        grid-template-columns: 1fr;
    }
}

.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);
    }
}

/* ============================================
   RESPONSIVE ADMIN GRID & MOBILE HELPERS
   ============================================ */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.admin-grid-recipes {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-grid-recipes>* {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-grid-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-grid-metrics>* {
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .admin-grid-recipes {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 12px;
    }

    .admin-grid-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 960px) {

    .admin-grid-2,
    .admin-grid-3,
    .admin-grid-recipes {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .admin-grid-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        padding: 10px 12px !important;
    }

    .stat-val {
        font-size: 1.1rem !important;
    }

    .top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .top-actions {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .store-selector-badge {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: space-between !important;
    }

    .store-selector-badge select {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .top-actions .btn-primary,
    .top-actions .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
    }

    .action-btn-group .btn-action {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .modal,
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-box,
    .modal-drawer {
        border-radius: 16px 16px 0 0 !important;
        height: 90vh !important;
        height: 90dvh !important;
        min-height: 90vh !important;
        min-height: 90dvh !important;
        max-height: 90vh !important;
        max-height: 90dvh !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-content,
    .modal-body {
        padding: 14px 16px !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .modal-content input,
    .modal-content select,
    .modal-content textarea,
    .form-control {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .stat-card {
        padding: 8px 10px !important;
    }

    .stat-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .stat-val {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   CUSTOMER FOOTER
   ============================================ */

@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: var(--primary-text, #FFFFFF);
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-shadow, rgba(16, 185, 129, 0.35));
}

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

/* ============================================
   REDESIGNED CUSTOMER FOOTER
   ============================================ */
.main-footer {
    background: #080D16;
    border-top: 1px solid var(--border-color);
    padding: 24px 0 16px;
    margin-top: 28px;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 20px 0 16px;
    }
}

.footer-saas {
    background: rgba(11, 15, 23, 0.98);
    padding: 20px 0 14px !important;
    margin-top: 20px !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

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

    .footer-saas-grid {
        grid-template-columns: 1.25fr 1fr;
        gap: 18px;
    }
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    width: 100%;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.footer-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--r-xs);
    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-icon i,
.footer-brand-icon svg {
    width: 15px;
    height: 15px;
}

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

.footer-brand-header p,
.footer-brand-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 1px 0 0 0;
}

.footer-brand-sub {
    color: var(--primary);
    font-weight: 700;
}

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

.footer-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
    width: 100%;
    min-width: 0;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--border-accent);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.footer-badge.badge-green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #A7F3D0;
}

.footer-badge.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

.footer-badge.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #FDE68A;
}

.footer-badge i,
.footer-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

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

.footer-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    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: 12px;
    height: 12px;
    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.82rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}

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

/* Tracking & Admin Card */
.footer-track-card,
.footer-admin-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-card-desc {
    font-size: 0.7rem;
    color: var(--text-sub);
    line-height: 1.35;
    margin: 0 0 2px 0;
}

.footer-admin-action {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.footer-admin-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 5px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.footer-admin-btn-pos {
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
}

.footer-admin-btn-pos:hover {
    background: var(--primary-hover, #059669);
    color: var(--primary-text, #FFFFFF);
}

.footer-admin-btn-mgmt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.footer-admin-btn-mgmt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.footer-admin-btn i,
.footer-admin-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.footer-track-form {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    width: 100%;
    min-width: 0;
}

.footer-track-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 9px;
    height: 30px;
    box-sizing: border-box;
    color: #F8FAFC;
    font-size: 0.75rem;
    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;
    justify-content: center;
    gap: 4px;
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    height: 30px;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-track-btn:hover {
    background: var(--primary-hover, #059669);
    color: var(--primary-text, #FFFFFF);
}

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

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

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

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

.footer-bottom-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.68rem;
}

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

.login-modal-box {
    max-width: 360px !important;
    width: 100% !important;
    background: #111726 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 185, 129, 0.15) !important;
    overflow: hidden !important;
    margin: auto !important;
    transform: none !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ============================================
   CUSTOM TOAST ALERT NOTIFICATIONS (3S AUTO-CLOSE)
   ============================================ */
.custom-toast-container {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: calc(100% - 24px) !important;
    max-width: 440px !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .custom-toast-container {
        top: 12px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
    }
}

.custom-toast {
    pointer-events: auto;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    background: rgba(17, 23, 38, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.2s, transform 0.2s;
}

.custom-toast.toast-danger {
    border-left-color: var(--danger);
}

.custom-toast.toast-warning {
    border-left-color: var(--amber);
}

.custom-toast.toast-success {
    border-left-color: var(--primary);
}

.custom-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.05);
}

.custom-toast.toast-danger .custom-toast-icon {
    background: var(--danger-dim);
    color: var(--danger);
}

.custom-toast.toast-success .custom-toast-icon {
    background: var(--primary-dim);
    color: var(--primary);
}

.custom-toast.toast-warning .custom-toast-icon {
    background: var(--amber-dim);
    color: var(--amber);
}

.custom-toast-msg {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.custom-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: var(--r-xs);
    transition: color 0.15s, background 0.15s;
}

.custom-toast-close:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.custom-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary);
    animation: toastProgress 3s linear forwards;
}

.custom-toast.toast-danger .custom-toast-progress {
    background: var(--danger);
}

.custom-toast.toast-warning .custom-toast-progress {
    background: var(--amber);
}

.custom-toast.toast-hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Custom In-App Confirm Dialogs */
.custom-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease forwards;
}

.custom-confirm-modal-overlay.active {
    display: flex !important;
}

.custom-confirm-box {
    background: #111726;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md, 16px);
    max-width: 440px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   ADMIN GLOBAL SPOTLIGHT SEARCH (MONIFI STYLE)
   ============================================ */
.global-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 40px;
    animation: fadeInModal 0.15s ease-out;
}

.global-search-backdrop.active {
    display: flex;
}

.global-search-dialog {
    width: 100%;
    max-width: 640px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: var(--r-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}

.global-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #1F2937;
    background: #1F2937;
}

.global-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #F9FAFB;
    font-size: 1.05rem;
    font-family: inherit;
}

.global-search-input::placeholder {
    color: #9CA3AF;
}

.global-search-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.global-search-group-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #9CA3AF;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    color: #E5E7EB;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.global-search-item:hover,
.global-search-item.selected {
    background: var(--primary-dim, rgba(16, 185, 129, 0.1));
    color: var(--primary, #10B981);
    border-color: var(--primary-border, rgba(16, 185, 129, 0.3));
}

.global-search-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.global-search-item-info {
    flex: 1;
    min-width: 0;
}

.global-search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #F9FAFB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-search-item-sub {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #0B0F19;
    border-top: 1px solid #1F2937;
    font-size: 0.72rem;
    color: #6B7280;
}

/* ========================================
   UNIFIED HORIZONTAL SETTINGS ROW SYSTEM
   ======================================== */
.setting-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.setting-section-header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-section-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.setting-label-col .setting-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-label-col .setting-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.setting-input-col {
    width: 100%;
}

.setting-input-col .form-control {
    width: 100%;
    box-sizing: border-box;
}

.setting-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-main);
}

.setting-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

@media (max-width: 820px) {
    .setting-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: flex-start;
        padding: 12px 14px;
    }
}

/* ============================================
   STORE INFO MODAL - COMPACT & MINIMAL PADDING
   ============================================ */
#storeInfoModal .modal-drawer {
    max-width: 440px;
}

#storeInfoModal .modal-header {
    padding: 8px 12px;
}

#storeInfoModal .modal-header-icon {
    width: 28px;
    height: 28px;
}

#storeInfoModal .modal-header-text h3 {
    font-size: 0.88rem;
    line-height: 1.2;
}

#storeInfoModal .modal-header-text p {
    font-size: 0.68rem;
    line-height: 1.2;
}

#storeInfoModal .modal-content {
    padding: 8px 12px 14px 12px;
}

.store-info-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
}

.store-info-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-info-hero-text {
    flex: 1;
    min-width: 0;
}

.store-info-hero-text h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
}

.store-info-hero-text p {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 1px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-info-hero-status-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.store-info-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--r-xs);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.store-info-status-pill.open {
    background: var(--primary-dim, rgba(16, 185, 129, 0.14));
    border: 1px solid var(--primary-border, rgba(16, 185, 129, 0.35));
    color: var(--primary, #10B981);
}

.store-info-status-pill.closed {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #EF4444;
}

.store-info-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.store-info-tabs-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 6px;
    gap: 4px;
}

.btn-store-tab-scroll {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 22px;
    height: 24px;
    border-radius: var(--r-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}

.btn-store-tab-scroll:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.store-info-nav-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 1px 0;
    margin-bottom: 0;
    border-bottom: none;
}

.store-info-nav-tabs::-webkit-scrollbar {
    display: none;
}

.store-info-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--r-xs);
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-info-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.store-info-nav-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
}

.store-info-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--r-xs);
    padding: 8px 10px;
    margin-bottom: 6px;
}

.store-info-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.store-info-card-header h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.store-info-text-content {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text-muted);
    white-space: pre-line;
}

.store-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.store-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.store-social-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.25);
}

.store-social-btn.btn-instagram:hover {
    background: linear-gradient(45deg, rgba(245, 133, 41, 0.2), rgba(221, 42, 123, 0.2), rgba(129, 52, 175, 0.2));
    border-color: #E1306C;
    color: #F77737;
}

.store-social-btn.btn-tiktok:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: #25F4EE;
    color: #25F4EE;
}

.store-social-btn.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: #25D366;
    color: #25D366;
}

.store-social-btn.btn-facebook:hover {
    background: rgba(24, 119, 242, 0.12);
    border-color: #1877F2;
    color: #1877F2;
}

.store-social-btn.btn-youtube:hover {
    background: rgba(255, 0, 0, 0.12);
    border-color: #FF0000;
    color: #FF0000;
}

.store-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 5px;
}

.store-market-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--r-xs);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.store-market-btn:hover {
    transform: translateY(-1px);
}

.store-market-btn.btn-shopee:hover {
    background: rgba(238, 77, 45, 0.15);
    border-color: #EE4D2D;
    color: #EE4D2D;
}

.store-market-btn.btn-tokopedia:hover {
    background: rgba(3, 172, 14, 0.15);
    border-color: #03AC0E;
    color: #03AC0E;
}

.store-market-btn.btn-lazada:hover {
    background: rgba(15, 20, 109, 0.25);
    border-color: #0F146D;
    color: #3B82F6;
}

.store-market-btn.btn-blibli:hover {
    background: rgba(0, 149, 218, 0.15);
    border-color: #0095DA;
    color: #0095DA;
}

.store-market-btn.btn-gofood:hover {
    background: rgba(0, 170, 19, 0.15);
    border-color: #00AA13;
    color: #00AA13;
}

.store-market-btn.btn-grabfood:hover {
    background: rgba(0, 177, 79, 0.15);
    border-color: #00B14F;
    color: #00B14F;
}

.store-market-btn.btn-shopeefood:hover {
    background: rgba(238, 77, 45, 0.15);
    border-color: #EE4D2D;
    color: #EE4D2D;
}

.store-market-btn.btn-othermarket:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Branch cards inside modal */
.store-branch-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-xs);
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.15s ease;
}

.store-branch-card.active {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.store-branch-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.store-branch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    flex-shrink: 0;
    transition: all 0.15s ease;
    font-family: inherit;
}

.store-branch-btn.active {
    background: var(--primary-light, rgba(16, 185, 129, 0.15));
    border-color: var(--primary-border, rgba(16, 185, 129, 0.35));
    color: var(--primary, #10B981);
    cursor: default;
}

.store-branch-btn.select {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: var(--text-main);
}

.store-branch-btn.select:hover {
    background: var(--primary);
    color: var(--primary-text, #FFFFFF);
    border-color: var(--primary);
}

/* ========================================
   iOS Safari Native Date Input Compatibility
   ======================================== */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    color-scheme: dark !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 38px;
    background-color: var(--card-bg, #161F30);
    color: var(--text-main, #F8FAFC);
    font-family: inherit;
    font-size: 16px;
    /* Prevents auto-zoom in iOS Safari */
    line-height: normal;
    display: inline-flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 640px) {

    input[type="date"],
    input[type="datetime-local"],
    input[type="time"] {
        font-size: 0.85rem;
    }
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.4em;
    color: inherit;
    display: block;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85) brightness(1.2);
    cursor: pointer;
    opacity: 0.9;
    margin-left: auto;
}

/* Dark Theme Dropdown Select & Option */
select,
.form-input select,
select.form-input,
select.form-control {
    background-color: var(--card-bg, #161F30) !important;
    color: var(--text-main, #F8FAFC) !important;
    color-scheme: dark !important;
}

select option,
.form-input option,
select.form-input option,
select.form-control option {
    background-color: #161F30 !important;
    color: #F8FAFC !important;
}

select option:hover,
select option:focus,
select option:checked {
    background-color: #1e293b !important;
    color: #38BDF8 !important;
}

/* ============================================
   FRONTEND BOOKING DYNAMIC VARIANTS & CUSTOM FIELDS
   ============================================ */
.booking-var-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 11px;
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    transition: all 0.15s ease;
    user-select: none;
}

.booking-var-card:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.06);
}

.booking-var-card:has(input[type="radio"]:checked),
.booking-var-card.active {
    border-color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 0 1px var(--primary);
}

.booking-var-card input[type="radio"] {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.booking-dynamic-cf-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--r-sm);
    color: var(--text-main) !important;
    padding: 8px 10px;
    font-size: 0.85rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.booking-dynamic-cf-input:focus {
    border-color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.05) !important;
    outline: none;
}

/* ========================================
   MODERN INFORMATIVE DASHBOARD STYLES
   ======================================== */
.dashboard-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
}

.dashboard-quick-actions .action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.dash-chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--r-md);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.dash-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-bars-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 140px;
    padding-top: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.dash-bar-fill {
    width: 100%;
    max-width: 38px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dim, rgba(16, 185, 129, 0.3)));
    border-radius: 4px 4px 0 0;
    transition: height 0.4s ease;
    min-height: 4px;
    position: relative;
}

.dash-bar-fill:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--primary));
}

.dash-bar-val {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
}

.dash-bar-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
}

.dash-top-prod-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-top-prod-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    gap: 4px;
    min-width: 0;
}

.dash-rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-rank-1 {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.dash-rank-2 {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.dash-rank-3 {
    background: rgba(180, 83, 9, 0.2);
    color: #f97316;
    border: 1px solid rgba(180, 83, 9, 0.4);
}

.dash-rank-other {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ========================================
   DASHBOARD RESPONSIVE ADAPTATIONS
   ======================================== */
.btn-branch-picker-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary, #10b981);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-branch-picker-mobile:active {
    background: rgba(16, 185, 129, 0.25);
    transform: scale(0.95);
}

.branch-active-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary, #10b981);
    box-shadow: 0 0 6px var(--primary, #10b981);
}

.branch-picker-item {
    transition: all 0.15s ease;
}

.branch-picker-item:hover,
.branch-picker-item:active {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* KPI Card Flex Alignment (No Collision) */
.stat-card-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
}

.stat-card-body {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.stat-card-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.stat-card .stat-icon {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    align-self: flex-start !important;
}

/* MODERN ORDER ITEM CARDS */
.orders-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 10px !important;
}

.order-item-card {
    background: var(--card-bg, #111827) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.order-item-card:hover {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ORDER CARD ACTION BUTTONS */
.order-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.order-card-btn-detail {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.order-card-btn-detail:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #93c5fd !important;
    transform: translateY(-1px) !important;
}

.order-card-btn-detail svg,
.order-card-btn-detail i {
    width: 12px !important;
    height: 12px !important;
    stroke: #60a5fa !important;
}

.order-card-btn-checkin {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--primary, #10b981) !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.order-card-btn-checkin:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    color: #a7f3d0 !important;
    transform: translateY(-1px) !important;
}

.order-card-btn-checkin svg,
.order-card-btn-checkin i {
    width: 12px !important;
    height: 12px !important;
    stroke: var(--primary, #10b981) !important;
}

.order-card-btn-print {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    color: var(--text-main, #fff) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.order-card-btn-print:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.order-card-btn-print svg,
.order-card-btn-print i {
    width: 13px !important;
    height: 13px !important;
    stroke: var(--text-main, #fff) !important;
}

@media (max-width: 640px) {
    .orders-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media (min-width: 769px) {
    .desktop-only-branch {
        display: flex !important;
    }

    .mobile-only-branch {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .page-title {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .page-title-text {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .page-title-text h2 {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .page-title-text p {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .top-actions {
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .desktop-only-branch {
        display: none !important;
    }

    .mobile-only-branch {
        display: inline-flex !important;
    }

    /* Uniform Dashboard Outer Flow & Grid Gaps */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .stat-card {
        padding: 12px 14px !important;
        border-radius: 8px !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    .stat-card .stat-card-title {
        font-size: 0.65rem !important;
        letter-spacing: 0.3px !important;
    }

    .stat-val {
        font-size: 1.05rem !important;
        margin: 3px 0 2px 0 !important;
    }

    .stat-card .stat-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        align-self: flex-start !important;
    }

    .stat-card .stat-card-sub {
        font-size: 0.64rem !important;
        line-height: 1.25 !important;
    }

    .dashboard-quick-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 10px !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .dashboard-quick-actions::-webkit-scrollbar {
        display: none !important;
    }

    .dashboard-quick-actions>span {
        width: auto !important;
        flex-shrink: 0 !important;
        margin-right: 2px !important;
        margin-bottom: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        font-size: 0.72rem !important;
    }

    .dashboard-quick-actions .action-pill {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        font-size: 0.76rem !important;
        padding: 6px 11px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .dashboard-quick-actions .action-pill:last-child {
        margin-left: 0 !important;
    }

    /* Main Grid & Columns with Zero Redundant Margin */
    .dashboard-main-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
    }

    .dashboard-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    /* Dashboard Cards & Charts with Uniform Gaps & Padding */
    .dash-chart-card {
        padding: 12px 14px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }

    .dash-chart-header {
        gap: 6px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .dash-chart-header h4 {
        font-size: 0.88rem !important;
    }

    .dash-chart-header p {
        font-size: 0.68rem !important;
    }

    .dash-bars-wrapper {
        height: 125px !important;
        gap: 4px !important;
        padding-top: 6px !important;
    }

    .dash-bar-val {
        font-size: 0.58rem !important;
        margin-bottom: 2px !important;
    }

    .dash-bar-fill {
        max-width: 24px !important;
    }

    .dash-bar-label {
        font-size: 0.62rem !important;
        margin-top: 4px !important;
        line-height: 1.15 !important;
    }

    .dash-bar-label small {
        font-size: 0.55rem !important;
    }

    /* Recent Orders & Tables with Uniform Gaps & Padding */
    .card-table {
        border-radius: 8px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }

    .table-header {
        padding: 12px 14px !important;
    }

    .table-header h4 {
        font-size: 0.88rem !important;
    }

    .table-header p {
        font-size: 0.68rem !important;
    }

    .table-header-right .btn-secondary {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    .table th,
    .table td {
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
    }

    /* Top Products & Stock */
    .dash-top-prod-item {
        padding: 6px 8px !important;
    }

    .dash-top-prod-item span {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .stat-val {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   PREMIUM CHECKOUT LOYALTY POINTS REDEMPTION CARD (ULTRA COMPACT)
   ============================================ */
.checkout-points-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-points-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.points-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.points-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.points-header-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FBBF24;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15);
}

.points-header-icon-box i,
.points-header-icon-box svg {
    width: 13px;
    height: 13px;
}

.points-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.points-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.points-title-row strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: #FEF3C7;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.points-sub-hint {
    font-size: 0.64rem;
    color: rgba(254, 243, 199, 0.65);
    line-height: 1.15;
}

.points-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0F172A;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

/* Custom iOS Style Switch (Ultra-compact & Fully Clickable) */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 19px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.custom-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 5;
}

.switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    pointer-events: none;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: #CBD5E1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-switch input:checked+.switch-slider {
    background: linear-gradient(135deg, var(--primary, #10B981) 0%, var(--primary-hover, #059669) 100%);
    border-color: var(--primary-border, rgba(16, 185, 129, 0.5));
    box-shadow: 0 0 8px var(--primary-shadow, rgba(16, 185, 129, 0.35));
}

.custom-switch input:checked+.switch-slider:before {
    transform: translateX(15px);
    background-color: #FFFFFF;
}

/* Points Input Section (Ultra-compact & Perfectly Uniform Rhythm) */
.points-input-section {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px dashed rgba(245, 158, 11, 0.2);
    display: flex;
    flex-direction: column;
    gap: 7px;
    animation: fadeInModal 0.2s ease-out;
}

.points-input-inline-grid {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.points-input-control-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.points-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: var(--r-xs) !important;
    padding: 4px 38px 4px 9px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #FEF3C7 !important;
    height: 30px !important;
    box-sizing: border-box;
    outline: none;
    transition: all 0.15s ease;
}

.points-input-field:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.points-input-suffix {
    position: absolute;
    right: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #F59E0B;
    pointer-events: none;
}

.btn-use-max-pts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
    padding: 0 10px;
    height: 30px;
    box-sizing: border-box;
    border-radius: var(--r-xs);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-use-max-pts i,
.btn-use-max-pts svg {
    width: 12px;
    height: 12px;
}

.btn-use-max-pts:hover {
    background: rgba(245, 158, 11, 0.28);
    color: #FEF3C7;
    border-color: #F59E0B;
}

.points-discount-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    margin: 0;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 4px;
    color: #6EE7B7;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.2;
}

.points-discount-banner strong {
    color: #A7F3D0;
    font-weight: 900;
}

/* ============================================
   CHECKOUT PROMO / VOUCHER COMPACT CARD
   ============================================ */
.checkout-promo-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--r-sm);
    padding: 7px 9px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.promo-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.promo-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.promo-icon-input {
    position: absolute;
    left: 8px;
    width: 13px;
    height: 13px;
    color: var(--text-muted);
    pointer-events: none;
}

.promo-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--r-xs) !important;
    padding: 4px 26px 4px 26px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #F8FAFC !important;
    height: 30px !important;
    box-sizing: border-box;
    text-transform: uppercase;
    outline: none;
    transition: all 0.15s ease;
}

.promo-input-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.btn-cancel-promo {
    position: absolute;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}

.btn-cancel-promo:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.btn-cancel-promo i,
.btn-cancel-promo svg {
    width: 10px;
    height: 10px;
}

.btn-apply-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--primary, #10B981) 0%, var(--primary-hover, #059669) 100%);
    color: var(--primary-text, #FFFFFF);
    border: none;
    padding: 0 11px;
    height: 30px;
    box-sizing: border-box;
    border-radius: var(--r-xs);
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-apply-promo i,
.btn-apply-promo svg {
    width: 12px;
    height: 12px;
}

.btn-apply-promo:hover {
    background: var(--primary-hover, #059669);
    color: var(--primary-text, #FFFFFF);
}

.promo-result-banner {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

.promo-result-banner.is-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.promo-result-banner.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* Bundling / Combo Badge & Card */
.card-badge.badge-bundle {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
    color: #FFFFFF !important;
    font-weight: 800;
}

.modal-bundle-info-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    margin-bottom: 12px;
}

.bundle-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    margin-bottom: 5px;
}

.bundle-items-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #DDD6FE;
    margin-bottom: 4px;
}

.bundle-items-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.72rem;
    color: var(--text-sub);
}

/* ============================================
   CUSTOM TOAST ALERT SYSTEM
   ============================================ */
.custom-toast-container {
    position: fixed !important;
    top: 16px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    pointer-events: none !important;
    max-width: 440px !important;
    width: calc(100% - 24px) !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .custom-toast-container {
        top: 12px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
    }
}

.custom-toast {
    pointer-events: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #f8fafc !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.custom-toast.toast-success {
    border-left: 4px solid var(--primary, #10b981) !important;
}

.custom-toast.toast-danger,
.custom-toast.toast-error {
    border-left: 4px solid #ef4444 !important;
}

.custom-toast.toast-warning {
    border-left: 4px solid #f59e0b !important;
}

.custom-toast.toast-info {
    border-left: 4px solid #3b82f6 !important;
}

.custom-toast-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-toast-msg {
    flex: 1 !important;
    line-height: 1.4 !important;
}

.custom-toast-close {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
}

.custom-toast-close:hover {
    color: #fff !important;
}

.custom-toast-progress {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    width: 100% !important;
    animation: toastProgress 3.2s linear forwards !important;
}

.custom-toast.toast-hiding {
    animation: toastFadeOut 0.25s forwards !important;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }

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

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ============================================
   CUSTOM CONFIRMATION & PROMPT DIALOG MODAL
   ============================================ */
.custom-confirm-modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    animation: confirmFadeIn 0.2s ease !important;
}

.custom-confirm-box {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    max-width: 460px !important;
    width: 100% !important;
    padding: 24px !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85) !important;
    animation: confirmPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes confirmPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================
   COMPACT PROMOS STRIP (UNDER HERO - HORIZONTAL SCROLL)
   ========================================================== */
.store-compact-promos-container {
    width: 100%;
    box-sizing: border-box;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm, 6px);
    padding: 5px 6px;
    margin: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: relative;
}

.compact-promo-arrow.inline-arrow {
    width: 24px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94A3B8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
    z-index: 2;
}

.compact-promo-arrow.inline-arrow:hover {
    background: var(--primary, #10B981);
    border-color: var(--primary, #10B981);
    color: #064E3B;
}

.compact-promos-track {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 1px 0;
    cursor: grab;
    user-select: none;
}

.compact-promos-track:active {
    cursor: grabbing;
}

.compact-promos-track::-webkit-scrollbar {
    height: 3px;
}

.compact-promos-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.compact-promos-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.compact-promos-track::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #10B981);
}

.compact-promo-card {
    flex-shrink: 0;
    min-width: 230px;
    max-width: 275px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.18s ease;
    cursor: pointer;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.compact-promo-card:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.compact-promo-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.compact-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.compact-promo-pill.pill-percent {
    background: rgba(16, 185, 129, 0.16);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.compact-promo-pill.pill-fixed {
    background: rgba(245, 158, 11, 0.16);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.compact-promo-text-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compact-promo-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main, #F8FAFC);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

.compact-promo-sub {
    font-size: 0.65rem;
    color: var(--text-muted, #94A3B8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

.compact-promo-card-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.compact-code-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    color: #FBBF24;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    padding: 3px 7px;
    border-radius: 4px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    transition: all 0.18s ease;
}

.compact-code-val.copied {
    color: #fff !important;
    background: #10B981 !important;
    border-color: #10B981 !important;
    border-style: solid !important;
}

.compact-promo-card.is-banner {
    min-width: 220px;
    max-width: 260px;
}

.compact-promo-banner-img-box {
    width: 58px;
    height: 38px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.compact-promo-banner-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compact-promo-banner-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compact-promo-banner-tag {
    font-size: 0.58rem;
    font-weight: 800;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    padding: 1px 4px;
    border-radius: 3px;
    width: fit-content;
    line-height: 1.2;
}