/* Devanagari only: Latin text and the rupee sign stay in Poppins. */
@font-face {
    font-family: 'Noto Sans Devanagari';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/NotoSansDevanagari-devanagari.a215122a6439.woff2") format('woff2');
    size-adjust: 108%;
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #e0ebff;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --nav-height: 64px;
    --app-width: 480px;
}

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

html,
body {
    margin: 0;
}

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: #e6ebf3;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.25;
    margin: 0;
}

p {
    margin: 0;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.muted {
    color: var(--muted);
}

/* App shell */
.app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--app-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg);
}

@media (min-width: 520px) {
    .app {
        box-shadow: 0 0 48px rgba(15, 23, 42, 0.14);
    }
}

.app-content {
    flex: 1;
    padding: 16px 16px calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
}

.app.no-nav .app-content {
    padding-bottom: 32px;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.app-bar-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bar-back {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--dark);
}

.app-bar-action {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Home header */
.home-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-bottom: 0;
}

.home-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    color: var(--dark);
}

.location-pill > svg:first-child {
    flex-shrink: 0;
    color: var(--primary);
}

.location-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.location-text small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.location-text strong {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--dark);
    font-size: 0.95rem;
}

/* Shop type tabs */
.type-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -16px -4px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.type-tabs::-webkit-scrollbar {
    display: none;
}

.type-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.type-tab.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.also-found {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

.also-found .type-tab {
    height: 32px;
    font-size: 0.82rem;
}

.shop-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 6px 0 2px;
    font-size: 0.8rem;
    color: var(--muted);
}

.shop-matches strong {
    color: var(--primary);
    font-weight: 600;
}

.type-picker {
    border: 0;
    padding: 0;
    margin: 0;
}

.type-picker legend {
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option span {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    font-weight: 600;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
}

.type-option input:checked + span {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary);
}

.type-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Category strip */
.category-strip {
    display: flex;
    gap: 8px;
    margin: -4px -16px 8px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    border-bottom: 1px solid var(--border);
}

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

