/* ==========================================
   BOCADOS DE NIEVE - DISEÑO VIBRANTE ICE CREAM
   Inspirado en flyer rosa/púrpura/amarillo
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Paleta vibrante tipo flyer de helados */
    --primary: #C2185B;           /* Magenta/Rosa fuerte */
    --primary-light: #FCE4EC;
    --primary-dark: #880E4F;
    
    --secondary: #7B1FA2;         /* Púrpura profundo */
    --secondary-light: #F3E5F5;
    
    --accent: #FFD600;            /* Amarillo brillante */
    --accent-light: #FFFDE7;
    
    --highlight: #E91E63;         /* Rosa vivo */
    --highlight-light: #FCE4EC;
    
    /* Header - Gradiente magenta-púrpura */
    --header-bg: linear-gradient(135deg, #C2185B 0%, #7B1FA2 100%);
    --header-text: #FFFFFF;
    
    /* Neutros */
    --dark: #2E1033;
    --gray-dark: #5C3D6E;
    --gray: #9E8BA8;
    --gray-light: #E8D5F0;
    --light: #FFF5F8;
    --white: #FFFFFF;
    
    /* Estados */
    --success: #27AE60;
    --danger: #EB5757;
    --warning: #F2C94C;
    --whatsapp: #25D366;
    
    /* Sombras premium */
    --shadow-sm: 0 2px 8px rgba(194, 24, 91, 0.08);
    --shadow-md: 0 4px 20px rgba(123, 31, 162, 0.12);
    --shadow-lg: 0 8px 40px rgba(194, 24, 91, 0.18);
    --shadow-card: 0 4px 16px rgba(194, 24, 91, 0.08);
    
    /* Bordes y espaciado */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    
    /* Tipografía */
    --font-primary: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fredoka', 'Quicksand', sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--light);
    min-height: 100vh;
    padding-bottom: 100px;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* ===== Background Pattern - Sunburst + Gradientes ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Sunburst radiante */
        repeating-conic-gradient(
            from 0deg at 50% 0%,
            rgba(194, 24, 91, 0.03) 0deg 10deg,
            rgba(255, 214, 0, 0.02) 10deg 20deg
        ),
        /* Gradientes suaves */
        radial-gradient(ellipse at 20% 20%, rgba(233, 30, 99, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 31, 162, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 214, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Header - Deslizable ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #C2185B 0%, #7B1FA2 50%, #4A148C 100%);
    transform: translateY(0);
    transition: transform var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(194, 24, 91, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 100%,
            rgba(255, 214, 0, 0.08) 0deg 15deg,
            transparent 15deg 30deg
        );
    pointer-events: none;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Order Counter */
.order-counter {
    background: rgba(255, 214, 0, 0.2);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 214, 0, 0.3);
    backdrop-filter: blur(4px);
}

.counter-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.counter-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===== Search Section ===== */
.search-section {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 90;
    background: linear-gradient(180deg, rgba(255, 245, 248, 0.98) 0%, rgba(255, 245, 248, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.08);
    transform: translateY(0);
    transition: transform var(--transition-smooth), top var(--transition-smooth);
}

.search-section.header-hidden {
    top: 0;
}

.search-container {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(194, 24, 91, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    transition: all var(--transition-smooth);
}

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

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #C2185B 0%, #E91E63 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.25);
}

.search-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #AD1457 0%, #C2185B 100%);
}

/* ===== Main Content ===== */
.main-content {
    max-width: 540px;
    margin: 0 auto;
    padding: 130px 16px 0;
    position: relative;
    z-index: 1;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 20px 0 24px;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C2185B, #7B1FA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.welcome-text {
    font-size: 1rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* ===== Menu Sections ===== */
.menu-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(194, 24, 91, 0.06);
    position: relative;
    overflow: hidden;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C2185B, #FFD600, #7B1FA2);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-light);
}

.section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* ===== Menu Items ===== */
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFF9FB 100%);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
    position: relative;
}

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

.menu-item:active {
    transform: scale(0.98);
}

.menu-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FCE4EC 0%, #F3E5F5 100%);
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.15);
}

/* Item Image */
.item-image {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.15);
    border: 3px solid rgba(194, 24, 91, 0.2);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.item-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background: linear-gradient(135deg, #FFD600, #FFC107);
    color: var(--dark);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 214, 0, 0.4);
}

