/* ==========================================================================
   QR MENYU — MODERN EXECUTIVE ADMIN & SUPER ADMIN UI
   ========================================================================== */

:root {
    --admin-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --admin-bg: #F8FAFC;
    --admin-card-bg: #FFFFFF;
    --admin-sidebar-bg: #FFFFFF;
    --admin-border: #E2E8F0;
    --admin-border-subtle: rgba(226, 232, 240, 0.8);
    --admin-text: #0F172A;
    --admin-text-muted: #64748B;
    --admin-text-light: #94A3B8;
    
    --admin-primary: #4F46E5;
    --admin-primary-dark: #4338CA;
    --admin-primary-light: #EEF2FF;
    --admin-primary-glow: rgba(79, 70, 229, 0.25);

    --admin-emerald: #059669;
    --admin-emerald-light: #ECFDF5;
    --admin-amber: #D97706;
    --admin-amber-light: #FFFBEB;
    --admin-rose: #DC2626;
    --admin-rose-light: #FEF2F2;
    --admin-sky: #0284C7;
    --admin-sky-light: #F0F9FF;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;

    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.admin-body {
    font-family: var(--admin-font);
    background-color: var(--admin-bg);
    color: var(--admin-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ==========================================================================
   TOPBAR NAVBAR
   ========================================================================== */

.navbar-admin {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--admin-border);
    padding: 0.65rem 0;
    z-index: 1030;
}

.brand-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.28);
    flex-shrink: 0;
}

.brand-logo-badge.sm {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
}

.brand-title-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--admin-text);
    letter-spacing: -0.02em;
}

