@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@font-face {
  font-family: "ChamaliThai";
  src: url("/Fonts/SukhumvitSet-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   LOCAL THAI FONT: SUKHUMVIT SET
========================================================= */

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-Text.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SukhumvitSet";
  src: url("Fonts/SukhumvitSet-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   CHAMALIXTA CLEAN STYLE.CSS
   Clean minimal theme with a light Sushiro-inspired pixel accent
========================================================= */

/* =========================================================
   1. RESET + THEME
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fffaf0;
  --surface: #fffdf8;
  --surface-soft: #fff4df;
  --surface-warm: #fff8ec;

  --text: #1d1d1f;
  --subtle: #77716a;
  --muted: #9a9189;

  --accent: #b73535;
  --accent-hover: #9f2b2b;
  --accent-soft: rgba(183, 53, 53, 0.12);
  --accent-line: rgba(183, 53, 53, 0.26);

  --orange: #f4a261;
  --gold: #d9a43a;

  --border: #1d1d1f;
  --border-soft: rgba(29, 29, 31, 0.14);
  --border-warm: rgba(241, 226, 212, 0.95);

  --danger: #ff4d4f;
  --success: #52c41a;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-soft: 0 10px 28px rgba(45, 28, 20, 0.06);
  --shadow-lift: 0 14px 34px rgba(45, 28, 20, 0.08);
  --shadow-pixel: 3px 3px 0 rgba(183, 53, 53, 0.10);

  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-normal: 260ms;
  --duration-slow: 420ms;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(183, 53, 53, 0.06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(217, 164, 58, 0.10), transparent 34%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  animation: pageEnter var(--duration-slow) var(--ease-soft);
}

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

a {
  color: inherit;
}

p {
  color: var(--subtle);
}

/* =========================================================
   2. ANIMATIONS
========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* =========================================================
   3. NAVBAR
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255, 250, 240, 0.88);
  border-bottom: 2px solid rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo-gif {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--text);
}

.logo-text span {
  color: var(--orange);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-links a:hover,
.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.22s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  gap: 6px;
  border-radius: 0;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--text);
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: none;
  outline: none;
}

.nav-dropdown-toggle:active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.nav-chevron {
  display: inline-block;
  margin-left: 1px;
  font-size: 11px;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav-dropdown:not(.click-closed):hover .nav-chevron,
.nav-dropdown:not(.click-closed):focus-within .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 200;
  min-width: 190px;
  padding: 10px;
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 38px rgba(45, 28, 20, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity var(--duration-normal) var(--ease-soft),
    transform var(--duration-normal) var(--ease-soft),
    visibility 0s linear var(--duration-normal);
}

.nav-dropdown:not(.click-closed):hover .nav-dropdown-menu,
.nav-dropdown:not(.click-closed):focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity var(--duration-normal) var(--ease-soft),
    transform var(--duration-normal) var(--ease-soft),
    visibility 0s linear 0s;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

@media (min-width: 901px) {
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    z-index: 190;
    height: 18px;
    background: transparent;
    pointer-events: auto;
  }
}

.language-switch,
.menu-language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  width: auto;
  min-width: 48px;
  padding: 8px 12px;
  margin: 0;
  font-size: 13px;
  box-shadow: none;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:not(.active) {
  background: #fffefa;
  color: var(--text);
  border-color: var(--border-soft);
}

.single-lang-toggle {
  width: auto;
  min-width: 50px;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid rgba(120, 84, 58, 0.18);
  border-radius: 999px;
  background: #fffefa;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(45, 28, 20, 0.06);
}

.single-lang-toggle:hover,
.single-lang-toggle:focus-visible {
  background: var(--surface-soft);
  border-color: rgba(183, 53, 53, 0.28);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(45, 28, 20, 0.07);
  outline: none;
}

.single-lang-toggle:active {
  transform: translateY(1px) scale(0.99);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  border-radius: 18px;
  border: 2px solid var(--border-soft);
  background: #fffefa;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: all 0.25s ease;
}

/* =========================================================
   4. BUTTONS
========================================================= */
button,
.hero-btn,
.dashboard-primary-btn,
.dashboard-secondary-btn,
.login-submit,
.login-secondary,
.social-btn,
.create-account-login-link {
  font-family: inherit;
}

button,
.hero-btn.primary,
.login-submit,
.dashboard-primary-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #dc5656, var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 4px 0 #7f2020,
    0 10px 20px rgba(183, 53, 53, 0.12);
  transition:
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth),
    filter var(--duration-fast) var(--ease-smooth),
    background var(--duration-normal) var(--ease-smooth);
}

button:hover,
.hero-btn.primary:hover,
.login-submit:hover,
.dashboard-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 5px 0 #7f2020,
    0 12px 24px rgba(183, 53, 53, 0.14);
}

button:active,
.hero-btn.primary:active,
.login-submit:active,
.dashboard-primary-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 2px 0 #7f2020,
    0 7px 14px rgba(183, 53, 53, 0.10);
}

.secondary-btn,
.hero-btn.secondary,
.login-secondary,
.dashboard-secondary-btn,
.social-btn,
.table-btn {
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #fffefa;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(45, 28, 20, 0.05);
}

.secondary-btn:hover,
.hero-btn.secondary:hover,
.login-secondary:hover,
.dashboard-secondary-btn:hover,
.social-btn:hover,
.table-btn:hover {
  background: var(--surface-soft);
  border-color: rgba(29, 29, 31, 0.24);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 24px;
  text-decoration: none;
  transition:
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background var(--duration-normal) var(--ease-smooth);
}

/* =========================================================
   5. COMMON LAYOUT + CARDS
========================================================= */
.home-page,
.restaurants-page,
.login-page,
.dashboard-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.calculator {
  max-width: 520px;
  margin: 40px auto 28px;
  padding: 0 16px 8px;
}

.calculator h1,
.home-hero h1,
.restaurants-hero h1,
.login-intro h1,
.dashboard-hero h1 {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.07em;
}

.card,
.feature-card,
.highlight-card,
.roadmap-card,
.restaurant-card,
.login-card,
.login-preview-card,
.dashboard-page .summary-card,
.dashboard-main-grid .card,
.preview-panel,
.login-preview-panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-warm));
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pixel), var(--shadow-soft);
}

.card {
  padding: 18px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.feature-card:hover,
.roadmap-card:hover,
.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.17),
    var(--shadow-lift);
}

.result-header {
  margin-bottom: 14px;
}

.result-header h3,
.section-title,
.card h2,
.card h3,
.feature-card h3,
.roadmap-card h3,
.restaurant-card h2,
.login-card-header h2 {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-title {
  font-size: 16px;
  margin-bottom: 14px;
}

/* =========================================================
   6. FORMS + INPUTS
========================================================= */
.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.input-group.grow {
  flex: 1;
  margin-bottom: 0;
}

.input-group input,
.input-group select,
.discount-box input {
  width: 100%;
  height: 56px;
  border: 2px solid var(--border-soft);
  border-radius: 16px;
  background: #fffefa;
  padding: 20px 14px 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.035);
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background var(--duration-normal) var(--ease-smooth);
}

.input-group input::placeholder {
  color: transparent;
}

.input-group input:hover,
.input-group select:hover,
.discount-box input:hover {
  border-color: rgba(29, 29, 31, 0.28);
}

.input-group input:focus,
.input-group select:focus,
.discount-box input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    inset 0 2px 0 rgba(0, 0, 0, 0.035);
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 18px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  transition:
    top var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth),
    font-size var(--duration-fast) var(--ease-smooth);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select + label {
  top: 8px;
  font-size: 11px;
  color: var(--accent);
}

.input-group select {
  appearance: none;
  cursor: pointer;
  padding-top: 22px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--subtle) 50%),
    linear-gradient(135deg, var(--subtle) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 24px,
    calc(100% - 14px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input-group input.error,
.input-group select.error,
.discount-box input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.14);
}

.input-group input.success {
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(82, 196, 26, 0.14);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* =========================================================
   7. BILL SPLIT PAGE
========================================================= */
.add-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card > button {
  width: 100%;
  padding: 14px 18px;
  margin-top: 4px;
}

.fab {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.fab span {
  transition: transform 0.2s ease;
}

.fab:hover span {
  transform: rotate(90deg);
}

.people-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-height: 8px;
}

.people-container.error {
  animation: shake 0.28s ease;
}

.person-chip,
.preview-chip,
.restaurant-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  background: #fffefa;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.person-chip:hover,
.preview-chip:hover,
.restaurant-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 29, 31, 0.28);
}

.person-chip.selected,
.preview-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
}

.suggestions {
  width: 100%;
  margin: -6px 0 12px;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.suggestion-item {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.suggestion-item:hover {
  background: var(--accent);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.orders-table th,
.orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-warm);
  vertical-align: top;
}

.orders-table th {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 900;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.empty-orders {
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
  padding: 8px 0 4px;
}

.actions-cell {
  white-space: nowrap;
  display: flex;
  gap: 8px;
}

.table-btn {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.edit-btn {
  background: #fff4df;
  color: #8a5415;
}

.delete-btn {
  background: #fff0f0;
  color: #a72727;
}

#liveTotal {
  margin-top: 14px;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
}

#result {
  min-height: 28px;
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#result.show {
  opacity: 1;
  transform: translateY(0);
}

#orderList {
  list-style: none;
  color: var(--subtle);
}

#orderList li {
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-warm);
  color: var(--text);
  font-size: 14px;
  animation: slideUp 0.25s ease;
}

#orderList li:last-child {
  border-bottom: none;
}

.discount-box {
  margin-top: 14px;
}

/* =========================================================
   8. HOME PAGE
========================================================= */
.home-hero {
  text-align: center;
  padding: 88px 20px 72px;
}

.hero-eyebrow,
.roadmap-badge,
.restaurant-badge,
.summary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(183, 53, 53, 0.12);
  border-radius: 999px;
  background: rgba(183, 53, 53, 0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 18px;
}

.home-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

.hero-subtext,
.restaurants-subtext,
.login-subtext {
  max-width: 700px;
  margin: 0 auto;
  color: var(--subtle);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-features,
.roadmap-grid,
.restaurant-grid,
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.roadmap-card,
.restaurant-card,
.summary-card {
  padding: 24px;
}

.feature-card h3,
.roadmap-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p,
.roadmap-list li,
.restaurant-card-top p {
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.home-highlight,
.home-roadmap {
  margin-top: 28px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  padding: 24px;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 6px;
}

.highlight-text h2,
.roadmap-header h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.highlight-text p,
.roadmap-header p:last-child {
  color: var(--subtle);
  font-size: 16px;
  line-height: 1.7;
}

.highlight-text p {
  margin-bottom: 22px;
}

.highlight-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-panel {
  width: 100%;
  max-width: 360px;
  padding: 22px;
}

.preview-line {
  height: 1px;
  background: var(--border-warm);
  margin: 14px 0 16px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--subtle);
  font-size: 15px;
}

.preview-row strong {
  color: var(--text);
  font-weight: 800;
}

.preview-row.final {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-warm);
}

.roadmap-header {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.roadmap-card h3 {
  font-size: 22px;
}

.roadmap-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.roadmap-list li {
  position: relative;
  padding-left: 18px;
}

.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   9. RESTAURANTS PAGE
========================================================= */
.restaurants-hero,
.login-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.restaurants-hero h1,
.login-intro h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
}

.restaurant-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.restaurant-card.featured {
  border-color: rgba(183, 53, 53, 0.36);
}

.restaurant-card-top h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.08;
}

.restaurant-badge {
  margin-bottom: 16px;
}

