/* ========================================
   QR MENU SYSTEM - MASTER STYLESHEET
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-md {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.rounded {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.75rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-2xl {
    border-radius: 1.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.06);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hidden {
    display: none;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.transition {
    transition: all 0.3s ease;
}

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .md-hidden {
        display: none;
    }
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}

.admin-sidebar .brand {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-sidebar .brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-sidebar .brand span {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar nav a.active {
    color: #D4A574;
    background: rgba(212, 165, 116, 0.08);
    border-left-color: #D4A574;
}

.admin-sidebar nav a i {
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    background: #f5f5f7;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: calc(100vw - 280px);
}

.admin-topbar {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-topbar h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-body {
    padding: 2rem;
}

.welcome-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-content {
        margin-left: 0;
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* CSS-only mobile sidebar toggle */
.sidebar-checkbox {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    backdrop-filter: blur(2px);
    cursor: pointer;
}

/* Mobile top header bar */
.mobile-top-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 55;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-top-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.mobile-top-brand i {
    font-size: 1.2rem;
    color: #D4A574;
}

.mobile-top-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mobile-header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.mobile-header-menu-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Old standalone mobile menu btn — hidden, replaced by header */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-top-header {
        display: flex;
    }

    .admin-content {
        padding-top: 52px;
    }

    .admin-topbar {
        padding-right: 1rem;
    }

    /* When checkbox checked: show sidebar + overlay */
    .sidebar-checkbox:checked ~ .sidebar-overlay {
        display: block;
    }

    .sidebar-checkbox:checked ~ .admin-sidebar {
        transform: translateX(0);
    }
}

/* ---------- FORM STYLES ---------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #D4A574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.form-control::placeholder {
    color: #9ca3af;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #D4A574, #c4956a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c4956a, #b48560);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ---------- CARDS ---------- */
.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ---------- TABLE ---------- */
.table-container,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

tbody tr:hover {
    background: #fafafa;
}

/* ---------- BADGE ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-new {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

.badge-popular {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

/* ---------- ITEM CARD LIST (replaces tables) ---------- */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.item-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.item-card-image img {
    width: 52px;
    height: 52px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.item-card-image {
    flex-shrink: 0;
}

.item-card-no-image {
    width: 52px;
    height: 52px;
    border-radius: 0.5rem;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 1.1rem;
}

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

.item-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.item-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.item-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .item-card-body {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .item-card-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid #f3f4f6;
    }
}

/* ---------- ALERT ---------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ---------- AUTH PAGES ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a2e;
}

.auth-card .logo p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-links a {
    color: #D4A574;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.validation-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---------- LANDING PAGE ---------- */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
}

.landing-hero .hero-content {
    position: relative;
    z-index: 1;
}

.landing-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.landing-hero h1 span {
    color: #D4A574;
}

.landing-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 1.5rem;
    max-width: 500px;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
}

.landing-nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.landing-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.landing-nav .nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.landing-nav .nav-links a:hover {
    color: white;
}

.landing-features {
    padding: 6rem 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #D4A574;
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
    color: #D4A574;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.landing-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-align: center;
}

.landing-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.landing-footer {
    padding: 3rem 0;
    background: #0a0a1a;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.875rem;
}

/* Landing nav mobile toggle */
.nav-checkbox {
    display: none;
}

.nav-hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s;
}

