/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #F5E6DA;
    --accent-color: #CFAF83;
    --text-dark: #2C3E50;
    --text-light: #7A3E0D;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7e6dc;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* ===========================
   Admin - Customer Notes Highlight
   =========================== */

.customer-notes-highlight {
    animation: customerNotePulse 1.4s ease-in-out infinite alternate;
}

@keyframes customerNotePulse {
    0% {
        background-color: #fff3cd;
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.5);
        transform: translateY(0);
    }
    100% {
        background-color: #ffe08a;
        box-shadow: 0 0 12px 2px rgba(255, 149, 0, 0.7);
        transform: translateY(-1px);
    }
}

/* Background Image */
.background-image {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: url('/bottom-image.webp') no-repeat center bottom;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}


/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 0 0 2rem;
    max-width: 450px;
    margin: 0 auto;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(207, 175, 131, 0.05) 0%, transparent 50%);
    min-height: calc(100vh - 200px);
    margin-top: 0;
}

/* Brand Header - Completely New Implementation */
.brand-header {
    background: linear-gradient(to top, rgba(139, 69, 19, 0.5), rgba(139, 69, 19, 0.1));
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    z-index: 10;
    border-radius: 0 0 20px 20px;
}

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    max-width: 100%;
    height: 150px;
    position: relative;
}

.tour-link {
    position: absolute;
    right: 1rem;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    padding: 0.45rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    z-index: 10;
}

.location-link {
    position: absolute;
    left: 1rem;
    top: 35%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.9);
    color: white;
    padding: 0.45rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    z-index: 10;
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    color: #ffffff;
    overflow: hidden;
}

.icon-pill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.icon-pill i {
    font-size: 0.9rem;
}

.location-link:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tour-link:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tour-link i {
    font-size: 1rem;
}

.tour-link span {
    font-size: 0.85rem;
}

.brand-logo {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    object-fit: contain;
    display: block;
}

.tiny-logo {
    width: auto !important;
    height: 120px !important;
    max-width: 250px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
    z-index: 1;
}

/* Category Navigation */
.category-nav {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 1rem;
}

.category-tabs {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    padding: 0.2rem;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    border: 2px solid rgba(139, 69, 19, 0.2);
    gap: 0;
    overflow: visible;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: fit-content;
    margin: 1.5rem auto 0;
    align-items: stretch;
    height: auto;
}

.category-tabs:hover {
    
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.3);
}

.tab {
    background: transparent;
    border: none;
    border-radius: 18px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 90px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    overflow: hidden;
    transform: translateY(0);
    height: 100%;
    justify-content: center;
    align-self: stretch;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.tab:hover::before {
    transform: translateX(100%);
}

.tab:hover {
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    background: rgba(139, 69, 19, 0.05);
    border-radius: 18px;
}

.tab.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    height: 100%;
    align-self: stretch;
}

.tab i {
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) rotate(0deg);
}

.tab:hover i {
    filter: drop-shadow(0 2px 6px rgba(139, 69, 19, 0.2));
}

.tab.active i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: iconSlide 2s ease-in-out infinite;
}

.tab span {
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) translateY(0);
    color: var(--primary-color);
}

.tab:hover span {
    transform: translateX(1px) translateY(-2px);
    font-weight: 700;
}

.tab.active span {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.tab:active {
    transition: all 0.1s ease;
}

.tab:active i {
    transform: translateX(-1px) scale(1.05) rotate(3deg);
}



/* Remove the animated background to prevent duplication */

/* Enhanced tab animations */
.tab {
    animation: slideInUp 0.5s ease-out;
}

.tab:nth-child(1) { animation-delay: 0.1s; }
.tab:nth-child(2) { animation-delay: 0.2s; }
.tab:nth-child(3) { animation-delay: 0.3s; }

/* Remove pulse animation to prevent duplication */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
        transform: translateY(-4px) scale(1.05);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 69, 19, 0.6);
        transform: translateY(-6px) scale(1.08);
    }
}

@keyframes iconSlide {
    0%, 100% {
        transform: translateX(0) scale(1.15) rotate(0deg);
    }
    25% {
        transform: translateX(-2px) scale(1.2) rotate(-1deg);
    }
    75% {
        transform: translateX(2px) scale(1.2) rotate(1deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

@keyframes pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Menu Section */
.menu-section {
    margin-bottom: 2rem;
    overflow: visible;
    padding-top: 2rem;
}

.menu-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-y: visible;
}

.menu-grid::-webkit-scrollbar {
    display: none;
}

/* Menu Item */
.menu-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 1rem 1rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
    min-width: 160px;
    flex-shrink: 0;
    margin-bottom: 2rem;
    overflow: visible;
    margin-top: 2rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-item:hover::before {
    transform: scaleX(1);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.menu-item-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--shadow), 0 0 0 0 rgba(139, 69, 19, 0.4);
    border: 3px solid var(--primary-color);
    z-index: 2;
    transition: var(--transition);
}

.menu-item-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover .menu-item-icon::before {
    opacity: 1;
}

.menu-item:hover .menu-item-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.menu-item-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: var(--transition);
    
}

