/* ============================================================
   Eatza Portal — Consumer-facing styles
   Mobile-first. DM Sans + DM Mono. Same token palette as admin.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --accent:        #635bff;
    --accent-dark:   #4f46e5;
    --accent-light:  #ede9fe;
    --success:       #16a34a;
    --success-light: #dcfce7;
    --warning:       #d97706;
    --warning-light: #fef3c7;
    --danger:        #dc2626;
    --danger-light:  #fee2e2;

    --bg:            #f8f8fc;
    --surface:       #ffffff;
    --surface-2:     #f4f4f8;
    --border:        #e4e4ef;
    --border-light:  #eeeeF7;

    --text:          #0f0e17;
    --text-2:        #4b4b6b;
    --text-3:        #9898b8;

    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     16px;
    --shadow:        0 2px 8px rgba(0,0,0,.07);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.12);

    --font:          'DM Sans', system-ui, sans-serif;
    --font-mono:     'DM Mono', 'Courier New', monospace;

    --nav-h:         56px;
    --max-w:         1140px;
    --max-w-slim:    720px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select, button { font-family: inherit; }

/* ── Portal notice bar ──────────────────────────────────── */
.portal-notice-bar { display:flex; flex-direction:column; gap:0; }
.portal-notice { padding:10px 16px; font-size:.82rem; line-height:1.5; text-align:center; }
.portal-notice--info     { background:#ede9fe; color:#4c1d95; }
.portal-notice--warning  { background:#fef3c7; color:#78350f; }
.portal-notice--critical { background:#fee2e2; color:#7f1d1d; }
.portal-notice strong    { font-weight:600; }

/* ── Portal nav ─────────────────────────────────────────── */
.portal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.portal-nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.portal-brand:hover { text-decoration: none; }
.portal-brand svg { flex-shrink: 0; }

.portal-nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}
@media (max-width: 639px) {
    .portal-nav-search { display: none; }
}
.portal-nav-search input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 16px 0 38px;
    font-size: .875rem;
    background: var(--surface-2);
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.portal-nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,91,255,.12);
    background: var(--surface);
}
.portal-nav-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

.portal-nav-spacer { flex: 1; }

.portal-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.portal-nav-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.portal-nav-btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.portal-nav-btn-ghost:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.portal-nav-btn-primary {
    background: var(--accent);
    color: #fff;
}
.portal-nav-btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

.portal-account-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
    transition: border-color .15s;
}
.portal-account-pill:hover { border-color: var(--accent); text-decoration: none; }
.portal-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Page wrapper ───────────────────────────────────────── */
.portal-page { min-height: calc(100vh - var(--nav-h)); }
.portal-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.portal-container-slim {
    max-width: var(--max-w-slim);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero ───────────────────────────────────────────────── */
.portal-hero {
    background: linear-gradient(150deg, #3730a3 0%, #635bff 55%, #818cf8 100%);
    color: #fff;
    padding: 36px 20px 44px;
    text-align: center;
}
@media (min-width: 640px) { .portal-hero { padding: 60px 20px 72px; } }

.portal-hero-inner { max-width: 580px; margin: 0 auto; }

.portal-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: 6px;
}
.portal-hero-sub {
    font-size: clamp(.875rem, 3vw, 1rem);
    opacity: .82;
    margin-bottom: 24px;
}
.portal-hero-search {
    position: relative;
}
.portal-hero-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a1a1aa;
    pointer-events: none;
    z-index: 1;
}
.portal-hero-search input {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 26px;
    padding: 0 110px 0 46px;
    font-size: .975rem;
    color: var(--text);
    outline: none;
    box-shadow: 0 4px 28px rgba(0,0,0,.22);
    -webkit-appearance: none;
    appearance: none;
}
.portal-hero-search input::placeholder { color: #a1a1aa; }
.portal-hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 40px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.portal-hero-search button:hover { background: #4f46e5; }

/* ── Filter bar (sticky, single scrolling row) ──────────── */
.portal-filter-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.portal-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}
.portal-filters::-webkit-scrollbar { display: none; }

.portal-filter-pill {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.portal-filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.portal-filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pf-icon { font-size: .9em; line-height: 1; }
.pf-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #16a34a; flex-shrink: 0;
    box-shadow: 0 0 0 2px #d1fae5;
}
.portal-filter-pill.active .pf-dot { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.pf-divider {
    width: 1px; height: 20px; background: var(--border);
    flex-shrink: 0; margin: 0 2px;
}

/* ── Results wrapper ────────────────────────────────────── */
.portal-results-wrap { padding-top: 24px; padding-bottom: 80px; }

/* ── Loading / empty ────────────────────────────────────── */
.portal-loading {
    display: flex; align-items: center; gap: 12px;
    justify-content: center; padding: 60px 0;
    color: var(--text-3); font-size: .875rem;
}
.portal-empty {
    text-align: center; padding: 64px 20px;
}
.portal-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.portal-empty p { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.portal-empty span { font-size: .875rem; color: var(--text-3); }

/* ── Section headers ────────────────────────────────────── */
.portal-section-hd {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 16px;
}
.portal-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.portal-section-title.closed { color: var(--text-3); }
.psh-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.psh-dot.open { background: #16a34a; }
.portal-section-count {
    font-size: .75rem; font-weight: 600;
    background: var(--surface-2); color: var(--text-3);
    border-radius: 20px; padding: 2px 10px;
}
#section-open  { margin-bottom: 36px; }
#section-closed { margin-bottom: 48px; }

/* ── Restaurant grid ────────────────────────────────────── */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 520px) {
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
    .portal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .portal-grid { grid-template-columns: repeat(4, 1fr); }
}
.portal-grid--closed .portal-card {
    filter: grayscale(30%);
    opacity: .7;
}

/* ── Restaurant card ────────────────────────────────────── */
.portal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.portal-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.04);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text);
}
@media (hover: none) {
    .portal-card:hover { transform: none; box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04); }
    .portal-card:active { opacity: .88; }
}