.nav-hamburger:active {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.25rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .landing-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .landing-nav .nav-links a {
        padding: 0.85rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .landing-nav .nav-links .btn {
        margin: 0.5rem 1.5rem;
        text-align: center;
    }

    .nav-checkbox:checked~.nav-links {
        display: flex;
    }
}

/* ---------- THEME SELECTOR ---------- */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.theme-option {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.theme-option:hover {
    border-color: #D4A574;
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: #D4A574;
    background: rgba(212, 165, 116, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.theme-option .preview {
    height: 80px;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.theme-option .name {
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   THEME 1: ELEGANT (Luxury Gold)
   ============================================= */
.menu-elegant {
    --primary: #D4A574;
    --secondary: #2C1810;
    --bg: #FDF8F4;
    --card-bg: #FFFFFF;
    --text: #2C1810;
    --text-light: #8B7355;
    --accent: #B8860B;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.menu-elegant .menu-header {
    background: linear-gradient(180deg, #2C1810 0%, #1a0f09 100%);
    color: white;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.menu-elegant .menu-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.menu-elegant .menu-header .cafe-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    margin: 0 auto 1rem;
    position: relative;
}

.menu-elegant .menu-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
}

.menu-elegant .menu-header .divider {
    width: 80px;
    height: 2px;
    background: var(--primary);
    margin: 1rem auto;
    position: relative;
}

.menu-elegant .menu-header .divider::before,
.menu-elegant .menu-header .divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.5rem;
}

.menu-elegant .menu-header .divider::before {
    left: -15px;
}

.menu-elegant .menu-header .divider::after {
    right: -15px;
}

.menu-elegant .menu-header p {
    opacity: 0.7;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    position: relative;
}

.menu-elegant .menu-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: white;
    border-bottom: 1px solid #e8ddd0;
    position: sticky;
    top: 0;
    z-index: 10;
    scrollbar-width: none;
}

.menu-elegant .menu-nav::-webkit-scrollbar {
    display: none;
}

.menu-elegant .menu-nav button {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    background: none;
    cursor: pointer;
}

.menu-elegant .menu-nav button:hover,
.menu-elegant .menu-nav button.active {
    color: var(--secondary);
    border-bottom-color: var(--primary);
}

.menu-elegant .category-section {
    padding: 2.5rem 1.5rem;
}

.menu-elegant .category-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.menu-elegant .category-desc {
    text-align: center;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.menu-elegant .menu-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f0e6d8;
    transition: all 0.3s;
    align-items: flex-start;
}

.menu-elegant .menu-item:hover {
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.08);
    transform: translateY(-2px);
}

.menu-elegant .menu-item .item-image {
    width: 100px;
    height: 100px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-elegant .menu-item .item-info {
    flex: 1;
}

.menu-elegant .menu-item .item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-elegant .menu-item .item-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.menu-elegant .menu-item .item-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.menu-elegant .menu-item .item-meta span {
    font-size: 0.7rem;
    color: var(--text-light);
    background: #f8f3ed;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.menu-elegant .menu-item .item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-family: 'Playfair Display', serif;
}

.menu-elegant .menu-item .item-price .old-price {
    text-decoration: line-through;
    color: #ccc;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.menu-elegant .menu-footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.menu-elegant .menu-footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu-elegant .menu-footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.menu-elegant .menu-footer .social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* =============================================
   THEME 2: MODERN (Bold & Clean)
   ============================================= */
.menu-modern {
    --primary: #FF6B35;
    --secondary: #004E89;
    --bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text: #1B1B1B;
    --text-light: #6C757D;
    --gradient: linear-gradient(135deg, #FF6B35, #F7C59F);
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.menu-modern .menu-header {
    background: var(--secondary);
    color: white;
    padding: 2rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.menu-modern .menu-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg);
    border-radius: 2rem 2rem 0 0;
}

.menu-modern .menu-header .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.menu-modern .menu-header .cafe-logo {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.menu-modern .menu-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.menu-modern .menu-header p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.menu-modern .search-bar {
    position: relative;
    margin: -1.5rem 1.5rem 1.5rem;
    z-index: 5;
}

.menu-modern .search-bar input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
}

.menu-modern .search-bar i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.menu-modern .category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1.5rem 1rem;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    padding-top: 0.75rem;
}

.menu-modern .category-chips::-webkit-scrollbar {
    display: none;
}

.menu-modern .category-chips .chip {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    color: var(--text-light);
    border: 1.5px solid #e9ecef;
    transition: all 0.2s;
    cursor: pointer;
}

.menu-modern .category-chips .chip:hover,
.menu-modern .category-chips .chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.menu-modern .category-section {
    padding: 1.5rem;
}

.menu-modern .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-modern .category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-modern .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .menu-modern .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-modern .menu-item {
    background: var(--card-bg);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.menu-modern .menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.menu-modern .menu-item .item-image-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.menu-modern .menu-item .item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-modern .menu-item .item-image-wrap .badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.25rem;
}

.menu-modern .menu-item .item-content {
    padding: 1rem;
}

.menu-modern .menu-item .item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.menu-modern .menu-item .item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-modern .menu-item .item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.menu-modern .menu-item .item-price .old-price {
    text-decoration: line-through;
    color: #ccc;
    font-size: 0.75rem;
    display: block;
}

.menu-modern .menu-item .item-meta span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.menu-modern .menu-footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.menu-modern .menu-footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu-modern .menu-footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.menu-modern .menu-footer .social-links a:hover {
    background: var(--primary);
}

/* =============================================
   THEME 3: VINTAGE (Retro Warm)
   ============================================= */
.menu-vintage {
    --primary: #8B4513;
    --secondary: #654321;
    --bg: #F5E6D3;
    --card-bg: #FFF8F0;
    --text: #3E2723;
    --text-light: #795548;
    --accent: #D4A574;
    font-family: 'Cormorant Garamond', serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%238B4513' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.menu-vintage .menu-header {
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
    border-bottom: 3px double var(--primary);
}

.menu-vintage .menu-header .ornament {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5rem;
}

.menu-vintage .menu-header .cafe-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px double var(--primary);
    object-fit: cover;
    margin: 0 auto 1rem;
}

.menu-vintage .menu-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-vintage .menu-header .est {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.menu-vintage .menu-header p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.menu-vintage .category-section {
    padding: 2.5rem 1.5rem;
}

.menu-vintage .category-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.menu-vintage .category-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.menu-vintage .category-divider::before,
.menu-vintage .category-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--primary);
    opacity: 0.4;
}

.menu-vintage .category-divider span {
    color: var(--primary);
    font-size: 0.75rem;
}

.menu-vintage .menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s;
}

.menu-vintage .menu-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.08);
}