.restaurant-badge.muted,
.restaurant-badge.soft {
  background: rgba(29, 29, 31, 0.06);
  color: var(--subtle);
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 24px;
}

.restaurant-actions {
  margin-top: auto;
}

.restaurant-actions .hero-btn,
.restaurant-actions .secondary-btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   10. LOGIN + CREATE ACCOUNT
========================================================= */
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.login-card,
.login-preview-card {
  padding: 28px;
  border-radius: 28px;
}

.login-card-header {
  margin-bottom: 18px;
}

.login-card-header h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.login-card-header p,
.login-preview-content p {
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.login-form,
.login-actions {
  display: grid;
  gap: 12px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 14px;
}

.remember-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.login-submit,
.login-secondary,
.create-account-login-link {
  width: 100%;
  padding: 15px 18px;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 16px;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(29, 29, 31, 0.12);
}

.login-divider span {
  position: relative;
  padding: 0 14px;
  background: var(--surface);
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  width: 100%;
  padding: 14px 16px;
}

.login-preview-card {
  display: flex;
  align-items: center;
}

.login-preview-content h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.login-preview-panel {
  padding: 18px;
}

.login-status,
.dashboard-status {
  min-height: 22px;
  margin: 2px 0 12px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.45;
}

.login-actions button:disabled,
.social-login button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   11. DASHBOARD PAGE
========================================================= */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.dashboard-subtext,
.summary-note {
  color: var(--subtle);
  font-size: 16px;
  line-height: 1.65;
}

.dashboard-hero-actions,
.dashboard-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-hero-actions button {
  min-width: 140px;
  padding: 14px 18px;
}

.summary-card h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.dashboard-form {
  display: grid;
}

.success-text {
  color: #2f8f46;
}

.error-text {
  color: #c54242;
}

.dashboard-form-actions {
  margin-top: 10px;
}

.dashboard-form-actions button {
  flex: 1;
  min-width: 160px;
  height: 52px;
}

.dashboard-form .input-group:last-of-type {
  margin-bottom: 6px;
}

/* =========================================================
   12. STICKY ACTION BAR
========================================================= */
.calculate-bar {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 240, 0.82);
  border-top: 2px solid rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.calculate-bar button {
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 15px 18px;
}

/* =========================================================
   13. SUSHIRO PAGE
========================================================= */
.sushiro-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 18px 120px;
}

.sushiro-page > h1 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.sushiro-page > .card:first-of-type {
  max-width: 900px;
  margin: 0 auto 22px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fffdf7, #fff4df);
  border: 3px solid var(--border);
  border-radius: 22px;
  box-shadow:
    6px 6px 0 rgba(127, 32, 32, 0.18),
    0 18px 36px rgba(45, 28, 20, 0.08);
  position: relative;
  overflow: hidden;
}

.sushiro-page > .card:first-of-type::before,
.sushiro-page > .card:first-of-type::after {
  content: "✦";
  position: absolute;
  top: 16px;
  color: var(--accent);
  font-size: 20px;
}

.sushiro-page > .card:first-of-type::before {
  left: 18px;
}

.sushiro-page > .card:first-of-type::after {
  right: 18px;
}

.sushiro-page > .card:first-of-type .result-header h3 {
  text-align: center;
  font-size: clamp(24px, 4vw, 42px);
}

.sushiro-page > .card:first-of-type p {
  text-align: center;
}

.sushiro-page .counter-grid.pixel-plate-list {
  max-width: 900px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sushiro-page .counter-card.pixel-plate-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: auto;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  border: 3px solid var(--border);
  border-radius: 22px;
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.18),
    0 14px 32px rgba(45, 28, 20, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sushiro-page .counter-card.pixel-plate-card:hover {
  transform: translateY(-3px);
  box-shadow:
    7px 7px 0 rgba(183, 53, 53, 0.20),
    0 20px 38px rgba(45, 28, 20, 0.10);
}

.sushiro-page .pixel-plate-card::before,
.sushiro-page .sushiro-split-grid .card::before {
  content: "⌜";
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.sushiro-page .pixel-plate-card::after {
  content: "";
  position: absolute;
  left: 170px;
  right: 22px;
  bottom: 18px;
  height: 3px;
  background-image: linear-gradient(to right, var(--accent) 0 12px, transparent 12px 22px);
  opacity: 0.62;
}

.plate-puck {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.16),
    6px 8px 0 rgba(0, 0, 0, 0.16);
  transform: rotate(-2deg);
}

.plate-puck span {
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.12em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.20);
}

.plate-puck-black {
  background: radial-gradient(circle at center, #303030 0 42%, #111 43% 100%);
  color: #f5c75b;
}

.plate-puck-gold {
  background: radial-gradient(circle at center, #f7ca54 0 42%, #c88e1f 43% 100%);
  color: #5a3510;
}

.plate-puck-silver {
  background: radial-gradient(circle at center, #f2f2f2 0 42%, #aeb4b8 43% 100%);
  color: #4b5156;
}

.plate-puck-red {
  background: radial-gradient(circle at center, #d94a4a 0 42%, #892121 43% 100%);
  color: #ffd36a;
}

.plate-puck-white {
  background: radial-gradient(circle at center, #ffffff 0 42%, #efe7d7 43% 100%);
  color: #8c5a2d;
}

.plate-puck-katsu-120 {
  background: radial-gradient(circle at center, #e9f7df 0 42%, #7a9b5f 43% 100%);
  color: #263d20;
}

.katsu-midori-page .plate-puck span {
  letter-spacing: 0;
  font-size: 14px;
}

.katsu-midori-page .pixel-total-strip {
  background: linear-gradient(180deg, #fff0d0, #ffe3ac);
}

.katsu-midori-page .pixel-plate-stack::before {
  background: #8fa56b;
}

.pixel-plate-info {
  min-width: 0;
}

.pixel-plate-info .counter-label {
  margin: 0 0 4px;
  color: var(--text);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.pixel-plate-info h4 {
  margin: 0;
  color: #a72727;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.counter-controls.pixel-controls {
  display: grid;
  grid-template-columns: 54px 112px 54px;
  gap: 12px;
  align-items: center;
  justify-content: initial;
  margin: 0;
}

.counter-btn.pixel-btn {
  width: 54px;
  height: 54px;
  min-width: 54px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 3px solid var(--border);
  font-size: 30px;
  line-height: 1;
}

.counter-value.pixel-count-input {
  width: 112px;
  height: 54px;
  min-width: 112px;
  margin: 0;
  padding: 0 10px;
  border-radius: 14px;
  border: 3px solid var(--border);
  background: #fffefa;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06);
}

.counter-value.pixel-count-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    inset 0 3px 0 rgba(0, 0, 0, 0.06);
}

.pixel-total-strip {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #fff2c7, #ffe4a1);
  border: 3px solid var(--border);
  border-radius: 22px;
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.18),
    0 18px 34px rgba(45, 28, 20, 0.08);
}

.pixel-total-label,
.pixel-total-amount {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.pixel-total-amount {
  color: #a72727;
  text-align: right;
}

.pixel-plate-stack {
  width: 76px;
  height: 58px;
  position: relative;
}

.pixel-plate-stack::before,
.pixel-plate-stack::after,
.pixel-plate-stack span {
  content: "";
  position: absolute;
  left: 8px;
  width: 62px;
  height: 18px;
  border: 3px solid var(--border);
  border-radius: 50%;
}

.pixel-plate-stack::before {
  top: 0;
  background: #171717;
}

.pixel-plate-stack span {
  top: 16px;
  background: var(--gold);
}

.pixel-plate-stack::after {
  top: 32px;
  background: var(--accent);
}

.sushiro-split-grid {
  max-width: 900px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.sushiro-split-grid .card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border: 3px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.18),
    0 14px 32px rgba(45, 28, 20, 0.07);
}

.sushiro-split-grid .result-header h3,
.sushiro-split-grid .section-title {
  margin: 0 0 18px;
  padding-left: 8px;
  font-size: 22px;
}

.sushiro-split-grid .input-group {
  margin-bottom: 14px;
}

.sushiro-split-grid .input-group input {
  height: 54px;
  padding: 18px 14px 8px;
  border: 3px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 2px dashed var(--accent-line);
  color: #6f6660;
  font-size: 14px;
  font-weight: 700;
}

.summary-row strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.summary-row.total-row {
  margin-top: 8px;
  padding-top: 18px;
  border-bottom: none;
}

.summary-row.total-row span {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.summary-row.total-row strong {
  color: #a72727;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.06em;
}

.sushiro-page + .calculate-bar {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 18px;
  bottom: 14px;
  border: 3px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.18),
    0 18px 34px rgba(45, 28, 20, 0.12);
}

.sushiro-page + .calculate-bar button {
  width: auto;
  min-width: 150px;
  height: 52px;
  max-width: none;
  margin: 0;
  padding: 0 24px;
}

.sushiro-page + .calculate-bar button:first-child {
  background: #fffefa;
  color: var(--text);
  box-shadow:
    0 5px 0 rgba(29, 29, 31, 0.26),
    0 12px 20px rgba(45, 28, 20, 0.08);
}

.sushiro-page + .calculate-bar.split-mode {
  position: static;
  bottom: auto;
  margin-top: -84px;
  margin-bottom: 36px;
}

@media (min-width: 860px) {
  .sushiro-split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sushiro-mode-switch {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 253, 248, 0.82);
  border: 2px solid rgba(190, 148, 114, 0.26);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(45, 28, 20, 0.06);
}

.sushiro-mode-switch button {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border-radius: 14px;
  box-shadow: none;
}

.sushiro-mode-switch button:not(.active) {
  background: #fffefa;
  color: var(--text);
  border-color: rgba(29, 29, 31, 0.16);
}

.sushiro-mode-panel[hidden] {
  display: none !important;
}

.sushiro-mode-panel.active {
  animation: slideUp 0.22s ease;
}

.sushiro-person-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: start;
}

.sushiro-person-card {
  margin-bottom: 0;
  padding: 22px;
  border: 3px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.16),
    0 14px 32px rgba(45, 28, 20, 0.07);
}

.sushiro-section-heading .hero-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
}

.sushiro-add-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

.sushiro-add-person-row button {
  min-width: 132px;
  height: 56px;
  margin: 0;
  padding: 0 18px;
}

.sushiro-people-list,
.sushiro-shared-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sushiro-people-list {
  margin: 0 0 14px;
}

.sushiro-person-chip {
  width: auto;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 8px 13px;
  border: 1.5px solid rgba(183, 53, 53, 0.24);
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  font-size: 13px;
  box-shadow: none;
}

.sushiro-person-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
  box-shadow: 0 3px 0 rgba(127, 32, 32, 0.35);
}

.sushiro-person-chip.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.sushiro-empty-state {
  margin: 0;
  padding: 13px 14px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255, 250, 244, 0.74);
  border: 1.5px dashed rgba(190, 148, 114, 0.32);
  border-radius: 14px;
}

.sushiro-empty-state.compact {
  padding: 10px 12px;
  width: 100%;
}

.sushiro-active-person-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1.5px solid rgba(190, 148, 114, 0.26);
  border-radius: 16px;
  background: rgba(255, 244, 223, 0.62);
}

.sushiro-active-person-panel span {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sushiro-active-person-panel strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.sushiro-active-person-panel em {
  color: #a72727;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.sushiro-person-controls.disabled {
  opacity: 0.58;
}

.sushiro-person-controls h4,
.sushiro-split-summary-card h4 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.sushiro-mini-plate-list {
  display: grid;
  gap: 10px;
}

.sushiro-mini-plate-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 16px;
  background: #fffefa;
}

