/* ==========================================================
   KALIYANI CLUB — PREMIUM DESIGN SYSTEM & THEME
   Mobile-First App Experience & High-Performance UI
   ========================================================== */

:root {
    --kc-primary: #0f2b48;
    --kc-primary-dark: #071627;
    --kc-primary-light: #1b4974;
    --kc-accent: #c59b27;
    --kc-accent-hover: #dfb239;
    --kc-secondary: #008080;
    --kc-success: #10b981;
    --kc-warning: #f59e0b;
    --kc-danger: #ef4444;
    --kc-info: #0ea5e9;
    --kc-bg: #f4f6fa;
    --kc-card-bg: #ffffff;
    --kc-text: #1e293b;
    --kc-text-muted: #64748b;
    --kc-border: #e2e8f0;
    --kc-shadow: 0 4px 20px -2px rgba(15, 43, 72, 0.08);
    --kc-radius: 16px;
    --kc-bottom-nav-height: 68px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--kc-bg);
    color: var(--kc-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* App Header */
.kc-app-header {
    background: linear-gradient(135deg, var(--kc-primary-dark) 0%, var(--kc-primary) 100%);
    color: #ffffff;
    padding: 14px 20px;
    box-shadow: 0 4px 15px rgba(7, 22, 39, 0.15);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.kc-brand-badge {
    font-family: 'Cinzel', serif, Georgia;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--kc-accent);
}

/* Mobile App Shell & Bottom Navigation */
.kc-app-container {
    padding-bottom: calc(var(--kc-bottom-nav-height) + 40px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(100vh - 60px);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .kc-app-container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .kc-app-container {
        max-width: 1140px;
        padding-bottom: 50px !important;
    }
    .kc-bottom-nav {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .kc-app-container {
        max-width: 1240px;
    }
}

.kc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: var(--kc-bottom-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--kc-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.06);
}

.hover-white:hover {
    color: #ffffff !important;
}

/* Bulk Catering & Party Orders Styles */
.bulk-item-card {
    border-radius: 20px !important;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease;
}

.bulk-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

.bulk-item-card.is-selected {
    border: 2px solid #4338ca !important;
    box-shadow: 0 12px 28px -4px rgba(67, 56, 202, 0.2) !important;
}

.bulk-dish-img-wrap {
    height: 190px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

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

.bulk-item-card:hover .bulk-dish-img {
    transform: scale(1.05);
}

.bulk-qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.15s ease;
}

.bulk-qty-btn:active {
    transform: scale(0.92);
}

.bulk-pax-badge {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.kc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--kc-text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
}

.kc-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.kc-nav-item.active {
    color: var(--kc-primary);
}

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

/* Cards & UI Elements */
.kc-card {
    background: var(--kc-card-bg);
    border-radius: var(--kc-radius);
    border: 1px solid var(--kc-border);
    box-shadow: var(--kc-shadow);
    padding: 20px;
    margin-bottom: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.kc-btn-primary {
    background: linear-gradient(135deg, var(--kc-primary) 0%, var(--kc-primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 43, 72, 0.2);
    transition: all 0.2s ease;
}

.kc-btn-primary:hover, .kc-btn-primary:focus {
    background: linear-gradient(135deg, var(--kc-primary-dark) 0%, var(--kc-primary) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 43, 72, 0.3);
}

.kc-btn-gold {
    background: linear-gradient(135deg, var(--kc-accent) 0%, var(--kc-accent-hover) 100%);
    color: #071627;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
    transition: all 0.2s ease;
}

.kc-btn-gold:hover {
    color: #071627;
    transform: translateY(-1px);
}

/* Digital Membership Card (3D Flip Effect) */
.kc-flip-card-wrapper {
    perspective: 1000px;
    margin: 15px auto 25px auto;
    max-width: 380px;
    height: 230px;
}

.kc-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.kc-flip-card-wrapper.flipped .kc-flip-card-inner {
    transform: rotateY(180deg);
}

.kc-card-front, .kc-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 15px 35px rgba(7, 22, 39, 0.3);
    overflow: hidden;
}

.kc-card-front {
    background: linear-gradient(135deg, #091a2e 0%, #112d4e 60%, #1b4974 100%);
    color: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.3);
}

.kc-card-front::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.kc-card-back {
    background: #091a2e;
    color: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(197, 155, 39, 0.4);
}

.kc-card-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #e0aa3e 0%, #f7d070 50%, #c59b27 100%);
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Badges */
.badge-gold {
    background: rgba(197, 155, 39, 0.15);
    color: #b38615;
    border: 1px solid rgba(197, 155, 39, 0.4);
    font-weight: 600;
}

.badge-nrl {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Admin Sidebar & Content Layout (Fixed, Desktop Collapsible, Mobile Drawer) */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--kc-bg);
}

/* Base Fixed Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    background: var(--kc-primary-dark);
    color: #ffffff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(7, 22, 39, 0.15);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}

.admin-sidebar nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Custom Sleek Scrollbar */
.admin-sidebar nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.admin-sidebar nav::-webkit-scrollbar-thumb:hover {
    background: var(--kc-accent);
}

/* Main Content Area */
.admin-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    width: calc(100% - 260px);
    background: var(--kc-bg);
    padding: 24px 30px;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover, .admin-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--kc-accent);
}