.menu-vintage .menu-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(139, 69, 19, 0.15);
}

.menu-vintage .menu-item .item-info {
    flex: 1;
}

.menu-vintage .menu-item .item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.menu-vintage .menu-item .item-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.menu-vintage .menu-item .dots {
    flex: 1;
    border-bottom: 1px dotted var(--text-light);
    opacity: 0.3;
    margin: 0 0.5rem;
    min-width: 20px;
}

.menu-vintage .menu-item .item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.menu-vintage .menu-item .item-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.menu-vintage .menu-footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 3px double var(--primary);
}

.menu-vintage .menu-footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu-vintage .menu-footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s;
}

.menu-vintage .menu-footer .social-links a:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   THEME 4: NEON (Dark & Vibrant)
   ============================================= */
.menu-neon {
    --primary: #00F5D4;
    --secondary: #7B2FF7;
    --bg: #0D0D0D;
    --card-bg: #1A1A2E;
    --text: #FFFFFF;
    --text-light: #A0A0B0;
    --glow: rgba(0, 245, 212, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.menu-neon .menu-header {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1A1A2E 0%, #0D0D0D 100%);
}

.menu-neon .menu-header::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
}

.menu-neon .menu-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.1) 0%, transparent 70%);
}

.menu-neon .menu-header .cafe-logo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--glow);
    position: relative;
}

.menu-neon .menu-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-neon .menu-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
}

.menu-neon .category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1.5rem 1rem;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    padding-top: 0.75rem;
}

.menu-neon .category-chips::-webkit-scrollbar {
    display: none;
}

