/* ============================================
   GILDED PLATE CULINARY - LUXURY MENU APP
   Premium Mobile-First Design
   ============================================ */

/* CSS Variables */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8960C;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    --gold-shine: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    --black-primary: #0A0A0A;
    --black-secondary: #1A1A1A;
    --black-card: #141414;
    --white: #FFFFFF;
    --white-soft: #F5F5F5;
    --gray: #888888;
    --success: #28a745;
    --whatsapp: #25D366;
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cinzel', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--black-primary);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    padding: 20px;
}

.crown-icon-splash {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
    text-shadow: var(--shadow-gold);
    animation: pulse 2s infinite;
}

.utensils-icon-splash {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.splash-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.splash-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-light);
    letter-spacing: 8px;
    font-style: italic;
}

.splash-logo {
    max-width: 320px;
    width: 90%;
    height: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--black-secondary);
    border-radius: 2px;
    margin: 30px auto 0;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* App Container */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 100px;
    background: var(--black-primary);
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--black-secondary) 0%, var(--black-primary) 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--gold-primary);
}

.header-ornament {
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30'%3E%3Cpath d='M0,15 Q50,0 100,15 Q150,30 200,15' stroke='%23D4AF37' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.5;
}

.top-ornament {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.bottom-ornament {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.logo-section {
    position: relative;
    padding: 20px 0;
}

.crown-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
    text-shadow: var(--shadow-gold);
}

.utensils-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.restaurant-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-shadow: none;
    margin-bottom: 5px;
}

.restaurant-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-light);
    letter-spacing: 8px;
    font-style: italic;
}

.order-counter {
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--black-card);
    border: 1px solid var(--gold-primary);
    border-radius: 30px;
    display: inline-block;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-right: 5px;
}

.counter-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Menu Container */
.menu-container {
    padding: 20px 15px;
}

/* Menu Section */
.menu-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 20px 0;
}

.section-ornament {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    padding: 12px 30px;
    background: var(--gold-primary);
    border-radius: 30px;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-item {
    background: linear-gradient(145deg, var(--black-card) 0%, var(--black-secondary) 100%);
    border-radius: var(--border-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-shine);
    transition: left 0.5s ease;
}

.menu-item:hover::before,
.menu-item:active::before {
    left: 100%;
}

.menu-item:hover,
.menu-item:active {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.menu-item.selected {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.item-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gold-primary);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.item-details {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 1px;
}

.item-price {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--gold-light);
    font-weight: 700;
    white-space: nowrap;
}

.item-price small {
    font-size: 0.8rem;
    color: var(--gray);
}

.item-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Item Controls */
.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: var(--black-primary);
    color: var(--gold-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover,
.qty-btn:active {
    background: var(--gold-primary);
    color: var(--black-primary);
    transform: scale(1.1);
}

.qty-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    min-width: 36px;
    text-align: center;
}

/* Footer Info */
.footer-info {
    background: var(--black-secondary);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid var(--gold-primary);
    margin-bottom: 20px;
}

.footer-ornament {
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30'%3E%3Cpath d='M0,15 Q50,0 100,15 Q150,30 200,15' stroke='%23D4AF37' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.5;
    margin-bottom: 20px;
}

.footer-ornament.bottom {
    margin-bottom: 0;
    margin-top: 20px;
}

.experience-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1rem;
    color: var(--white-soft);
    margin-bottom: 8px;
}

.contact-info i {
    color: var(--gold-primary);
    margin-right: 10px;
}

.schedule {
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.reservations {
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-top: 15px;
}

/* Order Bar */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px;
    background: linear-gradient(180deg, transparent 0%, var(--black-primary) 30%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.order-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.order-bar-content {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 50%, var(--gold-light) 100%);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 -5px 30px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 -5px 30px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 -5px 40px rgba(212, 175, 55, 0.6); }
}

.order-bar-content:hover {
    transform: scale(1.02);
}

.order-bar-left {
    flex-shrink: 0;
}

.order-bar-total {
    font-size: 0.8rem;
    color: var(--black-primary);
    font-weight: 500;
    line-height: 1.2;
}

.order-bar-total strong {
    font-size: 1.3rem;
    font-weight: 800;
}

.order-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 1px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--black-secondary);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    overflow: hidden;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--black-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--black-primary);
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    background: var(--black-card);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 4px;
}

.order-item-qty {
    font-size: 0.95rem;
    color: var(--gray);
}

.order-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* Order Summary */
.order-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gold-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.total-row {
    font-size: 1.4rem;
    font-weight: 700;
}

