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

    :root {
      --black:   #1A0808;   /* Text Dark — headings & text on accents     */
      --dark:    #F2E8D4;   /* Cream Mid — feature strip / alt bg         */
      --card:    #FAF4E8;   /* Warm Cream — card & input surfaces         */
      --border:  #391212;   /* Primary Burgundy — borders & dividers      */
      --gold:    #B87040;   /* Cognac Accent — CTAs, icons, labels        */
      --gold2:   #D4924E;   /* Cognac Light — gradient highlight          */
      --white:   #1A0808;   /* Text Dark — primary text on light bg       */
      --gray:    #8A6A58;   /* Muted warm brown — secondary text          */
      --light:   #5A3030;   /* Warm mid-dark — body copy                  */
      --danger:  #D94444;
      --success: #5BAF7D;
      --radius:  16px;
    }

    html, body {
      height: 100%;
      background: #FDF8F0;
      color: var(--white);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      overflow-x: hidden;
    }

    #app {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      position: relative;
      background: #FDF8F0;
    }

    .screen {
      display: none;
      flex-direction: column;
      min-height: 100vh;
      padding-bottom: 80px;
    }
    .screen.active { display: flex; }

    /* ── Top Bar ── */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 52px 20px 16px;
      position: sticky;
      top: 0;
      z-index: 10;
      background: linear-gradient(to bottom, #FDF8F0 80%, transparent);
    }
    .logo { font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
    .logo span { color: var(--white); }
    .topbar-back {
      background: none; border: none; color: var(--gold);
      font-size: 26px; cursor: pointer; padding: 4px 8px; line-height: 1;
    }
    .topbar-action { background: none; border: none; color: var(--gold); font-size: 22px; cursor: pointer; }

    /* ── Bottom Nav ── */
    .bottomnav {
      position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
      width: 100%; max-width: 480px;
      background: rgba(253,248,240,0.97); border-top: 1px solid var(--border);
      display: flex; z-index: 100; backdrop-filter: blur(12px);
    }
    .bottomnav button {
      flex: 1; background: none; border: none; color: var(--gray);
      padding: 12px 0 18px; font-size: 10px; font-weight: 500; cursor: pointer;
      display: flex; flex-direction: column; align-items: center; gap: 4px; transition: color 0.2s;
    }
    .bottomnav button.active { color: var(--gold); }
    .bottomnav button svg { width: 22px; height: 22px; }

    /* ── Typography ── */
    h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
    h2 { font-size: 22px; font-weight: 700; }
    h3 { font-size: 18px; font-weight: 600; }
    p  { line-height: 1.6; color: var(--light); }
    .section-label {
      font-size: 12px; font-weight: 600; letter-spacing: 2px;
      text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
    }

    /* ── Search ── */
    .search-wrap { padding: 0 20px 20px; }
    .search-box {
      display: flex; align-items: center;
      background: var(--card); border: 1px solid var(--border);
      border-radius: 50px; padding: 12px 18px; gap: 10px;
    }
    .search-box svg { color: var(--gray); flex-shrink: 0; }
    .search-box input {
      background: none; border: none; outline: none;
      color: var(--white); font-size: 15px; width: 100%;
    }
    .search-box input::placeholder { color: var(--gray); }

    /* ── Pills ── */
    .filter-row {
      display: flex; gap: 8px; padding: 0 20px 20px;
      overflow-x: auto; scrollbar-width: none;
    }
    .filter-row::-webkit-scrollbar { display: none; }
    .pill {
      flex-shrink: 0; background: var(--card); border: 1px solid var(--border);
      border-radius: 50px; padding: 7px 16px; font-size: 13px;
      color: var(--light); cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .pill.active { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }

    /* ── Hero card ── */
    .hero-card {
      margin: 0 20px 24px; border-radius: var(--radius);
      overflow: hidden; position: relative; height: 220px; cursor: pointer;
    }
    .hero-card img { width: 100%; height: 100%; object-fit: cover; }
    .hero-card .overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 40%, transparent);
      padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
    }
    .hero-card .tag {
      display: inline-block; background: var(--gold); color: var(--black);
      font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
      border-radius: 4px; padding: 3px 8px; margin-bottom: 8px; width: fit-content;
    }
    .hero-card h2 { font-size: 20px; margin-bottom: 6px; color: #FAF4E8; }
    .hero-card .meta { display: flex; gap: 12px; }
    .hero-card .meta span { font-size: 12px; color: #FAF4E8; }

    /* ── Cards ── */
    .card-row { display: flex; gap: 14px; padding: 0 20px 8px; overflow-x: auto; scrollbar-width: none; }
    .card-row::-webkit-scrollbar { display: none; }
    .rest-card {
      flex-shrink: 0; width: 160px; background: var(--card);
      border-radius: var(--radius); overflow: hidden; cursor: pointer;
      border: 1px solid var(--border); transition: transform 0.2s;
    }
    .rest-card:active { transform: scale(0.97); }
    .rest-card img { width: 100%; height: 110px; object-fit: cover; }
    .rest-card .info { padding: 10px 12px; }
    .rest-card .info h3 { font-size: 14px; margin-bottom: 3px; }
    .rest-card .info .sub { font-size: 11px; color: var(--gray); }
    .rest-card .info .stars { color: var(--gold); font-size: 12px; margin-top: 5px; }

    .list-card {
      display: flex; gap: 14px; margin: 0 20px 12px;
      background: var(--card); border-radius: var(--radius); overflow: hidden;
      cursor: pointer; border: 1px solid var(--border); align-items: stretch; transition: transform 0.2s;
    }
    .list-card:active { transform: scale(0.98); }
    .list-card img { width: 90px; height: 90px; object-fit: cover; flex-shrink: 0; }
    .list-card .info { padding: 12px 12px 12px 0; flex: 1; }
    .list-card .info h3 { font-size: 15px; margin-bottom: 4px; }
    .list-card .info .sub { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
    .list-card .info .row-meta { display: flex; gap: 10px; align-items: center; }
    .list-card .info .stars { color: var(--gold); font-size: 12px; }
    .list-card .info .price { font-size: 12px; color: var(--gray); }
    .badge-open {
      font-size: 10px; background: rgba(76,175,125,0.15);
      color: var(--success); border-radius: 4px; padding: 2px 6px; font-weight: 600;
    }

    .section-header {
      display: flex; align-items: baseline; justify-content: space-between;
      padding: 0 20px; margin-bottom: 14px;
    }
    .section-header .see-all {
      font-size: 13px; color: var(--gold); cursor: pointer; background: none; border: none;
    }

    .greeting { padding: 0 20px 24px; }
    .greeting .sub { font-size: 14px; color: var(--gray); margin-bottom: 6px; }
    .greeting h1 { font-size: 26px; }
    .greeting h1 span { color: var(--gold); }

    /* ── Restaurant Detail ── */
    .detail-hero { position: relative; height: 280px; }
    .detail-hero img { width: 100%; height: 100%; object-fit: cover; }
    .detail-hero .overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, var(--black) 20%, transparent 60%);
    }
    .detail-hero .back-btn, .detail-hero .fav-btn {
      position: absolute; top: 52px; background: rgba(0,0,0,0.5);
      border: none; color: white; border-radius: 50%; width: 40px; height: 40px;
      font-size: 20px; cursor: pointer; backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
    }
    .detail-hero .back-btn { left: 16px; }
    .detail-hero .fav-btn  { right: 16px; }
    .detail-body { padding: 20px; margin-top: -20px; position: relative; }
    .detail-body .cuisine-tag {
      display: inline-block; background: rgba(201,168,76,0.15); color: var(--gold);
      font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
      border-radius: 4px; padding: 3px 8px; margin-bottom: 10px;
    }
    .detail-body h1 { font-size: 24px; margin-bottom: 8px; }
    .detail-stats {
      display: flex; gap: 20px; padding: 14px 0;
      border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0;
    }
    .stat-item { text-align: center; flex: 1; }
    .stat-item .val { font-size: 18px; font-weight: 700; color: var(--gold); }
    .stat-item .lbl { font-size: 11px; color: var(--gray); margin-top: 2px; }

    .menu-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
    .menu-tab {
      flex: 1; text-align: center; padding: 12px; font-size: 13px; font-weight: 600;
      color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
    }
    .menu-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
    .menu-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .menu-item:last-child { border-bottom: none; }
    .menu-item .name { font-size: 14px; font-weight: 600; }
    .menu-item .desc { font-size: 12px; color: var(--gray); margin-top: 3px; }
    .menu-item .price { font-size: 15px; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-left: 12px; }

    /* ── Buttons ── */
    .cta-wrap {
      padding: 16px 20px; position: sticky; bottom: 80px;
      background: linear-gradient(to top, #FDF8F0 80%, transparent);
    }
    .btn-primary {
      width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold2));
      color: var(--black); border: none; border-radius: 50px; padding: 16px;
      font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 0.5px;
      transition: opacity 0.2s, transform 0.1s;
    }
    .btn-primary:active  { transform: scale(0.98); opacity: 0.9; }
    .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
    .btn-secondary {
      width: 100%; background: none; color: var(--gold); border: 1px solid var(--gold);
      border-radius: 50px; padding: 14px; font-size: 15px; font-weight: 600;
      cursor: pointer; transition: background 0.2s;
    }
    .btn-secondary:active { background: rgba(201,168,76,0.1); }
    .btn-ghost {
      width: 100%; background: none; color: var(--gray); border: none;
      padding: 14px; font-size: 14px; cursor: pointer;
    }

    .btn-cancel-booking {
      margin-top: 10px; background: none; color: var(--danger);
      border: 1px solid var(--danger); border-radius: 50px;
      padding: 7px 16px; font-size: 12px; font-weight: 600;
      cursor: pointer; transition: background 0.2s;
    }
    .btn-cancel-booking:active { background: rgba(217,68,68,0.1); }

    .btn-cancel-full {
      width: 100%; background: none; color: var(--danger);
      border: 1.5px solid var(--danger); border-radius: 50px;
      padding: 15px; font-size: 15px; font-weight: 600;
      cursor: pointer; transition: background 0.2s;
    }
    .btn-cancel-full:active { background: rgba(217,68,68,0.1); }

    /* ── Save-credentials bottom sheet ── */
    #save-modal {
      display: none;
      position: fixed; inset: 0; z-index: 300;
      background: rgba(0,0,0,0.72);
      align-items: flex-end; justify-content: center;
    }
    #save-modal.open { display: flex; }
    .save-sheet {
      background: var(--card);
      border-radius: 24px 24px 0 0;
      padding: 10px 24px 44px;
      width: 100%; max-width: 480px;
      animation: slideUp 0.3s ease;
    }
    .sheet-handle {
      width: 40px; height: 4px; background: var(--border);
      border-radius: 2px; margin: 14px auto 24px;
    }
    @keyframes slideUp {
      from { transform: translateY(100%); }
      to   { transform: translateY(0); }
    }

    /* ── Booking Flow ── */
    .booking-header { padding: 52px 20px 20px; }
    .progress-bar { display: flex; gap: 6px; margin-bottom: 24px; }
    .progress-step {
      flex: 1; height: 3px; background: var(--border); border-radius: 2px; transition: background 0.3s;
    }
    .progress-step.done { background: var(--gold); }
    .booking-body { padding: 0 20px; flex: 1; }

    .date-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 24px; }
    .date-cell {
      aspect-ratio: 1; display: flex; flex-direction: column; align-items: center;
      justify-content: center; border-radius: 10px; cursor: pointer;
      background: var(--card); border: 1px solid var(--border); transition: all 0.2s;
    }
    .date-cell .day { font-size: 9px; color: var(--gray); text-transform: uppercase; }
    .date-cell .num { font-size: 15px; font-weight: 600; }
    .date-cell.active { background: var(--gold); border-color: var(--gold); }
    .date-cell.active .day, .date-cell.active .num { color: var(--black); }

    .time-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
    .time-btn {
      background: var(--card); border: 1px solid var(--border); border-radius: 12px;
      padding: 12px; text-align: center; font-size: 14px; font-weight: 600;
      color: var(--white); cursor: pointer; transition: all 0.2s;
    }
    .time-btn.active { background: var(--gold); border-color: var(--gold); color: var(--black); }
    .time-btn.unavailable { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }

    .seating-option {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 16px; margin-bottom: 12px; cursor: pointer;
      display: flex; align-items: center; gap: 14px; transition: all 0.2s;
    }
    .seating-option.active { border-color: var(--gold); background: rgba(201,168,76,0.08); }
    .seating-option .icon {
      font-size: 28px; width: 50px; height: 50px; display: flex; align-items: center;
      justify-content: center; background: var(--border); border-radius: 12px; flex-shrink: 0;
    }
    .seating-option.active .icon { background: rgba(201,168,76,0.15); }
    .seating-option .label { font-size: 15px; font-weight: 600; }
    .seating-option .desc  { font-size: 12px; color: var(--gray); margin-top: 3px; }
    .seating-option .radio {
      margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
      border: 2px solid var(--border); flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    }
    .seating-option.active .radio { border-color: var(--gold); background: var(--gold); }
    .seating-option.active .radio::after {
      content: ''; width: 8px; height: 8px; background: var(--black); border-radius: 50%;
    }
    .occupancy-bar-wrap { margin-top: 6px; }
    .occupancy-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 6px; }
    .occupancy-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
    .fill-low  { background: var(--success); }
    .fill-mid  { background: #f0a500; }
    .fill-high { background: var(--danger); }
    .occupancy-label { font-size: 10px; color: var(--gray); margin-top: 4px; }

    .guest-counter { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 30px 0; }
    .counter-btn {
      width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold);
      background: none; color: var(--gold); font-size: 26px; cursor: pointer;
      display: flex; align-items: center; justify-content: center; transition: background 0.2s;
    }
    .counter-btn:active   { background: rgba(201,168,76,0.1); }
    .counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
    .counter-val { font-size: 64px; font-weight: 700; color: var(--gold); min-width: 80px; text-align: center; }
    .counter-sub { text-align: center; color: var(--gray); font-size: 14px; margin-bottom: 24px; }

    .group-note {
      background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
      border-radius: 12px; padding: 14px; font-size: 13px; color: var(--light); margin-bottom: 20px;
    }

    /* ── Forms ── */
    .form-group { margin-bottom: 18px; }
    .form-group label {
      display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase; color: var(--gray); margin-bottom: 8px;
    }
    .form-group input, .form-group textarea {
      width: 100%; background: var(--card); border: 1px solid var(--border);
      border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--white);
      outline: none; transition: border-color 0.2s; font-family: inherit;
    }
    .form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
    .form-group textarea { resize: none; height: 90px; }
    .form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray); }

    /* autofill indicator */
    .autofill-badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 11px; color: var(--success); margin-bottom: 14px;
      background: rgba(76,175,125,0.1); border-radius: 20px; padding: 4px 10px;
    }

    .booking-summary {
      background: var(--card); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 16px; margin-bottom: 20px;
    }
    .booking-summary h3 { font-size: 14px; margin-bottom: 12px; color: var(--gold); }
    .summary-row {
      display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--light);
    }
    .summary-row .val { font-weight: 600; color: var(--white); }

    /* ── Confirmation ── */
    .confirm-screen {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 40px 24px; text-align: center; min-height: 100vh;
    }
    .confirm-icon {
      width: 90px; height: 90px; border-radius: 50%;
      background: rgba(76,175,125,0.15); display: flex; align-items: center;
      justify-content: center; margin-bottom: 24px; font-size: 40px;
    }
    .confirm-screen h1 { margin-bottom: 12px; }
    .confirm-screen p  { color: var(--gray); margin-bottom: 30px; max-width: 300px; }
    .confirm-card {
      background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 20px; width: 100%; margin-bottom: 30px; text-align: left;
    }
    .confirm-card .rest-name { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
    .confirm-row {
      display: flex; align-items: center; gap: 10px; padding: 8px 0;
      border-bottom: 1px solid var(--border); font-size: 14px;
    }
    .confirm-row:last-child { border-bottom: none; }
    .confirm-row .icon { font-size: 16px; width: 24px; text-align: center; }
    .confirm-row .lbl  { color: var(--gray); min-width: 80px; }
    .confirm-row .val  { font-weight: 600; }
    .booking-ref { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-top: 8px; }
    .booking-ref span { color: var(--gold); font-weight: 700; }

    /* ── Profile ── */
    .empty-state {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 60px 30px; text-align: center; flex: 1;
    }
    .empty-state .icon { font-size: 60px; margin-bottom: 20px; }
    .empty-state h2 { margin-bottom: 10px; }
    .empty-state p  { color: var(--gray); margin-bottom: 24px; }

    .profile-header {
      padding: 52px 20px 24px; display: flex; align-items: center; gap: 16px;
      border-bottom: 1px solid var(--border); margin-bottom: 8px;
    }
    .avatar {
      width: 64px; height: 64px; border-radius: 50%;
      background: linear-gradient(135deg, var(--gold), var(--gold2));
      display: flex; align-items: center; justify-content: center;
      font-size: 26px; font-weight: 700; color: var(--black); flex-shrink: 0;
    }
    .profile-info h2 { font-size: 20px; }
    .profile-info p  { font-size: 13px; color: var(--gray); margin-top: 2px; }
    .profile-menu-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer;
    }
    .profile-menu-item .left { display: flex; align-items: center; gap: 12px; }
    .profile-menu-item .mi-icon  { font-size: 20px; width: 36px; text-align: center; }
    .profile-menu-item .mi-label { font-size: 15px; }
    .profile-menu-item .arrow    { color: var(--gray); font-size: 18px; }
    .profile-menu-item.danger .mi-label { color: var(--danger); }

    /* ── Auth Screens ── */
    .auth-screen {
      display: flex; flex-direction: column; min-height: 100vh;
      padding: 0 28px 40px; justify-content: center;
    }
    .auth-logo-wrap {
      text-align: center; margin-bottom: 40px;
    }
    .auth-logo {
      font-size: 42px; font-weight: 800; letter-spacing: 2px;
      color: var(--gold); display: block; margin-bottom: 6px;
    }
    .auth-logo span { color: var(--white); }
    .auth-tagline { font-size: 14px; color: var(--gray); }

    .auth-title  { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
    .auth-sub    { font-size: 14px; color: var(--gray); margin-bottom: 30px; }

    .auth-divider {
      display: flex; align-items: center; gap: 12px; margin: 18px 0;
    }
    .auth-divider span { font-size: 12px; color: var(--gray); white-space: nowrap; }
    .auth-divider::before, .auth-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    .auth-link {
      text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray);
    }
    .auth-link button {
      background: none; border: none; color: var(--gold);
      font-size: 14px; font-weight: 600; cursor: pointer;
    }

    .field-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
    .field-error.show { display: block; }

    /* password toggle */
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 46px; }
    .pw-toggle {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: var(--gray); font-size: 16px; cursor: pointer;
    }

    /* welcome decorative circles */
    .welcome-bg {
      position: fixed; top: -120px; right: -80px; width: 320px; height: 320px;
      border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
      pointer-events: none; z-index: 0;
    }

    .scroll-content { overflow-y: auto; flex: 1; }

    /* ── Toast ── */
    #toast {
      position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
      background: var(--card); border: 1px solid var(--border); color: var(--white);
      padding: 12px 20px; border-radius: 50px; font-size: 14px; opacity: 0;
      transition: all 0.3s; z-index: 999; white-space: nowrap;
    }
    #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .screen.active > * { animation: fadeUp 0.3s ease both; }

    /* ── Auth-prompt modal (same structure as save-modal) ── */
    #auth-prompt-modal {
      display: none;
      position: fixed; inset: 0; z-index: 300;
      background: rgba(0,0,0,0.72);
      align-items: flex-end; justify-content: center;
    }
    #auth-prompt-modal.open { display: flex; }

    /* ── Card save button (rest-card grid) ── */
    .card-img-wrap { position: relative; overflow: hidden; }
    .card-img-wrap img { display: block; width: 100%; height: 110px; object-fit: cover; }
    .card-save-btn {
      position: absolute; top: 8px; right: 8px;
      background: rgba(253,248,240,0.88); border: none; border-radius: 50%;
      width: 30px; height: 30px; font-size: 14px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      color: var(--gray); transition: all 0.2s; backdrop-filter: blur(4px); line-height: 1;
    }
    .card-save-btn.saved  { color: #e05555; background: rgba(253,248,240,0.96); }
    .card-save-btn:active { transform: scale(0.85); }

    /* ── List-card save button ── */
    .list-card { position: relative; }
    .list-save-btn {
      position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
      background: none; border: none; font-size: 20px; cursor: pointer;
      color: var(--gray); transition: color 0.2s; padding: 4px; line-height: 1; flex-shrink: 0;
    }
    .list-save-btn.saved  { color: #e05555; }
    .list-save-btn:active { transform: translateY(-50%) scale(0.85); }

    /* push list-card info away from the save btn */
    .list-card .info { padding-right: 44px; }

    /* ── Nav logo (desktop only) ── */
    .nav-logo { display: none; }

    /* ════════════════════════════════════════
       TABLET  768 – 1199px
    ════════════════════════════════════════ */
    @media (min-width: 768px) and (max-width: 1199px) {
      #app {
        max-width: 768px;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
      }
      .card-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        gap: 14px;
      }
      .rest-card { width: auto; flex-shrink: unset; }
      #nearbyList, #searchResults {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        padding: 0 20px;
        column-gap: 14px;
        align-content: start;
        align-items: start;
      }
      #nearbyList .list-card,
      #searchResults .list-card { margin: 0 0 14px 0; align-self: start; }
      #nearbyList .empty-state,
      #searchResults .empty-state { grid-column: 1 / -1; }
      .hero-card { height: 280px; }
    }

    /* ════════════════════════════════════════
       DESKTOP  1200px+
    ════════════════════════════════════════ */
    @media (min-width: 1200px) {

      /* ── Sidebar nav ── */
      .bottomnav {
        left: 0; top: 0;
        width: 240px; height: 100vh;
        flex-direction: column;
        transform: none;
        border-top: none;
        border-right: 1px solid var(--border);
        padding: 36px 0 24px;
        justify-content: flex-start;
        align-items: stretch;
        display: flex !important; /* always visible as sidebar */
      }
      .nav-logo {
        display: block;
        font-size: 22px; font-weight: 700; letter-spacing: 1px;
        color: var(--gold); padding: 0 24px 28px;
        border-bottom: 1px solid var(--border); margin-bottom: 12px;
      }
      .nav-logo span { color: var(--black); }
      .bottomnav button {
        flex: none;
        flex-direction: row; justify-content: flex-start;
        gap: 12px; padding: 13px 24px;
        font-size: 14px; font-weight: 500; width: 100%;
        border-left: 3px solid transparent;
        border-radius: 0;
      }
      .bottomnav button.active {
        border-left-color: var(--gold);
        background: rgba(184,112,64,0.08);
      }
      .bottomnav button svg { width: 20px; height: 20px; flex-shrink: 0; }

      /* ── App offset from sidebar ── */
      #app {
        margin: 0 0 0 240px;
        max-width: none;
        border: none;
        width: calc(100vw - 240px);
      }

      /* ── Screens ── */
      .screen { padding-bottom: 0; }
      .cta-wrap {
        bottom: 0;
        background: linear-gradient(to top, #FDF8F0 80%, transparent);
      }

      /* ── Wider padding ── */
      .topbar        { padding: 32px 40px 16px; }
      .greeting      { padding: 0 40px 24px; }
      .search-wrap   { padding: 0 40px 20px; }
      .filter-row    { padding: 0 40px 20px; }
      .section-header { padding: 0 40px; }
      .hero-card     { margin: 0 40px 28px; height: 360px; }
      .detail-hero   { height: 440px; }

      /* ── Card grids ── */
      .card-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        gap: 16px;
        padding: 0 40px 8px;
      }
      .rest-card { width: auto; flex-shrink: unset; }
      .rest-card img { height: 130px; }

      #nearbyList, #searchResults {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: min-content;
        padding: 0 40px;
        column-gap: 16px;
        align-content: start;
        align-items: start;
      }
      #nearbyList .list-card,
      #searchResults .list-card { margin: 0 0 16px 0; align-self: start; }
      #nearbyList .empty-state,
      #searchResults .empty-state { grid-column: 1 / -1; }

      /* ── Reservations grid ── */
      #reservationsList {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: min-content;
        padding: 0 40px;
        column-gap: 16px;
        align-content: start;
        align-items: start;
      }
      #reservationsList > div:first-child { grid-column: 1 / -1; }
      #reservationsList .list-card {
        margin: 0 0 16px 0;
        align-self: start;
      }
      #reservationsList .empty-state { grid-column: 1 / -1; }

      /* ── Narrow centered flows (booking, auth) ── */
      #screen-book-datetime,
      #screen-book-seating,
      #screen-book-guests,
      #screen-book-details,
      #screen-confirmed,
      #screen-signup,
      #screen-signin,
      #screen-edit-profile { max-width: 640px; margin: 0 auto; width: 100%; }

      /* ── Toast ── */
      #toast { bottom: 24px; }
    }