.menu-neon .category-chips .chip {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.menu-neon .category-chips .chip:hover,
.menu-neon .category-chips .chip.active {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

.menu-neon .category-section {
    padding: 1.5rem;
}

.menu-neon .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-neon .menu-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.menu-neon .menu-item:hover {
    border-color: rgba(0, 245, 212, 0.2);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.05);
    transform: translateY(-2px);
}

.menu-neon .menu-item .item-image {
    width: 85px;
    height: 85px;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-neon .menu-item .item-info {
    flex: 1;
}

.menu-neon .menu-item .item-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-neon .menu-item .item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.menu-neon .menu-item .item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    white-space: nowrap;
}

.menu-neon .menu-item .item-price .old-price {
    text-decoration: line-through;
    color: #555;
    font-size: 0.8rem;
    margin-right: 0.25rem;
    text-shadow: none;
}

.menu-neon .menu-item .item-meta span {
    font-size: 0.7rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
}

.menu-neon .menu-footer {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 2rem;
}

.menu-neon .menu-footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu-neon .menu-footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

.menu-neon .menu-footer .social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

/* =============================================
   THEME 5: MINIMAL (Clean & Airy)
   ============================================= */
.menu-minimal {
    --primary: #111111;
    --secondary: #333333;
    --bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --text: #111111;
    --text-light: #888888;
    --accent: #E8E8E8;
    font-family: 'DM Sans', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.menu-minimal .menu-header {
    padding: 3rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.menu-minimal .menu-header .cafe-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    filter: grayscale(20%);
}

.menu-minimal .menu-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.menu-minimal .menu-header p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.menu-minimal .category-tabs {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    scrollbar-width: none;
}

.menu-minimal .category-tabs::-webkit-scrollbar {
    display: none;
}

.menu-minimal .category-tabs button {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid transparent;
    transition: all 0.2s;
    background: none;
    cursor: pointer;
    border-top: none;
    border-left: none;
    border-right: none;
}

.menu-minimal .category-tabs button:hover,
.menu-minimal .category-tabs button.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.menu-minimal .category-section {
    padding: 2rem 1.5rem;
}

.menu-minimal .category-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.menu-minimal .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

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

.menu-minimal .menu-item:hover {
    padding-left: 0.5rem;
}

.menu-minimal .menu-item .item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.menu-minimal .menu-item .item-image {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-minimal .menu-item .item-name {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-minimal .menu-item .item-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.menu-minimal .menu-item .item-price {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.menu-minimal .menu-item .item-price .old-price {
    text-decoration: line-through;
    color: #ccc;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.menu-minimal .menu-footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.menu-minimal .menu-footer p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.menu-minimal .menu-footer .social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.menu-minimal .menu-footer .social-links a {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.menu-minimal .menu-footer .social-links a:hover {
    color: var(--text);
}

/* ---------- QR CODE DISPLAY ---------- */
.qr-container {
    text-align: center;
    padding: 2rem;
}

.qr-container img {
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qr-container .qr-url {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    word-break: break-all;
}

/* ---------- ITEM IMAGE PLACEHOLDER ---------- */
.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
}

/* ---------- TRIAL BANNER ---------- */
.trial-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 500;
}

.trial-banner.expired {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease both;
}

.fade-in-up-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up-delay-3 {
    animation-delay: 0.3s;
}

/* ---------- LOADING SPINNER ---------- */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #D4A574;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
    color: #6b7280;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    max-width: 400px;
    min-width: 280px;
}

.toast-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.toast-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.toast-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.toast-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast .toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    font-size: 1rem;
}

.toast .toast-close:hover {
    opacity: 1;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@media (max-width: 480px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

/* ---------- RESPONSIVE FIXES ---------- */
/* Public menu responsive */
.menu-elegant,
.menu-modern,
.menu-vintage,
.menu-neon,
.menu-minimal {
    overflow-x: hidden;
    max-width: 100vw;
}

.menu-elegant .menu-item,
.menu-neon .menu-item,
.menu-vintage .menu-item,
.menu-minimal .menu-item {
    overflow: hidden;
    word-break: break-word;
}

.menu-elegant .menu-item .item-price,
.menu-neon .menu-item .item-price,
.menu-minimal .menu-item .item-price {
    flex-shrink: 0;
}

/* Cover image in menu header */
.menu-header.has-cover {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-header.has-cover .header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.menu-header.has-cover>*:not(.header-overlay) {
    position: relative;
    z-index: 1;
}

.menu-header:not(.has-cover) .header-overlay {
    display: none;
}

/* Ensure text is white on cover */
.menu-elegant .menu-header.has-cover,
.menu-vintage .menu-header.has-cover,
.menu-minimal .menu-header.has-cover {
    color: white;
}

.menu-vintage .menu-header.has-cover .ornament,
.menu-vintage .menu-header.has-cover h1,
.menu-vintage .menu-header.has-cover .est {
    color: white;
}

.menu-minimal .menu-header.has-cover h1 {
    color: white;
}

.menu-minimal .menu-header.has-cover p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {

    /* Elegant theme mobile */
    .menu-elegant .menu-header h1 {
        font-size: 1.75rem;
    }

    .menu-elegant .menu-item {
        flex-direction: column;
    }

    .menu-elegant .menu-item .item-image {
        width: 100%;
        height: 180px;
    }

    .menu-elegant .menu-item .item-price {
        align-self: flex-end;
    }

    .menu-elegant .category-section {
        padding: 1.5rem 1rem;
    }

    /* Modern theme mobile */
    .menu-modern .menu-header h1 {
        font-size: 1.5rem;
    }

    .menu-modern .menu-item .item-image-wrap {
        height: 120px;
    }

    /* Vintage theme mobile */
    .menu-vintage .menu-header h1 {
        font-size: 1.75rem;
    }

    .menu-vintage .menu-item {
        flex-direction: column;
    }

    .menu-vintage .menu-item .item-image {
        width: 100%;
        height: 160px;
    }

    .menu-vintage .menu-item .item-row {
        flex-wrap: wrap;
    }

    .menu-vintage .menu-item .dots {
        display: none;
    }

    .menu-vintage .category-section {
        padding: 1.5rem 1rem;
    }

    /* Neon theme mobile */
    .menu-neon .menu-header h1 {
        font-size: 1.75rem;
    }

    .menu-neon .menu-item {
        flex-direction: column;
    }

    .menu-neon .menu-item .item-image {
        width: 100%;
        height: 180px;
    }

    .menu-neon .menu-item .item-price {
        align-self: flex-end;
    }

    .menu-neon .category-section {
        padding: 1rem;
    }

    /* Minimal theme mobile */
    .menu-minimal .menu-item .item-left {
        gap: 0.5rem;
    }

    .menu-minimal .menu-item .item-image {
        width: 44px;
        height: 44px;
    }

    .menu-minimal .category-section {
        padding: 1.5rem 1rem;
    }

    /* Admin responsive */
    .admin-body {
        padding: 1rem;
    }

    .admin-topbar {
        padding: 0.75rem 1rem;
    }

    .admin-topbar h2 {
        font-size: 1rem;
    }

    .modal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .modal-body .grid {
        grid-template-columns: 1fr !important;
    }

    .modal-body .grid>[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Table responsive */
    .table-responsive table {
        min-width: 520px;
    }

    table {
        font-size: 0.8rem;
    }

    thead th,
    tbody td {
        padding: 0.5rem;
    }
}

/* ========== PAGE-SPECIFIC RESPONSIVE GRIDS ========== */

/* Dashboard bottom grid (Menü Bağlantısı + Hızlı Erişim) */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.menu-link-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.menu-link-box code {
    font-size: 0.8rem;
    color: #6b7280;
    word-break: break-all;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Settings grid (Genel Bilgiler + Görseller/Sosyal) */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* QR Code grid */
.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
}

.qr-container {
    text-align: center;
}

/* Color customization grid */
.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========================================
   CAFE AUTOMATION (CafeOS) STYLES
   ======================================== */

/* ---------- ADMIN SIDEBAR ENHANCEMENTS ---------- */
.admin-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-sidebar .brand .brand-icon {
    font-size: 1.75rem;
    color: #D4A574;
}

.admin-sidebar .brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.admin-sidebar .brand span {
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.nav-section-title {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.nav-logout {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    color: rgba(255, 255, 255, 0.45) !important;
}

.nav-logout:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* ---------- ADDITIONAL BUTTON VARIANTS ---------- */
.btn-ghost {
    background: transparent;
    color: #6b7280;
}

.btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-ghost.danger {
    color: #ef4444;
}

.btn-ghost.danger:hover {
    background: #fef2f2;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #6b7280;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-icon.danger {
    color: #ef4444;
}

.btn-icon.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ---------- SHARED UI ELEMENTS ---------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header h2 i {
    color: #D4A574;
}

.page-header p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.empty-state-mini {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

.empty-state-mini i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.empty-state-mini p {
    font-size: 0.85rem;
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ---------- DASHBOARD ---------- */
.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-welcome h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-welcome p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.dashboard-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card.stat-blue .stat-icon {
    background: #dbeafe;
    color: #2563eb;
}

.stat-card.stat-green .stat-icon {
    background: #d1fae5;
    color: #059669;
}

.stat-card.stat-orange .stat-icon {
    background: #ffedd5;
    color: #ea580c;
}

.stat-card.stat-purple .stat-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.dash-card .card-header i {
    color: #D4A574;
    margin-right: 0.35rem;
}

/* Table mini grid (dashboard) */
.table-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.table-mini {
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.table-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-mini .table-num {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
}

.table-mini .table-name {
    font-size: 0.65rem;
    color: #6b7280;
    display: block;
}

.table-mini.available {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.table-mini.occupied {
    background: #fef2f2;
    border-color: #fecaca;
}

.table-mini.reserved {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.table-mini.cleaning {
    background: #fffbeb;
    border-color: #fde68a;
}

/* Recent orders (dashboard) */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    transition: background 0.2s;
    cursor: pointer;
}

.recent-order-item:hover {
    background: #eef2ff;
}

.order-info-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-num {
    font-weight: 600;
}

.order-table {
    color: #6b7280;
    font-size: 0.8rem;
}

.order-info-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-total {
    font-weight: 600;
}

.order-status {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.order-status.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.order-status.status-preparing {
    background: #ffedd5;
    color: #c2410c;
}

.order-status.status-ready {
    background: #d1fae5;
    color: #065f46;
}

.order-status.status-served {
    background: #ede9fe;
    color: #5b21b6;
}

.order-status.status-paid {
    background: #f0fdf4;
    color: #166534;
}

.order-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Quick actions (dashboard) */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, #D4A574, #c4956a);
    color: white;
}

.quick-action-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.quick-action-btn i {
    font-size: 0.9rem;
}

/* ---------- TABLES PAGE ---------- */
.table-status-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.available {
    background: #10b981;
}

.legend-dot.occupied {
    background: #ef4444;
}

.legend-dot.reserved {
    background: #3b82f6;
}

.legend-dot.cleaning {
    background: #f59e0b;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.table-card {
    background: white;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.table-card.available {
    border-color: #bbf7d0;
}

.table-card.available .table-icon {
    color: #10b981;
}

.table-card.occupied {
    border-color: #fecaca;
}

.table-card.occupied .table-icon {
    color: #ef4444;
}

.table-card.reserved {
    border-color: #bfdbfe;
}

.table-card.reserved .table-icon {
    color: #3b82f6;
}

.table-card.cleaning {
    border-color: #fde68a;
}

.table-card.cleaning .table-icon {
    color: #f59e0b;
}

.table-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0;
}

.table-number {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    color: #6b7280;
}

.table-actions {
    display: flex;
    gap: 0.25rem;
}

.table-card-body {
    padding: 1rem;
    text-align: center;
}

.table-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.table-card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.table-card-body p {
    font-size: 0.8rem;
    color: #6b7280;
}

.table-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.table-status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-status-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.table-status-badge.occupied {
    background: #fee2e2;
    color: #991b1b;
}

.table-status-badge.reserved {
    background: #dbeafe;
    color: #1e40af;
}

.table-status-badge.cleaning {
    background: #fef3c7;
    color: #92400e;
}

.table-detail-info {
    margin-bottom: 1.25rem;
}

.table-detail-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.table-detail-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---------- POS PAGE ---------- */
.pos-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 0px);
    background: #f5f5f7;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.pos-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
    max-height: 100vh;
}

.pos-right {
    width: 380px;
    flex-shrink: 0;
    background: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pos-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-header h2 i {
    color: #D4A574;
}

.pos-table-select select {
    min-width: 200px;
}

.pos-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #b0b5be #f3f4f6;
    align-items: center;
}

.pos-categories::-webkit-scrollbar {
    height: 6px;
}

.pos-categories::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.pos-categories::-webkit-scrollbar-thumb {
    background: #b0b5be;
    border-radius: 3px;
}

.pos-categories::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.pos-cat-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
    height: 36px;
    display: flex;
    align-items: center;
}

.pos-cat-btn:hover {
    background: #f3ebe0;
    color: #D4A574;
    border-color: #D4A574;
}

.pos-cat-btn.active {
    background: #D4A574;
    color: white;
    border-color: #D4A574;
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.3);
}

.pos-search {
    position: relative;
    margin-bottom: 1rem;
}

.pos-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.pos-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s;
}

.pos-search input:focus {
    outline: none;
    border-color: #D4A574;
}

.pos-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: min-content;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    padding-bottom: 1rem;
}

.pos-item-card {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    height: 170px;
    display: flex;
    flex-direction: column;
}

.pos-item-card:hover {
    border-color: #D4A574;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15);
    transform: translateY(-2px);
}

.pos-item-card img {
    width: 100%;
    height: 100px;
    min-height: 100px;
    object-fit: cover;
}

.pos-item-placeholder {
    width: 100%;
    height: 100px;
    min-height: 100px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 1.5rem;
}

.pos-item-info {
    padding: 0.5rem 0.625rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.pos-item-name {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pos-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

/* When qty bar is shown, card needs extra height */
.pos-item-card:has(.pos-item-qty-bar) {
    height: 210px;
}

/* Product qty bar on POS item cards */
.pos-item-qty-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: #eef2ff;
    border-top: 1px solid #e0e7ff;
}

.pos-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

.pos-qty-minus {
    background: #fee2e2;
    color: #dc2626;
}

.pos-qty-minus:hover {
    background: #fca5a5;
}

.pos-qty-plus {
    background: #d1fae5;
    color: #059669;
}

.pos-qty-plus:hover {
    background: #6ee7b7;
}

.pos-qty-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6366f1;
    min-width: 24px;
    text-align: center;
}
    color: #D4A574;
    display: block;
    margin-top: 0.15rem;
}

/* Cart */
.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.pos-cart-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-table-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.pos-cart-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}

.pos-cart-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.pos-cart-empty p {
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.pos-cart-empty span {
    font-size: 0.8rem;
}

.pos-cart-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f9fafb;
}

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

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-display {
    width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-total {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.pos-cart-note {
    margin-bottom: 0.75rem;
}

.pos-cart-note input {
    font-size: 0.85rem;
}

.pos-cart-summary {
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.375rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.pos-submit-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

.pos-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- ORDERS PAGE ---------- */
.order-filters {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: white;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #D4A574;
    color: #D4A574;
}

.filter-btn.active {
    background: #D4A574;
    color: white;
    border-color: #D4A574;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-card.expanded {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-main-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-number {
    font-weight: 700;
    font-size: 0.95rem;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.order-meta i {
    margin-right: 0.2rem;
}

.order-amount {
    font-weight: 700;
    color: #374151;
}

.expand-icon {
    color: #9ca3af;
    transition: transform 0.2s;
    font-size: 0.8rem;
}

.order-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.order-card-body {
    padding: 0 1.25rem 1.25rem;
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.order-items-table thead th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.order-items-table tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.item-status-badge {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.item-status-badge.pending {
    background: #f3f4f6;
    color: #6b7280;
}

.item-status-badge.preparing {
    background: #ffedd5;
    color: #c2410c;
}

.item-status-badge.ready {
    background: #d1fae5;
    color: #065f46;
}

.item-status-badge.served {
    background: #ede9fe;
    color: #5b21b6;
}

.item-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: line-through;
}

.order-note {
    padding: 0.625rem 0.875rem;
    background: #fffbeb;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #92400e;
    margin-bottom: 1rem;
}

.order-note i {
    margin-right: 0.35rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---------- KITCHEN PAGE ---------- */
.kitchen-view {
    padding: 1.5rem !important;
}

.kitchen-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.kitchen-column {
    background: #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 300px;
}

.kitchen-column-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
}

.kitchen-column-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.kitchen-column-header .badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
}

.kitchen-column-header.new {
    background: #dbeafe;
    color: #1e40af;
}

.kitchen-column-header.new .badge {
    background: rgba(30, 64, 175, 0.15);
}

.kitchen-column-header.preparing {
    background: #ffedd5;
    color: #c2410c;
}

.kitchen-column-header.preparing .badge {
    background: rgba(194, 65, 12, 0.15);
}

.kitchen-column-header.ready {
    background: #d1fae5;
    color: #065f46;
}

.kitchen-column-header.ready .badge {
    background: rgba(6, 95, 70, 0.15);
}

.kitchen-cards {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kitchen-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 4px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.kitchen-card.new {
    border-left-color: #3b82f6;
}

.kitchen-card.preparing {
    border-left-color: #f59e0b;
}

.kitchen-card.ready {
    border-left-color: #10b981;
}

.kitchen-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kitchen-order-num {
    font-weight: 700;
    font-size: 0.9rem;
}

.kitchen-table {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
}

.kitchen-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: auto;
}

.kitchen-items {
    margin-bottom: 0.75rem;
}

.kitchen-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.ki-qty {
    font-weight: 700;
    color: #D4A574;
    min-width: 24px;
}

.ki-name {
    font-weight: 500;
}

.ki-note {
    font-size: 0.75rem;
    color: #f59e0b;
    font-style: italic;
    margin-left: 0.25rem;
}

.ki-note::before {
    content: '— ';
}

/* ---------- EMPLOYEES PAGE ---------- */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.employee-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.employee-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A574, #c4956a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.employee-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.employee-email {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-role {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.employee-role.role-waiter {
    background: #dbeafe;
    color: #1e40af;
}

.employee-role.role-cashier {
    background: #d1fae5;
    color: #065f46;
}

.employee-actions {
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVE — CAFE AUTOMATION
   ======================================== */

/* Theme selector responsive */
@media (max-width: 1024px) {
    .theme-selector {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kitchen-columns {
        grid-template-columns: 1fr;
    }

    .pos-layout {
        flex-direction: column;
    }

    .pos-right {
        width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    .pos-left {
        max-height: none;
    }
}

@media (max-width: 768px) {

    /* All page grids stack */
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .qr-grid {
        grid-template-columns: 1fr;
    }

    .color-grid {
        grid-template-columns: 1fr;
    }

    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .table-mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .table-card-footer {
        flex-direction: column;
        gap: 0.35rem;
    }

    .table-card-footer .btn {
        width: 100%;
        flex: none !important;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-meta {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .order-items-table {
        min-width: 480px;
    }

    .order-card-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }

    .order-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    /* Menu link box stack */
    .menu-link-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .menu-link-box .btn {
        justify-content: center;
    }

    /* QR code image smaller */
    .qr-container img {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .qr-url {
        font-size: 0.75rem;
        word-break: break-all;
    }

    /* Stat cards stack */
    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    /* Landing sections */
    .landing-features {
        padding: 3rem 0;
    }

    .landing-cta {
        padding: 3rem 0;
    }

    .landing-cta h2 {
        font-size: 1.75rem;
    }

    .landing-nav {
        padding: 1rem 1.25rem;
    }

    /* Auth page */
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .table-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tables-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .employee-grid {
        grid-template-columns: 1fr;
    }

    .pos-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kitchen-cards {
        padding: 0.5rem;
    }

    /* Smaller buttons */
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Landing hero */
    .landing-hero {
        padding-top: 5rem;
    }

    .landing-hero p {
        font-size: 1rem;
    }

    .landing-hero .flex {
        flex-direction: column;
    }

    .landing-hero .btn-lg {
        width: 100%;
    }
}

/* ========================================
   POS PAGE — MOBILE RESPONSIVE FIX
   ======================================== */
@media (max-width: 768px) {
    .pos-layout {
        flex-direction: column;
        min-height: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .pos-left {
        padding: 0.75rem;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .pos-right {
        width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem;
        box-sizing: border-box;
    }

    .pos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pos-header h2 {
        font-size: 1.1rem;
    }

    .pos-header > div,
    .pos-table-select {
        width: 100%;
    }

    .pos-table-select select {
        min-width: 0;
        width: 100%;
    }

    .pos-header select.form-control {
        max-width: 100% !important;
        width: 100%;
    }

    .pos-categories {
        gap: 0.35rem;
        padding-bottom: 0.5rem;
    }

    .pos-cat-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .pos-search input {
        padding: 0.6rem 0.75rem 0.6rem 2.25rem;
        font-size: 0.85rem;
    }

    .pos-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .pos-item-card img {
        height: 80px;
        min-height: 80px;
    }

    .pos-item-placeholder {
        height: 80px;
        min-height: 80px;
    }

    .pos-item-card {
        height: 145px;
    }

    .pos-item-card:has(.pos-item-qty-bar) {
        height: 180px;
    }

    .pos-item-info {
        padding: 0.4rem;
    }

    .pos-item-name {
        font-size: 0.72rem;
    }

    .pos-item-price {
        font-size: 0.78rem;
    }

    .pos-cart-header h3 {
        font-size: 0.95rem;
    }

    .pos-cart-item {
        gap: 0.35rem;
        padding: 0.5rem 0;
        flex-wrap: wrap;
    }

    .pos-cart-item > div:last-child {
        width: 100%;
        justify-content: flex-end;
    }

    .pos-submit-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .pos-cart-summary {
        padding: 0.5rem 0;
    }

    .summary-total {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pos-left {
        padding: 0.5rem;
    }

    .pos-right {
        padding: 0.5rem;
    }

    .pos-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }

    .pos-item-card img {
        height: 65px;
        min-height: 65px;
    }

    .pos-item-placeholder {
        height: 65px;
        min-height: 65px;
        font-size: 1.2rem;
    }

    .pos-item-card {
        height: 125px;
    }

    .pos-item-card:has(.pos-item-qty-bar) {
        height: 160px;
    }

    .pos-item-info {
        padding: 0.3rem;
    }

    .pos-item-name {
        font-size: 0.68rem;
    }

    .pos-item-price {
        font-size: 0.72rem;
    }

    .pos-qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .pos-qty-count {
        font-size: 0.75rem;
        min-width: 20px;
    }

    .pos-header h2 {
        font-size: 1rem;
    }

    .pos-cart-header h3 {
        font-size: 0.85rem;
    }

    .cart-item-name {
        font-size: 0.78rem;
    }

    .cart-item-price {
        font-size: 0.7rem;
    }

    .pos-submit-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
        border-radius: 0.5rem;
    }
}