.mini-plate-dot {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

.sushiro-mini-plate-row strong,
.sushiro-shared-extra-row strong,
.sushiro-person-summary-row strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.sushiro-mini-plate-row small,
.sushiro-shared-extra-row span,
.sushiro-person-summary-row span {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}

.sushiro-mini-plate-row .counter-controls.pixel-controls {
  grid-template-columns: 34px 62px 34px;
  gap: 6px;
}

.sushiro-mini-plate-row .counter-btn.pixel-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-width: 2px;
  border-radius: 10px;
  font-size: 20px;
}

.sushiro-mini-plate-row .counter-value.pixel-count-input {
  width: 62px;
  min-width: 62px;
  height: 34px;
  border-width: 2px;
  border-radius: 10px;
  font-size: 18px;
}

.sushiro-person-extra-grid,
.sushiro-split-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sushiro-shared-form {
  display: grid;
  gap: 12px;
}

.sushiro-shared-form .input-group,
.sushiro-split-settings .input-group,
.sushiro-person-extra-grid .input-group {
  margin-bottom: 0;
}

.sushiro-shared-form button {
  width: 100%;
  min-height: 50px;
  margin: 0;
}

.sushiro-shared-by-block {
  padding: 13px;
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.74);
}

.sushiro-shared-by-block > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.sushiro-shared-extra-list,
.sushiro-person-summary-list,
.sushiro-transfer-list {
  display: grid;
  gap: 9px;
}

.sushiro-shared-extra-list {
  margin-top: 14px;
}

.sushiro-shared-extra-row,
.sushiro-person-summary-row,
.sushiro-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 15px;
  background: #fffefa;
}

.sushiro-shared-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sushiro-shared-extra-actions > strong,
.sushiro-person-summary-row em,
.sushiro-transfer-row strong {
  color: #a72727;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.sushiro-shared-extra-actions .table-btn {
  height: 30px;
  min-width: 62px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 11px;
}

.sushiro-split-settings {
  margin-top: 18px;
}

.sushiro-split-summary-card {
  margin-top: 18px;
  padding: 16px;
  border: 1.5px solid rgba(190, 148, 114, 0.26);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
}

.sushiro-split-summary-card .result-header {
  margin-bottom: 8px;
}

.sushiro-transfer-row {
  border-color: rgba(82, 196, 26, 0.24);
  background: #f7fcf2;
}

.sushiro-transfer-row span {
  color: #285b2d;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .sushiro-person-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sushiro-mode-switch {
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 6px;
  }

  .sushiro-mode-switch button {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .sushiro-person-card {
    padding: 16px 14px;
    border-width: 2px;
    border-radius: 18px;
  }

  .sushiro-add-person-row,
  .sushiro-person-extra-grid,
  .sushiro-split-settings {
    grid-template-columns: 1fr;
  }

  .sushiro-add-person-row button {
    width: 100%;
  }

  .sushiro-mini-plate-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .sushiro-mini-plate-row .counter-controls.pixel-controls {
    grid-column: 1 / -1;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .sushiro-mini-plate-row .counter-value.pixel-count-input {
    width: 100%;
    min-width: 0;
  }

  .sushiro-shared-extra-row,
  .sushiro-person-summary-row,
  .sushiro-transfer-row {
    grid-template-columns: 1fr;
  }

  .sushiro-shared-extra-actions {
    justify-content: space-between;
  }
}

/* =========================================================
   14. RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .navbar {
    padding: 14px 16px;
  }

  .logo-text {
    font-size: 30px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-right {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border-soft);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: var(--shadow-lift);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity var(--duration-normal) var(--ease-soft),
      transform var(--duration-normal) var(--ease-soft),
      visibility 0s linear var(--duration-normal);
  }

  .nav-right.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity var(--duration-normal) var(--ease-soft),
      transform var(--duration-normal) var(--ease-soft),
      visibility 0s linear 0s;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav-links li {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .nav-links a:hover {
    background: var(--surface-soft);
  }

  .nav-dropdown-toggle {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible {
    background: var(--surface-soft);
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    display: none;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    margin: 6px auto 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.72);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown:not(.click-closed):hover .nav-dropdown-menu,
  .nav-dropdown:not(.click-closed):focus-within .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: grid;
    gap: 6px;
    transform: none;
  }

  .nav-dropdown-menu a {
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .language-switch {
    width: 100%;
    justify-content: center;
  }

  .single-lang-toggle {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-chevron {
    position: static;
    margin-left: 4px;
  }

  .home-features,
  .roadmap-grid,
  .restaurant-grid,
  .login-shell,
  .dashboard-summary-grid,
  .dashboard-main-grid,
  .highlight-card {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 72px 12px 56px;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .nav-right {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .menu-language-switch {
    margin-left: 8px;
  }
}

@media (max-width: 420px) {
  .nav-links a,
  .nav-dropdown-toggle,
  .nav-dropdown-menu,
  .single-lang-toggle {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .home-page,
  .restaurants-page,
  .login-page,
  .dashboard-page,
  .calculator {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero h1,
  .restaurants-hero h1,
  .login-intro h1,
  .dashboard-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .card,
  .feature-card,
  .highlight-card,
  .roadmap-card,
  .restaurant-card,
  .login-card,
  .login-preview-card,
  .summary-card {
    border-radius: 22px;
    padding: 20px 18px;
  }

  .hero-actions,
  .dashboard-hero-actions,
  .dashboard-form-actions,
  .login-options {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn,
  .dashboard-hero-actions button,
  .dashboard-form-actions button,
  .social-login {
    width: 100%;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   15. COMPACT SUSHIRO MOBILE
========================================================= */
@media (max-width: 760px) {
  .sushiro-page {
    width: min(86vw, 320px);
    max-width: 320px;
    margin: 0 auto;
    padding: 22px 0 96px;
    overflow-x: visible;
  }

  .sushiro-page > h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1;
    margin-bottom: 16px;
    text-align: center;
  }

  .sushiro-page > .card:first-of-type,
  .sushiro-page .counter-grid.pixel-plate-list,
  .sushiro-page .pixel-total-strip,
  .sushiro-page .sushiro-split-grid {
    width: 100%;
    max-width: 100%;
  }

  .sushiro-page > .card:first-of-type {
    padding: 16px 14px;
    border-width: 2px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .sushiro-page > .card:first-of-type .result-header h3 {
    font-size: 22px;
  }

  .sushiro-page > .card:first-of-type p {
    font-size: 13px;
  }

  .sushiro-page .counter-grid.pixel-plate-list {
    gap: 10px;
    margin-bottom: 12px;
  }

  .sushiro-page .counter-card.pixel-plate-card {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      "icon info"
      "controls controls";
    gap: 10px;
    padding: 12px;
    border-width: 2px;
    border-radius: 18px;
  }

  .sushiro-page .counter-card.pixel-plate-card::before {
    font-size: 17px;
    left: 6px;
    top: 5px;
  }

  .sushiro-page .counter-card.pixel-plate-card::after {
    display: none;
  }

  .sushiro-page .plate-puck {
    grid-area: icon;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    border-width: 2px;
    box-shadow:
      inset 0 0 0 4px rgba(255, 255, 255, 0.16),
      3px 4px 0 rgba(0, 0, 0, 0.14);
  }

  .sushiro-page .plate-puck span {
    font-size: 7px;
  }

  .sushiro-page .pixel-plate-info {
    grid-area: info;
  }

  .sushiro-page .pixel-plate-info .counter-label {
    font-size: 19px;
    margin-bottom: 2px;
  }

  .sushiro-page .pixel-plate-info h4 {
    font-size: 16px;
  }

  .sushiro-page .counter-controls.pixel-controls {
    grid-area: controls;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    margin-top: 8px;
  }

  .sushiro-page .counter-btn.pixel-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-width: 2px;
    border-radius: 10px;
    font-size: 22px;
  }

  .sushiro-page .counter-value.pixel-count-input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border-width: 2px;
    border-radius: 10px;
    font-size: 20px;
  }

  .sushiro-page .pixel-total-strip {
    padding: 10px;
    gap: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    border-radius: 18px;
  }

  .sushiro-page .pixel-plate-stack {
    width: 46px;
    height: 30px;
    transform: none;
    margin: 0;
  }

  .sushiro-page .pixel-plate-stack::before,
  .sushiro-page .pixel-plate-stack::after,
  .sushiro-page .pixel-plate-stack span {
    left: 5px;
    width: 36px;
    height: 10px;
    border-width: 2px;
  }

  .sushiro-page .pixel-plate-stack::before {
    top: 0;
  }

  .sushiro-page .pixel-plate-stack span {
    top: 9px;
  }

  .sushiro-page .pixel-plate-stack::after {
    top: 18px;
  }

  .sushiro-page .pixel-total-label,
  .sushiro-page .pixel-total-amount {
    font-size: 23px;
    line-height: 1;
    text-align: center;
    margin: 0;
  }

  .sushiro-page .sushiro-split-grid {
    gap: 12px;
    margin-top: 14px;
  }

  .sushiro-page .sushiro-split-grid .card {
    padding: 16px 14px;
    border-width: 2px;
    border-radius: 18px;
  }

  .sushiro-page .sushiro-split-grid .result-header h3,
  .sushiro-page .sushiro-split-grid .section-title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .sushiro-page .sushiro-split-grid .input-group {
    margin-bottom: 10px;
  }

  .sushiro-page .sushiro-split-grid .input-group input {
    height: 48px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 15px;
  }

  .sushiro-page .summary-row {
    padding: 10px 0;
  }

  .sushiro-page .summary-row span {
    font-size: 12px;
  }

  .sushiro-page .summary-row strong {
    font-size: 14px;
  }

  .sushiro-page .summary-row.total-row strong {
    font-size: clamp(30px, 9vw, 40px);
  }

  .sushiro-page + .calculate-bar {
    width: min(86vw, 320px);
    max-width: 320px;
    margin: 18px auto 0;
    left: 0;
    right: 0;
    padding: 12px;
    border-width: 2px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sushiro-page + .calculate-bar button {
    width: 100%;
    min-width: 0;
    height: 42px;
    border-width: 2px;
    border-radius: 10px;
    font-size: 14px;
  }

  .sushiro-page + .calculate-bar.split-mode {
    position: static;
    margin: -78px auto 28px;
  }
}

/* =========================================================
   FONT WEIGHT SOFTENING PATCH
   Cleaner, lighter Chamalixta typography
   Paste at the VERY BOTTOM of style.css
========================================================= */

body {
  font-weight: 400;
}

/* Logo */
.logo-text {
  font-weight: 700 !important;
}

/* Main page headings */
.home-hero h1,
.restaurants-hero h1,
.login-intro h1,
.dashboard-hero h1,
.calculator h1,
.sushiro-page > h1 {
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
}

/* Card headings */
.card h2,
.card h3,
.feature-card h3,
.roadmap-card h3,
.restaurant-card h2,
.restaurant-card-top h2,
.login-card-header h2,
.summary-card h2,
.sushiro-page .result-header h3,
.sushiro-page .section-title {
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
}

/* Paragraphs and normal text */
p,
.hero-subtext,
.restaurants-subtext,
.login-subtext,
.dashboard-subtext,
.summary-note,
.restaurant-card-top p,
.feature-card p,
.roadmap-list li {
  font-weight: 400 !important;
}

/* Buttons */
button,
.hero-btn,
.login-submit,
.login-secondary,
.dashboard-primary-btn,
.dashboard-secondary-btn,
.social-btn {
  font-weight: 650 !important;
}

/* Inputs and labels */
.input-group input,
.input-group select,
.discount-box input {
  font-weight: 500 !important;
}