.category {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 74px;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    scroll-snap-align: start;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
    border-radius: 18px;
    background: var(--bg-alt);
    border: 2px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.category:active .category-icon {
    transform: scale(0.94);
}

.category.active {
    color: var(--primary);
    font-weight: 600;
}

.category.active .category-icon {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    width: 100%;
    max-width: var(--app-width);
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s ease;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav-icon {
    position: relative;
    display: flex;
}

.nav-badge {
    position: absolute;
    top: -6px;
    left: 14px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--danger);
    border: 2px solid #fff;
    border-radius: 999px;
    box-sizing: content-box;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-danger-outline {
    background: #fff;
    border-color: var(--danger-soft);
    color: var(--danger);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 15px 20px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Toasts */
.toasts {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(calc(var(--app-width) - 32px), calc(100% - 32px));
}

.toast {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: var(--dark);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

/* Section headings and empty states */
.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 12px;
}

.section-title h2 {
    font-size: 1.1rem;
}

.section-title span {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.empty-state {
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-state-page {
    margin-top: 12vh;
    border: 0;
}

.empty-state-icon {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.location-prompt {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--primary-soft);
    border-radius: var(--radius);
}

.location-prompt-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.location-prompt strong {
    color: var(--dark);
}

.location-prompt p {
    font-size: 0.85rem;
    margin: 2px 0 10px;
}

.location-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Shop cards */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.1s ease;
}

.shop-card:active {
    transform: scale(0.99);
}

.shop-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.shop-avatar-lg {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
    border-radius: 18px;
}

.shop-avatar-icon {
    position: relative;
    background: var(--primary-soft);
    font-size: 1.8rem;
    font-weight: 400;
}

.shop-avatar-icon.shop-avatar-lg {
    font-size: 2.2rem;
}

.shop-avatar-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--primary);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.shop-avatar-badge svg {
    width: 17px;
    height: 17px;
}

.shop-avatar-lg .shop-avatar-badge {
    width: 30px;
    height: 30px;
}

.shop-avatar-lg .shop-avatar-badge svg {
    width: 20px;
    height: 20px;
}

.shop-card-body {
    flex: 1;
    min-width: 0;
}

.shop-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-card-top h3 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-meta {
    margin: 2px 0 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.shop-meta strong {
    color: var(--dark);
    font-weight: 600;
}

.dot-sep {
    margin: 0 6px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.tag {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--bg-alt);
    border-radius: 6px;
}

.tag-muted {
    color: var(--muted);
}

.badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-verified {
    background: var(--success-soft);
    color: var(--success);
}

.badge-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-owner {
    background: var(--primary-soft);
    color: var(--primary);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-open {
    color: var(--success);
}

.status-open::before {
    background: var(--success);
}

.status-closed {
    color: var(--danger);
}

.status-closed::before {
    background: var(--danger);
}

.status-detail {
    font-weight: 400;
    color: var(--muted);
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark), #1e3a8a);
    border-radius: var(--radius);
}

.promo-icon {
    font-size: 2rem;
}

.promo-card strong,
.promo-card small {
    display: block;
}

.promo-card small {
    color: #cbd5e1;
    font-size: 0.8rem;
}

/* Shop detail and dashboard */
.shop-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-hero h2 {
    font-size: 1.25rem;
}

.shop-hero .shop-meta {
    margin-bottom: 6px;
}

.shop-hero .tags {
    margin: 0;
}

.shop-hero-card {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.action-icon {
    font-size: 1.3rem;
}

.card {
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-head .card-title {
    margin-bottom: 0;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.card-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.price-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.price-list li:last-child {
    border-bottom: 0;
}

.price-list-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--dark);
}

.price-list-icon {
    font-size: 1.3rem;
}

.price-list-price {
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.price-list-price small {
    font-weight: 500;
    color: var(--muted);
}

.detail-list {
    margin: 0;
}

.detail-list div {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.9rem;
}

.detail-list dt {
    width: 70px;
    flex-shrink: 0;
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    color: var(--dark);
}

.open-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.open-toggle strong,
.open-toggle small {
    display: block;
}

.open-toggle strong {
    color: var(--dark);
}

.open-toggle small {
    font-size: 0.8rem;
    color: var(--muted);
}

.switch {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.switch.is-on {
    background: var(--success);
}

.switch.is-on::after {
    transform: translateX(22px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.stat {
    padding: 14px 10px;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 12px;
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--dark);
}

.stat span {
    font-size: 0.75rem;
    color: var(--muted);
}

.notice {
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    border-radius: 12px;
}

.notice-info {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.notice-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}

.check-label input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.check-label a,
.booking-terms a,
.legal-links a {
    font-weight: 600;
    color: var(--primary);
}

.booking-terms {
    margin: 4px 4px 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

.legal-links {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--dark);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--danger);
}

.field-help {
    font-size: 0.78rem;
    color: var(--muted);
}

.field-help ul {
    margin: 0;
    padding-left: 18px;
}

.field-error {
    font-size: 0.8rem;
    color: var(--danger);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-errors {
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--danger);
    background: var(--danger-soft);
    border-radius: 12px;
}

/* Auth */
.auth {
    padding-top: 8px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand h2 {
    font-size: 1.4rem;
    margin: 12px 0 4px;
}

.auth-brand p {
    color: var(--muted);
    font-size: 0.9rem;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
}

.logo-image {
    display: block;
    margin: 0 auto;
    padding: 3px;
    background: #fff;
    object-fit: contain;
}

.auth-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-switch a,
.auth-switch .link-button {
    font-weight: 600;
    color: var(--primary);
}

.btn-google {
    gap: 10px;
    color: var(--dark);
    background: #fff;
    border-color: var(--border);
}

.btn-google:hover {
    background: #f8fafc;
}

.google-terms {
    margin-top: 8px;
    font-size: 0.78rem;
    text-align: center;
    color: var(--muted);
}

.google-terms a {
    color: var(--primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Login pages */
.app.auth-page {
    background: #eef3fb;
}

.auth-page .app-bar {
    min-height: 72px;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
}

.auth-page .app-bar-back {
    width: 44px;
    height: 44px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-page .app-bar-title {
    font-size: 1.3rem;
}

.auth-page .lang-button {
    padding: 9px 14px;
    font-size: 0.9rem;
    background: #fff;
    border-color: #fff;
    box-shadow: var(--shadow);
}

.auth-page .auth-brand {
    margin-bottom: 28px;
}

.auth-page .logo-image {
    width: 80px;
    height: 80px;
    padding: 4px;
    border-radius: 18px;
}

.auth-page .auth-brand h2 {
    margin-top: 18px;
    font-size: 1.6rem;
    font-weight: 700;
}

.auth-page .auth-brand p {
    font-size: 0.95rem;
}

.auth-page .field label {
    font-size: 0.9rem;
}

.auth-page .field input:not([type='checkbox']):not([type='radio']) {
    padding: 15px 16px;
    border-color: #dde5f0;
    border-radius: 16px;
}

.auth-page .btn-lg {
    border-radius: 999px;
}

.auth-page .btn-primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.auth-page .btn-outline {
    background: transparent;
}

.auth-otp-button {
    margin-top: 14px;
}

.password-input {
    position: relative;
}

.field .password-input input:not([type='checkbox']):not([type='radio']) {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle-hide,
.password-toggle[aria-pressed='true'] .password-toggle-show {
    display: none;
}

.password-toggle[aria-pressed='true'] .password-toggle-hide {
    display: block;
}

.auth-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.auth-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: var(--dark);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.auth-card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
}

.auth-card-text strong,
.auth-card-text small {
    display: block;
}

.auth-card-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.auth-card-text small {
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-card-customer {
    background: var(--primary-soft);
}

.auth-card-customer .auth-card-icon {
    color: var(--primary);
}

.auth-card-shop {
    background: var(--warning-soft);
}

.auth-card-shop .auth-card-icon {
    color: #c2410c;
}

.auth-page .legal-links {
    margin-top: 44px;
}

.phone-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #dde5f0;
    border-radius: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.phone-input span {
    padding: 0 4px 0 16px;
    font-weight: 600;
    color: var(--dark);
}

.field .phone-input input:not([type='checkbox']):not([type='radio']) {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-left: 8px;
}

#otp-captcha {
    display: flex;
    justify-content: center;
}

#otp-captcha:empty {
    display: none;
}

.otp-sent-to {
    text-align: center;
    color: var(--text);
}

.otp-code {
    font-size: 1.4rem !important;
    letter-spacing: 0.4em;
    text-align: center;
}

.otp-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}

.otp-links .link-button {
    font-weight: 600;
    color: var(--primary);
}

.otp-links .link-button:disabled {
    color: var(--muted);
    cursor: default;
}

.menu-list span svg {
    display: block;
    margin: 0 auto;
}

.owner-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark), #1e3a8a);
    border-radius: var(--radius);
    transition: transform 0.1s ease;
}

.owner-banner:active {
    transform: scale(0.99);
}

.owner-banner-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.owner-banner-text {
    flex: 1;
    min-width: 0;
}

.owner-banner-text strong,
.owner-banner-text small {
    display: block;
}

.owner-banner-text small {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.owner-hero {
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--dark), #1e3a8a);
    border-radius: var(--radius);
}

.owner-hero-icon {
    font-size: 2.2rem;
}

.owner-hero h2 {
    margin: 6px 0 4px;
    font-size: 1.25rem;
    color: #fff;
}

.owner-hero p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.benefit-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.benefit-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark);
    background: #86efac;
    border-radius: 50%;
}

.auth-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    flex: 1;
    padding-top: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    border-top: 4px solid var(--border);
}

.auth-steps li.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* Onboarding */
.stepper {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.stepper li {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    border-top: 4px solid var(--border);
}

.stepper li span {
    display: none;
}

.stepper li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.stepper li.done {
    color: var(--success);
    border-color: var(--success);
}

.page-heading {
    margin-bottom: 20px;
}

.page-heading h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.page-heading p {
    font-size: 0.9rem;
    color: var(--muted);
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-option {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.service-option.is-selected {
    border-color: var(--primary);
    background: #f8fbff;
}

.service-option-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
}

.service-option-head input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-option-icon {
    font-size: 1.7rem;
}

.service-option-text {
    flex: 1;
    min-width: 0;
}

.service-option-text strong,
.service-option-text small {
    display: block;
}

.service-option-text strong {
    color: var(--dark);
}

.service-option-text small {
    font-size: 0.78rem;
    color: var(--muted);
}

.checkmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 7px;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.service-option.is-selected .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.service-option.is-selected .checkmark::after {
    content: '\2713';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.service-option-head:has(input:focus-visible) {
    box-shadow: inset 0 0 0 2px var(--primary);
    border-radius: var(--radius);
}

.rate-card {
    display: none;
    padding: 0 14px 14px;
}

.service-option.is-selected .rate-card {
    display: block;
}

.rate-card .field-help {
    margin: 0 0 10px;
}

.rate-card-error {
    margin: -6px 14px 10px;
}

.rate-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px 100px 28px;
    align-items: center;
    gap: 4px 8px;
    padding: 5px 0;
}

.rate-row-head {
    padding-top: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.rate-row-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.rate-row-remove:hover,
.rate-row-remove:focus-visible {
    color: var(--danger);
    background: var(--bg-alt);
}

.rate-row input:not([type='hidden']),
.rate-row select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.95rem;
    color: var(--dark);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.rate-row select {
    padding-right: 4px;
    font-size: 0.85rem;
}

.rate-row input:focus,
.rate-row select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.rate-row.has-error input:not([type='hidden']) {
    border-color: var(--danger);
}

.rate-row .field-error {
    grid-column: 1 / -1;
}

.rate-card-add {
    margin-top: 8px;
}

/* Maps */
.map-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 12px;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

.map-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    color: var(--dark);
    background: transparent;
}

.map {
    position: relative;
    z-index: 0;
    height: 280px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    overflow: hidden;
}

.map-sm {
    height: 180px;
}

.map-status {
    font-size: 0.82rem;
    color: var(--muted);
}

.map-status.is-error {
    color: var(--danger);
}

.pickup-location {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pickup-location-actions {
    display: flex;
    gap: 8px;
}

.pickup-location-actions .btn {
    flex: 1;
    gap: 6px;
    padding-inline: 10px;
}

.pickup-pin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--dark);
    background: var(--primary-soft);
    border-radius: 12px;
}

.pickup-pin .link-button {
    flex-shrink: 0;
    font: inherit;
    font-weight: 600;
    color: var(--danger);
}

.pickup-map .map {
    height: 240px;
}

.pickup-map [data-map-locate] {
    display: none;
}

.pickup-detail-map {
    margin-bottom: 12px;
}

.selected-location {
    padding: 12px 14px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.selected-location span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.selected-location strong {
    color: var(--dark);
}

/* Account */
.profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile h2 {
    font-size: 1.2rem;
}

.profile p {
    font-size: 0.88rem;
    color: var(--muted);
}

.profile .badge {
    margin-top: 6px;
}

.avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
}

.menu-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 500;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}

.menu-list a:last-child {
    border-bottom: 0;
}

.menu-list a::after {
    content: '\203A';
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--muted);
}

.menu-list span {
    width: 24px;
    text-align: center;
}

/* Shop QR poster */
.shop-qr-hint {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.shop-qr-poster {
    max-width: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.shop-qr-poster canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Booking */
.book-bar {
    position: sticky;
    bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
    z-index: 10;
    padding-top: 8px;
}

.book-bar .btn {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.book-bar-note {
    margin-top: 6px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--muted);
}

.qty-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qty-group {
    border-top: 1px solid var(--border);
}

.qty-group summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    list-style: none;
    cursor: pointer;
}

.qty-group summary::-webkit-details-marker {
    display: none;
}

.qty-group summary::after {
    content: '';
    width: 8px;
    height: 8px;
    margin: 0 4px 4px 0;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.qty-group[open] summary::after {
    margin: 4px 4px 0 0;
    transform: rotate(-135deg);
}

.qty-group-title {
    flex: 1;
    min-width: 0;
}

.qty-group-title strong,
.qty-group-title small {
    display: block;
}

.qty-group-title strong {
    color: var(--dark);
}

.qty-group-title small {
    font-size: 0.78rem;
    color: var(--muted);
}

.qty-group-count {
    min-width: 22px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: var(--primary);
    border-radius: 999px;
}

.qty-group .qty-list {
    padding-bottom: 6px;
}

.qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.qty-row:last-child {
    border-bottom: 0;
}

.qty-row .field-error {
    flex-basis: 100%;
}

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

.qty-info strong,
.qty-info small {
    display: block;
}

.qty-info strong {
    color: var(--dark);
    font-weight: 600;
}

.qty-info small {
    font-size: 0.78rem;
    color: var(--muted);
}

.qty-stepper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.qty-row.has-error .qty-stepper {
    border-color: var(--danger);
}

.qty-stepper button {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-alt);
    border: 0;
    cursor: pointer;
}

.qty-stepper input {
    width: 48px;
    height: 36px;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
    border: 0;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkout-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 -16px -32px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.checkout-total small,
.checkout-total strong {
    display: block;
}

.checkout-total small {
    font-size: 0.75rem;
    color: var(--muted);
}

.checkout-total strong {
    font-size: 1.3rem;
    color: var(--dark);
}

/* Login bottom sheet */
.sheet {
    width: 100%;
    max-width: var(--app-width);
    max-height: 90vh;
    margin: auto auto 0;
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    color: var(--text);
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.2);
}

.sheet[open] {
    animation: sheet-up 0.25s ease-out;
}

.sheet::backdrop {
    background: rgba(15, 23, 42, 0.5);
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-handle {
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--border);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sheet-head h2 {
    font-size: 1.15rem;
}

.sheet-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--dark);
    background: var(--bg-alt);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.sheet-subtitle {
    margin-top: -8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.sheet .auth-switch {
    margin-top: 0;
}

/* Orders */
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.segmented a {
    flex: 1;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
    border-radius: 9px;
}

.segmented a.active {
    color: var(--dark);
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    display: block;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-card-top strong,
.order-title {
    font-size: 1rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card-meta {
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--muted);
}

.order-card-items {
    margin: 8px 0;
    font-size: 0.85rem;
}

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px dashed var(--border);
}

.order-card-bottom strong {
    color: var(--dark);
}

.pill {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 999px;
}

.pill-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.pill-accepted,
.pill-picked_up {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.pill-delivered {
    background: var(--success-soft);
    color: var(--success);
}

.pill-cancelled,
.pill-rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.timeline {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.timeline li {
    flex: 1;
    padding-top: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
    border-top: 4px solid var(--border);
}

.timeline li.done {
    color: var(--success);
    border-color: var(--success);
}

.timeline li.current {
    color: var(--primary);
    border-color: var(--primary);
}

.order-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.line-detail {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
}

.price-list-total {
    font-weight: 700;
    color: var(--dark);
}

.stat-highlight {
    background: var(--warning-soft);
}

/* Favourites */
.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.fav-strip {
    display: flex;
    gap: 10px;
    margin: 0 -16px 8px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.fav-strip::-webkit-scrollbar {
    display: none;
}

.fav-card {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.fav-card-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fav-card-link .shop-avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    border-radius: 12px;
}

.fav-card-link .shop-avatar-icon {
    font-size: 1.4rem;
}

.fav-card-link .shop-avatar-badge {
    width: 20px;
    height: 20px;
}

.fav-card-link .shop-avatar-badge svg {
    width: 12px;
    height: 12px;
}

.fav-card-link strong {
    font-size: 0.9rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-card-link small {
    font-size: 0.75rem;
    color: var(--muted);
}

.text-open {
    font-weight: 600;
    color: var(--success);
}

.text-closed {
    font-weight: 600;
    color: var(--danger);
}

.fav-mark {
    flex-shrink: 0;
    font-size: 0.8rem;
}

.fav-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--muted);
    fill: none;
    background: var(--bg-alt);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, color 0.15s ease;
}

.fav-toggle:active {
    transform: scale(0.9);
}

.fav-toggle.is-on {
    color: #e11d48;
    fill: #e11d48;
    background: #ffe4e6;
}

.fav-toggle svg {
    fill: inherit;
}

.fav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fav-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.page-note {
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

.stat-highlight strong {
    color: var(--warning);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Owner dashboard */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 14px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #3b82f6 60%, #60a5fa);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.dash-hero h2 {
    margin: 2px 0 10px;
    font-size: 1.3rem;
    color: #fff;
}

.dash-hero .shop-avatar {
    color: var(--primary);
    background: #fff;
}

.dash-greeting {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.dash-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.dash-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.dash-chip-open {
    color: var(--success);
}

.dash-chip-closed {
    color: var(--danger);
}

.dash-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 0.88rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.dash-empty span {
    font-size: 1.5rem;
}

.dash-empty p {
    margin: 0;
}

.order-card-amount {
    font-weight: 600;
    color: var(--dark);
}

.menu-list-detailed a {
    padding: 12px 16px;
}

.menu-list-detailed span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: var(--bg-alt);
}

.menu-list-detailed div {
    min-width: 0;
}

.menu-list-detailed strong,
.menu-list-detailed small {
    display: block;
}

.menu-list-detailed small {
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Opening hours */
.hours-list {
    padding: 4px 16px;
    margin: 0 0 12px;
    list-style: none;
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.hours-row:last-child {
    border-bottom: 0;
}

.hours-day {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
}

.hours-day input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.hours-day input:checked + .switch-track {
    background: var(--success);
}

.hours-day input:checked + .switch-track::after {
    transform: translateX(16px);
}

.hours-day input:focus-visible + .switch-track {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.hours-times {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hours-times input {
    width: 122px;
    padding: 6px;
    font: inherit;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.hours-to {
    font-size: 0.8rem;
    color: var(--muted);
}

.hours-closed-label {
    display: none;
    font-size: 0.88rem;
    color: var(--muted);
}

.hours-row.is-closed .hours-times {
    display: none;
}

.hours-row.is-closed .hours-closed-label {
    display: inline;
}

.hours-row .field-error {
    flex-basis: 100%;
    text-align: right;
}

.hours-week {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hours-week li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.hours-week li.is-today {
    font-weight: 600;
    color: var(--dark);
}

.hours-week li.is-today small {
    font-weight: 400;
    color: var(--muted);
}

/* Language */
.lang-button {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
}

.lang-button svg {
    color: var(--primary);
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    text-align: left;
    color: var(--dark);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.language-option.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.language-option-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 12px;
}

.language-option.is-active .language-option-mark {
    color: #fff;
    background: var(--primary);
}

.language-option-text {
    flex: 1;
}

.language-option-text strong,
.language-option-text small {
    display: block;
}

.language-option-text small {
    font-size: 0.78rem;
    color: var(--muted);
}

.language-option.is-active .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.language-option.is-active .checkmark::after {
    content: '\2713';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.menu-list-value {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
}

.menu-list a:has(.menu-list-value)::after {
    margin-left: 8px;
}

/* Push notifications */
.push-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-card-icon,
.push-prompt-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: var(--primary-soft);
}

.push-card-text {
    flex: 1;
    min-width: 0;
}

.push-card-text strong,
.push-card-text small {
    display: block;
}

.push-card-text strong {
    color: var(--dark);
}

.push-card-text small {
    font-size: 0.8rem;
    color: var(--muted);
}

.push-card-state {
    margin-top: 2px;
    font-weight: 600;
}

.push-card .btn {
    flex-shrink: 0;
}

.push-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #c7d8fb;
    border-radius: var(--radius);
    background: #f3f7ff;
}

.push-prompt p {
    flex: 1;
    min-width: 180px;
    font-size: 0.88rem;
    color: var(--dark);
}

.push-prompt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.push-prompt .link-button {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Customers (shop owner) */
.customer-search {
    margin-bottom: 14px;
}

.menu-list-detailed .customer-initial {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
}

.menu-list-detailed .customer-count {
    flex-shrink: 0;
    overflow: visible;
}

.customer-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-address {
    margin: 0 0 6px;
}

.customer-address:last-child {
    margin-bottom: 0;
}

.customer-privacy {
    margin: 10px 0 0;
    font-size: 0.78rem;
}

.order-title a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

/* Devanagari: letter-spacing breaks the joined headline of each word, and
   vowel signs above and below the letters need extra line height. */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4,
:lang(mr) h1, :lang(mr) h2, :lang(mr) h3, :lang(mr) h4 {
    line-height: 1.4;
}

:lang(hi) .location-text,
:lang(mr) .location-text {
    line-height: 1.35;
}

:lang(hi) .location-text small,
:lang(hi) .selected-location span,
:lang(mr) .location-text small,
:lang(mr) .selected-location span {
    letter-spacing: normal;
}