.total-row span:first-child {
    color: var(--gold-primary);
}

.total-row span:last-child {
    color: var(--white);
}

/* Buttons */
.btn-select-table,
.btn-send-whatsapp,
.btn-close-success {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
}

.btn-select-table {
    background: var(--gold-gradient);
    color: var(--black-primary);
}

.btn-select-table:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}

.btn-send-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-send-whatsapp:hover:not(:disabled) {
    background: #128C7E;
    transform: scale(1.02);
}

.btn-send-whatsapp:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close-success {
    background: var(--gold-gradient);
    color: var(--black-primary);
}

/* Table Grid */
.table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.table-btn {
    padding: 25px 15px;
    background: var(--black-card);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.table-btn i {
    font-size: 2rem;
    color: var(--gold-primary);
}

.table-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

.table-btn:hover,
.table-btn.selected {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.table-btn.selected {
    background: var(--gold-primary);
    color: var(--black-primary);
}

.table-btn.selected i {
    color: var(--black-primary);
}

/* Success Modal */
.success-modal-content {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.success-modal-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.order-number-display {
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 600;
    margin: 20px 0 30px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 400px) {
    html {
        font-size: 16px;
    }
    
    .restaurant-name {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .restaurant-subtitle {
        font-size: 1rem;
        letter-spacing: 5px;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding: 10px 20px;
    }
    
    .menu-item {
        padding: 14px;
        gap: 12px;
    }
    
    .item-image {
        width: 75px;
        height: 75px;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-controls {
        flex-direction: column;
        gap: 6px;
    }
    
    .qty-btn {
        width: 38px;
        height: 38px;
    }
    
    .order-bar-center span {
        font-size: 0.85rem;
    }
}

@media (min-width: 501px) {
    .app-container {
        border-left: 2px solid var(--gold-primary);
        border-right: 2px solid var(--gold-primary);
    }
}

/* Empty order state */
.empty-order {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-order i {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
}

.empty-order p {
    font-size: 1.1rem;
}

/* Name Input Section */
.name-input-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.name-label {
    display: block;
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.name-input {
    width: 100%;
    padding: 20px 18px;
    font-size: 1.4rem;
    background: var(--black-card);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
    font-family: var(--font-body);
    transition: var(--transition);
}

.name-input::placeholder {
    color: var(--gray);
    font-style: italic;
}

.name-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

/* Confirm Order Button */
.btn-confirm-order {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
    background: var(--gold-gradient);
    color: var(--black-primary);
}

.btn-confirm-order:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}

.btn-confirm-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Confirm Modal */
.confirm-modal-content {
    max-width: 450px;
}

.confirm-customer-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.confirm-name-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    border: 2px solid var(--gold-primary);
}

.confirm-name-display i {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.confirm-name-display span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.confirm-order-summary h3 {
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
    text-align: center;
}

.confirm-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.confirm-item-name {
    color: var(--white-soft);
}

.confirm-item-price {
    color: var(--gold-light);
    font-weight: 600;
}

.confirm-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: var(--border-radius-sm);
    font-size: 1.4rem;
    font-weight: 700;
    border: 1px solid var(--gold-primary);
}

.confirm-total span:first-child {
    color: var(--gold-primary);
}

.confirm-total span:last-child {
    color: var(--white);
}

/* Name Input Section - Moved to bottom */
.name-input-section {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 20px;
    padding-bottom: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: none;
}

.name-input {
    width: 100%;
    padding: 18px 15px;
    font-size: 1.2rem;
    background: var(--black-card);
    border: 2px solid var(--gold-primary);
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
    font-family: var(--font-body);
    transition: var(--transition);
}

.name-input::placeholder {
    color: var(--gray);
    font-style: normal;
}

.name-input:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

/* Confirm Order Button - WhatsApp Style */
.btn-confirm-order {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
    background: var(--whatsapp);
    color: var(--white);
}

.btn-confirm-order:hover:not(:disabled) {
    transform: scale(1.02);
    background: #128C7E;
}

.btn-confirm-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Total Value */
.modal-total-value {
    font-size: 1.8rem;
    color: var(--gold-light) !important;
}

/* Success Modal Improvements */
.success-message {
    font-size: 1.2rem !important;
    color: var(--white) !important;
    margin-bottom: 10px !important;
}

.success-submessage {
    font-size: 0.95rem !important;
    color: var(--gray) !important;
    line-height: 1.5;
    margin-bottom: 15px !important;
}

.success-thanks {
    font-size: 1.2rem !important;
    color: var(--gold-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.success-order-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.order-number-pill {
    padding: 12px 20px;
    background: var(--black-card);
    border-radius: 30px;
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
    border: 1px solid var(--gold-primary);
}

.btn-entendido {
    padding: 12px 30px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    color: var(--black-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-entendido:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* Success Modal Dark Background */
.success-modal-content {
    background: var(--black-secondary) !important;
    text-align: center;
    padding: 40px 30px !important;
    border: 2px solid var(--gold-primary);
}

.success-modal-content h2 {
    color: var(--gold-primary) !important;
}

.success-icon {
    color: var(--gold-primary) !important;
}

/* Admin Access Button */
.admin-access {
    margin-top: 20px;
    text-align: center;
}

.btn-admin {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 30px;
    color: var(--gold-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
}

/* Admin Modal */
.admin-modal-content {
    max-width: 400px;
}

.admin-login-form {
    text-align: center;
}

.admin-label {
    display: block;
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.admin-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: var(--black-card);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    text-align: center;
}

.admin-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.admin-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-admin-login {
    width: 100%;
    padding: 15px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--black-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-admin-login:hover {
    transform: scale(1.02);
}

/* Order Item in Modal with +/- controls */
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.order-item-qty-btn.minus {
    background: var(--black-primary);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.order-item-qty-btn.plus {
    background: var(--gold-primary);
    color: var(--black-primary);
}

.order-item-qty {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
    color: var(--white);
}

.order-item-info {
    flex: 1;
    margin-left: 15px;
}

.order-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 2px;
}

.order-item-unit-price {
    font-size: 0.85rem;
    color: var(--gray);
}

.order-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* Modal Body with white background for order items */
#order-modal .modal-body {
    background: var(--black-secondary);
}

#order-modal .modal-content {
    background: var(--black-secondary);
}

#order-modal .modal-header {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
}

#order-modal .modal-header h2 {
    color: var(--black-primary);
}

#order-modal .close-modal {
    background: var(--black-primary);
    color: var(--gold-primary);
}

.order-summary {
    background: rgba(212, 175, 55, 0.15);
    margin: 0 -20px;
    padding: 15px 20px;
    border-top: 2px solid var(--gold-primary);
}

.total-row {
    font-size: 1.2rem;
    color: var(--white);
}

.total-row span:first-child {
    color: var(--gold-primary);
}

/* ==========================================
   ORDER SEARCH SECTION
   ========================================== */
.order-search-section {
    margin: 20px 0;
    text-align: center;
}

.btn-search-order {
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--gold-primary);
    border-radius: 30px;
    color: var(--gold-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-search-order:hover {
    background: var(--gold-primary);
    color: var(--black-primary);
}

.btn-search-order i {
    font-size: 1.1rem;
}

/* Search Modal */
.search-modal-content {
    max-width: 450px;
}

.search-form {
    margin-bottom: 20px;
}

.search-label {
    display: block;
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.search-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2rem;
    background: var(--black-card);
    border: 2px solid var(--gold-primary);
    border-radius: var(--border-radius);
    color: var(--white);
    text-align: center;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.search-empty i {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
}

.search-empty p {
    font-size: 1rem;
}

.search-result-item {
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-order-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-display);
}

.result-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.result-status.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.result-status.preparing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.result-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.result-status.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.result-customer {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-customer i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.result-info {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.result-info i {
    color: var(--gold-primary);
    margin-right: 5px;
}

.result-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    text-align: right;
}

/* Order Detail Modal (for customers) */
.order-detail-modal-content {
    max-width: 450px;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-primary);
}

.detail-order-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-display);
}

.detail-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-status.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.detail-status.preparing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.detail-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.detail-status.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.order-detail-customer,
.order-detail-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 12px;
    padding: 12px 15px;
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
}

.order-detail-customer i,
.order-detail-datetime i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    width: 20px;
}

.order-detail-items-list {
    background: var(--black-card);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-item-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.detail-item-qty {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-primary);
    min-width: 40px;
}

.detail-item-name {
    flex: 1;
    font-size: 1rem;
    color: var(--white);
}

.detail-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
}

.order-detail-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--gold-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.order-detail-total-section span:first-child {
    color: var(--gold-primary);
}

.order-detail-total-section span:last-child {
    color: var(--white);
}

.btn-close-detail {
    width: 100%;
    padding: 16px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--black-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-close-detail:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}
