/* =======================================================
   MenuMKT — Shared Design System
   Tokens aligned with menu/assets/css/landing.css so the
   dashboard, auth pages, import flow and public menu
   inherit the same visual language.
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Brand */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: rgba(79, 70, 229, 0.12);
    --secondary: #ec4899;

    /* Semantic */
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --warn-bg: #fef3c7;
    --warn-fg: #92400e;

    /* Surfaces */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-muted: #f1f5f9;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --text-white: #ffffff;

    /* Lines */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-primary: 0 4px 14px rgba(79, 70, 229, 0.30);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { color: var(--text-main); letter-spacing: -0.02em; }

/* =======================================================
   Buttons — pill-shaped, soft colored shadows
   ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.30);
}
.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.65rem 1rem;
}
.btn-ghost:hover { color: var(--text-main); background: var(--bg-muted); }

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.5rem;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover {
    background: var(--bg-muted);
    color: var(--text-main);
    border-color: var(--border);
}
.btn-icon-danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Button with inline SVG icon + text label */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-svg {
    width: 18px;
    height: 18px;
    flex: none;
    display: block;
}
.btn-icon .btn-svg {
    width: 19px;
    height: 19px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.btn-full { width: 100%; }
.btn-large { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* Anywhere a bare `<button class="btn-primary">` appears without .btn */
button.btn-primary:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
    transition: transform .15s ease, background .15s ease;
    width: 100%;
    margin-top: 1rem;
}
button.btn-primary:not(.btn):hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* =======================================================
   Forms
   ======================================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="file"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="file"] {
    padding: 0.5rem;
    background: var(--bg-muted);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    margin-top: 1rem;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form input { flex: 1; min-width: 0; }

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    padding: 0.85rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* =======================================================
   Cards
   ======================================================= */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =======================================================
   Auth pages (login / register)
   ======================================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.08), transparent 40%),
        var(--bg-body);
}

.brand-logo {
    margin-bottom: 1.5rem;
}
.brand-logo img { height: 48px; }

.auth-card,
.auth-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    padding: 2.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-title {
    text-align: center;
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.auth-footer,
.auth-link {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.auth-footer a { font-weight: 600; }

.lang-switch {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.lang-switch a {
    opacity: 0.4;
    transition: opacity .15s ease, transform .15s ease;
}
.lang-switch a.active,
.lang-switch a:hover { opacity: 1; transform: scale(1.05); }

/* =======================================================
   Dashboard header / layout
   ======================================================= */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 0;
    text-decoration: none;
    transition: opacity .15s ease;
}
.brand:hover { opacity: 0.8; }
.brand img {
    height: 36px;
    width: auto;
    max-height: 36px;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.15rem;
}

.logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.lang-switcher {
    display: inline-flex;
    gap: 0.35rem;
    padding: 4px 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-pill);
}
.lang-switcher a {
    opacity: 0.45;
    transition: opacity .15s ease, transform .15s ease;
    display: inline-flex;
}
.lang-switcher a.active,
.lang-switcher a:hover { opacity: 1; transform: scale(1.08); }

.dashboard-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.dashboard-footer {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    background: var(--bg-surface);
}

/* =======================================================
   Menu items on dashboard
   ======================================================= */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }

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

.menu-item .item-price {
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
}

.price-tag {
    font-weight: 600;
    color: var(--text-main);
}

/* =======================================================
   Public menu
   ======================================================= */
.menu-container {
    max-width: 980px;
    margin: 0 auto;
    background: var(--bg-surface);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    scroll-behavior: smooth;
}

.menu-header {
    text-align: left;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

/* Hero banner — full-width sibling above .menu-container */
.menu-hero {
    position: relative;
    height: 120px;
    background-color: var(--bg-muted);
    background-size: cover;
    background-position: center;
}
.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.60) 100%);
}
.restaurant-address {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}
.restaurant-address svg {
    width: 12px;
    height: 12px;
    flex: none;
    color: var(--primary);
}

/* Body container that holds the brand row + description + pills */
.menu-header-body {
    padding: 0 1.5rem 1.5rem;
}

/* Brand row: squircle logo on the left, name + cuisine badge stacked next to it */
.menu-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.menu-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    margin-top: -40px;
}

/* Squircle avatar (rounded but not full round) sitting high on the hero */
.menu-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
    margin-top: -56px;
    object-fit: cover;
    flex: none;
    position: relative;
    z-index: 1;
}
.menu-avatar-fallback {
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.restaurant-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    padding-bottom: 5px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    z-index: 1;
}