.menu-item:hover .menu-item-icon img {
    transform: scale(1.1);
}

.menu-item-content {
    margin-top: 3rem;
}

.menu-item-name {
    margin-bottom: 0.5rem;
}

.menu-item-name .english {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.menu-item-name .arabic {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Noto Sans Arabic', sans-serif;
    opacity: 0.9;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.menu-item-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.quantity-btn:hover {
    transform: scale(1.1);
    background: var(--text-dark);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.quantity-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Order Summary */
.order-summary {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 230, 218, 0.9));
    padding: 1rem 1rem 1rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 32px rgba(139, 69, 19, 0.15);
    z-index: 100;
    max-width: 450px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(139, 69, 19, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    user-select: none;
}

.order-summary:active {
    cursor: grabbing;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 2px;
    z-index: 101;
}

/* Compact Order View */
.order-compact {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.show-order-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.show-order-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.show-order-btn .total-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.place-order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Detailed Order View */
.order-detailed {
    animation: slideDown 0.3s ease-out;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.order-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.hide-order-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hide-order-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer Information Form */
.customer-info-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.customer-info-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.customer-info-section .form-group {
    margin-bottom: 1rem;
}

.customer-info-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.customer-info-section input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.customer-info-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.customer-info-section small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

.customer-info-section input:invalid {
    border-color: #dc3545;
}

.customer-info-section input:valid {
    border-color: #28a745;
}

.customer-info-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: var(--transition);
}

.customer-info-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f5f5f5;
}

.autocomplete-phone {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 4px;
}

.autocomplete-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.autocomplete-car {
    font-size: 13px;
    color: #666;
}

.autocomplete-notes {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.order-summary.show {
    bottom: 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100%;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.order-items {
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.empty-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-controls button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.order-item-controls button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.order-item-total {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.order-item-name {
    color: var(--text-dark);
    font-weight: 500;
}

.order-item-details {
    display: flex;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.order-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
}

.order-button:hover:not(:disabled)::before {
    left: 100%;
}

.order-button:active:not(:disabled) {
    transform: translateY(0);
}

.order-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Responsive Design */
/* Small phones - very compact sizing */
@media (max-width: 375px) {
    .main-content {
        padding: 0.3rem 0.3rem 90px;
    }
    
    .brand-header {
        margin-bottom: -0.5rem;
    }
    
    .brand-container {
        height: 80px;
        padding: 0.3rem;
    }
    
    .tour-link {
        right: 0.5rem;
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .location-link {
        left: 0.5rem;
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }
    
    .icon-pill {
        width: 1.4rem;
        height: 1.4rem;
    }
    
    .tour-link i {
        font-size: 0.9rem;
    }
    
    .tour-link span {
        font-size: 0.75rem;
    }
    
    .tiny-logo {
        width: auto !important;
        height: 80px !important;
        max-width: 150px !important;
        max-height: 80px !important;
    }
    
    .category-nav {
        margin-bottom: 1rem;
        margin-top: 0.5rem;
    }
    
    .category-tabs {
        padding: 0.08rem;
        border-radius: 10px;
        margin: 0.3rem auto 0;
    }
    
    .tab {
        padding: 0.35rem 0.4rem;
        min-width: 55px;
        border-radius: 8px;
        gap: 0.15rem;
    }
    
    .tab i {
        font-size: 0.7rem;
    }
    
    .tab span {
        font-size: 0.6rem;
    }
    
    .menu-section {
        margin-bottom: 0.8rem;
        padding-top: 0.8rem;
    }
    
    .menu-grid {
        gap: 0.5rem;
        padding: 0.4rem 0.3rem;
    }
    
    .menu-item {
        padding: 1rem 0.5rem 0.5rem;
        min-width: 110px;
        border-radius: 10px;
    }
    
    .menu-item-icon {
        width: 30px;
        height: 30px;
        top: -10px;
    }
    
    .menu-item-icon img {
        width: 18px;
        height: 18px;
    }
    
    .menu-item-content {
        margin-top: 1.5rem;
    }
    
    .menu-item-name .english {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .menu-item-name .arabic {
        font-size: 0.65rem;
    }
    
    .menu-item-price {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }
    
    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 0.85rem;
    }
    
    .quantity-display {
        font-size: 0.8rem;
        min-width: 26px;
    }
    
    .order-summary {
        padding: 0.7rem;
        border-radius: 14px 14px 0 0;
    }
    
    .order-summary-header {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .order-item {
        padding: 0.4rem 0;
        font-size: 0.75rem;
    }
    
    .order-total {
        font-size: 0.95rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .submit-order-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .customer-info-section {
        padding: 0.7rem;
    }
    
    .customer-info-section input {
        padding: 0.5rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .background-image {
        height: 180px;
    }
}

/* Medium phones */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem 0.4rem 100px;
    }
    
    .brand-container {
        height: 100px;
        padding: 0.5rem;
    }
    
    .tour-link {
        right: 0.7rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 11px;
    }
    
    .location-link {
        left: 0.7rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 11px;
    }
    
    .icon-pill {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    .tour-link i {
        font-size: 0.95rem;
    }
    
    .tour-link span {
        font-size: 0.8rem;
    }
    
    .tiny-logo {
        width: auto !important;
        height: 100px !important;
        max-width: 200px !important;
        max-height: 100px !important;
    }
    
    .category-nav {
        margin-bottom: 1rem;
        margin-top: 0.6rem;
    }
    
    .category-tabs {
        padding: 0.1rem;
        border-radius: 12px;
        margin: 0.5rem auto 0;
    }
    
    .tab {
        padding: 0.45rem 0.5rem;
        min-width: 65px;
        border-radius: 10px;
        gap: 0.2rem;
    }
    
    .tab i {
        font-size: 0.8rem;
    }
    
    .tab span {
        font-size: 0.7rem;
    }
    
    .menu-section {
        margin-bottom: 1rem;
        padding-top: 1rem;
    }
    
    .menu-grid {
        gap: 0.6rem;
        padding: 0.5rem 0.4rem;
    }
    
    .menu-item {
        padding: 1.3rem 0.6rem 0.6rem;
        min-width: 120px;
        border-radius: 12px;
    }
    
    .menu-item-icon {
        width: 36px;
        height: 36px;
        top: -13px;
    }
    
    .menu-item-icon img {
        width: 20px;
        height: 20px;
    }
    
    .menu-item-content {
        margin-top: 2rem;
    }
    
    .menu-item-name .english {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .menu-item-name .arabic {
        font-size: 0.7rem;
    }
    
    .menu-item-price {
        font-size: 0.85rem;
        margin: 0.4rem 0;
    }
    
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .quantity-display {
        font-size: 0.85rem;
        min-width: 28px;
    }
    
    .order-summary {
        padding: 0.8rem;
        border-radius: 15px 15px 0 0;
    }
    
    .order-summary-header {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .order-item {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .order-total {
        font-size: 1rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }
    
    .submit-order-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        margin-top: 0.6rem;
    }
    
    .customer-info-section {
        padding: 0.8rem;
    }
    
    .customer-info-section input {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .background-image {
        height: 220px;
    }
}

/* Medium screens - balanced spacing */
@media (min-width: 768px) and (max-width: 1199px) {
    .menu-item-content {
        margin-top: 2.2rem;
    }
    
    .menu-item-icon {
        top: -35px;
    }
    
    .menu-item {
        padding: 2.2rem 1rem 1rem;
    }
}

/* Large screens - more spacing */
@media (min-width: 1200px) {
    .menu-item-content {
        margin-top: 2.5rem;
    }
    
    .menu-item-icon {
        top: -40px;
    }
    
    .menu-item {
        padding: 2.5rem 1rem 1rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.menu-item {
    animation: fadeInUp 0.5s ease-out;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

/* Tab animations */
.tab {
    animation: slideInRight 0.3s ease-out;
}

.tab:nth-child(1) { animation-delay: 0.1s; }
.tab:nth-child(2) { animation-delay: 0.2s; }
.tab:nth-child(3) { animation-delay: 0.3s; }

/* Quantity button animations */
.quantity-btn:active {
    animation: bounce 0.6s ease;
}

/* Order item animations */
.order-item {
    animation: slideInRight 0.3s ease-out;
}

/* Loading state for order button */
.order-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.order-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Horizontal Quantity Controls */
.quantity-controls.horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quantity-controls.horizontal .quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.quantity-controls.horizontal .quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Additions Button */
.additions-button-container {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.additions-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.additions-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Additions Modal */
.additions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.additions-modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.additions-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--accent-color);
    background: var(--secondary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.additions-modal-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
}

.additions-modal-body {
    padding: 1.5rem;
}

.additions-modal .addition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(245, 230, 218, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

.additions-modal .addition-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.additions-modal .addition-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.additions-modal .addition-details h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.additions-modal .addition-details .arabic-name {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

.additions-modal .addition-details .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.addition-order-item {
    background: rgba(245, 230, 218, 0.6);
    border-left: 4px solid var(--accent-color);
    margin-left: 1rem;
}

.addition-order-item .item-name {
    color: var(--primary-color);
    font-style: italic;
}

.addition-order-item .item-price {
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add to Cart Feedback Animation */
.add-to-cart-feedback {
    position: fixed;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    animation: bounceUp 0.8s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes bounceUp {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -60%) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -100%) scale(0.8);
        opacity: 0;
    }
}

/* Order Success Notification */
.order-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-hover);
    z-index: 1000;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==========================================================================
   GPOS-8380 80mm Thermal Receipt Printing System
   ========================================================================== */

/* Off-screen container on screen (guarantees WebKit has computed layout prior to print) */
#thermalPrintContainer {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 80mm;
    opacity: 0;
    pointer-events: none;
    z-index: -100;
}

/* Screen Action Buttons on Order Cards */
.print-btn,
.print-receipt-btn {
    background: #2c3e50 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.print-btn:hover,
.print-receipt-btn:hover {
    background: #1a252f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.3);
}

.print-btn:active,
.print-receipt-btn:active {
    transform: translateY(0);
}

/* Receipt Modal & Live 80mm Preview */
.receipt-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.receipt-modal-window {
    background: #f5f5f7;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.receipt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.receipt-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.receipt-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #86868b;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.receipt-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.receipt-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* Paper Roll Visual Preview */
.receipt-paper-roll {
    background: #ffffff;
    padding: 1.25rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 6px dashed #dcdde1;
    border-bottom: 6px dashed #dcdde1;
    font-family: 'Courier New', Courier, monospace, 'Noto Sans Arabic';
    color: #000000;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Method Selector Tabs & Buttons */
.print-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.method-btn {
    background: #ffffff;
    border: 1.5px solid #d2d2d7;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.method-btn i {
    font-size: 1.3rem;
    color: #8b4513;
}

.method-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d1d1f;
}

.method-btn small {
    font-size: 0.68rem;
    color: #86868b;
}

.method-btn:hover {
    border-color: #8b4513;
    background: #fff8f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.method-btn.active {
    border-color: #8b4513;
    background: #fff8f3;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

/* Thermal Width Chips */
.receipt-width-selector {
    animation: fadeInModal 0.2s ease-out;
}

.size-chips-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-chip {
    background: #ffffff;
    border: 1.5px solid #d4c3b7;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3a2213;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.size-chip:hover {
    border-color: #8b4513;
    background: #fffdfb;
}

.size-chip.active {
    background: #8b4513 !important;
    border-color: #8b4513 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
}

.size-chip.active i {
    color: #ffffff;
}

/* Touch and WebKit event protections for iPad Safari */
.receipt-print-cta,
.method-btn,
.action-btn.print-receipt-btn,
.action-btn.print-btn,
.size-chip {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.receipt-print-cta *,
.method-btn *,
.size-chip * {
    pointer-events: none;
}

/* Primary Print Action CTA */
.receipt-action-bar {
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.75rem;
}

.receipt-print-cta {
    flex: 1;
    background: #8b4513;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.25);
}

.receipt-print-cta:hover {
    background: #73390f;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.35);
}

.receipt-print-cta:disabled {
    background: #c7c7cc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Feedback Alerts */
.print-status-banner {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.75rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.print-status-banner.info {
    background: #e8f2fe;
    color: #1a73e8;
    display: flex;
}

.print-status-banner.success {
    background: #e6f4ea;
    color: #137333;
    display: flex;
}

.print-status-banner.error {
    background: #fce8e6;
    color: #c5221f;
    display: flex;
}

/* Bridge Settings Drawer */
.bridge-settings-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid #e5e5ea;
    font-size: 0.8rem;
}

.bridge-settings-panel label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.3rem;
}

.bridge-settings-panel input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* Receipt Brand Logo */
.receipt-brand-logo-wrap {
    text-align: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.receipt-brand-logo {
    max-width: 220px;
    width: 65%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: contrast(130%);
}

/* ==========================================================================
   @media print — 80mm (72mm Printable) Precision Thermal Layout
   ========================================================================== */

@media print {
    /* 1. Page Setup for 80mm Roll */
    @page {
        size: 80mm auto;
        margin: 0;
    }

    /* 2. Hide everything except thermal receipt */
    html, body {
        width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body > *:not(#thermalPrintContainer) {
        display: none !important;
    }

    .receipt-modal-backdrop,
    .admin-tabs,
    .brand-header,
    .category-nav,
    .menu-section,
    .order-summary,
    .background-image,
    .admin-section {
        display: none !important;
    }

    /* 3. Reveal and Style Receipt Container */
    #thermalPrintContainer {
        display: block !important;
        position: static !important;
        left: 0 !important;
        top: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 76mm !important;
        max-width: 80mm !important;
        padding: 0.5mm 1mm !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans Arabic', Courier, monospace !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .thermal-receipt {
        width: 100% !important;
        color: #000000 !important;
    }

    /* Header & Brand Logo */
    .receipt-brand-logo-wrap {
        text-align: center !important;
        margin-bottom: 4px !important;
    }

    .receipt-brand-logo {
        max-width: 50mm !important;
        width: 65% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
        filter: contrast(140%) grayscale(100%) !important;
    }

    .receipt-header {
        text-align: center !important;
        margin-bottom: 6px !important;
    }

    .cafe-brand-title {
        font-size: 21px !important;
        font-weight: 900 !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .cafe-brand-title-ar {
        font-size: 20px !important;
        font-weight: 800 !important;
        margin-top: 2px !important;
    }

    .receipt-tagline {
        font-size: 12px !important;
        font-weight: 600 !important;
        margin-top: 2px !important;
    }

    .receipt-title-badge {
        font-size: 14px !important;
        font-weight: 800 !important;
        margin: 4px 0 !important;
        text-transform: uppercase !important;
    }

    .receipt-divider {
        font-family: monospace !important;
        font-size: 13px !important;
        text-align: center !important;
        margin: 3px 0 !important;
        letter-spacing: -1px !important;
        overflow: hidden !important;
    }

    /* Metadata */
    .receipt-meta-section {
        margin: 6px 0 !important;
        font-size: 13.5px !important;
    }

    .meta-row {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 2px !important;
    }

    .meta-label {
        font-weight: 700 !important;
    }

    .meta-value.bold {
        font-weight: 900 !important;
    }

    /* Notes Box */
    .receipt-notes-box {
        border: 1.5px solid #000000 !important;
        padding: 4px 6px !important;
        margin: 6px 0 !important;
        text-align: center !important;
        border-radius: 4px !important;
    }

    .notes-header {
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .notes-content {
        font-size: 14px !important;
        font-weight: 800 !important;
        margin-top: 2px !important;
    }

    /* Items Table */
    .receipt-items-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 4px 0 !important;
        font-size: 14.5px !important;
    }

    .receipt-items-table th {
        font-size: 13px !important;
        font-weight: 800 !important;
        border-bottom: 1px dashed #000000 !important;
        padding: 4px 0 !important;
    }

    .col-qty {
        width: 14% !important;
        text-align: left !important;
        font-weight: 800 !important;
        vertical-align: top !important;
    }

    .col-desc {
        width: 56% !important;
        text-align: left !important;
        vertical-align: top !important;
    }

    .col-total {
        width: 30% !important;
        text-align: right !important;
        font-weight: 800 !important;
        vertical-align: top !important;
    }

    .receipt-item-row td {
        padding: 3px 0 !important;
    }

    .item-name-en {
        font-weight: 800 !important;
        font-size: 14.5px !important;
    }

    .ar-name {
        display: block !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        font-family: 'Noto Sans Arabic', sans-serif !important;
    }

    .item-unit-price {
        font-size: 12px !important;
        font-style: italic !important;
    }

    /* Totals */
    .receipt-totals-section {
        margin: 6px 0 !important;
    }

    .total-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .grand-total .total-label {
        font-size: 17px !important;
        font-weight: 800 !important;
    }

    .grand-total .total-value {
        font-size: 21px !important;
        font-weight: 900 !important;
    }

    /* Barcode */
    .receipt-barcode-section {
        text-align: center !important;
        margin: 8px 0 4px !important;
    }

    .barcode-lines {
        font-family: monospace !important;
        font-size: 16px !important;
        letter-spacing: 2px !important;
    }

    .barcode-text {
        font-family: monospace !important;
        font-size: 10px !important;
    }

    /* Footer */
    .receipt-footer {
        text-align: center !important;
        margin-top: 6px !important;
        font-size: 11px !important;
    }

    .footer-msg-ar {
        font-family: 'Noto Sans Arabic', sans-serif !important;
        font-size: 12px !important;
    }

    .footer-url {
        font-size: 10px !important;
        margin-top: 2px !important;
    }

    /* Paper tear clearance */
    .thermal-cut-spacer {
        display: block !important;
        height: 18mm !important;
    }
}

