/* ─── Mobile app shell (mockup design) ─── */

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Header: burger | logo | cart */
  body .header__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 56px;
    gap: 8px;
  }

  body .logo {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
  }

  body .burger {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 10px;
    gap: 6px;
    justify-self: start;
  }

  body .burger span {
    background: var(--gold);
    height: 2px;
    border-radius: 1px;
  }

  body .header__actions {
    display: contents;
  }

  body .header__actions .theme-toggle,
  body .header__phone,
  body .header__actions > .btn:not(.header__cart) {
    display: none !important;
  }

  body .header__cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--gold);
    position: relative;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  body .header__cart svg {
    width: 22px;
    height: 22px;
  }

  body .header__cart-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  body .nav .nav__link--active {
    color: var(--gold);
  }

  /* Bottom tab bar */
  body.nav-open .m-tab-bar {
    display: none !important;
  }

  :root {
    --m-header-h: 56px;
    --m-tabbar-h: 64px;
  }

  .m-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  [data-theme="dark"] .m-tab-bar {
    background: rgb(17 26 46 / 96%);
  }

  [data-theme="light"] .m-tab-bar {
    background: rgb(255 255 255 / 96%);
  }

  .m-tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: var(--fg-subtle);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
    min-width: 0;
  }

  .m-tab-bar__item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .m-tab-bar__item--active {
    color: var(--gold);
  }

  .m-tab-bar__item--active svg {
    stroke: var(--gold);
  }

  /* ─── Home ─── */
  body[data-page="home"] .hero {
    min-height: auto;
    padding: 72px 0 32px;
    align-items: flex-end;
  }

  body[data-page="home"] .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 12px;
  }

  body[data-page="home"] .hero__title br { display: none; }

  body[data-page="home"] .hero__subtitle {
    display: none;
  }

  body[data-page="home"] .hero__actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  body[data-page="home"] .hero__actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  body[data-page="home"] .hero__actions .btn--outline-white {
    background: transparent;
    border: 1px solid rgb(255 255 255 / 35%);
  }

  body[data-page="home"] .taste {
    display: none;
  }

  body[data-page="home"] .locations {
    display: none;
  }

  body[data-page="home"] #menu .menu__categories {
    display: none;
  }

  body[data-page="home"] #menu .section-head--center .section-desc {
    display: none;
  }

  body[data-page="home"] .social,
  body[data-page="home"] .newsletter {
    display: none;
  }

  body[data-page="home"] .privileges__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="home"] .privileges__grid::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .privileges__grid .promo-banner,
  body[data-page="home"] .privileges__grid .m-privilege-card {
    flex: 0 0 min(85vw, 320px);
    min-height: 200px;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
  }

  body[data-page="home"] .m-privilege-card__bg,
  body[data-page="home"] .m-privilege-card__overlay {
    position: absolute;
    inset: 0;
  }

  body[data-page="home"] .m-privilege-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body[data-page="home"] .m-privilege-card__overlay {
    background: linear-gradient(0deg, rgb(0 0 0 / 78%) 0%, transparent 65%);
  }

  body[data-page="home"] .m-privilege-card__body {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
  }

  body[data-page="home"] .m-privilege-card__tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body[data-page="home"] .m-privilege-card__body h3 {
    margin: 0 0 6px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
  }

  body[data-page="home"] .m-privilege-card__body p {
    margin: 0;
    font-size: 0.78rem;
    color: rgb(255 255 255 / 78%);
  }

  body[data-page="home"] .m-home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-top: 32px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
  }

  body[data-page="home"] .m-home-stats__item strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1;
    margin-bottom: 4px;
  }

  body[data-page="home"] .m-home-stats__item span {
    font-size: 0.72rem;
    color: var(--fg-muted);
    text-transform: lowercase;
  }

  .m-home-dishes {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 8px;
  }

  .m-dish-card {
    display: block;
    border-radius: 0;
    overflow: visible;
  }

  .m-dish-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-muted);
    margin-bottom: 14px;
  }

  .m-dish-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .m-dish-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
  }

  .m-dish-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }

  .m-dish-card__head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 0;
  }

  .m-dish-card__price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
  }

  .m-dish-card__desc {
    font-size: 0.82rem;
    color: var(--fg-muted);
    line-height: 1.55;
    margin: 0;
  }

  .m-privilege-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
  }

  .m-privilege-card__bg {
    position: absolute;
    inset: 0;
  }

  .m-privilege-card__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .m-privilege-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 25%) 60%, transparent 100%);
  }

  .m-privilege-card__body {
    position: relative;
    z-index: 1;
  }

  .m-privilege-card__tag {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
  }

  .m-privilege-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    margin: 0 0 6px;
  }

  .m-privilege-card p {
    font-size: 0.78rem;
    color: rgb(255 255 255 / 72%);
    margin: 0;
    line-height: 1.45;
  }

  /* ─── Menu page ─── */
  body[data-page="menu"] .menu-page__hero {
    display: none;
  }

  body[data-page="menu"] .m-menu-intro {
    display: block;
    padding: 8px 0 16px;
  }

  body[data-page="menu"] .m-menu-intro__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 500;
    margin: 6px 0 0;
    line-height: 1.15;
  }

  body[data-page="menu"] .menu-grill,
  body[data-page="menu"] .cta-banner--menu {
    display: none;
  }

  body[data-page="menu"] .menu-page__body {
    padding-top: 8px;
  }

  body[data-page="menu"] .menu-page__controls {
    top: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: 10px;
  }

  body[data-page="menu"] .menu-dish-grid {
    gap: 28px;
  }

  body[data-page="menu"] .menu-dish-card {
    flex-direction: column;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
  }

  body[data-page="menu"] .menu-dish-card__image {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  body[data-page="menu"] .menu-dish-card__body {
    padding: 0;
  }

  body[data-page="menu"] .menu-dish-card__head {
    flex-direction: row;
    align-items: baseline;
  }

  body[data-page="menu"] .menu-dish-card__body h3 {
    font-size: 1.2rem;
  }

  body[data-page="menu"] .menu-dish-card__footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  body[data-page="menu"] .menu-stats {
    display: none;
  }

  body[data-page="menu"] .menu-pdf-btn {
    display: none;
  }

  /* ─── Delivery ─── */
  body[data-page="delivery"] .hero--delivery {
    display: none;
  }

  body[data-page="delivery"] .delivery-menu {
    padding-top: 0;
  }

  body[data-page="delivery"] .delivery-shop__layout {
    display: block;
  }

  body[data-page="delivery"] .delivery-sidebar {
    display: none;
  }

  body[data-page="delivery"] .delivery-shop__main {
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }

  body[data-page="delivery"] .delivery-mobile-cats {
    position: sticky;
    top: calc(var(--m-header-h, 56px) + env(safe-area-inset-top, 0px));
    z-index: 20;
    margin: 0 -16px 12px;
    padding: 8px 16px 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  /* Address bar */
  .m-delivery-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .m-delivery-bar__pin {
    font-size: 1rem;
    line-height: 1;
  }

  .m-delivery-bar__text {
    flex: 1;
    min-width: 0;
  }

  .m-delivery-bar__label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: 2px;
  }

  .m-delivery-bar__text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-delivery-bar__eta {
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
  }

  /* Sticky cart sheet */
  .m-delivery-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--m-tabbar-h, 64px) + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    padding: 0 12px 10px;
    pointer-events: none;
  }

  .m-delivery-sheet > * {
    pointer-events: auto;
  }

  .m-delivery-sheet__handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
  }

  .m-delivery-sheet__summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.82rem;
  }

  .m-delivery-sheet__summary strong {
    font-weight: 600;
  }

  .m-delivery-sheet__summary em {
    font-style: normal;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
  }

  .m-delivery-sheet__chevron {
    font-size: 0.65rem;
    color: var(--fg-muted);
    transition: transform 0.25s;
  }

  .m-delivery-sheet--open .m-delivery-sheet__chevron {
    transform: rotate(180deg);
  }

  .m-delivery-sheet__body {
    max-height: 42vh;
    overflow-y: auto;
    padding: 14px 16px;
    background: var(--bg-card);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .m-delivery-sheet__title {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
  }

  .m-delivery-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    background: var(--gold);
    color: #0b1121 !important;
    border-radius: 0 0 14px 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 35%);
  }

  .m-delivery-cart__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .m-delivery-cart__thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-muted);
  }

  .m-delivery-cart__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .m-delivery-cart__item-info {
    flex: 1;
    min-width: 0;
  }

  .m-delivery-cart__item-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
  }

  .m-delivery-cart__item-price {
    display: block;
    font-size: 0.75rem;
    color: var(--fg-muted);
  }

  .m-delivery-cart__remove {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--fg-subtle);
    cursor: pointer;
    font-size: 1.2rem;
  }

  .m-delivery-cart__totals {
    padding-top: 12px;
    font-size: 0.82rem;
  }

  .m-delivery-cart__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: var(--fg-muted);
  }

  .m-delivery-cart__value {
    font-weight: 600;
    color: var(--fg) !important;
  }

  .m-delivery-cart__value--free {
    color: var(--gold) !important;
  }

  .m-delivery-cart__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
  }

  .m-delivery-cart__total .m-delivery-cart__value {
    font-size: 1.2rem;
    color: var(--gold) !important;
  }

  body[data-page="delivery"] .delivery-info,
  body[data-page="delivery"] .cta-banner {
    display: none;
  }

  body[data-page="delivery"] .dish-card {
    flex-direction: column;
    border-radius: 14px;
  }

  body[data-page="delivery"] .dish-card__image {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body[data-page="delivery"] .dish-card__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  body[data-page="delivery"] .dish-card__head h3 {
    order: -1;
    flex: 1;
    font-size: 1.1rem;
  }

  body[data-page="delivery"] .dish-card__add {
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: 8px;
    background: var(--bg-muted);
    border-radius: 8px;
  }

  /* ─── Restaurants ─── */
  body[data-page="restaurants"] .hero--page,
  body[data-page="restaurants"] .features-row,
  body[data-page="restaurants"] .chef-banner,
  body[data-page="restaurants"] .newsletter {
    display: none;
  }

  body[data-page="restaurants"] .section {
    padding-top: 72px;
  }

  .m-venue-toggle {
    display: flex;
    gap: 0;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-bottom: 24px;
  }

  .m-venue-toggle__btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--fg-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .m-venue-toggle__btn--active {
    background: var(--gold);
    color: var(--fg-inverse);
  }

  .m-venue-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
  }

  .m-venue-card__bg {
    position: absolute;
    inset: 0;
  }

  .m-venue-card__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .m-venue-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 35%) 55%, rgb(0 0 0 / 15%) 100%);
  }

  .m-venue-card__body {
    position: relative;
    z-index: 1;
  }

  .m-venue-card__body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 0 6px;
  }

  .m-venue-card__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: rgb(255 255 255 / 75%);
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .m-venue-card__actions {
    display: flex;
    gap: 10px;
  }

  .m-venue-card__actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.65rem;
  }

  .m-venue-card__actions .btn--outline-white {
    background: transparent;
    border: 1px solid rgb(255 255 255 / 45%);
    color: #fff;
  }

  .m-venue-map-placeholder {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: var(--fg-muted);
    margin-bottom: 16px;
  }

  .m-venue-map-placeholder.is-visible {
    display: block;
  }

  body[data-page="restaurants"] .restaurant-row {
    display: none;
  }

  body[data-page="restaurants"] #restaurantList.is-map-mode .m-venue-card {
    display: none;
  }

  body[data-page="restaurants"] #restaurantList.is-map-mode .m-venue-map-placeholder {
    display: block;
  }

  /* ─── Profile ─── */
  .m-profile-page__desktop {
    padding: 100px 0 60px;
  }

  body[data-page="profile"] .m-profile-page__desktop {
    display: none;
  }

  body[data-page="profile"] .m-profile-page__inner {
    padding: 68px 0 24px;
  }

  body[data-page="profile"] .footer {
    display: none;
  }

  .m-profile__header {
    margin-bottom: 20px;
  }

  .m-profile__head-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }

  .m-profile__head-text {
    flex: 1;
    min-width: 0;
  }

  .m-profile__avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 0 16px rgb(157 224 195 / 20%);
  }

  .m-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .m-profile__avatar__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gold);
  }

  .m-profile__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.15;
  }

  .m-profile__badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 6px;
  }

  .m-profile__since {
    font-size: 0.78rem;
    color: var(--fg-muted);
    margin: 0 0 16px;
  }

  .m-profile__actions {
    display: flex;
    gap: 10px;
  }

  .m-profile__icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg-muted);
    cursor: pointer;
  }

  .m-profile__loyalty {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
  }

  .m-profile__loyalty-watermark {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    opacity: 0.06;
    pointer-events: none;
  }

  .m-profile__loyalty-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: 4px;
  }

  .m-profile__loyalty-points {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
  }

  .m-profile__loyalty .privilege-card--compact {
    width: 100%;
    max-width: none;
    min-height: 210px;
    box-shadow:
      0 14px 32px rgb(0 0 0 / 28%),
      0 0 0 1px rgb(255 255 255 / 6%) inset;
  }

  .m-profile__loyalty .privilege-card__name {
    font-size: 1rem;
  }

  .m-profile__promo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 160px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
  }

  .m-profile__promo-bg {
    position: absolute;
    inset: 0;
  }

  .m-profile__promo-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .m-profile__promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(0 0 0 / 88%) 0%, transparent 70%);
  }

  .m-profile__promo-body {
    position: relative;
    z-index: 1;
  }

  .m-profile__promo-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gold);
    color: var(--fg-inverse);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 8px;
  }

  .m-profile__promo-body p {
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    color: rgb(255 255 255 / 85%);
  }

  .m-profile__nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    color: inherit;
  }

  .m-profile__nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .m-profile__nav-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .m-profile__nav-text span {
    font-size: 0.75rem;
    color: var(--fg-muted);
  }

  .m-profile__nav-item .m-profile__nav-arrow {
    margin-left: auto;
    color: var(--fg-subtle);
  }

  .m-profile__orders-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 28px 0 16px;
  }

  .m-profile__orders-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    margin: 0;
  }

  .m-profile__orders-head a {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .m-profile__order {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .m-profile__order--dim {
    opacity: 0.65;
  }

  .m-profile__order-top {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }

  .m-profile__order-top img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .m-profile__order-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-subtle);
    margin-bottom: 4px;
  }

  .m-profile__order-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 4px;
  }

  .m-profile__order-items {
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin: 0;
  }

  .m-profile__order-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .m-profile__order-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
  }

  .m-profile__order-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .m-profile__order-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.65rem;
  }

  .m-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .m-section-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    margin: 0;
  }

  .m-section-head a {
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
  }
}

/* Hide mobile-only elements on desktop */
.m-home-dishes,
.m-home-stats,
.m-venue-toggle,
.m-delivery-order,
.m-delivery-bar,
#deliveryMobileCart,
.m-profile__mobile,
.m-menu-intro {
  display: none;
}

@media (max-width: 768px) {
  body .m-home-dishes,
  body .m-home-stats,
  body .m-venue-toggle,
  body .m-delivery-order,
  body .m-delivery-bar,
  body #deliveryMobileCart {
    display: block;
  }

  body .m-home-stats {
    display: grid;
  }

  body[data-page="profile"] .m-profile__mobile {
    display: block;
  }

  body[data-page="menu"] .m-menu-intro {
    display: block;
  }
}

@media (min-width: 769px) {
  .m-tab-bar,
  .header__cart {
    display: none !important;
  }
}