.admin-nav-link i {
    font-size: 1.15rem;
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Collapsible Section Accordion Headings */
.sidebar-heading-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 18px 4px 18px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: color 0.18s ease;
}

.sidebar-heading-btn:hover,
.sidebar-heading-btn:focus {
    color: var(--kc-accent);
    outline: none;
}

.sidebar-heading-btn .chevron-icon {
    font-size: 0.68rem;
    transition: transform 0.22s ease;
}

.sidebar-heading-btn.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

/* Desktop Collapsed / Mini Sidebar (>= 992px) */
@media (min-width: 992px) {
    body.sidebar-collapsed .admin-sidebar {
        width: 72px;
    }
    body.sidebar-collapsed .admin-sidebar .kc-brand-badge,
    body.sidebar-collapsed .admin-sidebar .sidebar-text,
    body.sidebar-collapsed .admin-sidebar .sidebar-heading,
    body.sidebar-collapsed .admin-sidebar .sidebar-heading-btn,
    body.sidebar-collapsed .admin-sidebar .badge {
        display: none !important;
    }
    body.sidebar-collapsed .admin-sidebar .admin-nav-link {
        justify-content: center;
        padding: 12px 0;
        text-align: center;
    }
    body.sidebar-collapsed .admin-sidebar .admin-nav-link i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    body.sidebar-collapsed .admin-content {
        margin-left: 72px;
        width: calc(100% - 72px);
    }
    body.sidebar-collapsed .admin-sidebar .collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

/* Mobile & Tablet Styles (< 992px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(-100%) !important;
        z-index: 1060 !important;
        box-shadow: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .admin-sidebar.show,
    body.mobile-sidebar-open .admin-sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.65) !important;
    }

    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px 12px !important;
    }

    .sidebar-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(7, 22, 39, 0.7) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1055 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease, visibility 0.25s ease !important;
    }

    .sidebar-backdrop.show,
    body.mobile-sidebar-open .sidebar-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.mobile-sidebar-open {
        overflow: hidden !important;
    }
}

/* Touch POS Styles */
.pos-container {
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #0f172a;
    color: #f8fafc;
}

.pos-catalog {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.pos-cart-panel {
    width: 420px;
    background: #1e293b;
    border-left: 1px solid #334155;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991.98px) {
    .pos-container {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .pos-catalog {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 12px 12px 85px 12px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .pos-cart-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 88vh !important;
        max-height: 88dvh !important;
        z-index: 1045 !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: none !important;
        border-top: 1px solid rgba(148, 163, 184, 0.3) !important;
        background: #1e293b !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75) !important;
        transform: translateY(105%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .pos-cart-panel.open {
        transform: translateY(0%) !important;
    }
    .pos-cart-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }
    .pos-cart-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
    .pos-drawer-handle {
        width: 48px;
        height: 5px;
        background: rgba(148, 163, 184, 0.4);
        border-radius: 9999px;
        margin: 0 auto 12px auto;
        cursor: pointer;
    }
    .pos-mobile-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: #0f172a;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        padding: 10px 16px;
        z-index: 1030;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    .pos-dish-image-wrap, .pos-item-image-box {
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }
    .pos-dish-title {
        font-size: 0.78rem !important;
        min-height: 2.1rem !important;
    }
    .pos-price-member {
        font-size: 0.98rem !important;
    }
    .pos-price-guest {
        font-size: 0.62rem !important;
    }
    .pos-touch-add-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
    }
}
@media (min-width: 992px) {
    .pos-mobile-cart-bar,
    .pos-cart-backdrop,
    .pos-drawer-handle,
    .pos-mobile-close-btn {
        display: none !important;
    }
}

/* Modern High-End Touch POS Dish Cards */
.pos-dish-card, .pos-menu-item {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    user-select: none;
    text-align: left;
    position: relative;
}

.pos-dish-card:hover, .pos-menu-item:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    background: #243248;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.pos-dish-card:active, .pos-menu-item:active {
    transform: translateY(-1px) scale(0.985);
}

.pos-dish-image-wrap, .pos-item-image-box {
    width: 100%;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    background: #0b1120;
    overflow: hidden;
    position: relative;
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.pos-dish-image-wrap.d-none, .pos-item-image-box.d-none {
    display: none !important;
}

.pos-dish-img, .pos-item-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pos-dish-card:hover .pos-dish-img, .pos-menu-item:hover .pos-item-image-box img {
    transform: scale(1.08);
}

.pos-dish-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0b1120 0%, #1e293b 100%);
    color: rgba(248, 250, 252, 0.6);
}

.pos-dish-fallback-cat {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.5);
    margin-top: 4px;
}

/* Floating Badges on Card Image */
.pos-floating-badge {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.pos-floating-badge.top-left {
    top: 8px;
    left: 8px;
}

.pos-floating-badge.top-right {
    top: 8px;
    right: 8px;
}

.badge-veg, .badge-nonveg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

.badge-veg {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.badge-veg .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.badge-nonveg {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.badge-nonveg .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.badge-prep {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pos-floating-special {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    letter-spacing: 0.02em;
}

.pos-dish-title {
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.38rem;
}

.pos-price-member {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: -0.01em;
}

.pos-price-guest {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.5);
}

.pos-touch-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.pos-dish-card:hover .pos-touch-add-btn, .pos-menu-item:hover .pos-touch-add-btn {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Kitchen Display System (KDS) */
.kds-container {
    min-height: 100vh;
    background: #090d16;
    color: #f8fafc;
    padding: 20px;
}

.kds-ticket {
    background: #131b2e;
    border: 2px solid #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.kds-ticket.urgent {
    border-color: var(--kc-danger);
}

/* QR Gate Scanner */
.scanner-viewport {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 2px solid var(--kc-accent);
    border-radius: 16px;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Mobile Pagination & Ledger Enhancements */
.pagination {
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.pagination .page-item .page-link {
    border-radius: 8px !important;
    font-size: 0.75rem;
    padding: 5px 10px;
    color: var(--kc-primary);
    border: 1px solid var(--kc-border);
}

.pagination .page-item.active .page-link {
    background-color: var(--kc-primary);
    border-color: var(--kc-primary);
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: var(--kc-text-muted);
    background-color: #f8fafc;
}

/* Clickable Ledger Card Interactivity */
.kc-ledger-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.kc-ledger-card:hover, .kc-ledger-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 43, 72, 0.10) !important;
    border-color: rgba(15, 43, 72, 0.2) !important;
}

/* ==========================================================
   LUXURY MODAL POPUP DESIGN SYSTEM (MEMBER & APP PORTALS)
   ========================================================== */

/* 1. Backdrop with deep blur and midnight ambient tint */
.modal-backdrop {
    background-color: #071627 !important;
}

.modal-backdrop.show {
    opacity: 0.75 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* 2. Modal Dialog Animation & Spring Entrance */
.modal.fade .modal-dialog {
    transform: scale(0.92) translateY(24px) !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease !important;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0) !important;
}

.modal-dialog {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 16px auto !important;
        max-width: calc(100% - 24px) !important;
    }
}

/* 3. Modal Container & Content Card */
.modal-content,
form.modal-content,
.kc-modal-popup .modal-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: relative !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(197, 155, 39, 0.35) !important;
    box-shadow: 0 25px 60px -12px rgba(7, 22, 39, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden !important;
}

/* Dark Modal Card Variant */
.modal-content.bg-dark,
.kc-modal-dark .modal-content {
    background: linear-gradient(145deg, #091a2e 0%, #0d223a 100%) !important;
    border: 1px solid rgba(197, 155, 39, 0.35) !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75) !important;
    color: #f8fafc !important;
}

/* 4. Luxury Modal Header */
.modal-header {
    background: linear-gradient(135deg, #071627 0%, #0f2b48 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(197, 155, 39, 0.25) !important;
    padding: 18px 24px !important;
    position: relative;
    border-top-left-radius: 23px !important;
    border-top-right-radius: 23px !important;
}

.modal-header .modal-title {
    font-family: 'Cinzel', serif, Georgia, system-ui;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
}

.modal-header .modal-title i {
    color: var(--kc-accent) !important;
}

/* Danger Modal Header (Deletions & Cancellations) */
.modal-header.modal-header-danger,
.modal-header.border-danger {
    background: linear-gradient(135deg, #2b0b0e 0%, #4a151b 100%) !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.modal-header.modal-header-danger .modal-title,
.modal-header.border-danger .modal-title {
    color: #fca5a5 !important;
}

.modal-header.modal-header-danger .modal-title i,
.modal-header.border-danger .modal-title i {
    color: #ef4444 !important;
}

/* 5. Circular Frosted Glass Close Button */
.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.15) !important;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
    transform: rotate(90deg) scale(1.1) !important;
    opacity: 1 !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* 6. Polished Modal Body */
.modal-body {
    padding: 24px !important;
    background-color: #ffffff;
}

.modal-content.bg-dark .modal-body,
.kc-modal-dark .modal-body {
    background-color: transparent !important;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0;
    padding: 10px 16px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--kc-accent) !important;
    box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.18) !important;
    background-color: #ffffff !important;
}

.modal-body .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* 7. Modal Footer & Styled Actions */
.modal-footer {
    background: #f8fafc !important;
    border-top: 1px solid #edf2f7 !important;
    padding: 16px 24px !important;
    border-bottom-left-radius: 23px !important;
    border-bottom-right-radius: 23px !important;
    gap: 10px;
}

.modal-content.bg-dark .modal-footer,
.kc-modal-dark .modal-footer {
    background: rgba(15, 23, 42, 0.7) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-footer .btn {
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50rem !important;
    transition: all 0.2s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   8. Enhanced Modal Scrolling Engine (Desktop & Mobile)
   ========================================================== */
.modal-dialog-scrollable {
    max-height: calc(100vh - 2rem) !important;
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Ensure forms inside modals flex properly with .modal-dialog-scrollable */
.modal-content > form,
.modal-dialog-scrollable .modal-content > form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

.modal-dialog-scrollable .modal-body,
.modal-dialog-scrollable .modal-content > form > .modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(90vh - 130px) !important;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer,
.modal-dialog-scrollable .modal-content > form > .modal-footer {
    flex-shrink: 0 !important;
}

/* ==================================================== */
/* KALIYANI CLUB CUSTOM STYLED ALERT & SUCCESS MODALS   */
/* ==================================================== */
.kc-alert-modal .modal-content {
    background: #0f172a !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.15) !important;
    overflow: hidden !important;
    animation: kcAlertPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kc-alert-modal.success .modal-content {
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.2) !important;
}

.kc-alert-modal.danger .modal-content {
    border-color: rgba(239, 68, 68, 0.45) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(239, 68, 68, 0.2) !important;
}

.kc-alert-modal.warning .modal-content {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2) !important;
}

.kc-alert-modal.info .modal-content {
    border-color: rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.2) !important;
}

@keyframes kcAlertPop {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(16px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kc-alert-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kc-alert-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    opacity: 0.35;
    animation: kcRotate 14s linear infinite;
}

@keyframes kcRotate {
    100% { transform: rotate(360deg); }
}

.kc-alert-icon-wrap.success {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.05) 70%);
    color: #10b981;
}

.kc-alert-icon-wrap.danger {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 70%);
    color: #ef4444;
}

.kc-alert-icon-wrap.warning {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
    color: #f59e0b;
}

.kc-alert-icon-wrap.info {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.05) 70%);
    color: #3b82f6;
}

/* ----------------------------------------------------
   EXECUTIVE PRINT REPORT SYSTEM (@media print)
   ---------------------------------------------------- */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 12mm 15mm 12mm;
    }

    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        background: #ffffff !important;
        color: #1e293b !important;
        font-size: 9pt !important;
        line-height: 1.35 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Hide non-printable navigation, sidebar, and action elements */
    .admin-sidebar,
    .sidebar-backdrop,
    #adminSidebar,
    #sidebarBackdrop,
    #sidebarToggle,
    .admin-topbar,
    .d-print-none,
    .no-print,
    .btn,
    button,
    .btn-group,
    .pagination,
    .modal,
    .modal-backdrop,
    .toast-container,
    .alert,
    form.no-print,
    .nav-tabs,
    .breadcrumb,
    .badge-filter,
    .kc-mobile-nav,
    a[href^="javascript:"],
    a[href="#"] {
        display: none !important;
    }

    /* Expand admin wrapper and main content to full paper width */
    .admin-wrapper {
        display: block !important;
        min-height: auto !important;
        background: #ffffff !important;
    }

    .admin-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        background: transparent !important;
    }

    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Responsive grid preservation */
    .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .row > [class*="col-"] {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Card styling for clean ink printing */
    .kc-card, .card {
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 12px !important;
        padding: 10px 14px !important;
    }

    /* Tables formatted for crisp reading */
    .table-responsive {
        overflow: visible !important;
        display: block !important;
    }

    table, .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 10px !important;
        font-size: 8.5pt !important;
        background: #ffffff !important;
    }

    table thead, .table thead {
        display: table-header-group !important;
    }

    table thead th, .table thead th {
        background-color: #0f2b48 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        border: 1px solid #0f2b48 !important;
        padding: 5px 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-size: 7.5pt !important;
    }

    table tbody tr, .table tbody tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    table td, .table td {
        padding: 5px 8px !important;
        border: 1px solid #e2e8f0 !important;
        vertical-align: middle !important;
    }

    table tfoot, .table tfoot {
        display: table-footer-group !important;
        font-weight: bold !important;
        background-color: #f8fafc !important;
    }

    /* Remove link anchors */
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
    a[href]::after {
        content: none !important;
    }

    /* Print-only displays */
    .d-print-block, .print-only {
        display: block !important;
    }
    .d-print-flex {
        display: flex !important;
    }
    .d-print-inline {
        display: inline !important;
    }
    .d-print-table {
        display: table !important;
    }
    .d-print-table-row {
        display: table-row !important;
    }

    .badge {
        border: 1px solid #cbd5e1 !important;
        font-weight: 600 !important;
        padding: 2px 6px !important;
        font-size: 7.5pt !important;
    }
}