.input-group label {
  font-weight: 500 !important;
}

/* Badges and chips */
.hero-eyebrow,
.roadmap-badge,
.restaurant-badge,
.summary-label,
.person-chip,
.preview-chip,
.restaurant-pill {
  font-weight: 600 !important;
}

/* Sushiro plate text */
.sushiro-page .pixel-plate-info .counter-label {
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
}

.sushiro-page .pixel-plate-info h4 {
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
}

/* Sushiro counter numbers and buttons */
.sushiro-page .counter-btn.pixel-btn,
.sushiro-page .counter-value.pixel-count-input,
.sushiro-page .pixel-total-label,
.sushiro-page .pixel-total-amount,
.sushiro-page .summary-row strong {
  font-weight: 700 !important;
}

/* =========================================================
   LOGO ONLY NAVBAR
========================================================= */

.logo.logo-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  text-decoration: none;
  border-radius: 16px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.logo.logo-only:hover {
  transform: translateY(-2px);
  background: rgba(183, 53, 53, 0.08);
  box-shadow: 0 10px 24px rgba(45, 28, 20, 0.08);
}

.logo.logo-only:active {
  transform: translateY(1px);
}

.logo.logo-only .site-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.logo.logo-only .logo-text {
  display: none;
}

@media (max-width: 760px) {
  .logo.logo-only {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .logo.logo-only .site-logo {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   HOME PAGE LOGO TEXT
   Panda + Chamali, only "li" in orange
========================================================= */

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.home-logo .site-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.home-logo .logo-text {
  display: inline-block;
  color: #1d1d1f;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-logo .logo-text span {
  color: #f4a261;
}

@media (max-width: 760px) {
  .home-logo .site-logo {
    width: 40px;
    height: 40px;
  }

  .home-logo .logo-text {
    font-size: 30px;
  }
}

/* =========================================================
   THAI VERSION TYPOGRAPHY
========================================================= */

html[lang="th"],
html[lang="th"] body,
html[lang="th"] button,
html[lang="th"] input,
html[lang="th"] select,
html[lang="th"] textarea {
  font-family: "SukhumvitSet", "Inter", sans-serif;
}

html[lang="th"] body {
  font-weight: 400;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3 {
  font-weight: 600;
}

html[lang="th"] button,
html[lang="th"] .hero-btn,
html[lang="th"] .nav-links a,
html[lang="th"] .nav-dropdown-toggle,
html[lang="th"] .single-lang-toggle {
  font-weight: 500;
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-right {
    position: static !important;
    display: flex !important;
  }
}

/* =========================================================
   CHAMALI THEME POPUP
========================================================= */

.chamali-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(29, 29, 31, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.chamali-popup-overlay.show {
  display: flex;
}

.chamali-popup {
  width: min(100%, 360px);
  padding: 22px 20px 18px;

  text-align: center;

  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  border: 3px solid #1d1d1f;
  border-radius: 24px;

  box-shadow:
    6px 6px 0 rgba(183, 53, 53, 0.18),
    0 22px 48px rgba(45, 28, 20, 0.22);

  animation: chamaliPopupIn 0.2s ease;
}

.chamali-popup-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;

  display: grid;
  place-items: center;

  background: #fffefa;
  border: 3px solid #1d1d1f;
  border-radius: 18px;

  font-size: 28px;

  box-shadow:
    4px 4px 0 rgba(183, 53, 53, 0.16);
}

.chamali-popup-content h3 {
  margin: 0 0 8px;
  color: #1d1d1f;

  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.chamali-popup-content p {
  margin: 0 0 18px;
  color: #77716a;

  font-size: 15px;
  line-height: 1.55;
}

.chamali-popup-button {
  width: 100%;
  height: 46px;

  border-radius: 14px;
  border: 3px solid #1d1d1f;

  background: linear-gradient(180deg, #dc5656, #b73535);
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  box-shadow:
    0 5px 0 #7f2020,
    0 12px 20px rgba(183, 53, 53, 0.16);
}

.chamali-popup-button:hover {
  transform: translateY(-2px);
}

.chamali-popup-button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #7f2020,
    0 8px 14px rgba(183, 53, 53, 0.14);
}

@keyframes chamaliPopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .chamali-popup {
    width: min(100%, 320px);
    padding: 20px 16px 16px;
    border-radius: 22px;
  }

  .chamali-popup-content h3 {
    font-size: 20px;
  }

  .chamali-popup-content p {
    font-size: 14px;
  }
}

/* =========================================================
   BILL SPLIT UX/UI IMPROVEMENT
========================================================= */

.bill-split-page {
  max-width: 720px;
}

.bill-split-hero {
  text-align: center;
  margin-bottom: 18px;
}

.bill-split-hero h1 {
  margin-bottom: 12px;
}

.bill-split-hero p:last-child {
  max-width: 580px;
  margin: 0 auto;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.bill-steps-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.bill-step-pill {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;

  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  border: 2px solid var(--border-soft);
  border-radius: 18px;

  box-shadow:
    3px 3px 0 rgba(183, 53, 53, 0.12),
    0 10px 22px rgba(45, 28, 20, 0.06);
}

.bill-step-pill span,
.step-number {
  width: 30px;
  height: 30px;
  min-width: 30px;

  display: grid;
  place-items: center;

  background: var(--accent);
  color: #fff;

  border: 2px solid var(--border);
  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;

  box-shadow: 2px 2px 0 rgba(127, 32, 32, 0.28);
}

.bill-step-pill strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.bill-step-card {
  padding: 20px;
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.step-card-header h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.step-card-header p {
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.bill-helper-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;

  margin-bottom: 14px;
  padding: 12px 14px;

  background: rgba(183, 53, 53, 0.08);
  border: 2px dashed rgba(183, 53, 53, 0.22);
  border-radius: 16px;

  color: var(--subtle);
  font-size: 14px;
  line-height: 1.5;
}

.bill-helper-box strong {
  color: var(--accent);
  font-weight: 700;
}

.selected-people-hint {
  margin: 0 0 14px;
  padding: 10px 12px;

  background: #fffefa;
  border: 2px solid var(--border-soft);
  border-radius: 14px;

  color: var(--subtle);
  font-size: 14px;
  line-height: 1.45;
}

.selected-people-hint.has-selection {
  color: var(--accent);
  border-color: rgba(183, 53, 53, 0.24);
  background: rgba(183, 53, 53, 0.08);
}

@media (max-width: 700px) {
  .bill-split-page {
    max-width: 420px;
  }

  .bill-steps-guide {
    grid-template-columns: 1fr;
  }

  .bill-step-pill {
    padding: 11px 12px;
  }

  .step-card-header h3 {
    font-size: 18px;
  }
}

/* =========================================================
   GUIDED BILL SPLIT POPUP
========================================================= */

.guide-open-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 220px;
  margin: 18px auto 24px;
  padding: 14px 22px;
}

.bill-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
  background: rgba(29, 29, 31, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bill-guide-overlay.show {
  display: flex;
}

.bill-guide-modal {
  width: min(100%, 720px);
  max-height: min(92vh, 820px);
  overflow-y: auto;

  padding: 22px;

  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  border: 3px solid var(--border);
  border-radius: 28px;

  box-shadow:
    8px 8px 0 rgba(183, 53, 53, 0.18),
    0 24px 58px rgba(45, 28, 20, 0.28);

  animation: chamaliPopupIn 0.22s ease;
}

.bill-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.bill-guide-header h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.bill-guide-close {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 14px;
  font-size: 28px;
  line-height: 1;
  background: #fffefa;
  color: var(--text);
  box-shadow:
    0 4px 0 rgba(29, 29, 31, 0.24),
    0 10px 18px rgba(45, 28, 20, 0.08);
}

.bill-guide-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.guide-step-dot {
  height: 42px;
  min-width: 0;
  padding: 0;
  border-radius: 14px;
  background: #fffefa;
  color: var(--text);
  box-shadow:
    0 4px 0 rgba(29, 29, 31, 0.18),
    0 10px 18px rgba(45, 28, 20, 0.06);
}

.guide-step-dot.active {
  background: linear-gradient(180deg, #dc5656, var(--accent));
  color: #fff;
}

.bill-guide-step {
  display: none;
}

.bill-guide-step.active {
  display: block;
}

.guide-stage-heading {
  margin-bottom: 18px;
}

.guide-stage-heading h3 {
  margin-bottom: 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.guide-stage-heading p {
  margin: 0;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.55;
}

.guide-add-person-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
  margin-bottom: 16px;
}

.guide-add-person-row input,
.guide-input-group input,
.guide-input-group select {
  width: 100%;
  height: 54px;
  padding: 0 14px;

  border: 2px solid var(--border-soft);
  border-radius: 16px;
  background: #fffefa;

  color: var(--text);
  font: inherit;
  font-weight: 500;
  outline: none;
}

.guide-add-person-row input:focus,
.guide-input-group input:focus,
.guide-input-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.guide-people-circles,
.guide-eaters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-person-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--border);

  display: grid;
  place-items: center;

  background: #fffefa;
  color: var(--text);

  font-size: 13px;
  font-weight: 700;
  text-align: center;

  box-shadow:
    4px 4px 0 rgba(183, 53, 53, 0.14),
    0 10px 22px rgba(45, 28, 20, 0.08);

  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.guide-person-circle:hover {
  transform: translateY(-2px);
}

.guide-person-circle.selected {
  background: var(--accent);
  color: #fff;
}

.guide-form-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.8fr;
  gap: 12px;
  margin-bottom: 18px;
}

.guide-input-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.guide-eaters-box {
  padding: 16px;
  margin-bottom: 18px;

  border: 2px dashed rgba(183, 53, 53, 0.22);
  border-radius: 20px;
  background: rgba(183, 53, 53, 0.07);
}

.guide-eaters-box h4 {
  margin-bottom: 4px;
  font-size: 17px;
}

.guide-eaters-box p {
  margin-bottom: 12px;
  font-size: 14px;
}

.bill-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.bill-guide-actions.two {
  justify-content: space-between;
}

.bill-guide-actions button {
  min-width: 150px;
  height: 48px;
}

.guide-order-preview {
  display: grid;
  gap: 10px;
}

.guide-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;

  border: 2px solid var(--border-soft);
  border-radius: 18px;
  background: #fffefa;
}

.guide-order-card strong {
  display: block;
  margin-bottom: 4px;
}

.guide-order-card span {
  color: var(--subtle);
  font-size: 13px;
}

.guide-discount-box {
  margin-top: 16px;
}

.guide-summary-box {
  display: grid;
  gap: 12px;
}

.guide-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  padding: 14px;
  border: 2px solid rgba(82, 196, 26, 0.22);
  border-radius: 18px;
  background: rgba(82, 196, 26, 0.08);

  color: var(--text);
  font-weight: 600;
}

.guide-summary-line strong {
  color: #2f8f46;
}

.guide-empty-state {
  padding: 16px;
  text-align: center;
  color: var(--subtle);
  border: 2px dashed var(--border-soft);
  border-radius: 18px;
  background: #fffefa;
}

@media (max-width: 700px) {
  .bill-guide-modal {
    width: min(100%, 390px);
    padding: 18px;
    border-radius: 24px;
  }

  .guide-form-grid {
    grid-template-columns: 1fr;
  }

  .bill-guide-actions,
  .bill-guide-actions.two {
    flex-direction: column;
  }

  .bill-guide-actions button {
    width: 100%;
  }

  .guide-person-circle {
    width: 66px;
    height: 66px;
    font-size: 12px;
  }
}

/* =========================================================
   CLEANER GUIDED BILL SPLIT
========================================================= */

.bill-split-hero.clean {
  margin-bottom: 14px;
}

.bill-split-hero.clean h1 {
  margin-bottom: 0;
}

.guide-open-btn {
  margin-top: 12px;
  margin-bottom: 22px;
}

.bill-guide-modal {
  padding: 20px;
}

.bill-guide-header {
  margin-bottom: 12px;
}

.bill-guide-header .hero-eyebrow {
  margin-bottom: 8px;
}

.bill-guide-header h2 {
  margin-top: 0;
}

.guide-stage-heading {
  margin-bottom: 14px;
}

.guide-stage-heading h3 {
  margin-bottom: 0;
}

.guide-stage-heading p {
  display: none;
}

.guide-eaters-box p {
  display: none;
}

.guide-eaters-box {
  padding: 14px;
}

.guide-eaters-box h4 {
  margin-bottom: 12px;
}

.bill-guide-progress {
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .bill-guide-modal {
    padding: 16px;
  }

  .guide-stage-heading {
    margin-bottom: 12px;
  }
}

/* =========================================================
   CLEAN BILL SPLIT PAGE
   Remove number badges from normal page cards
========================================================= */

.bill-steps-guide {
  display: none;
}

.step-number {
  display: none !important;
}

.step-card-header {
  display: block;
  margin-bottom: 14px;
}

.step-card-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step-card-header p {
  display: none;
}

.bill-helper-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff8f3;
  border: 1.5px solid rgba(183, 53, 53, 0.18);
  border-radius: 16px;
}

.selected-people-hint {
  margin-bottom: 14px;
}

/* =========================================================
   GUIDED BILL SPLIT - CLEANER STYLE WITH PANDA
========================================================= */

.guide-stage-hero {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.guide-panda {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  justify-self: center;
  image-rendering: auto;
}

.guide-stage-heading {
  margin-bottom: 0;
}

.guide-stage-heading h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.guide-stage-heading p {
  margin: 0;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.5;
}

.bill-guide-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.guide-step-dot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  border: 2px solid rgba(29, 29, 31, 0.14);
  background: #fffefa;
  color: #8a6a52;
  font-weight: 700;
  box-shadow: none;
}

.guide-step-dot.active {
  background: linear-gradient(180deg, #dc5656, var(--accent));
  color: #fff;
  border-color: transparent;
}

.bill-guide-modal {
  width: min(100%, 660px);
  padding: 24px;
  border-radius: 28px;
}

.bill-guide-header {
  margin-bottom: 12px;
}

.bill-guide-header h2 {
  margin: 8px 0 0;
  font-size: 32px;
}

.bill-guide-close {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #8a6a52;
  font-size: 34px;
  box-shadow: none;
}

.bill-guide-close:hover {
  background: rgba(183, 53, 53, 0.06);
}

.guide-add-person-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-add-person-row button {
  height: 54px;
  border-radius: 16px;
}

.guide-person-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(29, 29, 31, 0.12);
  background: #fff7f2;
  color: var(--accent);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.guide-person-circle.selected {
  background: #ffe8e3;
  color: var(--accent);
  border-color: rgba(183, 53, 53, 0.4);
}

.guide-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 14px;
  margin-bottom: 18px;
}

.guide-eaters-box {
  padding: 16px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(183, 53, 53, 0.16);
  border-radius: 18px;
  background: #fffaf6;
}

.guide-eaters-box h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.guide-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  background: #fffefa;
}

.guide-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #eef7e8;
  border: 1.5px solid rgba(82, 196, 26, 0.18);
}

