/* ============================================================
   Watermelon Lab — Public Menu Styles
   ============================================================ */

:root {
    --brand-green: #226F54;
    --brand-red: #D33C3C;
    --soft-bg: #E2E7D8;
    --brown: #43291F;
    --white: #FFFFFF;
    --green-deep: #1a5641;
    --green-soft: #2f8a6a;
    --red-soft: #e85a5a;
    --cream: #f4f6ee;
    --shadow: 0 12px 40px rgba(67, 41, 31, 0.08);
    --shadow-hover: 0 18px 48px rgba(34, 111, 84, 0.16);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;
    --font-display: "Fraunces", "Tajawal", Georgia, serif;
    --font-body: "Nunito", "Tajawal", sans-serif;
    --header-h: 68px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--brown);
    background: var(--soft-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-page {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

/* ---------- Atmosphere ---------- */

.page-atmosphere,
.welcome-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.atm-blob,
.welcome-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.atm-blob--a {
    width: 280px;
    height: 280px;
    top: -80px;
    inset-inline-end: -60px;
    background: radial-gradient(circle, rgba(211, 60, 60, 0.35), transparent 70%);
    animation: drift 14s ease-in-out infinite;
}

.atm-blob--b {
    width: 320px;
    height: 320px;
    bottom: 10%;
    inset-inline-start: -100px;
    background: radial-gradient(circle, rgba(34, 111, 84, 0.28), transparent 70%);
    animation: drift 18s ease-in-out infinite reverse;
}

.welcome-blob--1 {
    width: 340px;
    height: 340px;
    top: -100px;
    inset-inline-end: -80px;
    background: radial-gradient(circle, rgba(211, 60, 60, 0.4), transparent 70%);
    animation: drift 16s var(--ease-soft) infinite;
}

.welcome-blob--2 {
    width: 280px;
    height: 280px;
    bottom: -60px;
    inset-inline-start: -80px;
    background: radial-gradient(circle, rgba(34, 111, 84, 0.35), transparent 70%);
    animation: drift 20s var(--ease-soft) infinite reverse;
}

.welcome-blob--3 {
    width: 180px;
    height: 180px;
    top: 40%;
    inset-inline-start: 55%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
    animation: pulse-soft 8s ease-in-out infinite;
}

.seed-field {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        radial-gradient(ellipse 3px 5px at 20% 30%, var(--brown) 50%, transparent 52%),
        radial-gradient(ellipse 3px 5px at 70% 20%, var(--brown) 50%, transparent 52%),
        radial-gradient(ellipse 3px 5px at 40% 70%, var(--brown) 50%, transparent 52%),
        radial-gradient(ellipse 3px 5px at 85% 65%, var(--brown) 50%, transparent 52%),
        radial-gradient(ellipse 3px 5px at 15% 80%, var(--brown) 50%, transparent 52%),
        radial-gradient(ellipse 3px 5px at 55% 45%, var(--brown) 50%, transparent 52%);
    background-size: 180px 180px;
}

.seed-field--soft {
    opacity: 0.045;
}

/* Floating cute icons */
.floaties {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floatie {
    position: absolute;
    display: grid;
    place-items: center;
    opacity: 0.16;
    will-change: transform;
    filter: drop-shadow(0 4px 10px rgba(67, 41, 31, 0.08));
}

.floatie svg {
    width: 100%;
    height: 100%;
    display: block;
}

.floatie--seed {
    width: 10px;
    height: 14px;
    border-radius: 50%;
    background: rgba(67, 41, 31, 0.55);
    opacity: 0.14;
}

.floatie--melon { width: 42px; height: 42px; }
.floatie--leaf { width: 34px; height: 34px; }
.floatie--cup { width: 36px; height: 36px; opacity: 0.14; }
.floatie--heart { width: 28px; height: 28px; opacity: 0.13; }

.floatie--spark {
    width: 10px;
    height: 10px;
    opacity: 0.22;
    background: var(--brand-red);
    clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

.floatie--dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-green);
    opacity: 0.18;
}

.floatie--1  { top: 12%; inset-inline-start: 8%;  animation: floatieA 11s ease-in-out infinite; }
.floatie--2  { top: 22%; inset-inline-end: 12%;   animation: floatieB 9s ease-in-out infinite 0.4s; transform: rotate(25deg); }
.floatie--3  { top: 38%; inset-inline-start: 4%;  animation: floatieC 13s ease-in-out infinite 0.8s; }
.floatie--4  { top: 48%; inset-inline-end: 6%;    animation: floatieA 12s ease-in-out infinite 1.2s; }
.floatie--5  { top: 62%; inset-inline-start: 14%; animation: floatieB 10s ease-in-out infinite 0.2s; transform: rotate(-30deg); }
.floatie--6  { top: 18%; inset-inline-start: 46%; animation: floatieC 14s ease-in-out infinite 1.6s; }
.floatie--7  { top: 72%; inset-inline-end: 16%;   animation: floatieA 15s ease-in-out infinite 0.6s; }
.floatie--8  { top: 80%; inset-inline-start: 28%; animation: floatieB 11s ease-in-out infinite 1s; transform: rotate(40deg); }
.floatie--9  { top: 34%; inset-inline-end: 28%;   animation: floatieC 8s ease-in-out infinite 0.3s; }
.floatie--10 { top: 58%; inset-inline-start: 52%; animation: floatieA 16s ease-in-out infinite 1.4s; }
.floatie--11 { top: 8%;  inset-inline-end: 32%;   animation: floatieB 9s ease-in-out infinite 0.9s; }
.floatie--12 { top: 88%; inset-inline-end: 40%;   animation: floatieC 12s ease-in-out infinite 0.5s; transform: rotate(-18deg); }

@keyframes floatieA {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, -18px) rotate(8deg); }
}

