/* ================================
   DESIGN TOKENS & ROOT VARIABLES
   ================================ */
:root {
    --bg-primary: #0f0a07;
    --bg-secondary: #1a1209;
    --bg-card: rgba(30, 20, 10, 0.7);
    --bg-glass: rgba(40, 28, 14, 0.55);
    --bg-glass-hover: rgba(50, 35, 18, 0.7);

    --color-brand: #d4943a;
    --color-brand-light: #e8b86d;
    --color-brand-dark: #a06b1e;
    --color-accent: #f0c674;
    --color-accent-glow: rgba(240, 198, 116, 0.3);

    --color-text: #f5efe6;
    --color-text-secondary: #bfa98a;
    --color-text-muted: #7a6a55;

    --color-success: #4caf50;
    --color-danger: #e74c3c;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #128c3e;

    --border-subtle: rgba(212, 148, 58, 0.15);
    --border-glass: rgba(212, 148, 58, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(212, 148, 58, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;

    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================
   RESET & BASE STYLES
   ================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(212, 148, 58, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(160, 107, 30, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(240, 198, 116, 0.02) 0%, transparent 70%);
    z-index: -1;
    animation: ambientFloat 20s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -20px) rotate(3deg); }
}

/* ================================
   HEADER
   ================================ */
#main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 10, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border-glass);
    box-shadow: var(--shadow-glow);
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-brand-light), var(--color-brand), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tagline {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admin-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--color-text-muted);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    color: var(--color-brand);
    border-color: var(--color-brand);
    background: var(--bg-glass-hover);
    transform: rotate(45deg);
}

/* ================================
   MAIN CONTENT
   ================================ */
#main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
}

/* ================================
   CUSTOMER NAME SECTION
   ================================ */
.customer-section {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.6s ease-out;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounceIn 0.8s ease-out;
}

.customer-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.customer-fields {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 400px;
    margin: 0 auto;
}

.name-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.date-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

input[type="date"] {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--color-text);
    outline: none;
    transition: var(--transition-smooth);
    text-align: center;
    color-scheme: dark;
    cursor: pointer;
}

input[type="date"]:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
}

#customer-name {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--color-text);
    outline: none;
    transition: var(--transition-smooth);
    text-align: center;
}

#customer-name::placeholder {
    color: var(--color-text-muted);
}

#customer-name:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.input-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-full);
    opacity: 0;
    background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.4s ease;
}

#customer-name:focus ~ .input-glow {
    opacity: 0.3;
}

/* ================================
   MENU SECTION
   ================================ */
.menu-section {
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.title-emoji {
    font-size: 1.6rem;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Category */
.menu-category {
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.5s ease-out both;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.category-emoji {
    font-size: 1.3rem;
}

.category-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-brand-light);
    letter-spacing: 0.5px;
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Menu Item Card */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: default;
}

.menu-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}

.item-description {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.item-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-accent);
    white-space: nowrap;
    margin-right: 0.5rem;
}

.item-add-btn {
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-add-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(212, 148, 58, 0.4);
}

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

.item-add-btn.added {
    animation: popAdd 0.4s ease;
}

@keyframes popAdd {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); background: var(--color-success); }
    100% { transform: scale(1); }
}

/* ================================
   CART FAB (Floating Action Button)
   ================================ */
.cart-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(212, 148, 58, 0.4);
    z-index: 90;
    transition: var(--transition-bounce);
    animation: fabPulse 2s ease-in-out infinite;
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(212, 148, 58, 0.5);
}

.cart-fab.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(212, 148, 58, 0.4); }
    50% { box-shadow: 0 6px 35px rgba(212, 148, 58, 0.6); }
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* ================================
   CART PANEL
   ================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(420px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.cart-close-btn:hover {
    color: var(--color-danger);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

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

.cart-items::-webkit-scrollbar-thumb {
    background: var(--color-brand-dark);
    border-radius: 4px;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-subtle);
    animation: fadeSlideUp 0.3s ease-out;
}

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

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}

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

.qty-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--color-text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: white;
}

.qty-btn.remove:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.cart-item-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.cart-footer {
    padding: 1.2rem 1.5rem;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.total-price {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.send-order-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 148, 58, 0.3);
}

.send-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 148, 58, 0.4);
}

.send-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

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

/* ================================
   ADMIN PANEL
   ================================ */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(550px, 92vw);
    max-height: 85vh;
    z-index: 301;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.admin-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Admin Login */