.bill-guide-actions button {
  min-width: 170px;
  height: 50px;
  border-radius: 16px;
}

/* =========================
   MOBILE VERSION
========================= */
@media (max-width: 700px) {
  .bill-guide-modal {
    width: min(100%, 390px);
    padding: 18px 14px;
    border-radius: 24px;
  }

  .bill-guide-header h2 {
    font-size: 26px;
  }

  .guide-stage-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    margin-bottom: 14px;
  }

  .guide-panda {
    width: 82px;
    height: 82px;
  }

  .guide-stage-heading h3 {
    font-size: 20px;
  }

  .guide-stage-heading p {
    font-size: 14px;
  }

  .bill-guide-progress {
    gap: 8px;
    margin-bottom: 14px;
  }

  .guide-step-dot {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 14px;
  }

  .guide-add-person-row {
    grid-template-columns: 1fr;
  }

  .guide-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-people-circles,
  .guide-eaters-grid {
    justify-content: center;
    gap: 10px;
  }

  .guide-person-circle {
    width: 68px;
    height: 68px;
    font-size: 13px;
  }

  .bill-guide-actions,
  .bill-guide-actions.two {
    flex-direction: column;
    gap: 10px;
  }

  .bill-guide-actions button {
    width: 100%;
    min-width: 0;
  }

  .guide-order-card {
    grid-template-columns: 1fr;
  }

  .guide-summary-line {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   GUIDED BILL SPLIT MODAL - CHAMALI UX/UI
========================================================= */

.guide-open-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 160px;
  margin: 18px auto 24px;
  padding: 14px 28px;
}

/* Overlay */
.bill-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bill-guide-overlay.show {
  display: flex;
}

/* Modal */
.bill-guide-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: 34px 42px 36px;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
  border: 1.5px solid rgba(120, 84, 58, 0.18);
  border-radius: 30px;
  box-shadow:
    0 30px 80px rgba(45, 28, 20, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: chamaliGuideIn 0.22s ease;
}

@keyframes chamaliGuideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top progress */
.bill-guide-top {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.bill-guide-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.guide-step-dot {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(190, 148, 114, 0.45);
  background: #fffaf4;
  color: #8a6a52;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
  z-index: 2;
}

.guide-step-dot:not(:last-child) {
  margin-right: 42px;
}

.guide-step-dot:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 46px;
  top: 50%;
  width: 44px;
  height: 2px;
  background: rgba(190, 148, 114, 0.32);
  transform: translateY(-50%);
}

.guide-step-dot.active {
  background: linear-gradient(180deg, #dc5656, #b73535);
  color: #fff;
  border-color: transparent;
}

/* Close */
.bill-guide-close {
  position: absolute;
  right: -16px;
  top: -8px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: none;
  background: transparent;
  color: #78543a;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  box-shadow: none;
}

.bill-guide-close:hover {
  transform: none;
  background: rgba(183, 53, 53, 0.06);
  box-shadow: none;
}

/* Steps */
.bill-guide-step {
  display: none;
}

.bill-guide-step.active {
  display: block;
}

/* Panda + heading */
.guide-stage-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.guide-panda {
  width: 140px;
  height: 140px;
  object-fit: contain;
  justify-self: center;
}

.guide-stage-heading h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.guide-stage-heading p {
  max-width: 480px;
  margin: 0;
  color: #1d1d1f;
  font-size: 20px;
  line-height: 1.42;
}

/* Add name row */
.guide-add-person-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 18px;
  margin-bottom: 28px;
}

.guide-add-person-row input,
.guide-input-group input,
.guide-input-group select {
  width: 100%;
  height: 62px;
  padding: 0 22px;
  border: 1.5px solid rgba(190, 148, 114, 0.36);
  border-radius: 14px;
  background: #fffefa;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.025);
}

.guide-add-person-row input:focus,
.guide-input-group input:focus,
.guide-input-group select:focus {
  border-color: rgba(183, 53, 53, 0.6);
  box-shadow: 0 0 0 5px rgba(183, 53, 53, 0.10);
}

.guide-add-person-row button {
  height: 62px;
  border-radius: 14px;
  font-size: 20px;
}

/* Name circles */
.guide-people-circles,
.guide-eaters-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 22px;
}

.guide-person-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 84, 58, 0.15);
  color: #9f2b2b;
  background: #ffe4e0;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.guide-person-circle:nth-child(2) {
  background: #ffe9b9;
  color: #9a4d12;
}

.guide-person-circle:nth-child(3) {
  background: #dff1d5;
  color: #1f6c35;
}

.guide-person-circle:nth-child(4) {
  background: #e5d7f6;
  color: #3e2b7c;
}

.guide-person-circle:nth-child(5) {
  background: #dbe9f7;
  color: #183e6d;
}

.guide-person-circle:hover {
  transform: translateY(-2px);
}

.guide-person-circle.selected {
  background: #fff8f3;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: inset 0 -3px 0 rgba(183, 53, 53, 0.12);
}

/* Step 2 form */
.guide-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.guide-input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.guide-eaters-box {
  margin-bottom: 26px;
  padding: 0;
  border: none;
  background: transparent;
}

.guide-eaters-box h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

/* Actions */
.bill-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 26px;
}

.bill-guide-actions.two {
  justify-content: space-between;
}

.bill-guide-actions button {
  min-width: 210px;
  height: 58px;
  border-radius: 14px;
  font-size: 18px;
}

/* Order preview */
.guide-order-preview {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1.5px solid rgba(190, 148, 114, 0.28);
  border-radius: 18px;
  background: #fffefa;
}

.guide-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(190, 148, 114, 0.22);
  background: transparent;
}

.guide-order-card:last-child {
  border-bottom: none;
}

.guide-order-card strong {
  color: var(--text);
  font-size: 18px;
}

.guide-order-card span {
  color: var(--subtle);
  font-size: 15px;
}

/* Discount */
.guide-discount-box {
  max-width: 300px;
  margin-top: 22px;
}

/* Summary */
.guide-summary-box {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 22px;
  background: #eef8e8;
  border: 1.5px solid rgba(82, 196, 26, 0.20);
}

.guide-summary-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 8px 0;
  color: #285b2d;
  font-size: 22px;
  font-weight: 600;
}

.guide-summary-line strong {
  color: var(--text);
  font-size: 24px;
}

/* Empty state */
.guide-empty-state {
  padding: 18px;
  text-align: center;
  color: var(--subtle);
  border: 1.5px dashed rgba(190, 148, 114, 0.35);
  border-radius: 18px;
  background: #fffefa;
}

/* =========================================================
   MOBILE GUIDED BILL SPLIT
========================================================= */

@media (max-width: 700px) {
  .bill-guide-overlay {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .bill-guide-modal {
    width: 100%;
    max-width: 430px;
    max-height: none;
    margin: 12px auto;
    padding: 20px 16px 22px;
    border-radius: 24px;
  }

  .bill-guide-top {
    margin-bottom: 18px;
  }

  .guide-step-dot {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 16px;
  }

  .guide-step-dot:not(:last-child) {
    margin-right: 24px;
  }

  .guide-step-dot:not(:last-child)::after {
    left: 40px;
    width: 26px;
  }

  .bill-guide-close {
    right: -8px;
    top: -8px;
    font-size: 34px;
  }

  .guide-stage-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    margin-bottom: 22px;
  }

  .guide-panda {
    width: 112px;
    height: 112px;
  }

  .guide-stage-heading h3 {
    font-size: 30px;
  }

  .guide-stage-heading p {
    margin: 0 auto;
    font-size: 16px;
  }

  .guide-add-person-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }

  .guide-add-person-row input,
  .guide-input-group input,
  .guide-input-group select {
    height: 54px;
    font-size: 16px;
    border-radius: 14px;
  }

  .guide-add-person-row button {
    height: 54px;
  }

  .guide-people-circles,
  .guide-eaters-grid {
    justify-content: center;
    gap: 12px;
  }

  .guide-person-circle {
    width: 74px;
    height: 74px;
    font-size: 14px;
  }

  .guide-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-eaters-box h4 {
    text-align: center;
    font-size: 17px;
  }

  .bill-guide-actions,
  .bill-guide-actions.two {
    flex-direction: column;
    gap: 12px;
  }

  .bill-guide-actions button {
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 16px;
  }

  .guide-order-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .guide-discount-box {
    max-width: 100%;
  }

  .guide-summary-box {
    padding: 18px;
  }

  .guide-summary-line {
    grid-template-columns: 1fr;
    font-size: 18px;
  }

  .guide-summary-line strong {
    font-size: 22px;
  }
}