/* Card image */
.portal-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}
@media (min-width: 640px) { .portal-card-img-wrap { height: 190px; } }

.portal-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.portal-card:hover .portal-card-img { transform: scale(1.03); }
.portal-card-img-ph {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, #ddd6fe 100%);
}

/* Open/closed badge on image */
.portal-card-status {
    position: absolute;
    top: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 9px;
    border-radius: 12px;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .02em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pcs-open  { background: rgba(22,163,74,.85); color: #fff; }
.pcs-closed { background: rgba(0,0,0,.52); color: rgba(255,255,255,.9); }
.pcs-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: .85; flex-shrink: 0;
}

/* Logo badge on image */
.portal-card-logo,
.portal-card-logo-init {
    position: absolute;
    bottom: 10px; left: 10px;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    object-fit: cover;
    background: var(--surface);
}
.portal-card-logo-init {
    background: var(--accent);
    color: #fff;
    font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
}

/* Card body */
.portal-card-body { padding: 13px 14px 14px; }
.portal-card-name {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal-card-cuisine {
    font-size: .75rem;
    color: var(--text-3);
    margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.portal-card-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: .75rem; font-weight: 600; color: var(--text-2);
    margin-bottom: 6px;
}
.pcr-star { color: #f59e0b; }
.pcr-count { font-weight: 400; color: var(--text-3); }
.portal-card-chips {
    display: flex; flex-wrap: wrap; gap: 5px;
}
.portal-chip {
    font-size: .72rem; font-weight: 500;
    color: var(--text-2);
    background: var(--surface-2);
    border-radius: 6px;
    padding: 2px 7px;
    white-space: nowrap;
}

/* Backward-compat badge classes (used on restaurant detail page) */
.portal-card-badge {
    flex-shrink: 0; font-size: .65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 12px;
    text-transform: uppercase; letter-spacing: .04em;
}
.badge-open   { background: var(--success-light); color: var(--success); }
.badge-closed { background: var(--surface-2); color: var(--text-3); }

/* ── Restaurant page ────────────────────────────────────── */
.rest-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.rest-cover-wrap {
    position: relative;
    overflow: hidden;
}
.rest-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
@media (min-width: 640px) { .rest-cover { height: 300px; } }
.rest-cover-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(150deg, #1e1b4b 0%, #4338ca 55%, #635bff 100%);
}
@media (min-width: 640px) { .rest-cover-placeholder { height: 300px; } }
.rest-header-body {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 20px 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.rest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.rest-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--surface);
    margin-top: -36px;
    background: var(--surface-2);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.rest-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 3px solid var(--surface);
    margin-top: -36px;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}
.rest-info { flex: 1; min-width: 0; }
.rest-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.rest-meta { font-size: .82rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 12px; }
.rest-meta span { display: flex; align-items: center; gap: 4px; }

.rest-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.rest-menu-col,
.rest-basket-col { min-width: 0; }
@media (max-width: 860px) {
    .rest-layout { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
    .rest-basket { display: none; }
}

/* Menu category nav */
.menu-cat-nav {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--border);
}
.menu-cat-nav::-webkit-scrollbar { display: none; }
.menu-cat-btn {
    flex-shrink: 0;
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-2);
    transition: all .15s;
    white-space: nowrap;
}
.menu-cat-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.menu-cat-btn.active { background: var(--text); border-color: var(--text); color: #fff; }

.menu-section {
    border-top: 8px solid var(--bg);
    scroll-margin-top: calc(var(--nav-h) + 8px);
}
.menu-section:first-child { border-top: none; }
.menu-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 20px 0 10px;
    color: var(--text);
    letter-spacing: -.02em;
}
.menu-items { display: flex; flex-direction: column; background: var(--surface); }

.menu-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--surface);
    padding: 16px;
    cursor: pointer;
    transition: background .12s;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #f9f9fd; }