.admin-login {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.admin-login .admin-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.admin-login-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.admin-login h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.admin-login p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.admin-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 350px;
    margin: 0 auto;
}

.admin-input-group input {
    flex: 1;
}

.admin-close-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    line-height: 1;
}

.admin-close-btn:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    animation: shake 0.4s ease;
}

.error-msg.hidden {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Admin Dashboard */
.admin-dashboard {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
}

.admin-dashboard.hidden {
    display: none;
}

.admin-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.admin-dash-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.admin-dash-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.admin-dash-content::-webkit-scrollbar {
    width: 4px;
}

.admin-dash-content::-webkit-scrollbar-thumb {
    background: var(--color-brand-dark);
    border-radius: 4px;
}

.admin-section {
    margin-bottom: 1.8rem;
}

.admin-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--color-brand-light);
}

.admin-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Shared Input/Select/Button Styles */
input[type="text"],
input[type="password"],
input[type="number"],
.admin-select {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    outline: none;
    transition: var(--transition-fast);
    width: 100%;
}

input::placeholder {
    color: var(--color-text-muted);
}

input:focus,
.admin-select:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.admin-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bfa98a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}

.admin-select option {
    background: var(--bg-secondary);
    color: var(--color-text);
}

.emoji-input {
    max-width: 60px;
    text-align: center;
    font-size: 1.2rem;
}

.btn-primary {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 148, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
}

/* Admin Menu List */
.admin-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-category-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.admin-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(212, 148, 58, 0.08);
    border-bottom: 1px solid var(--border-subtle);
}

.admin-cat-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-brand-light);
}

.admin-cat-delete {
    background: none;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.admin-cat-delete:hover {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: rgba(231, 76, 60, 0.1);
}

.admin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 0.5rem;
}

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

.admin-item-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--color-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-item-price {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.admin-item-delete {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: var(--transition-fast);
    line-height: 1;
}

.admin-item-delete:hover {
    color: var(--color-danger);
    transform: scale(1.2);
}

/* ================================
   TOAST NOTIFICATIONS
   ================================ */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.8rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    animation: slideInToast 0.4s ease-out, fadeOutToast 0.4s ease-in 2.6s forwards;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 300px;
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-danger);
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutToast {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* ================================
   FOOTER
   ================================ */
#main-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 600px) {
    #main-header {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.15rem;
    }

    .customer-section {
        padding: 1.8rem 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .menu-item {
        padding: 0.8rem 1rem;
    }

    .item-name {
        font-size: 0.88rem;
    }

    .item-price {
        font-size: 0.95rem;
    }

    .cart-fab {
        bottom: 1rem;
        right: 1rem;
        width: 54px;
        height: 54px;
    }

    .admin-login {
        padding: 2rem 1.5rem;
    }

    .admin-input-group {
        flex-direction: column;
    }

    .admin-input-row {
        flex-direction: column;
    }

    .admin-input-row .btn-sm {
        width: 100%;
    }
}

@media (min-width: 601px) {
    .menu-items-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================
   LOADING SPINNER
   ================================ */
.menu-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   CONFIRMATION MODAL
   ================================ */
.confirmation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirmation-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: min(400px, 88vw);
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    z-index: 401;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(76, 175, 80, 0.15);
}

.confirmation-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

.confirmation-modal h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-success);
}

.confirmation-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.confirmation-warning {
    color: var(--color-accent);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.confirmation-warning.hidden {
    display: none;
}

.confirmation-btn {
    margin-top: 1rem;
    padding: 0.8rem 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
}

/* ================================
   CALLMEBOT STATUS
   ================================ */
.callmebot-status {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.callmebot-status.configured {
    color: var(--color-success);
    background: rgba(76, 175, 80, 0.1);
}

.callmebot-status.not-configured {
    color: var(--color-accent);
    background: rgba(240, 198, 116, 0.1);
}

.admin-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.admin-hint strong {
    color: var(--color-text-secondary);
}

/* ================================
   SEND BUTTON LOADING STATE
   ================================ */
.send-order-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.send-order-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* ================================
   UTILITY
   ================================ */
.hidden {
    display: none !important;
}

/* Smooth scroll custom scrollbar for body */
body::-webkit-scrollbar {
    width: 6px;
}

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

body::-webkit-scrollbar-thumb {
    background: var(--color-brand-dark);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand);
}