.admin-restaurant-pill {
    background: var(--admin-primary-light);
    color: var(--admin-primary-dark);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-super-pill {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-icon-sidebar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    background: #FFFFFF;
    color: var(--admin-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-admin-user {
    background: #FFFFFF;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-pill);
    padding: 0.32rem 0.85rem 0.32rem 0.4rem;
    color: var(--admin-text);
    transition: all var(--transition-fast);
}

.btn-admin-user:hover, .btn-admin-user:focus {
    border-color: #CBD5E1;
    background: #F8FAFC;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   SIDEBAR & LAYOUT
   ========================================================================== */

.admin-layout-wrapper {
    min-height: calc(100vh - 61px);
}

.sidebar-col {
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border) !important;
}

@media (min-width: 992px) {
    .sidebar-col {
        width: 250px;
        flex: 0 0 250px;
    }
    .main-content {
        width: calc(100% - 250px);
        flex: 1 1 auto;
        min-width: 0;
    }
    .sidebar-col .offcanvas-lg {
        position: sticky;
        top: 61px;
        height: calc(100vh - 61px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(203, 213, 225, 0.4) transparent;
    }
    .sidebar-col .offcanvas-lg::-webkit-scrollbar {
        width: 4px;
    }
    .sidebar-col .offcanvas-lg::-webkit-scrollbar-track {
        background: transparent;
    }
    .sidebar-col .offcanvas-lg::-webkit-scrollbar-thumb {
        background: rgba(203, 213, 225, 0.4);
        border-radius: 10px;
    }
    .sidebar-col .offcanvas-lg::-webkit-scrollbar-thumb:hover {
        background: rgba(148, 163, 184, 0.7);
    }
}

@media (max-width: 991.98px) {
    .sidebar-col {
        border-right: none !important;
    }
    .main-content {
        width: 100%;
    }
}

.nav-pills .nav-link {
    border-radius: var(--radius-md);
    padding: 0.65rem 0.95rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
    margin-bottom: 3px;
    text-decoration: none;
}

.nav-pills .nav-link i {
    font-size: 1.15rem;
    line-height: 1;
    color: #94A3B8;
    transition: color var(--transition-fast);
    width: 22px;
    text-align: center;
}

.nav-pills .nav-link:hover:not(.active) {
    background: #F1F5F9;
    color: var(--admin-text);
    transform: translateX(3px);
}

.nav-pills .nav-link:hover:not(.active) i {
    color: var(--admin-primary);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.nav-pills .nav-link.active i {
    color: #FFFFFF;
}

/* ==========================================================================
   CARDS & STAT TILES
   ========================================================================== */

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--admin-border);
    background: var(--admin-card-bg);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--admin-border);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--admin-text);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Stat Tile styling */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.stat-icon-indigo { background: var(--admin-primary-light); color: var(--admin-primary); }
.stat-icon-emerald { background: var(--admin-emerald-light); color: var(--admin-emerald); }
.stat-icon-amber { background: var(--admin-amber-light); color: var(--admin-amber); }
.stat-icon-blue { background: var(--admin-sky-light); color: var(--admin-sky); }
.stat-icon-rose { background: var(--admin-rose-light); color: var(--admin-rose); }
.stat-icon-teal { background: #CCFBF1; color: #0D9488; }
.stat-icon-purple { background: #F3E8FF; color: #9333EA; }

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-badge.rank-1 { background: #FEF3C7; color: #D97706; }
.rank-badge.rank-2 { background: #F1F5F9; color: #475569; }
.rank-badge.rank-3 { background: #FFEDD5; color: #C2410C; }
.rank-badge.rank-other { background: #F8FAFC; color: #94A3B8; }

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--admin-text);
    line-height: 1.15;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-responsive {
    border-radius: inherit;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: #F8FAFC !important;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--admin-border);
    border-top: none;
}

.table tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    color: var(--admin-text);
    font-size: 0.9rem;
}

.table tbody tr:hover td {
    background-color: #F8FAFC;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    color: #FFFFFF;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-outline-primary {
    border-color: #CBD5E1;
    color: var(--admin-primary);
}

.btn-outline-primary:hover {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-outline-secondary {
    border-color: #CBD5E1;
    color: #475569;
}

.btn-outline-secondary:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.badge {
    padding: 0.35em 0.7em;
    font-weight: 700;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.badge.text-bg-success {
    background-color: var(--admin-emerald-light) !important;
    color: var(--admin-emerald) !important;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge.text-bg-danger {
    background-color: var(--admin-rose-light) !important;
    color: var(--admin-rose) !important;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge.text-bg-warning {
    background-color: var(--admin-amber-light) !important;
    color: var(--admin-amber) !important;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge.text-bg-secondary {
    background-color: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #CBD5E1;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 0.2rem var(--admin-primary-glow);
}

.form-control-sm, .form-select-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* ==========================================================================
   QR PLACES CARDS
   ========================================================================== */

.qr-box {
    width: 165px;
    height: 165px;
    margin: 0 auto;
    padding: 10px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

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

.qr-link-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--admin-primary);
    background: var(--admin-primary-light);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 0.22rem 0.75rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.qr-link-pill:hover {
    background: #E0E7FF;
    color: var(--admin-primary-dark);
}

/* ==========================================================================
   ORDER CARDS & LIVE BOARD
   ========================================================================== */

.order-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--admin-border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.order-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.order-card .card-header {
    padding: 0.85rem 1.15rem;
}

.order-card .list-group-item {
    transition: background-color 0.6s ease;
    border-color: rgba(226, 232, 240, 0.6);
}

.order-card .item-cancelled .item-name {
    text-decoration: line-through;
    color: var(--admin-text-light);
}

.item-flash {
    animation: flash-bg 2.5s ease-out;
}

@keyframes flash-bg {
    0% { background-color: rgba(217, 119, 6, 0.25); }
    100% { background-color: transparent; }
}

/* ==========================================================================
   CATALOG ITEMS
   ========================================================================== */

.catalog-card {
    cursor: pointer;
    border-radius: var(--radius-lg);
    border: 1px solid var(--admin-border);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    overflow: hidden;
}

.catalog-card:hover:not(.is-added) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.catalog-card.is-checked {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 0.2rem var(--admin-primary-glow);
}

.catalog-card.is-added {
    cursor: default;
    opacity: 0.65;
}

.catalog-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.catalog-noimg {
    background: #F1F5F9;
    color: var(--admin-text-muted);
}

.catalog-bar {
    z-index: 1010;
}

/* ==========================================================================
   WAITER CALLS
   ========================================================================== */

.calls-stack {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    width: min(390px, calc(100vw - 2.5rem));
}

.call-alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    animation: call-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes call-pulse {
    from { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.0); }
    to { box-shadow: 0 0 0 0.45rem rgba(220, 38, 38, 0.35); }
}

/* ==========================================================================
   PROMO BANNER PREVIEW & TOASTS
   ========================================================================== */

.hero-promo-card {
    background: linear-gradient(135deg, #C54A23 0%, #A33714 55%, #852608 100%);
    border-radius: 24px;
    padding: 1.35rem 1.25rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(188, 74, 36, 0.28);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    pointer-events: none;
    border-radius: 50%;
}

.hero-promo-content {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    text-transform: uppercase;
}

.hero-promo-title {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    word-break: break-word;
}

.hero-promo-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.4;
    margin-top: 0.4rem;
    font-weight: 450;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.btn-order-now {
    background: #FFFFFF;
    color: #1E293B;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.hero-promo-img-box {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
}

.hero-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Custom modern toast container */
.qrm-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.qrm-toast {
    pointer-events: auto;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    background: #1E293B;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qrm-toast.toast-danger {
    background: #DC2626;
}

.qrm-toast.toast-success {
    background: #16A34A;
}

.qrm-toast.toast-warning {
    background: #D97706;
}

@keyframes toast-slide-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   MOBILE BOTTOM BAR & RESPONSIVE ADAPTATIONS
   ========================================================================== */

.admin-mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--admin-border);
    z-index: 1025;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
}

.bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 58px;
    padding: 0 0.25rem;
}

.bottom-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 4px 1px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    line-height: 1.1;
    cursor: pointer;
    max-width: 76px;
    text-align: center;
}

.bottom-bar-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bottom-bar-item i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.bottom-bar-item.active {
    color: var(--admin-primary);
    font-weight: 700;
}

.bottom-bar-item.active i {
    color: var(--admin-primary);
    transform: translateY(-2px);
}

.bottom-bar-item:active {
    transform: scale(0.92);
}

/* Category filter horizontal scrollable pills */
.filter-pills-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.filter-pills-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive Table Touch Scrollbar */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

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

.table-responsive::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

/* Breakpoint-specific adaptations */
@media (max-width: 991.98px) {
    body.admin-body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
    .main-content {
        padding: 1.25rem 0.85rem !important;
    }
    .calls-stack {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        width: auto !important;
    }
    .sidebar-col .offcanvas-lg {
        width: min(300px, 85vw);
    }
}

@media (max-width: 767.98px) {
    .table thead th {
        padding: 0.65rem 0.75rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .table tbody td {
        padding: 0.75rem;
        font-size: 0.84rem;
    }
    .btn-sm {
        min-height: 32px;
    }
    .hero-promo-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-promo-img-box {
        align-self: flex-end;
        margin-top: -30px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 0.85rem 0.6rem !important;
    }
    .card-body {
        padding: 1rem 0.85rem;
    }
    .card-header {
        padding: 0.85rem;
    }
    .stat-value {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }
    .brand-title-text {
        font-size: 1.05rem;
    }
    .brand-logo-badge {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .place-card {
        padding: 0.75rem 0.4rem !important;
    }
    .place-card h6 {
        font-size: 0.95rem;
    }
    .order-card .card-header {
        padding: 0.75rem 0.9rem;
    }
    .order-card .card-footer {
        padding: 0.75rem 0.9rem;
    }
    /* Prevents auto-zoom in mobile Safari when focusing inputs */
    .form-control, .form-select {
        font-size: 16px;
    }
    .form-control-sm, .form-select-sm {
        font-size: 14px;
    }
}

/* Extra large screens (Large kitchen displays, TV monitors, 4K POS monitors >= 1400px) */
@media (min-width: 1400px) {
    .main-content {
        max-width: 1800px;
        margin: 0 auto;
    }
}