/* Status row: optional cuisine badge + Open Now pill */
.menu-status-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.badge-subtle {
    background: var(--bg-muted);
    color: var(--text-muted);
}

.menu-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    background: var(--bg-muted);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}
.menu-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
    flex: none;
}

.restaurant-meta {
    color: var(--text-muted);
    margin: 0.875rem 0 0;
    font-size: 0.875rem;
    max-width: 38rem;
    line-height: 1.55;
}

/* Contact pill row */
.menu-contact-pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 28rem;
}
.menu-contact-row {
    display: flex;
    gap: 0.5rem;
}
.menu-contact-row .menu-contact-pill {
    flex: 1;
    justify-content: center;
}
.menu-contact-pill-block {
    width: 100%;
    justify-content: center;
}
.menu-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-muted);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.menu-contact-pill:hover {
    background: var(--border);
    color: var(--text-main);
}
.menu-contact-pill svg {
    width: 14px;
    height: 14px;
    flex: none;
}
.menu-contact-pill-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.menu-contact-pill-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.lang-switcher-public {
    margin: 0 auto;
    padding: 4px 8px;
}

/* Sticky category navigation */
.menu-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.menu-nav-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.75rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.menu-nav-scroll::-webkit-scrollbar { height: 3px; }
.menu-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.menu-nav-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.menu-nav-pill {
    flex: none;
    scroll-snap-align: start;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--bg-muted);
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    white-space: nowrap;
}
.menu-nav-pill:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.2);
}
.menu-nav-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.menu-nav-pill:active { transform: scale(0.96); }

/* Menu content */
.menu-content {
    padding: 2rem 2rem 3rem;
}

.category-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 64px;
}
.category-section:last-child { margin-bottom: 1rem; }

.cat-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border: none;
    letter-spacing: -0.02em;
}
.cat-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--primary);
    margin-top: 0.6rem;
}

/* Two-column grid on desktop, one on mobile */
.category-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

/* Public menu item — card style */
.public-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    background: var(--bg-surface);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: border-color .15s ease;
}
.public-item:hover {
    border-color: var(--border-strong);
}
.public-item-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex: none;
    background: var(--bg-muted);
}
.public-item-body {
    flex: 1;
    min-width: 0;
}
.public-item-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: 100%;
}
.public-item-name {
    font-weight: 400;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.35;
}
.public-item-dots {
    flex: 1;
    border-bottom: 2px dotted var(--border-strong);
    margin: 0 0.25rem;
    transform: translateY(-4px);
    min-width: 0.5rem;
}
.public-item-price {
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 0.95rem;
}
.public-item-desc {
    margin: 0.3rem 0 0;
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Empty state */
.menu-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.menu-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}
.menu-empty p { margin: 0; font-size: 1rem; }

/* Footer */
.menu-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.menu-footer-brand {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.35rem;
}
.menu-footer-brand:hover { color: var(--primary-dark); }

/* =======================================================
   Import flow (upload + review)
   ======================================================= */
.upload-area {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    background: var(--bg-muted);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.upload-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--text-faint); }

.loading-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.panel-left,
.panel-right {
    padding: 1.5rem;
}

.preview-container {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 1rem;
}
.preview-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.form-header,
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}
.form-header { border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.form-footer { border-top: 1px solid var(--border); margin-top: 1rem; }

.form-body { display: flex; flex-direction: column; gap: 1rem; }

.input-category {
    font-size: 1.05rem;
    font-weight: 600;
}

/* =======================================================
   Shared helpers for dashboard forms
   ======================================================= */
.form-boxed {
    background: var(--bg-muted);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px dashed var(--border-strong);
    margin-top: 0.5rem;
}

.form-boxed .form-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.form-boxed .form-row input[name="name"] { flex: 2; min-width: 160px; }
.form-boxed .form-row input[name="price"] { flex: 1; max-width: 120px; }
.form-boxed textarea {
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}
.form-boxed .form-actions { display: flex; gap: 0.5rem; }

.item-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.empty-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.75rem 0;
}

.actions-group {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.icon-danger { color: var(--danger) !important; }
.icon-danger:hover { background: #fef2f2 !important; color: #dc2626 !important; }

.trial-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--text-main);
}
.trial-banner.expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.25);
    color: #991b1b;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
}