.item-badge.premium {
    background: linear-gradient(135deg, #7B1FA2, #9C27B0);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(123, 31, 162, 0.4);
}

/* Item Info */
.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.item-description {
    font-size: 0.8rem;
    color: var(--gray-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.item-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.item-currency {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}

/* ===== Quantity Controls ===== */
.item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    padding: 5px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.12);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    line-height: 1;
}

.qty-btn.minus {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.qty-btn.minus:active {
    background: var(--danger);
    color: var(--white);
}

.qty-btn.plus {
    background: linear-gradient(135deg, #C2185B, #E91E63);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(194, 24, 91, 0.35);
}

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

.qty-number {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    min-width: 28px;
    text-align: center;
}

/* ===== Contact Section ===== */
.contact-section {
    margin-bottom: 20px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(194, 24, 91, 0.06);
}

.contact-header {
    background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 200%;
    background: rgba(255, 214, 0, 0.08);
    transform: rotate(15deg);
    pointer-events: none;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--gray-light);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
}

.contact-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 10px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C2185B, #7B1FA2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 4px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ===== Order Bar ===== */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 30px rgba(194, 24, 91, 0.12);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
    z-index: 150;
    border-top: 2px solid rgba(194, 24, 91, 0.08);
}

.order-bar.active {
    transform: translateY(0);
}

.order-bar-content {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-total-display {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.total-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.total-amount {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.total-amount small {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}

.review-order-btn {
    flex: 1;
    background: linear-gradient(135deg, #C2185B 0%, #7B1FA2 100%);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.3);
    letter-spacing: 0.3px;
}

.review-order-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(194, 24, 91, 0.4);
}

/* ===== Modal Base ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 16, 51, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

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

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #C2185B 0%, #7B1FA2 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 120px;
    height: 200%;
    background: rgba(255, 214, 0, 0.08);
    transform: rotate(15deg);
    pointer-events: none;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    line-height: 1;
    position: relative;
}

.close-modal:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}

/* Modal Body */
.modal-body {
    padding: 20px;
    max-height: 55vh;
    overflow-y: auto;
}

/* Order Summary */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #FFF5F8, #FFF9FB);
    border-radius: var(--radius-md);
    border: 1px solid rgba(194, 24, 91, 0.06);
}

.order-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 4px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

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

.order-qty-btn.minus {
    background: var(--danger);
    color: var(--white);
}

.order-qty-btn.plus {
    background: var(--success);
    color: var(--white);
}

.order-qty-btn:active {
    transform: scale(0.85);
}

.order-item-qty {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

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

.order-item-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

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

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

/* Order Total Section */
.order-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: linear-gradient(135deg, #FCE4EC, #F3E5F5);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 2px solid rgba(194, 24, 91, 0.12);
}

.total-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-amount-big {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.total-amount-big small {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* Name Input */
.name-input-section {
    margin-bottom: 10px;
}

.name-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}

.name-input {
    width: 100%;
    padding: 18px 20px;
    border: 3px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    transition: all var(--transition-smooth);
    background: var(--white);
}

.name-input::placeholder {
    color: var(--gray-light);
    font-weight: 500;
}

.name-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.12);
}

/* Modal Footer */
.modal-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: var(--light);
}

.confirm-order-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.confirm-order-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.confirm-order-btn:disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== Success Modal ===== */
.success-modal-content {
    text-align: center;
    padding: 40px 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--white) 0%, #FFF5F8 100%);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.35);
}

.success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.success-submessage {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

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

.order-number-display {
    background: linear-gradient(135deg, #FCE4EC, #F3E5F5);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(194, 24, 91, 0.1);
}

.order-number-display span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-dark);
}

.close-success-btn {
    background: linear-gradient(135deg, #C2185B 0%, #7B1FA2 100%);
    color: var(--white);
    border: none;
    padding: 16px 50px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.3);
    transition: all var(--transition-smooth);
}

.close-success-btn:active {
    transform: scale(0.97);
}

/* ===== Search Result Modal ===== */
.search-result-modal {
    max-height: 80vh;
}

.search-result-content {
    padding: 20px;
}

.search-result-order {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-light);
}

.search-result-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.search-result-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.search-result-status.pending {
    background: #FEF3CD;
    color: #856404;
}

.search-result-status.preparing {
    background: #D1ECF1;
    color: #0C5460;
}

.search-result-status.ready {
    background: #D4EDDA;
    color: #155724;
}

.search-result-status.delivered {
    background: #E2E3E5;
    color: #383D41;
}

.search-result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.search-result-row:last-child {
    border-bottom: none;
}

.search-result-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.search-result-value {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}

.search-result-items {
    margin-top: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.search-result-items h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}

.search-result-item-name {
    color: var(--gray-dark);
}

.search-result-item-price {
    color: var(--primary);
    font-weight: 700;
}

.search-result-total {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #FCE4EC, #F3E5F5);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.search-result-total-label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-dark);
}

.search-result-total-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.search-not-found {
    text-align: center;
    padding: 40px 20px;
}

.search-not-found-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.search-not-found h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.search-not-found p {
    font-size: 0.9rem;
    color: var(--gray);
}

.close-search-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #C2185B 0%, #7B1FA2 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.25);
}

.close-search-btn:active {
    transform: scale(0.97);
}

/* ===== Admin Link ===== */
.admin-link {
    position: fixed;
    bottom: 110px;
    right: 16px;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 50;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(194, 24, 91, 0.08);
}

.admin-link:active {
    transform: scale(0.95);
    background: var(--light);
}

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

.empty-order p {
    font-size: 1rem;
    margin-bottom: 6px;
}

.empty-order p:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-dark);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(194, 24, 91, 0.2);
    border-radius: 10px;
}

/* ===== Responsive Desktop ===== */
@media (min-width: 768px) {
    .modal-content {
        border-radius: var(--radius-xl);
        max-height: 85vh;
    }
    
    .modal {
        align-items: center;
        padding: 20px;
    }
    
    .success-modal-content {
        border-radius: var(--radius-xl);
    }
}

/* ===== Prevent iOS Zoom ===== */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* ===== Animation Classes ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.menu-item.selected .item-controls {
    animation: pulse 0.5s ease;
}

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

.menu-section {
    animation: fadeInUp 0.5s ease forwards;
}

.menu-section:nth-child(2) { animation-delay: 0.1s; }
.menu-section:nth-child(3) { animation-delay: 0.2s; }
.menu-section:nth-child(4) { animation-delay: 0.3s; }

/* ===== Shimmer effect on brand name ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.brand-name {
    background: linear-gradient(90deg, #FFFFFF 0%, #FFD600 25%, #FFFFFF 50%, #FFD600 75%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