/* =========================================================
   POPUP LAYER ORDER
   Chamali Alert should appear above Guided Bill Split
========================================================= */

.bill-guide-overlay {
  z-index: 9999;
}

.chamali-popup-overlay {
  z-index: 12000 !important;
}

/* Progress dots without numbers */
.guide-step-dot {
  font-size: 0;
}

.guide-step-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
}

/* =========================================================
   BILL SPLIT EXPLANATION MODE
========================================================= */

.bill-split-hero.clean h1 {
  margin-bottom: 12px;
}

.guide-start-hint {
  max-width: 620px;
  margin: -10px auto 24px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.bill-split-page .step-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.bill-split-page .step-number {
  display: grid !important;
}

.bill-split-page .step-card-header h3 {
  margin: 0 0 6px;
}

.bill-split-page .step-card-header p {
  display: block;
  margin: 0;
  max-width: 560px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

.bill-split-page .bill-helper-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fff8f3;
  border: 1.5px solid rgba(183, 53, 53, 0.18);
  border-radius: 16px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.bill-split-page .bill-helper-box span {
  flex: 1;
}

@media (max-width: 700px) {
  .guide-start-hint {
    margin-top: -8px;
    padding: 0 6px;
  }

  .bill-split-page .step-card-header {
    gap: 10px;
  }
}

.bill-info-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.bill-info-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 24px;
  align-items: flex-start;
}

.bill-info-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(127, 32, 32, 0.28);
}

.bill-info-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.bill-info-card p {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.bill-info-card .bill-helper-box {
  margin-bottom: 0;
}

.bill-start-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: 26px 28px;
  background: linear-gradient(180deg, #fffdf8, #fff4df);
  border: 3px solid var(--border);
  border-radius: 24px;
  box-shadow:
    5px 5px 0 rgba(183, 53, 53, 0.18),
    0 14px 32px rgba(45, 28, 20, 0.07);
}

.bill-start-panel h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.bill-start-panel p:last-child {
  margin: 0;
  max-width: 520px;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.guide-open-btn.inline {
  margin: 0;
  min-width: 148px;
  height: 58px;
  white-space: nowrap;
}

html[lang="th"] .bill-info-card h3 {
  font-size: 24px;
  line-height: 1.35;
}

html[lang="th"] .bill-info-card p,
html[lang="th"] .bill-helper-box,
html[lang="th"] .bill-start-panel p:last-child {
  font-size: 15px;
  line-height: 1.75;
}

html[lang="th"] .bill-start-panel h2 {
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.15;
}

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

.guide-summary-totals div {
  padding: 14px;
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 16px;
  background: #fffefa;
}

.guide-summary-totals span {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.guide-summary-totals strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.guide-summary-totals .final {
  background: #fff4df;
  border-color: rgba(183, 53, 53, 0.24);
}

.guide-summary-totals .final strong {
  color: var(--accent);
}

.guide-summary-payments {
  display: grid;
  gap: 10px;
}

.guide-order-card {
  align-items: center;
}

.guide-order-main {
  min-width: 0;
}

.guide-order-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.guide-order-actions {
  display: flex;
  gap: 8px;
}

.guide-order-actions .table-btn {
  min-width: 64px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: none;
}

.guide-summary-heading {
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.guide-balance-list {
  display: grid;
  gap: 10px;
}

.guide-balance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 16px;
  background: #fffefa;
}

.guide-balance-row strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.guide-balance-row span {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.45;
}

.guide-balance-row em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5efe6;
  color: var(--subtle);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.guide-balance-row.positive em {
  background: rgba(82, 196, 26, 0.12);
  color: #2f7b3a;
}

.guide-balance-row.negative em {
  background: rgba(183, 53, 53, 0.10);
  color: var(--accent);
}

@media (max-width: 700px) {
  .bill-info-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .bill-start-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    text-align: left;
  }

  .guide-open-btn.inline {
    width: 100%;
  }

  .guide-summary-totals {
    grid-template-columns: 1fr;
  }

  .guide-order-side {
    justify-items: stretch;
  }

  .guide-order-actions {
    width: 100%;
  }

  .guide-order-actions .table-btn {
    flex: 1;
  }

  .guide-balance-row {
    grid-template-columns: 1fr;
  }

  .guide-balance-row em {
    width: fit-content;
  }
}

/* =========================================================
   GUIDED POPUP CONTENT-FIT OVERRIDE
========================================================= */

.bill-guide-overlay {
  padding: clamp(12px, 3vw, 28px);
  align-items: center;
}

.bill-guide-modal {
  width: min(96vw, 960px);
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(22px, 3.8vw, 42px);
}

.bill-guide-step.active {
  width: 100%;
}

.guide-order-preview,
.guide-summary-box,
.guide-balance-list,
.guide-summary-payments {
  width: 100%;
}

.guide-form-grid {
  grid-template-columns: minmax(220px, 1.35fr) minmax(140px, 0.8fr) minmax(180px, 1fr);
}

.guide-summary-box {
  max-width: none;
}

@media (max-width: 760px) {
  .bill-guide-overlay {
    align-items: flex-start;
    padding: 12px;
  }

  .bill-guide-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 18px 14px 22px;
  }

  .guide-form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BILL SPLIT TIPS SECTION - CLEANER UX/UI
========================================================= */

.bill-split-page {
  max-width: 780px;
  padding-bottom: 78px;
}

.bill-info-grid {
  gap: 18px;
  margin-top: 28px;
}

.bill-info-card {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 20px;
  box-shadow:
    4px 4px 0 rgba(183, 53, 53, 0.10),
    0 16px 32px rgba(45, 28, 20, 0.05);
}

.bill-info-number {
  width: 34px;
  height: 34px;
  border-width: 1.5px;
  border-radius: 11px;
  font-size: 14px;
  box-shadow: 0 3px 0 rgba(127, 32, 32, 0.30);
}

.bill-info-card h3 {
  margin-bottom: 7px;
  font-size: 21px;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.bill-info-card p {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.bill-info-card .bill-helper-box {
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(183, 53, 53, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 243, 0.78);
}

.bill-info-card .bill-helper-box strong {
  flex: 0 0 auto;
  padding: 2px 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
}

.bill-info-card .bill-helper-box span {
  min-width: 0;
  color: #6f6660;
  font-size: 13px;
  line-height: 1.55;
}

.bill-start-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-top: 30px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 246, 230, 0.96));
  border: 2px solid var(--border);
  border-radius: 22px;
  box-shadow:
    4px 4px 0 rgba(183, 53, 53, 0.12),
    0 18px 38px rgba(45, 28, 20, 0.08);
}

.bill-start-panel .hero-eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  font-size: 11px;
}

.bill-start-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bill-start-panel p:last-child {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.65;
}

.bill-start-panel .guide-open-btn.inline {
  min-width: 148px;
  height: 58px;
  padding: 0 28px;
  justify-self: end;
}

html[lang="th"] .bill-info-card h3 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: 0;
}

html[lang="th"] .bill-info-card p,
html[lang="th"] .bill-info-card .bill-helper-box span,
html[lang="th"] .bill-start-panel p:last-child {
  font-size: 14px;
  line-height: 1.75;
}

html[lang="th"] .bill-start-panel h2 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

@media (max-width: 700px) {
  .bill-split-page {
    max-width: 460px;
    padding-bottom: 64px;
  }

  .bill-info-grid {
    gap: 14px;
  }

  .bill-info-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .bill-info-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
  }

  .bill-info-card .bill-helper-box {
    grid-column: 1 / -1;
  }

  .bill-start-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }

  .bill-start-panel .guide-open-btn.inline {
    width: 100%;
    justify-self: stretch;
  }
}

/* =========================================================
   GUIDED BILL MEMORY CHIPS
========================================================= */

.guide-memory-panel {
  margin: 18px 0 4px;
  padding: 14px;
  border: 1.5px solid rgba(190, 148, 114, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.82);
}

.guide-memory-panel[hidden] {
  display: none !important;
}

.guide-memory-panel.compact {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 14px;
}

.guide-memory-panel h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.guide-memory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-memory-chip {
  width: auto;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1.5px solid rgba(183, 53, 53, 0.22);
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.guide-memory-chip:hover {
  transform: translateY(-1px);
  background: rgba(183, 53, 53, 0.08);
  box-shadow: none;
}

html[lang="th"] .guide-memory-panel h4,
html[lang="th"] .guide-memory-chip {
  letter-spacing: 0;
}

/* =========================================================
   BILL SPLIT DEFAULT GUIDE PAGE
========================================================= */

.bill-guide-page {
  max-width: 1040px;
  margin: clamp(20px, 4vw, 44px) auto 32px;
  padding: 0 clamp(14px, 3vw, 24px) 72px;
}

body.bill-guide-body {
  animation: none;
  overflow-x: hidden;
}

.bill-guide-page > .bill-split-hero {
  max-width: 680px;
  margin: 0 auto clamp(18px, 3vw, 28px);
  text-align: center;
}

.bill-guide-page > .bill-split-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.bill-guide-page > .bill-split-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: #6f6660;
  font-size: 15px;
  line-height: 1.65;
}

.bill-guide-page > .recently-section {
  max-width: 960px;
  margin: 0 auto clamp(18px, 3vw, 28px);
}

.bill-guide-page .bill-guide-overlay {
  position: static;
  inset: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
}

.bill-guide-page .bill-guide-modal {
  width: 100%;
  max-width: 960px;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  opacity: 1;
  transform: none;
  animation: none;
  border: 1.5px solid rgba(120, 84, 58, 0.20);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 239, 0.98));
  box-shadow:
    0 22px 52px rgba(45, 28, 20, 0.10),
    5px 5px 0 rgba(183, 53, 53, 0.10);
}

.bill-guide-page .bill-guide-close {
  display: none;
}