@keyframes floatieB {
    0%, 100% { transform: translate(0, 0) rotate(20deg); }
    50% { transform: translate(-14px, -12px) rotate(-6deg); }
}

@keyframes floatieC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -22px) scale(1.08); }
}

@media (max-width: 720px) {
    .floatie--4,
    .floatie--7,
    .floatie--10 {
        display: none;
    }

    .floatie {
        opacity: 0.12;
    }
}

/* ---------- Welcome ---------- */

.welcome-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.welcome-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
}

.welcome-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(244, 246, 238, 0.88));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 36px;
    padding: 36px 28px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.welcome-logo {
    width: min(100%, 280px);
    margin: 0 auto 28px;
}

.welcome-logo__img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    background: transparent;
    filter: drop-shadow(0 14px 28px rgba(67, 41, 31, 0.16));
}

.welcome-brand-ar {
    margin: 6px 0 28px;
    font-family: "Tajawal", var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-red);
}

.welcome-eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-green);
}

.welcome-brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brown);
    line-height: 1.1;
}

.welcome-tagline {
    margin: 8px 0 28px;
    color: rgba(67, 41, 31, 0.65);
    font-size: 0.95rem;
}

.welcome-prompt {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand-green);
}

.welcome-prompt-ar {
    margin: 4px 0 22px;
    font-family: "Tajawal", var(--font-body);
    font-size: 1.15rem;
    color: rgba(67, 41, 31, 0.7);
}

.lang-actions {
    display: grid;
    gap: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
    box-shadow: 0 8px 24px rgba(34, 111, 84, 0.12);
}

.lang-btn--en {
    background: var(--brand-green);
    color: var(--white);
}

.lang-btn--ar {
    background: var(--white);
    color: var(--brown);
    border: 2px solid rgba(34, 111, 84, 0.18);
}

.lang-btn:hover,
.lang-btn:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.lang-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(226, 231, 216, 0.82);
    border-bottom: 1px solid rgba(67, 41, 31, 0.06);
}

.site-header__inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 12px 18px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-lockup__logo {
    width: auto;
    height: 52px;
    max-width: 160px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 4px 12px rgba(67, 41, 31, 0.12));
    flex-shrink: 0;
}

.brand-lockup__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid rgba(34, 111, 84, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-green);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
    white-space: nowrap;
}

.icon-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 111, 84, 0.12);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px 10px;
    display: block;
    min-height: auto;
}

.hero__eyebrow {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
}

.hero__brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--brand-green);
}

.hero__message {
    margin: 14px 0 0;
    max-width: 28ch;
    font-size: 1.05rem;
    color: rgba(67, 41, 31, 0.72);
}

/* ---------- Toolbar ---------- */

.toolbar {
    position: relative;
    z-index: 30;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 16px 4px;
}

.sticky-toolbar {
    position: sticky;
    top: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
    background: linear-gradient(180deg, rgba(226, 231, 216, 0.96) 60%, rgba(226, 231, 216, 0));
}

.search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: rgba(67, 41, 31, 0.45);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    padding-inline-start: 46px;
    border: 1px solid rgba(67, 41, 31, 0.08);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--brown);
    outline: none;
    box-shadow: 0 6px 20px rgba(67, 41, 31, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
    color: rgba(67, 41, 31, 0.4);
}

.search-input:focus {
    border-color: rgba(34, 111, 84, 0.35);
    box-shadow: 0 8px 24px rgba(34, 111, 84, 0.12);
}