.menu-item-img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    order: 2;
}
.menu-item-img-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #6366f1;
    order: 2;
}
.menu-item-body { flex: 1; min-width: 0; order: 1; padding-right: 4px; }
.menu-item-name { font-weight: 700; font-size: .9rem; margin-bottom: 4px; line-height: 1.3; }
.menu-item-desc { font-size: .76rem; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-price { font-weight: 700; font-size: .88rem; margin-top: 8px; color: var(--text); }
.menu-item-add {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1c1c1e;
    color: #fff;
    border: 2.5px solid var(--surface);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    transition: transform .12s, opacity .12s;
}
.menu-item-add:hover { transform: scale(1.08); opacity: .85; }

/* ── Basket / checkout ──────────────────────────────────── */
.rest-basket {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    overflow: hidden;
}
.basket-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.basket-title { font-weight: 700; font-size: .95rem; }
.basket-type-toggle {
    display: flex;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.basket-type-btn {
    flex: 1;
    height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: none;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-3);
    transition: all .15s;
    white-space: nowrap;
}
.basket-type-btn.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.basket-items { padding: 12px 20px; min-height: 60px; }
.basket-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--text-3);
    font-size: .85rem;
}
.basket-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: .85rem;
}
.basket-line:last-child { border-bottom: none; }
.basket-line-qty {
    width: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.basket-line-name { flex: 1; min-width: 0; }
.basket-line-desc { font-size: .72rem; color: var(--text-3); }
.basket-line-price { font-weight: 600; flex-shrink: 0; }
.basket-line-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.basket-line-remove:hover { color: var(--danger); }

.basket-totals {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: .84rem;
}
.basket-total-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-2);
}
.basket-total-row.grand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 8px;
}
.basket-promo {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.basket-promo input {
    flex: 1;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    font-size: .8rem;
    outline: none;
    text-transform: uppercase;
}
.basket-promo input:focus { border-color: var(--accent); }
.basket-promo button {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.basket-promo button:hover { background: var(--border); }
.basket-promo-msg { font-size: .75rem; margin-top: 4px; }
.basket-promo-msg.ok  { color: var(--success); }
.basket-promo-msg.err { color: var(--danger); }

.basket-checkout-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 12px 20px 16px;
    height: 46px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.basket-checkout-btn:hover { background: var(--accent-dark); }
.basket-checkout-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Checkout drawer ────────────────────────────────────── */
/* ── Portal full-screen checkout panel ──────────────────────── */
.pco-panel {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 300;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pco-panel.open { transform: translateX(0); }
.pco-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--surface);
}
.pco-back-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #1c1c1e; color: #fff; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .12s;
}
.pco-back-btn:hover { opacity: .8; }
.pco-close-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: var(--surface-2); color: var(--text-2); font-size: .9rem;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s;
}
.pco-close-btn:hover { background: var(--border); }
.pco-steps-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pco-step-title { font-size: .88rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.pco-step-segs { display: flex; gap: 5px; }
.pco-step-seg { height: 3px; width: 44px; border-radius: 2px; background: var(--border); transition: background .2s; }
.pco-step-seg.done   { background: var(--text); }
.pco-step-seg.active { background: var(--accent); }
.pco-body {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 24px 20px 8px;
}
.pco-body-inner { max-width: 500px; margin: 0 auto; }
.pco-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}
.pco-footer-inner { max-width: 500px; margin: 0 auto; }
.pco-action-btn {
    width: 100%; height: 50px; background: #1c1c1e; color: #fff;
    border: none; border-radius: var(--radius); font-family: var(--font);
    font-size: .95rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .12s; letter-spacing: -.01em;
}
.pco-action-btn:hover:not(:disabled) { opacity: .85; }
.pco-action-btn:disabled { opacity: .35; cursor: not-allowed; }
.pco-error {
    background: var(--danger-light); color: var(--danger);
    border-radius: 8px; padding: 10px 14px; font-size: .84rem;
    margin-bottom: 16px; display: none;
}
.pco-signed-in {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px;
}
.pco-signed-in-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
    color: #fff; font-size: .85rem; font-weight: 700; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pco-signed-in-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.pco-signed-in-sub  { font-size: .73rem; color: var(--text-3); }