/* Profile completion CTA — surfaces when logo/description are missing */
.profile-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(236, 72, 153, 0.10));
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: var(--text-main);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.profile-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(245, 158, 11, 0.45);
}
.profile-cta-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}
.profile-cta-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.profile-cta-body strong { font-size: 0.98rem; }
.profile-cta-body span { color: var(--text-muted); font-size: 0.88rem; }
.profile-cta-btn { white-space: nowrap; }

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.qr-actions .btn { width: 100%; justify-content: center; }
.qr-actions .btn:nth-child(3) { grid-column: 1 / -1; }

@media (max-width: 640px) {
    .profile-cta { flex-direction: column; text-align: center; }
    .profile-cta-btn { width: 100%; justify-content: center; }
}

/* =======================================================
   Empty-state welcome (dashboard first-run)
   ======================================================= */
.empty-welcome {
    padding: 1rem 0 3rem;
}

.empty-welcome-header {
    text-align: center;
    padding: 2.5rem 1rem 2.75rem;
}

.empty-wave {
    display: inline-block;
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    transform-origin: 70% 70%;
    animation: empty-wave 2.4s ease-in-out 0.4s 2;
}

@keyframes empty-wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30%, 50% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}

.empty-welcome-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-welcome-header .empty-sub {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.empty-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.empty-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-main);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.empty-choice:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.empty-choice-primary {
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(236, 72, 153, 0.04)),
        var(--bg-surface);
    border-color: rgba(79, 70, 229, 0.25);
}

.empty-choice-primary:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.35);
    color: var(--text-main);
}

.empty-choice-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.empty-choice-icon {
    font-size: 2.5rem;
    line-height: 1;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--bg-muted);
    margin-bottom: 0.25rem;
}

.empty-choice-primary .empty-choice-icon {
    background: var(--primary-soft);
}

.empty-choice-body {
    flex: 1;
}

.empty-choice-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.empty-choice-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.empty-choice-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.empty-choice-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.empty-choice-form input {
    flex: 1;
    min-width: 0;
}

/* =======================================================
   Utilities
   ======================================================= */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =======================================================
   Responsive
   ======================================================= */
@media (max-width: 768px) {
    /* Collapse action-button labels; tooltip (title attr) carries meaning */
    .header-actions .btn-with-icon .btn-label { display: none; }
    .header-actions .btn-with-icon { padding: 0.55rem; min-width: 40px; justify-content: center; }
    .header-divider { display: none; }

    /* Stack header into clean rows: brand, flags, buttons */
    .dashboard-header {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    .lang-switcher {
        flex-basis: 100%;
        justify-content: center;
    }    

}

@media (max-width: 640px) {
    .dashboard-header { padding: 0.75rem 1rem; gap: 0.5rem; }
    .header-actions .btn { padding: 0.5rem; font-size: 0.85rem; }
    .dashboard-container { margin: 1.25rem auto; padding: 0 1rem; }
    .card { padding: 1.25rem; }
    .restaurant-name { font-size: 1.25rem; }
    .cat-title { font-size: 1.2rem; }
    .menu-content { padding: 1.25rem 1rem 2.5rem; }
    .menu-hero { height: 100px; }
    .menu-header-body { padding: 0 1.125rem 1.25rem; }
    .menu-avatar { width: 64px; height: 64px; margin-top: -44px; border-radius: 14px; border-width: 3px; }
    .menu-brand-row { gap: 0.75rem; }
    .menu-nav-scroll { padding: 0.6rem 1rem; }
    .menu-nav-pill { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .category-section { margin-bottom: 1.75rem; }
    .category-items { grid-template-columns: 1fr; }
    .public-item { padding: 0.75rem 0.875rem; }
    .public-item-img { width: 60px; height: 60px; }

    .lang-switcher { padding: 3px 6px; gap: 0.25rem; }
    .brand img { height: 30px; max-height: 30px; }

    .empty-welcome-header { padding: 1.5rem 0.5rem 1.75rem; }
    .empty-welcome-header h2 { font-size: 1.75rem; }
    .empty-wave { font-size: 2.75rem; }
    .empty-choices { grid-template-columns: 1fr; }
    .empty-choice { padding: 1.5rem 1.25rem; }
    .empty-choice-form { flex-direction: column; }
    .empty-choice-form .btn { width: 100%; justify-content: center; }
    .menu-brand-text { margin-top: -25px; }
    .restaurant-address { margin-top: 0; }
}