.category-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-rail::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid rgba(34, 111, 84, 0.14);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    color: var(--brown);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 111, 84, 0.3);
}

.cat-pill.is-active {
    background: var(--brand-green);
    color: var(--white);
    border-color: var(--brand-green);
    box-shadow: 0 8px 20px rgba(34, 111, 84, 0.22);
}

.cat-pill:active {
    transform: scale(0.97);
}

/* ---------- Menu grid ---------- */

.menu-section {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 16px 40px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brown);
}

.menu-feed {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.menu-cat-block {
    scroll-margin-top: calc(var(--header-h) + 88px);
}

.menu-cat-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.menu-cat-heading__seed {
    width: 10px;
    height: 14px;
    border-radius: 50%;
    background: var(--brown);
    opacity: 0.55;
    flex-shrink: 0;
    transform: rotate(-18deg);
}

.menu-cat-heading__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-green);
    white-space: nowrap;
}

.menu-cat-heading__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(34, 111, 84, 0.35),
        rgba(211, 60, 60, 0.18),
        transparent
    );
}

[dir="rtl"] .menu-cat-heading__line {
    background: linear-gradient(
        to left,
        rgba(34, 111, 84, 0.35),
        rgba(211, 60, 60, 0.18),
        transparent
    );
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.menu-card {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 18px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 238, 0.9));
    border: 2.5px solid rgba(34, 111, 84, 0.28);
    box-shadow: var(--shadow);
    animation: cardIn 0.55s var(--ease-out) both;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 111, 84, 0.45);
    box-shadow: var(--shadow-hover);
}

.menu-card__deco {
    position: absolute;
    inset-inline-end: 14px;
    top: 14px;
    width: 54px;
    height: 54px;
    pointer-events: none;
    opacity: 0.14;
}

.seed {
    position: absolute;
    width: 7px;
    height: 11px;
    border-radius: 50%;
    background: var(--brown);
}

.seed--1 { top: 8px; inset-inline-start: 18px; transform: rotate(-28deg); }
.seed--2 { top: 22px; inset-inline-start: 34px; transform: rotate(18deg); }
.seed--3 { top: 34px; inset-inline-start: 14px; transform: rotate(8deg); }

.menu-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding-inline-start: 10px;
}

.menu-card__cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-green);
}

.menu-card__price {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-red);
    background: rgba(211, 60, 60, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.menu-card__name {
    margin: 0 0 6px;
    padding-inline-start: 10px;
    padding-inline-end: 48px;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--brown);
}

.menu-card__desc {
    margin: 0;
    padding-inline-start: 10px;
    font-size: 0.94rem;
    color: rgba(67, 41, 31, 0.68);
    max-width: 42ch;
}

.menu-card.is-exiting {
    animation: cardOut 0.28s var(--ease-soft) both;
}

.menu-feed.is-updating .menu-card {
    animation: none;
    opacity: 0.35;
    transform: scale(0.98);
}

/* ---------- Empty ---------- */

.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state__logo {
    width: 120px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(67, 41, 31, 0.14));
}

.empty-state h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
}

.empty-state p {
    margin: 0;
    color: rgba(67, 41, 31, 0.6);
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    padding: 10px 20px 30px;
    text-align: center;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid rgba(34, 111, 84, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-green);
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(34, 111, 84, 0.12);
}

.footer-contact,
.footer-note {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(67, 41, 31, 0.55);
}

.footer-contact {
    margin-bottom: 6px;
}

.back-top {
    position: fixed;
    inset-inline-end: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 50;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(34, 111, 84, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease-out);
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:active {
    transform: scale(0.94);
}

/* ---------- Personal assistant ---------- */

.assistant {
    position: fixed;
    inset-inline-start: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: min(320px, calc(100vw - 32px));
}

[dir="rtl"] .assistant {
    align-items: flex-end;
}

.assistant__fab {
    position: relative;
    width: 74px;
    height: 74px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    animation: assistantBob 3.8s ease-in-out infinite;
}

.assistant__avatar {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(67, 41, 31, 0.22));
    transition: transform 0.25s var(--ease-out);
}

.assistant__fab:hover .assistant__avatar,
.assistant.is-open .assistant__avatar {
    transform: scale(1.06);
}