.bill-guide-page .bill-guide-top {
  justify-content: center;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.bill-guide-page .bill-guide-progress {
  margin: 0 auto;
}

.bill-guide-page .guide-stage-hero {
  margin-bottom: clamp(22px, 4vw, 34px);
}

.bill-guide-page .guide-stage-heading h3 {
  max-width: 680px;
}

.bill-guide-page .guide-stage-heading p {
  max-width: 560px;
}

.bill-guide-page .guide-memory-panel,
.bill-guide-page .guide-order-preview,
.bill-guide-page .guide-summary-box,
.bill-guide-page .guide-eaters-box {
  background-color: rgba(255, 254, 250, 0.72);
}

@media (max-width: 760px) {
  .bill-guide-page {
    max-width: 100vw;
    margin-top: 16px;
    padding: 0 12px 52px;
    overflow-x: hidden;
  }

  .bill-guide-page .bill-guide-modal {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 24px;
    box-shadow:
      0 18px 38px rgba(45, 28, 20, 0.08),
      3px 3px 0 rgba(183, 53, 53, 0.10);
  }

  .bill-guide-page .guide-stage-hero {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SHARE ACTIONS
========================================================= */

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.share-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(120, 84, 58, 0.18);
  border-radius: 14px;
  padding: 10px 16px;
  background: #fffefa;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(120, 84, 58, 0.12);
}

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

.line-share-btn {
  border-color: rgba(6, 199, 85, 0.35);
  background: #eafff1;
  color: #075f2d;
}

.line-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.save-history-btn {
  background: linear-gradient(180deg, #d94a4a, #bf3036);
  color: #fff;
  border-color: #71191d;
}

/* =========================================================
   BILL ENTRY MODES + RECEIPT SCAN
========================================================= */

.bill-entry-mode-switch {
  width: min(520px, 100%);
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 8px;
  border: 1px solid rgba(190, 148, 114, 0.25);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
}

.bill-entry-mode-btn {
  flex: 1;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 18px;
  background: transparent;
  color: #746158;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.bill-entry-mode-btn.active {
  background: linear-gradient(180deg, #d94a4a, #bf3036);
  color: #fff;
  border-color: #7a191d;
  box-shadow: 0 4px 0 #6c151a;
}

.bill-guide-page,
.bill-guide-page-panel,
.receipt-bill-panel {
  position: relative;
  z-index: 1;
}

.manual-bill-panel[hidden],
.receipt-bill-panel[hidden] {
  display: none;
}

.receipt-bill-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.receipt-bill-panel * {
  min-width: 0;
}

.receipt-bill-panel button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.receipt-panel-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
}

.receipt-panel-header h3 {
  margin: 0 0 6px;
  font-size: clamp(28px, 5vw, 42px);
}

.receipt-panel-header p {
  max-width: 620px;
  margin: 0;
  color: #6f6660;
  line-height: 1.6;
}

.receipt-top-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.receipt-section-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 4px 4px 0 rgba(183, 53, 53, 0.08);
}

.receipt-section-header {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.receipt-section-header h4 {
  margin: 4px 0 0;
}

.receipt-section-header .hero-eyebrow {
  margin: 0;
}

.receipt-upload-drop {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1.5px dashed rgba(183, 53, 53, 0.32);
  border-radius: 18px;
  background: rgba(255, 246, 232, 0.64);
  color: var(--accent);
  font-weight: 900;
}

.receipt-upload-drop small {
  color: #7a6a60;
  font-size: 12px;
  font-weight: 700;
}

.receipt-upload-drop.has-file {
  border-style: solid;
  background: #fffefa;
}

.receipt-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.receipt-preview {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 84, 58, 0.16);
}

.receipt-preview[hidden] {
  display: none !important;
}

.receipt-preview-box {
  width: 100%;
  height: clamp(220px, 38vw, 320px);
  display: grid;
  place-items: center;
  cursor: zoom-in;
  background: #fffefa;
  overflow: hidden;
}

.receipt-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fffefa;
}

.receipt-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 18, 12, 0.48);
}

.receipt-preview-overlay[hidden] {
  display: none;
}

.receipt-preview-overlay img {
  width: min(820px, 100%);
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 24px 60px rgba(22, 14, 10, 0.25);
}

.receipt-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid rgba(120, 84, 58, 0.22);
  border-radius: 999px;
  background: #fffefa;
  color: #9b302f;
  cursor: pointer;
}

.receipt-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.receipt-details-grid .input-group {
  min-width: 0;
  margin-bottom: 0;
}

.receipt-details-grid input {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 22px 16px 8px;
  line-height: 1.2;
  box-sizing: border-box;
}

.receipt-details-grid input[type="date"] {
  min-height: 58px;
  appearance: none;
  -webkit-appearance: none;
}

.receipt-details-grid input[type="date"] + label {
  top: 8px;
  font-size: 11px;
  color: var(--accent);
}

.receipt-upload-options,
.receipt-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.receipt-upload-options {
  justify-content: stretch;
}

.receipt-upload-options button {
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}

.receipt-upload-main-btn,
.receipt-upload-trigger {
  min-height: 48px !important;
  padding: 0 18px;
}

.receipt-upload-menu {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  place-items: end center;
  padding: 18px;
}

.receipt-upload-menu.show {
  display: grid;
}

.receipt-upload-menu[hidden] {
  display: none !important;
}

.receipt-upload-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 20, 14, 0.34);
}

.receipt-upload-menu-panel {
  position: relative;
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid rgba(120, 84, 58, 0.18);
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: 0 18px 52px rgba(31, 20, 14, 0.16);
  animation: slideUp var(--duration-normal) var(--ease-soft);
}

.receipt-upload-menu-panel h5 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.receipt-upload-menu-panel button {
  width: 100%;
  justify-content: center;
}

.receipt-menu-cancel {
  min-height: 42px !important;
  border: 0;
  background: transparent;
  color: #7a6a60;
  box-shadow: none;
  cursor: pointer;
}

.receipt-upload-actions button {
  min-height: 46px;
  min-width: 140px;
  padding: 0 18px;
  white-space: nowrap;
}

.receipt-primary-btn,
.receipt-secondary-btn {
  border: 1.5px solid rgba(120, 84, 58, 0.18);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(120, 84, 58, 0.14);
}

.receipt-primary-btn {
  background: linear-gradient(180deg, #d94a4a, #bf3036);
  border-color: #76191d;
  color: #fff;
}

.receipt-secondary-btn {
  background: #fffefa;
  color: #9b302f;
}

.receipt-status,
.receipt-empty-state {
  margin: 10px 0 0;
  color: #7a6a60;
  font-size: 13px;
}

.receipt-add-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 110px 150px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.receipt-add-item-row input,
.receipt-item-card input,
.receipt-people-toolbar input {
  min-height: 46px;
  border: 1px solid rgba(120, 84, 58, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fffefa;
  min-width: 0;
}

.receipt-add-item-row button {
  min-height: 46px;
  min-width: 150px;
  padding: 0 18px;
  white-space: nowrap;
}

.receipt-items-list,
.receipt-assignment-list {
  display: grid;
  gap: 10px;
  padding-right: 6px;
  overflow-y: auto;
}

.receipt-items-list {
  max-height: 460px;
}

.receipt-assignment-list {
  max-height: 560px;
}

.receipt-summary-list,
.receipt-transfer-list {
  display: grid;
  gap: 10px;
}

.receipt-item-card,
.receipt-assignment-card,
.receipt-person-total-row,
.receipt-transfer-row {
  border: 1px solid rgba(190, 148, 114, 0.22);
  border-radius: 16px;
  background: #fffefa;
}

.receipt-item-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px 120px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.receipt-item-card input {
  min-height: 42px;
  padding: 9px 10px;
}

.receipt-item-delete-btn {
  min-width: 54px;
  min-height: 40px !important;
  padding: 0 12px !important;
  box-shadow: none;
}

.receipt-people-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.receipt-people-toolbar button {
  min-width: 150px;
}

.receipt-memory-panel {
  margin-bottom: 12px;
}

.receipt-people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(183, 53, 53, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7f0;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.receipt-person-chip em {
  font-style: normal;
  color: #9c2f2f;
}

.receipt-person-chip.selectable.active {
  background: #d13b41;
  color: #fff;
  border-color: #73181c;
}

.receipt-assignment-card {
  padding: 14px;
}

.receipt-assignment-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.receipt-assignment-header strong,
.receipt-assignment-header span {
  display: block;
}

.receipt-assignment-header strong {
  overflow-wrap: anywhere;
}

.receipt-assignment-header span {
  color: #7a6a60;
  font-size: 13px;
  font-weight: 800;
}

.receipt-assignment-actions,
.receipt-assignment-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-assignment-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.receipt-mini-btn {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12px;
  box-shadow: none;
}

.receipt-apply-btn {
  flex: 0 0 auto;
  min-height: 40px !important;
}

.receipt-final-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(190, 148, 114, 0.22);
}

.receipt-calculate-actions {
  display: flex;
  justify-content: flex-end;
}

.receipt-calculate-actions button {
  min-width: 220px;
  min-height: 48px;
  padding: 0 20px;
  white-space: nowrap;
}

.receipt-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.receipt-summary-grid > div {
  padding: 12px;
  border: 1px solid rgba(190, 148, 114, 0.25);
  border-radius: 14px;
  background: #fffefa;
}

.receipt-summary-grid span,
.receipt-summary-grid strong {
  display: block;
}

.receipt-summary-grid span {
  color: #7a6a60;
  font-size: 12px;
}

.receipt-summary-grid strong {
  margin-top: 5px;
  font-size: 18px;
}

.receipt-summary-grid .final {
  border-color: rgba(183, 53, 53, 0.25);
  background: #fff0dc;
}

.receipt-person-total-row,
.receipt-transfer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.receipt-person-total-row strong,
.receipt-transfer-row strong {
  white-space: nowrap;
}

.receipt-summary-actions {
  margin-top: 18px;
}

.receipt-summary-actions .share-actions {
  margin-top: 0;
}

.receipt-summary-box h4 {
  margin: 16px 0 10px;
}

/* =========================================================
   BILL HISTORY DASHBOARD
========================================================= */

.bill-history-card {
  max-width: 1180px;
  margin: 0 auto;
}

.bill-history-table-wrap {
  overflow-x: auto;
}

.bill-history-actions {
  min-width: 250px;
}

.line-table-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.line-table-btn .line-icon {
  width: 16px;
  height: 16px;
}

.history-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff2df;
  color: #a53131;
  font-weight: 800;
  font-size: 12px;
}

.bill-history-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(28, 18, 12, 0.38);
}

.bill-history-preview-overlay[hidden] {
  display: none;
}

.bill-history-preview-modal {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid rgba(35, 25, 20, 0.92);
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: 6px 6px 0 rgba(183, 53, 53, 0.16);
}

.bill-history-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(120, 84, 58, 0.2);
  background: #fff7f0;
  cursor: pointer;
}

.bill-history-preview-modal pre {
  white-space: pre-wrap;
  padding: 16px;
  border: 1px solid rgba(190, 148, 114, 0.25);
  border-radius: 16px;
  background: #fffaf2;
  color: #3b2c25;
  line-height: 1.65;
}

/* =========================================================
   CLEAN HOME PAGE
========================================================= */

.home-clean {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  max-width: 1180px;
}

.home-clean-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 32px;
  background: linear-gradient(135deg, #fffdf8, #fff1df);
  box-shadow: 6px 6px 0 rgba(183, 53, 53, 0.10);
}

.home-clean-copy h1 {
  margin: 8px 0 14px;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

.home-clean-copy p:not(.hero-eyebrow) {
  max-width: 560px;
  color: #66574e;
  font-size: 18px;
  line-height: 1.7;
}

.home-panda-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.home-hero-logo {
  width: min(260px, 70%);
  filter: drop-shadow(0 18px 28px rgba(75, 44, 28, 0.12));
}

.home-hero-preview {
  position: absolute;
  right: 6%;
  bottom: 10%;
  min-width: 180px;
  padding: 16px;
  border: 2px solid rgba(35, 25, 20, 0.85);
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 4px 4px 0 rgba(183, 53, 53, 0.16);
}

.home-hero-preview span,
.home-hero-preview em,
.home-hero-preview strong {
  display: block;
}

.home-hero-preview span,
.home-hero-preview em {
  color: #7a6a60;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-hero-preview strong {
  margin: 6px 0;
  font-size: 26px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-feature-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 4px 4px 0 rgba(183, 53, 53, 0.08);
}

.home-feature-image {
  width: 100%;
  height: 160px;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.home-feature-image img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.home-feature-card h2 {
  margin: 0 0 8px;
}

.home-feature-card p {
  min-height: 48px;
  margin: 0 0 18px;
  color: #6f625a;
  line-height: 1.5;
}

.home-feature-card .hero-btn {
  margin-top: auto;
}

.home-workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-workflow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(190, 148, 114, 0.24);
  border-radius: 18px;
  background: #fff8ee;
}

.home-workflow-step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #d13b41;
  color: #fff;
  font-weight: 900;
}