/* ==========================================================
   HIGH-CONTRAST BADGES & DIETARY PILLS (MEMBER PORTAL & APP)
   ========================================================== */
.badge.bg-success.bg-opacity-10,
.badge.bg-success.bg-opacity-20,
.badge.bg-success.bg-opacity-25 {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.badge.bg-danger.bg-opacity-10,
.badge.bg-danger.bg-opacity-20,
.badge.bg-danger.bg-opacity-25 {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.badge.bg-warning.bg-opacity-10,
.badge.bg-warning.bg-opacity-15,
.badge.bg-warning.bg-opacity-20,
.badge.bg-warning.bg-opacity-25 {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #b45309 !important;
    border: 1px solid rgba(217, 119, 6, 0.35) !important;
}

.badge.bg-primary.bg-opacity-10,
.badge.bg-primary.bg-opacity-20,
.badge.bg-primary.bg-opacity-25 {
    background-color: rgba(37, 99, 235, 0.14) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
}

.badge.bg-info.bg-opacity-10,
.badge.bg-info.bg-opacity-20,
.badge.bg-info.bg-opacity-25 {
    background-color: rgba(14, 165, 233, 0.14) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

/* Dietary Filter Pills */
.diet-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1.5px solid transparent;
    outline: none;
    flex-shrink: 0;
    line-height: 1.2;
}
.diet-pill-veg {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #047857 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}
.diet-pill-veg:hover, .diet-pill-veg.active {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.diet-pill-nonveg {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #b91c1c !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.diet-pill-nonveg:hover, .diet-pill-nonveg.active {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}
.diet-pill-jain {
    background: rgba(14, 165, 233, 0.14) !important;
    color: #0369a1 !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
}
.diet-pill-jain:hover, .diet-pill-jain.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}
.diet-pill-gf {
    background: rgba(168, 85, 247, 0.14) !important;
    color: #7e22ce !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}
.diet-pill-gf:hover, .diet-pill-gf.active {
    background: #9333ea !important;
    color: #ffffff !important;
    border-color: #9333ea !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.35);
}
.diet-pill-reset {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
.diet-pill-reset:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