.assistant__pulse {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(211, 60, 60, 0.35);
    animation: assistantPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.assistant.is-open .assistant__pulse {
    opacity: 0;
}

.assistant__panel {
    width: min(300px, calc(100vw - 32px));
    transform-origin: bottom left;
    animation: assistantIn 0.35s var(--ease-out) both;
}

[dir="rtl"] .assistant__panel {
    transform-origin: bottom right;
}

.assistant__bubble {
    position: relative;
    padding: 16px 16px 14px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 238, 0.95));
    border: 1.5px solid rgba(34, 111, 84, 0.22);
    box-shadow: 0 16px 40px rgba(67, 41, 31, 0.14);
}

.assistant__minimize {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(34, 111, 84, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brown);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
    z-index: 2;
}

.assistant__minimize:hover {
    transform: scale(1.06);
    background: var(--white);
    border-color: rgba(34, 111, 84, 0.35);
}

.assistant__minimize:active {
    transform: scale(0.95);
}

.assistant__bubble::after {
    content: "";
    position: absolute;
    bottom: -8px;
    inset-inline-start: 28px;
    width: 16px;
    height: 16px;
    background: #f7f9f2;
    border-inline-start: 1.5px solid rgba(34, 111, 84, 0.22);
    border-bottom: 1.5px solid rgba(34, 111, 84, 0.22);
    transform: rotate(-45deg);
}

[dir="rtl"] .assistant__bubble::after {
    inset-inline-start: auto;
    inset-inline-end: 28px;
    transform: rotate(45deg);
    border-inline-start: none;
    border-inline-end: 1.5px solid rgba(34, 111, 84, 0.22);
}

.assistant__hello {
    margin: 0 0 8px;
    padding-inline-end: 28px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-green);
}

.assistant__label {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(67, 41, 31, 0.5);
}

.assistant__pick {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(34, 111, 84, 0.06);
}

.assistant__pick.is-pop {
    animation: pickPop 0.4s var(--ease-out);
}

.assistant__cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.assistant__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--brown);
    line-height: 1.2;
}

.assistant__desc {
    font-size: 0.86rem;
    color: rgba(67, 41, 31, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.assistant__price {
    margin-top: 2px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-green);
}

.assistant__actions {
    display: flex;
    gap: 8px;
}

.assistant__btn {
    flex: 1;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.assistant__btn:hover {
    transform: translateY(-1px);
}

.assistant__btn:active {
    transform: scale(0.97);
}

.assistant__btn--ghost {
    background: var(--white);
    color: var(--brown);
    border: 1px solid rgba(34, 111, 84, 0.18);
}

.assistant__btn--solid {
    background: var(--brand-green);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(34, 111, 84, 0.22);
}

.menu-card.is-spotlight {
    border-color: rgba(211, 60, 60, 0.55);
    box-shadow: 0 0 0 4px rgba(211, 60, 60, 0.15), var(--shadow-hover);
    animation: spotlightPulse 0.7s var(--ease-out);
}

@keyframes assistantBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes assistantPulse {
    0% { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes assistantIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pickPop {
    from {
        opacity: 0.4;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spotlightPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ---------- Animations ---------- */

.fade-up {
    animation: fadeUp 0.8s var(--ease-out) both;
}

.float-soft {
    animation: floatSoft 5.5s ease-in-out infinite;
}

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

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardOut {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-18px, 14px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.08); }
}

.menu-card:nth-child(1) { animation-delay: 0.02s; }
.menu-card:nth-child(2) { animation-delay: 0.06s; }
.menu-card:nth-child(3) { animation-delay: 0.1s; }
.menu-card:nth-child(4) { animation-delay: 0.14s; }
.menu-card:nth-child(5) { animation-delay: 0.18s; }
.menu-card:nth-child(6) { animation-delay: 0.22s; }
.menu-card:nth-child(7) { animation-delay: 0.26s; }
.menu-card:nth-child(8) { animation-delay: 0.3s; }

/* ---------- RTL ---------- */

[dir="rtl"] body,
[dir="rtl"] .welcome-prompt-ar,
[dir="rtl"] .menu-card__name,
[dir="rtl"] .hero__brand,
[dir="rtl"] .brand-lockup__name {
    font-family: "Tajawal", var(--font-body);
}

[dir="rtl"] .hero__brand,
[dir="rtl"] .welcome-brand,
[dir="rtl"] .menu-card__name,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .menu-cat-heading__title {
    font-family: "Tajawal", var(--font-display);
    letter-spacing: 0;
}

[dir="rtl"] .menu-card__cat {
    letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .hero {
        padding-top: 20px;
        text-align: start;
    }

    .hero__message {
        max-width: none;
    }

    .brand-lockup__name {
        font-size: 1.05rem;
    }
}

@media (min-width: 720px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .welcome-card {
        padding: 44px 40px 36px;
    }
}

@media (min-width: 980px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floatie {
        animation: none !important;
    }
}