/* Payment option cards */
.pco-pay-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pco-pay-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.pco-pay-opt.sel { border-color: var(--text); background: var(--bg); }
.pco-pay-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0;
    transition: border-color .12s, border-width .12s;
}
.pco-pay-opt.sel .pco-pay-radio { border-color: var(--text); border-width: 5px; }
.pco-pay-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.pco-pay-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.pco-pay-desc { font-size: .75rem; color: var(--text-3); }
/* Order summary */
.pco-summary {
    background: var(--bg); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 20px;
}
.pco-summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 5px 0; font-size: .88rem;
}
.pco-summary-row + .pco-summary-row { border-top: 1px solid var(--border-light); }
.pco-summary-total { font-weight: 800; font-size: .95rem; }
/* Collection info */
.pco-collect-card {
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
}
.pco-collect-row { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.pco-collect-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.pco-collect-text { font-size: .88rem; color: var(--text); line-height: 1.4; }
.pco-section-title {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-3); margin: 0 0 12px;
}
/* item modal x button (was reusing checkout-close) */
.item-modal-x-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: var(--surface-2); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--text-2);
    flex-shrink: 0;
}
.item-modal-x-btn:hover { background: var(--border); }

/* ── Forms ──────────────────────────────────────────────── */
.pf-group { margin-bottom: 16px; }
.pf-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}
.pf-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.pf-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,91,255,.12);
}
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-hint { font-size: .75rem; color: var(--text-3); margin-top: 4px; }
.pf-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }
.pf-check { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--text-2); }
.pf-check input[type=checkbox] { margin-top: 2px; accent-color: var(--accent); }
.pf-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}
.pf-section-title {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    margin-bottom: 14px;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: .875rem; color: var(--text-3); margin-bottom: 28px; }
.auth-btn {
    width: 100%;
    height: 46px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    margin-top: 8px;
}
.auth-btn:hover { background: var(--accent-dark); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-footer { text-align: center; font-size: .82rem; color: var(--text-3); margin-top: 20px; }

/* ── Account pages ──────────────────────────────────────── */
.account-layout {
    max-width: var(--max-w-slim);
    margin: 32px auto;
    padding: 0 20px 60px;
}
.account-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.account-nav a {
    padding: 10px 16px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.account-nav a.active,
.account-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.order-card-rest { font-weight: 700; font-size: .95rem; }
.order-card-date { font-size: .78rem; color: var(--text-3); }
.order-card-items { font-size: .82rem; color: var(--text-2); margin-bottom: 10px; }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; }
.order-card-total { font-weight: 700; }
.order-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.status-new        { background: #dbeafe; color: #1d4ed8; }
.status-accepted   { background: #fef9c3; color: #854d0e; }
.status-ready      { background: var(--success-light); color: var(--success); }
.status-rejected   { background: var(--danger-light); color: var(--danger); }
.status-delivered,
.status-collected  { background: var(--surface-2); color: var(--text-3); }

.reorder-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.reorder-btn:hover { background: var(--accent); color: #fff; }

/* ── Mobile basket bar + sheet ──────────────────────────── */
.mobile-basket-bar {
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom));
    left: 0; right: 0;
    padding: 10px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    z-index: 140;
    display: none;
    align-items: center;
    gap: 10px;
}
@media (max-width: 639px) {
    .mobile-basket-bar.visible { display: flex; }
    body.has-basket-bar { padding-bottom: calc(56px + 68px + env(safe-area-inset-bottom)) !important; }
}
.mbb-meta { font-size: .78rem; color: var(--text-3); flex-shrink: 0; }
.mbb-meta strong { color: var(--accent); font-weight: 700; }
.mbb-btn {
    flex: 1;
    height: 46px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    transition: background .15s;
}
.mbb-btn:hover { background: #2a2a3a; }
.mbs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 155;
    display: flex;
    align-items: flex-end;
}
.mbs-sheet {
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}
.mbs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}
.mbs-title { font-weight: 700; font-size: .95rem; }
.mbs-checkout-wrap { padding: 4px 20px 12px; }

/* ── Item modal ─────────────────────────────────────────── */
.item-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 600px) {
    .item-modal-overlay { align-items: center; padding: 16px; }
}
.item-modal-box {
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
}
@media (min-width: 600px) {
    .item-modal-box { border-radius: var(--radius-lg); max-height: 88vh; }
}
.item-modal-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.item-modal-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.item-modal-img-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.item-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.item-modal-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.item-modal-body { padding: 16px 20px; }
.item-modal-section { margin-bottom: 20px; }
.item-modal-section-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: 2px;
}
.item-modal-section-sub {
    font-size: .73rem;
    color: var(--text-3);
    margin-bottom: 10px;
}
.required-tag {
    display: inline-block;
    font-size: .62rem;
    background: var(--danger-light);
    color: var(--danger);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
}
.item-modal-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.item-modal-pill {
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: .8rem;
    cursor: pointer;
    color: var(--text);
    transition: all .15s;
    white-space: nowrap;
}
.item-modal-pill.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.item-modal-pill .pill-price { font-size: .72rem; color: var(--text-3); margin-left: 3px; }
.item-modal-pill.active .pill-price { color: var(--accent); opacity: .8; }
/* Option group list rows (radio/checkbox style) */
.item-modal-opt-list { display: flex; flex-direction: column; }
.item-modal-opt-row {
    display: flex; align-items: center; padding: 13px 0;
    border-bottom: 1px solid var(--border-light); cursor: pointer; gap: 10px;
    -webkit-tap-highlight-color: transparent;
}
.item-modal-opt-row:last-child { border-bottom: none; }
.item-modal-opt-lbl { flex: 1; font-size: .9rem; font-weight: 500; color: var(--text); }
.item-modal-opt-price { font-size: .8rem; color: var(--text-3); flex-shrink: 0; }
.item-modal-opt-ctrl {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .12s;
}
.item-modal-opt-radio.sel { background: transparent; border-color: var(--text); border-width: 6px; }
.item-modal-opt-check { border-radius: 6px; }
.item-modal-opt-check.sel { background: var(--text); border-color: var(--text); }
.item-modal-opt-check svg { display: none; }
.item-modal-opt-check.sel svg { display: block; }
.item-modal-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: .875rem;
}
.item-modal-toggle-row:last-child { border-bottom: none; }
.item-modal-toggle-btn {
    width: 46px;
    height: 26px;
    border-radius: 13px;
    border: none;
    cursor: pointer;
    font-size: .65rem;
    font-weight: 700;
    transition: background .15s, color .15s;
    background: var(--surface-2);
    color: var(--text-3);
}
.item-modal-toggle-btn.active { background: var(--accent); color: #fff; }
.item-modal-footer {
    padding: 12px 20px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: var(--surface);
}
.item-modal-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    transition: border-color .15s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; }
.item-modal-add-btn {
    flex: 1;
    height: 42px;
    background: #1c1c1e;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.item-modal-add-btn:hover { background: #2a2a3a; }

/* ── Toast notifications ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--text);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease;
    pointer-events: auto;
    max-width: 320px;
}
.toast.toast-success { background: var(--success); }
.toast.toast-error   { background: var(--danger); }
@keyframes toast-in { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }

/* ── Order success / account creation prompt ────────────── */
.success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    max-width: 480px;
    margin: 40px auto 0;
}
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}
.success-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.success-card p { font-size: .875rem; color: var(--text-2); margin-bottom: 24px; }

