/* Premium Device Initialization Overlay */
.init-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.init-card {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    text-align: center;
    animation: initPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes initPop {
    from { transform: scale(0.8) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.init-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    color: #1a89c7;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 25px;
}

.init-card h1 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 800;
}

.init-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 35px;
}

.init-form {
    text-align: left;
}

.btn-initialize {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #1a89c7 0%, #0369a1 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(3, 105, 161, 0.4);
}

.btn-initialize:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(3, 105, 161, 0.5);
}

.btn-initialize:active {
    transform: scale(0.98);
}

:root {
    --bg-main: #f4f7fe;
    --bg-white: rgba(255, 255, 255, 0.95);
    --sidebar-bg: #ffffff;
    --accent-blue: #4318FF;
    --accent-dark-blue: #2B3674;
    --text-main: #2B3674;
    --text-muted: #A3AED0;
    --border-color: #E2E8F0;
    --shadow-soft: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --shadow-hover: 0px 20px 50px rgba(112, 144, 176, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden; /* Avoid scroll on main body */
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 90px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.nav-item i {
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item.active i {
    background: var(--bg-white);
    color: var(--accent-blue);
}

.nav-item:hover i {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Checkout Section Modern */
.checkout-section {
    width: 420px;
    background: var(--bg-white);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 10px 0 30px rgba(112, 144, 176, 0.08);
    z-index: 10;
}

.checkout-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.checkout-header-main {
    margin-bottom: 15px;
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.header-badges {
    display: flex;
    gap: 8px;
}

.checkout-top-nav {
    display: flex;
    justify-content: space-around;
    background: #e1f0ff;
    padding: 10px 5px;
    margin: -15px -15px 15px -15px; /* Pull to edges of container */
    border-bottom: 1px solid #c8e1ff;
}

.nav-item-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #4a5568;
    transition: 0.2s;
}

.nav-item-top i {
    font-size: 1.4rem;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-item-top span {
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-item-top.active i {
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.badge-dine-in {
    background: white;
    border: 1px solid #ccc;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.badge-status.active {
    background: #ebf8ff;
    color: #007bff;
    border: 1px solid #bee3f8;
}

.badge-status.done {
    background: #e6fffa;
    color: #319795;
    border: 1px solid #b2f5ea;
}

.btn-outline-small {
    background: white;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 5px;
}


.header-actions-row {
    display: flex;
    gap: 10px;
}

.btn-outline {
    background: white;
    border: 1px solid #ccc;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    color: #444;
}

.btn-outline:hover {
    background: #f0f0f0;
}

.btn-preparation {
    background: #00bcd4; /* Cyan color from image */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
    transition: 0.2s;
}

.btn-preparation:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
}

.btn-preparation.prepared {
    background: #f6993f; /* Orange */
    box-shadow: 0 4px 10px rgba(246, 153, 63, 0.2);
}

.btn-preparation.prepared:hover {
    box-shadow: 0 6px 15px rgba(246, 153, 63, 0.3);
}

.btn-preparation.delivering {
    background: #48bb78; /* Green */
    box-shadow: 0 4px 10px rgba(72, 187, 120, 0.2);
}

.btn-preparation.delivering:hover {
    box-shadow: 0 6px 15px rgba(72, 187, 120, 0.3);
}

.btn-preparation.done {
    background: #38b2ac; /* Teal */
    cursor: default;
    opacity: 0.8;
}

.order-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(233, 245, 254, 0.6);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-modern:hover {
    transform: translateX(4px);
    background: rgba(233, 245, 254, 0.9);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty-prefix {
    color: #007bff;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
}

/* Caller Name Display (Top Header Row) */
.caller-header-row {
    display: none; /* Controlled by JS */
    background: #ebf4ff;
    color: #2b6cb0;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 15px;
    text-align: center;
    border: 1px solid #bee3f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

.caller-header-row i {
    margin-right: 8px;
    color: #3182ce;
}

/* Delivery Time Display */
.delivery-info-display {
    background: #e6fffa;
    border: 1px dashed #38b2ac;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 0 10px 0;
    font-size: 0.95rem;
    color: #2c7a7b;
    font-weight: 700;
    display: none; /* Controlled by JS */
    animation: fadeIn 0.3s ease;
}

.delivery-info-display i {
    margin-right: 8px;
    color: #38b2ac;
}

/* Cart Notes Display */
.cart-notes-display {
    background: #fff9db;
    border: 1px dashed #fcc419;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #856404;
    display: none; /* Controlled by JS */
    animation: fadeIn 0.3s ease;
}

.cart-notes-display i {
    margin-right: 8px;
    color: #f59f00;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer Controls Styling Update */
.checkout-footer-controls {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 2px 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-right: 12px;
}

.btn-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f7ff;
    color: #007bff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-qty:hover {
    background: #007bff;
    color: white;
}

.item-name-modern {
    color: #d16060; /* Reddish color from image */
    font-weight: 600;
    font-size: 1rem;
}

.item-price-modern {
    font-weight: 600;
    color: #333;
}

.checkout-summary {
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dashed-line {
    border-top: 2px dashed rgba(226, 232, 240, 0.8);
    margin: 15px 0;
}

.total-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-payment {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #7B61FF 100%);
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.25);
}

.btn-payment:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(67, 24, 255, 0.35);
}

.shortcut {
    background: #007bff; /* Blue badge for shortcut */
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: none;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.tabs {
    display: flex;
    background: #e9ecef;
    padding: 5px;
    border-radius: 12px;
}

.tab {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-blue);
    background: transparent;
}

.tab.active {
    background: white;
    box-shadow: var(--shadow-soft);
}

.search-bar {
    flex-grow: 1;
    position: relative;
    max-width: 500px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
}

.search-bar input {
    width: 100%;
    height: 45px;
    border-radius: 25px;
    border: 1px solid #ced4da;
    padding: 0 45px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.logo {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo:active {
    transform: scale(0.95);
}

.logo img {
    height: 40px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    flex-grow: 1;
    padding: 10px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    aspect-ratio: 1 / 1.15;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .card-image {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-size: 3.5rem;
    color: var(--accent-blue);
    overflow: hidden;
}

.p-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    border: 3px solid var(--accent-blue);
    padding: 2px 10px;
    border-radius: 12px;
}

.category-card > span {
    padding: 12px 10px;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.05rem;
    text-align: center;
    color: #1e293b;
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid #f1f5f9;
}

/* Footer Actions */
.main-footer {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-footer {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    font-size: 1rem;
}

.btn-footer.secondary {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.btn-footer.primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-footer.text {
    background: transparent;
    color: var(--text-muted);
}

.btn-footer:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 25px;
    border-radius: var(--radius-lg);
    width: 80%;
    max-width: 600px;
    box-shadow: var(--shadow-hover);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: var(--accent-blue);
}

.order-history-item {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-blue);
}

.oh-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.oh-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.oh-footer {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.empty-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.category-card.item-card {
    position: relative;
}

.item-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #eee;
}

.p-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-dark-blue);
    margin-bottom: 2px;
}

.p-price {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.back-card {
    background: var(--sidebar-bg);
}

.back-card .card-image {
    font-size: 2rem;
    color: var(--accent-blue);
}

.payment-modal-content {
    max-width: 600px;
    width: 95%;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Ensure it never goes off screen */
}

body.dark-mode .payment-modal-content {
    background: #1e293b;
    border-color: #334155;
}

.payment-modal-content .modal-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    flex-shrink: 0;
}

.payment-modal-content .modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-modal-content .modal-header .close {
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.payment-modal-content .modal-header .close:hover {
    color: #ffffff;
}

.payment-modal-body {
    padding: 18px;
    flex: 1;
    overflow-y: auto;
}

.payment-summary-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 18px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

body.dark-mode .payment-summary-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
}

.psb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: #475569;
}

body.dark-mode .psb-row {
    color: #94a3b8;
}

.psb-amount {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f172a;
}

body.dark-mode .psb-amount {
    color: #f8fafc;
}

.psb-row.remaining {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
    color: #ef4444;
}

body.dark-mode .psb-row.remaining {
    border-top-color: #334155;
    color: #f87171;
}

.psb-row.remaining .psb-amount.highlight {
    color: #dc2626;
    font-size: 1.3rem;
}

.psb-row.remaining.paid-complete {
    color: #10b981;
}

.psb-row.remaining.paid-complete .psb-amount.highlight {
    color: #059669;
}

.split-progress-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

body.dark-mode .split-progress-container {
    background: #334155;
}

.split-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    transition: width 0.3s ease, background 0.3s ease;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.modal-method-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    user-select: none;
}

body.dark-mode .modal-method-card {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.modal-method-card .card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

body.dark-mode .modal-method-card .card-icon-wrap {
    background: #1e1b4b;
    color: #818cf8;
}

.modal-method-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

body.dark-mode .modal-method-card .card-title {
    color: #f1f5f9;
}

.modal-method-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

[dir="rtl"] .modal-method-card .card-badge {
    right: auto;
    left: 10px;
}

.modal-method-card:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.12);
}

.modal-method-card.selected {
    border-color: #4f46e5;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

body.dark-mode .modal-method-card.selected {
    background: #1e1b4b;
    border-color: #6366f1;
}

.modal-method-card.selected .card-icon-wrap {
    background: #4f46e5;
    color: #ffffff;
}

.modal-method-card.selected .card-badge {
    background: #4f46e5;
    color: #ffffff;
}

/* Split Payment Area */
.split-payment-area {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

body.dark-mode .split-payment-area {
    background: #0f172a;
    border-color: #334155;
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.split-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .split-header h3 {
    color: #e2e8f0;
}

.split-quick-actions {
    display: flex;
    gap: 8px;
}

.btn-split-action {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

body.dark-mode .btn-split-action {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

.btn-split-action:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.split-entries-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.split-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}

body.dark-mode .split-row {
    background: #1e293b;
    border-color: #334155;
}

.split-select-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.split-select-wrap .select-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

[dir="rtl"] .split-select-wrap .select-icon {
    left: auto;
    right: 10px;
}

.split-select-wrap select {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}

[dir="rtl"] .split-select-wrap select {
    padding: 9px 32px 9px 12px;
}

body.dark-mode .split-select-wrap select {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

.split-input-wrap {
    width: 140px;
    position: relative;
    display: flex;
    align-items: center;
}

.split-input-wrap input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    color: #1e293b;
    outline: none;
}

body.dark-mode .split-input-wrap input {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

.split-input-wrap input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.split-input-wrap .currency-label {
    position: absolute;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
}

.btn-remove-split {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .btn-remove-split {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #f87171;
}

.btn-remove-split:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn-add-split {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    color: #4f46e5;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark-mode .btn-add-split {
    background: #0f172a;
    border-color: #475569;
    color: #818cf8;
}

.btn-add-split:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

body.dark-mode .btn-add-split:hover {
    background: #1e1b4b;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

body.dark-mode .modal-footer {
    background: #0f172a;
    border-color: #334155;
}

.btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .btn-modal-cancel {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
}

.btn-modal-pay {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-pay:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.btn-modal-pay:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

body.dark-mode .btn-modal-pay:disabled {
    background: #334155;
    color: #64748b;
}

/* Open Price Touch Numpad Modal */
.open-price-modal-content {
    max-width: 460px;
    width: 90%;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .open-price-modal-content {
    background: #1e293b;
    border-color: #334155;
}

.open-price-modal-content .modal-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    margin-bottom: 0;
}

.open-price-modal-content .modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-price-modal-content .modal-header .close {
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.open-price-modal-content .modal-header .close:hover {
    color: #ffffff;
}

.open-price-modal-body {
    padding: 28px 24px;
}

.op-display-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #38bdf8;
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.op-currency-symbol {
    font-size: 1.3rem;
    font-weight: 700;
    color: #94a3b8;
}

.op-price-val {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: monospace, sans-serif;
    letter-spacing: 1px;
    padding-left: 10px;
}

[dir="rtl"] .op-price-val {
    padding-left: 0;
    padding-right: 10px;
}

.op-numpad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 4px;
}

.op-key {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .op-key {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.op-key:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.dark-mode .op-key:hover {
    background: #334155;
}

.op-key:active {
    transform: scale(0.96);
}

.op-key-action {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

body.dark-mode .op-key-action {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #f87171;
}

.op-key-action:hover {
    background: #ef4444;
    color: #ffffff;
}

.op-key-zero {
    grid-column: span 2;
}
    color: #777;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-add-split:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Orders View Styling */
.orders-view-container {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.orders-filter-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tab {
    background: white;
    border: 1px solid #e1e8ed;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.filter-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.orders-search-area {
    width: 100%;
}

.orders-search-area input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    background: white;
    font-size: 1rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.orders-table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: #4a5568;
    border-bottom: 2px solid #edf2f7;
}

.orders-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    font-weight: 500;
    vertical-align: middle;
}

.order-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge.done {
    background: #e6fffa;
    color: #319795;
}

.status-badge.declined {
    background: #fff5f5;
    color: #e53e3e;
}

.status-badge.active {
    background: #ebf8ff;
    color: #3182ce;
}

.status-badge.scheduled {
    background: #faf5ff;
    color: #6b46c1;
    border: 1px solid #d6bcfa;
}

/* Scheduled Timer */
.scheduled-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffaf0;
    color: #dd6b20;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #fbd38d;
    white-space: nowrap;
}

.scheduled-timer i {
    animation: rotate 2s linear infinite;
}

.scheduled-timer.due-now {
    background: #fff5f5;
    color: #e53e3e;
    border-color: #feb2b2;
    animation: blink 1s infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.orders-pagination {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.btn-page {
    background: none;
    border: none;
    color: #718096;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-page:hover {
    color: #007bff;
}

/* Updated Footer Layout */
.main-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #edf2f7;
}

.footer-btn-modern {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.footer-btn-modern:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.footer-btn-modern.active {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #3182ce;
}

.footer-btn-modern i {
    font-size: 1.1rem;
}

.footer-btn-modern.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.footer-btn-modern.primary:hover {
    background: #0069d9;
}

.btn-circle-action {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #edf2f7;
    border: none;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-circle-action.blue {
    background: #007bff;
    color: white;
}

.checkout-footer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #ebf4ff;
    color: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.ctrl-btn.danger {
    background: #fff5f5;
    color: #e53e3e;
}

.qty-input-box {
    flex: 1;
    margin: 0 10px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-type-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 180px;
    margin-top: 8px;
    overflow: hidden;
}

.type-item {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-item:hover {
    background: #f0f7ff;
    color: #007bff;
}

.type-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.type-item:not(:last-child) {
    border-bottom: 1px solid #edf2f7;
}

.return-modal-content {
    width: 550px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px;
}

.return-modal-content .modal-header {
    background: #f8fbff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.back-link {
    color: #3182ce;
    font-weight: 700;
    cursor: pointer;
}

.return-select-all {
    padding: 12px 20px;
    background: #f0f7ff;
    border-bottom: 1px solid #e2e8f0;
}

.return-select-all label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2b6cb0;
    cursor: pointer;
}

.return-items-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.return-item-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f7fafc;
    gap: 15px;
}

.return-item-info {
    flex: 1;
}

.return-item-name {
    display: block;
    font-weight: 600;
    color: #2d3748;
}

.return-item-sku {
    font-size: 0.8rem;
    color: #718096;
}

.return-item-qty-status {
    width: 60px;
    text-align: center;
    font-weight: 700;
    color: #4a5568;
}

.return-qty-ctrls {
    display: flex;
    gap: 5px;
}

.btn-return-qty {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #ebf8ff;
    color: #3182ce;
    cursor: pointer;
    font-size: 1rem;
}

.btn-waste {
    background: #a0aec0;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-waste.active {
    background: #e53e3e;
}

.modal-footer-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #f8fbff;
    border-top: 1px solid #edf2f7;
}

.btn-modal-action {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-modal-action.primary {
    background: #ebf4ff;
    color: #3182ce;
}

.btn-modal-action.secondary {
    background: #fff5f5;
    color: #e53e3e;
}

.return-reason-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    flex: 1.5;
}

.other-reason-input {
    flex: 1;
    min-width: 150px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.85rem;
    color: #4a5568;
}

.other-reason-input:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
}

.customer-modal-content, .add-customer-modal-content {
    width: 550px;
    padding: 0 !important;
    border-radius: 12px;
}

.header-left-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-text-action {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text-action.blue { color: #3182ce; }

.divider { color: #e2e8f0; font-weight: 300; }

.customer-search-area {
    padding: 15px 20px;
}

#customer-search-input {
    width: 100%;
    height: 45px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 0 20px;
    font-size: 1rem;
    background: #f8fbff;
}

.customer-items-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 10px 20px 10px;
}

.customer-item-card {
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    transition: 0.2s;
}

.customer-item-card:hover {
    background: #f7fafc;
}

.add-customer-body {
    padding: 20px;
}

.form-group-modern {
    margin-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.form-group-modern input {
    width: 100%;
    height: 40px;
    border: none;
    font-size: 1.05rem;
    color: #2d3748;
    outline: none;
}

.form-group-modern.phone-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-prefix {
    color: #718096;
    font-size: 0.95rem;
    white-space: nowrap;
}

.gender-selection {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.small-modal {
    width: 400px;
}

.form-input-modern {
    width: 100%;
    height: 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 1rem;
    color: #2d3748;
}

.form-textarea-modern {
    width: 100%;
    height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    color: #2d3748;
    resize: none;
}

.btn-full-action {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-full-action.primary {
    background: #007bff;
    color: white;
}

.btn-full-action.primary:hover {
    background: #0069d9;
}

.cart-item-modern.selected {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
}

.more-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 220px;
    margin-top: 10px;
    overflow-y: auto;
    max-height: 400px;
}

.menu-item {
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.menu-item:hover {
    background: #f7fafc;
    color: #007bff;
}

.menu-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Bound Device Badge in Top Nav */
.device-badge-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-right: 15px;
    border: 1px solid #e2e8f0;
}

.device-badge-mini i {
    color: #1a89c7;
    font-size: 1.1rem;
}

.device-badge-mini .db-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.device-badge-mini .db-info span {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
}

.device-badge-mini .db-info small {
    font-size: 0.7rem;
    color: #64748b;
    font-family: monospace;
}

/* Full-Screen Modifier View Styles */
.modifier-view {
    padding: 20px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(244, 247, 254, 0.7);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    box-shadow: 0 -10px 40px rgba(112, 144, 176, 0.15);
}

.modifier-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 15px 25px;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(112, 144, 176, 0.1);
    border: 1px solid var(--glass-border);
}

.main-product-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2c7ebf;
    padding: 5px;
    border-radius: 30px;
}

.btn-qty-large {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.btn-qty-large:hover {
    background: rgba(255,255,255,0.1);
}

.qty-display-large {
    background: white;
    color: #2c7ebf;
    min-width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 4px;
}

.modifier-action-btns {
    display: flex;
    gap: 12px;
}

.btn-mod-action {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    background: rgba(67, 24, 255, 0.1);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mod-action.danger { 
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e; 
}
.btn-mod-action.primary { 
    background: linear-gradient(135deg, var(--accent-blue) 0%, #7B61FF 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.25);
}
.btn-mod-action.primary:hover {
    box-shadow: 0 12px 25px rgba(67, 24, 255, 0.35);
    transform: translateY(-3px);
}
.btn-mod-action:hover { transform: translateY(-3px); }

.modifier-columns-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    flex: 1;
}

.modifier-columns-container.vertical .mod-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modifier-columns-container.horizontal .mod-options-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.modifier-columns-container.horizontal .mod-option-card-new {
    min-width: 140px;
    flex: 1 1 auto;
}

.modifier-column {
    min-width: 250px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.mod-col-header {
    margin-bottom: 10px;
}

.mod-col-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.mod-col-rules {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mod-option-card-new {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
}

.mod-option-card-new.selected {
    border-color: #2c7ebf;
    background: #f0f7ff;
}

.mod-opt-top {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mod-opt-name {
    font-weight: 600;
    color: #2c7ebf;
    font-size: 1rem;
}

.mod-opt-price {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

.mod-opt-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2c7ebf;
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
    margin-top: 5px;
}

.btn-opt-qty {
    background: transparent;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-qty-val {
    background: white;
    color: #2c7ebf;
    min-width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 4px;
}
.item-details-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-modifiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.mod-pill {
    background: #edf2f7;
    color: #4a5568;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.item-name-modern { 
    font-weight: 600; 
    color: #1a202c; 
    font-size: 1rem; 
    text-transform: capitalize; 
    transition: color 0.3s ease; 
}

.cart-item-modern.warning-red .item-name-modern,
.cart-item-modern.warning-red .item-qty-prefix,
.cart-item-modern.warning-red .item-price-modern {
    color: #e53e3e !important;
}


/* Order Details Panel */
.order-details-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 420px;
    width: calc(100% - 420px);
    background: #ffffff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
    padding: 30px 40px;
}

[dir="rtl"] .order-details-panel {
    right: 420px;
    left: 0;
    width: calc(100% - 420px);
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0,0,0,0.08);
}

.order-details-panel.active {
    transform: translateX(0);
}

.od-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

[dir="rtl"] .od-header {
    justify-content: flex-start;
}

.od-back-btn {
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
}

.od-back-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.od-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 35px;
}

.od-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.od-label {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 700;
}

.od-value {
    color: #475569;
    font-size: 1.05rem;
}

.od-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #dcfce3;
    color: #166534;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    width: fit-content;
}

.od-badge.delivery {
    background: #4ade80;
    color: white;
}

.od-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.od-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 40px;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

.od-tab {
    background: transparent;
    border: none;
    padding: 12px 0;
    flex: 1;
    border-radius: 30px;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.od-tab.active {
    background: white;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.od-content-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.od-tab-content {
    display: none;
}

.od-tab-content.active {
    display: block;
}

.od-products-list {
    display: flex;
    flex-direction: column;
}

.od-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.od-product-item:last-child {
    border-bottom: none;
}

.od-product-name {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #475569;
    font-size: 1.15rem;
}

.od-product-qty {
    color: #0ea5e9;
    font-weight: 600;
}

.od-product-price {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.15rem;
}

/* Return Panel UI UX Pro Max */
.return-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 420px;
    width: calc(100% - 420px);
    background: #ffffff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
    padding: 30px 40px;
}

[dir="rtl"] .return-panel {
    right: 420px;
    left: 0;
    width: calc(100% - 420px);
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0,0,0,0.08);
}

.return-panel.active {
    transform: translateX(0);
}

.rp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.rp-header h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin: 0;
}

.rp-back-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-back-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rp-actions-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.rp-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.rp-select-all:hover {
    background: #f1f5f9;
}

.rp-select-all input {
    width: 18px;
    height: 18px;
    accent-color: #0ea5e9;
    cursor: pointer;
}

.rp-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.rp-item-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}

.rp-item-row:hover {
    border-color: #cbd5e1;
}

.rp-checkbox-col {
    display: flex;
    align-items: center;
}

.rp-checkbox-col input {
    width: 20px;
    height: 20px;
    accent-color: #0ea5e9;
    cursor: pointer;
}

.rp-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rp-item-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.rp-item-sku {
    font-size: 0.9rem;
    color: #64748b;
}

.rp-qty-col {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 30px;
    border: 1px solid #f1f5f9;
}

.rp-qty-status {
    font-weight: 700;
    color: #0f172a;
    min-width: 50px;
    text-align: center;
    font-size: 1.1rem;
}

.rp-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #0ea5e9;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rp-qty-btn:hover {
    background: #0ea5e9;
    color: white;
}

.rp-reason-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.rp-btn-waste {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.rp-btn-waste.active {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.rp-reason-input {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.rp-reason-input:focus {
    border-color: #0ea5e9;
}

.rp-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

.rp-btn-confirm {
    background: #ef4444;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.rp-btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Custom Discount Modal UI UX Pro Max */
.discount-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
}

.discount-toggle-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 20px;
}

.disc-toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.disc-toggle-btn.active {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.discount-display-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#discount-display-input {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    padding: 15px;
    color: #0f172a;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#discount-symbol {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: #94a3b8;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.numpad-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #334155;
    padding: 18px 0;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 3px 0 #e2e8f0;
}

.numpad-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #e2e8f0;
    background: #e2e8f0;
}

.numpad-del {
    color: #ef4444;
}

/* =========================================================
   Pro Max Modals (Unified Customer Modal)
   ========================================================= */
.pro-max-modal {
    max-width: 800px !important;
    width: 90% !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    background: #ffffff !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid #edf2f9;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #1a2b4c;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.pro-max-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fdfdfe;
}

.pro-max-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.pro-max-section:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.section-title i {
    color: #3b82f6;
}

.pro-max-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-input-pro {
    width: 100%;
    height: 45px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s;
}

.form-input-pro:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ef4444;
}

input:checked + .slider:before {
    transform: translateX(22px);
}