.home-final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid rgba(35, 25, 20, 0.88);
  border-radius: 28px;
  background: #fff2df;
  text-align: left;
}

.home-final-panda {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .home-clean-hero,
  .home-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-clean-hero {
    grid-template-columns: 1fr;
  }

  .home-workflow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 701px) {
  .receipt-upload-menu {
    place-items: center;
  }
}

@media (max-width: 700px) {
  .bill-entry-mode-switch,
  .receipt-details-grid,
  .receipt-top-grid,
  .receipt-add-item-row,
  .receipt-final-actions,
  .receipt-summary-grid,
  .home-feature-grid,
  .home-workflow-strip {
    grid-template-columns: 1fr;
  }

  .receipt-item-card {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-item-name {
    grid-column: 1 / -1;
  }

  .receipt-item-delete-btn {
    width: 100%;
    grid-column: 1 / -1;
  }

  .receipt-upload-menu {
    padding: 14px;
  }

  .receipt-panel-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .receipt-panel-header .guide-panda {
    margin: 0 auto;
  }

  .share-actions,
  .share-btn,
  .receipt-upload-options,
  .receipt-upload-actions,
  .receipt-people-toolbar,
  .receipt-calculate-actions,
  .home-final-cta {
    width: 100%;
  }

  .share-btn,
  .receipt-upload-options button,
  .receipt-upload-actions button,
  .receipt-add-item-row button,
  .receipt-people-toolbar button,
  .receipt-calculate-actions button {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }

  .receipt-upload-options,
  .receipt-upload-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .receipt-people-toolbar,
  .receipt-assignment-header {
    grid-template-columns: 1fr;
  }

  .receipt-assignment-header {
    flex-direction: column;
  }

  .receipt-assignment-actions,
  .receipt-apply-btn {
    width: 100%;
  }

  .receipt-assignment-actions button {
    flex: 1 1 0;
  }

  .receipt-calculate-actions button {
    white-space: normal;
  }

  .home-panda-hero {
    min-height: 260px;
  }

  .home-final-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .bill-entry-mode-switch {
    flex-direction: column;
  }

  .bill-entry-mode-btn {
    width: 100%;
  }
}

html[lang="th"] .receipt-bill-panel button,
html[lang="th"] .receipt-upload-actions button,
html[lang="th"] .receipt-add-item-row button,
html[lang="th"] .receipt-calculate-actions button {
  line-height: 1.35;
  letter-spacing: 0;
  font-size: 14px;
}

html[lang="th"] .receipt-calculate-actions button {
  min-width: 240px;
}

@media (max-width: 700px) {
  html[lang="th"] .receipt-calculate-actions button {
    min-width: 0;
  }
}

/* =========================================================
   CLEAN GUIDE REVIEW + PAYMENT LISTS
========================================================= */

.bill-guide-page .guide-order-preview {
  gap: 10px;
  padding: 10px;
  overflow: visible;
  border: 1.5px solid rgba(120, 84, 58, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.82);
}

.bill-guide-page .guide-order-card {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(190, 148, 114, 0.24);
  border-radius: 14px;
  background: #fffefa;
}

.bill-guide-page .guide-order-card:last-child {
  border-bottom: 1px solid rgba(190, 148, 114, 0.24);
}

.guide-order-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(183, 53, 53, 0.10);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.bill-guide-page .guide-order-main strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.2;
}

.guide-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.bill-guide-page .guide-order-meta span {
  color: #6f6660;
  font-size: 13px;
  line-height: 1.45;
}

.bill-guide-page .guide-order-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.bill-guide-page .guide-order-side > strong {
  min-width: 76px;
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  text-align: right;
}

.bill-guide-page .guide-order-actions {
  gap: 6px;
}

.bill-guide-page .guide-order-actions .table-btn {
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
}

.bill-guide-page .guide-summary-payments {
  gap: 8px;
  padding: 8px;
  border: 1.5px solid rgba(82, 196, 26, 0.18);
  border-radius: 18px;
  background: rgba(238, 248, 232, 0.56);
}

.guide-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(82, 196, 26, 0.22);
  border-radius: 14px;
  background: #f7fcf2;
}

.guide-transfer-row > span {
  min-width: 0;
  color: #285b2d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.guide-transfer-row strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .bill-guide-page .guide-order-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .bill-guide-page .guide-order-side {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(190, 148, 114, 0.20);
  }

  .bill-guide-page .guide-order-actions {
    width: auto;
  }

  .bill-guide-page .guide-order-actions .table-btn {
    flex: 0 0 auto;
  }

  .guide-transfer-row {
    grid-template-columns: 1fr;
  }

  .guide-transfer-row strong {
    justify-self: start;
  }
}


/* =========================================================
   GUIDED CARD TIPS
   Tips inside the guided Bill Split card
========================================================= */

.guided-card-tips {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1.5px solid rgba(190, 148, 114, 0.22);
}

.guided-tips-header {
  margin-bottom: 14px;
}

.guided-tips-header .hero-eyebrow {
  margin-bottom: 10px;
}

.guided-tips-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.guided-tips-grid {
  display: grid;
  gap: 12px;
}

.guided-tip-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;

  padding: 14px 16px;

  background: rgba(255, 250, 244, 0.82);
  border: 1.5px solid rgba(190, 148, 114, 0.22);
  border-radius: 16px;
}

.guided-tip-number {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  background: var(--accent);
  color: #fff;

  border-radius: 10px;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 3px 0 rgba(127, 32, 32, 0.28);
}

.guided-tip-card h4 {
  margin: 0 0 5px;
  color: var(--text);

  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.guided-tip-card p {
  margin: 0;
  color: var(--subtle);

  font-size: 13px;
  line-height: 1.55;
}

html[lang="th"] .guided-tips-header h3,
html[lang="th"] .guided-tip-card h4 {
  letter-spacing: 0;
}

html[lang="th"] .guided-tip-card p {
  line-height: 1.7;
}

.guide-stage-heading .guided-card-tips {
  max-width: 660px;
  margin-top: 16px;
  padding: 12px;
  border: 1.5px solid rgba(190, 148, 114, 0.20);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.guide-stage-heading .guided-tips-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.guide-stage-heading .guided-tips-header .hero-eyebrow {
  margin: 0;
  padding: 5px 9px;
  font-size: 10px;
}

.guide-stage-heading .guided-tips-header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.guide-stage-heading .guided-tips-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-stage-heading .guided-tip-card {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255, 250, 244, 0.78);
  animation: none;
}

.guide-stage-heading .guided-tip-number {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 2px 0 rgba(127, 32, 32, 0.24);
}

.guide-stage-heading .guided-tip-card h4 {
  margin-bottom: 3px;
  font-size: 13px;
  color: var(--text);
}

.guide-stage-heading .guided-tip-card p {
  display: block;
  color: #6f6660;
  font-size: 11.5px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .guided-card-tips {
    margin-top: 22px;
    padding-top: 18px;
  }

  .guided-tip-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 14px;
  }

  .guided-tip-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .guided-tips-header h3 {
    font-size: 22px;
  }

  .guide-stage-heading .guided-tips-grid {
    grid-template-columns: 1fr;
  }
}

.guided-tip-card {
  animation: slideUp 0.22s ease;
}

/* =========================================================
   LAST BILL SPLIT MEMORY PANEL
========================================================= */

.last-bill-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;

  margin: 0 0 24px;
  padding: 16px 18px;

  background: rgba(255, 250, 244, 0.86);
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 18px;
}

.last-bill-panel[hidden] {
  display: none !important;
}

.last-bill-label {
  width: fit-content;
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.last-bill-panel strong {
  display: block;
  margin-bottom: 6px;

  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.last-bill-panel p:last-child {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.last-bill-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.last-bill-actions button {
  min-width: 130px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
}

html[lang="th"] .last-bill-panel p:last-child {
  line-height: 1.7;
}

@media (max-width: 700px) {
  .last-bill-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .last-bill-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .last-bill-actions button {
    width: 100%;
  }
}

/* =========================================================
   RECENTLY SECTION - LAST BILL SPLIT
========================================================= */

.recently-section {
  max-width: 960px;
  margin-top: 14px;
  margin-bottom: 22px;
}

.recently-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.recently-header h2 {
  margin: 8px 0 6px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.recently-header p:last-child {
  max-width: 560px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

.last-bill-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;

  padding: 18px 20px;

  background: linear-gradient(180deg, #fffdf8, #fff7ea);
  border: 1.5px solid rgba(190, 148, 114, 0.24);
  border-radius: 20px;

  box-shadow:
    4px 4px 0 rgba(183, 53, 53, 0.10),
    0 16px 32px rgba(45, 28, 20, 0.06);
}

.last-bill-panel[hidden] {
  display: none !important;
}

.last-bill-panel strong {
  display: block;
  margin-bottom: 6px;

  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.last-bill-panel p {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.55;
}

.last-bill-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.last-bill-actions button {
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 13px;
}

.last-bill-empty {
  margin: 0;
  padding: 18px 20px;

  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;

  background: rgba(255, 250, 244, 0.7);
  border: 1.5px dashed rgba(190, 148, 114, 0.28);
  border-radius: 18px;
}

html[lang="th"] .recently-header h2 {
  letter-spacing: 0;
}

html[lang="th"] .recently-header p:last-child,
html[lang="th"] .last-bill-panel p,
html[lang="th"] .last-bill-empty {
  line-height: 1.75;
}

@media (max-width: 700px) {
  .recently-section {
    max-width: 430px;
    margin-bottom: 18px;
  }

  .recently-header {
    display: block;
  }

  .last-bill-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .last-bill-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .last-bill-actions button {
    width: 100%;
  }
}

/* =========================================================
   PREMIUM SMOOTHNESS POLISH
========================================================= */
button:not(.table-btn):not(.bill-guide-close):not(.receipt-preview-close):not(:disabled):hover,
.hero-btn:not(:disabled):hover,
.share-btn:not(:disabled):hover,
.receipt-bill-panel button:not(:disabled):hover {
  transform: translateY(-1px);
}

button:not(.table-btn):not(.bill-guide-close):not(.receipt-preview-close):not(:disabled):active,
.hero-btn:not(:disabled):active,
.share-btn:not(:disabled):active,
.receipt-bill-panel button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
}

.table-btn:hover,
.table-btn:active {
  transform: none;
}

button:disabled,
button.is-loading {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none !important;
}

.card,
.feature-card,
.restaurant-card,
.login-card,
.summary-card,
.receipt-section-card,
.home-feature-card,
.last-bill-panel,
.bill-history-card {
  box-shadow: var(--shadow-pixel), var(--shadow-soft);
}

.bill-guide-modal,
.bill-history-preview-modal,
.chamali-popup,
.receipt-preview-overlay img {
  box-shadow: 0 18px 50px rgba(31, 20, 14, 0.14);
}

.home-feature-image,
.home-final-panda,
.guide-panda,
.receipt-preview-box,
.restaurant-image-wrap {
  max-width: 100%;
  overflow: hidden;
}

.home-feature-image {
  aspect-ratio: 4 / 3;
  min-height: 160px;
}

.home-feature-image,
.home-final-panda,
.guide-panda,
.receipt-preview-box img,
.restaurant-image-wrap img {
  object-fit: contain;
}

@media (max-width: 700px) {
  .receipt-section-card,
  .receipt-item-card,
  .receipt-assignment-card,
  .receipt-summary-grid > div,
  .sushiro-page,
  .dashboard-page,
  .home-page {
    max-width: 100%;
    min-width: 0;
  }
}