.account-prompt {
    background: linear-gradient(135deg, var(--accent-light), #e0e7ff);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
    text-align: left;
}
.account-prompt h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--accent-dark); }
.account-prompt p { font-size: .82rem; color: var(--text-2); margin-bottom: 14px; }

/* ── General utility ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .8rem; }

.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.w-full { width: 100%; }

/* ── PWA Bottom nav ─────────────────────────────────────── */
.portal-bottom-nav {
    display: none;
}
@media (max-width: 639px) {
    .portal-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 150;
        align-items: stretch;
    }
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
.pbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: color .15s;
    padding: 6px 0 2px;
}
.pbn-item:hover, .pbn-item.active { color: var(--accent); text-decoration: none; }
.pbn-item svg { flex-shrink: 0; }
.pbn-item span { line-height: 1; }

/* ── Footer ─────────────────────────────────────────────── */
.portal-footer {
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    font-size: .78rem;
    color: var(--text-3);
    background: var(--surface);
}
.portal-footer a { color: var(--text-3); }
.portal-footer a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-box { padding: 28px 20px; }
    .portal-hero-search input { padding-right: 90px; }
    .portal-hero-search button { padding: 0 14px; font-size: .8rem; }
    .pf-row { grid-template-columns: 1fr; }
}

/* ── Flash Deal Banner ──────────────────────────────────── */
.portal-flash-banner {
    background: linear-gradient(135deg, #7c3aed 0%, #635bff 100%);
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 60px;
    z-index: 50;
}
.portal-flash-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
}
.portal-flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: portal-flash-pulse 1.4s ease-in-out infinite;
}
@keyframes portal-flash-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}
.portal-flash-text { flex: 1; }
.portal-flash-countdown {
    font-size: .78rem;
    opacity: .85;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── Restaurant reviews (portal detail page) ── */
.pr-reviews-section { padding: 24px 0 16px; border-top: 1px solid var(--border); margin-top: 8px; }
.pr-reviews-header  { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pr-reviews-stars   { color: #f59e0b; font-size: 1.05rem; letter-spacing: 2px; }
.pr-reviews-avg     { font-size: 1rem; font-weight: 700; color: var(--text); }
.pr-reviews-count   { font-size: .8rem; color: var(--text-3); }
.pr-reviews-list    { display: flex; flex-direction: column; gap: 10px; }
.pr-review-card     { background: var(--surface-2,#f4f4f6); border-radius: 10px; padding: 12px 14px; }
.pr-review-head     { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pr-review-stars    { color: #f59e0b; font-size: .85rem; letter-spacing: 1px; }
.pr-review-name     { font-size: .78rem; font-weight: 600; color: var(--text); }
.pr-review-date     { font-size: .72rem; color: var(--text-3); margin-left: auto; }
.pr-review-body     { font-size: .82rem; color: var(--text-2); line-height: 1.5; margin-bottom: 6px; }
.pr-review-reply    { font-size: .78rem; color: var(--text-2); border-left: 2px solid var(--accent,#635bff); padding-left: 8px; margin-top: 6px; }
.pr-review-reply-label { font-weight: 700; display: block; margin-bottom: 2px; color: var(--accent,#635bff); font-size: .72rem; }
.rest-rating-line  { display:flex; align-items:center; gap:6px; margin:2px 0 6px; }
.rest-rating-stars { color:#f59e0b; font-size:.88rem; letter-spacing:1px; }
.rest-rating-avg   { font-size:.82rem; font-weight:700; color:var(--text); }
.rest-rating-count { font-size:.78rem; color:var(--text-3); }
.rest-rating-link  { font-size:.75rem; color:var(--accent); margin-left:4px; }
