/* ==========================================================================
   CƠM NHÀ - Mobile Web Application Styles
   Aesthetic: Warm cozy rustic, natural beige, cream, earthy browns & terracotta
   ========================================================================== */

:root {
  --bg-cream: #F8F3EA;
  --bg-surface: #FAF5EE;
  --bg-card: #FFFFFF;
  --bg-pill: #DFCEBB;
  --border-light: #EADBCC;
  --border-card: #EAE1D5;
  --earth-900: #2A170D;
  --earth-800: #3D2417;
  --earth-700: #503323;
  --earth-600: #674431;
  --earth-500: #805943;
  --earth-400: #9B7762;
  --earth-300: #B89D8B;
  --terracotta: #C85A32;
  --terracotta-hover: #B44E28;
  --terracotta-light: #FFEDE5;
  --amber-warm: #E28743;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 2px 6px rgba(61, 36, 23, 0.05);
  --shadow-md: 0 6px 18px rgba(61, 36, 23, 0.08);
  --shadow-warm: 0 8px 24px rgba(200, 90, 50, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #241A14;
  color: var(--earth-900);
  line-height: 1.4;
  overflow-x: hidden;
  user-select: none;
}

/* Desktop Presentation Viewport with bokeh dining background */
.app-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #241A14;
  background-image: radial-gradient(circle at 50% 30%, rgba(217, 107, 67, 0.15), transparent 70%),
                    radial-gradient(circle at 80% 80%, rgba(162, 85, 42, 0.12), transparent 60%);
  padding: 16px;
}

/* Smartphone Mockup Container */
.phone-mockup {
  width: 100%;
  max-width: 412px;
  height: 890px;
  max-height: 94vh;
  background-color: var(--bg-cream);
  border-radius: 46px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.65), 
              0 0 0 12px #201A16, 
              0 0 0 14px #3C2E25,
              inset 0 0 4px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* When viewing on native mobile */
@media (max-width: 500px) {
  .app-viewport {
    padding: 0;
    background: var(--bg-cream);
  }
  .phone-mockup {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Phone Speaker & Camera Notch Hole */
.phone-notch {
  width: 12px;
  height: 12px;
  background: #111;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border: 1.5px solid #2a201a;
}

/* Screen Content Scrollable Area */
.screen-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 90px;
  -webkit-overflow-scrolling: touch;
}

.screen-content::-webkit-scrollbar {
  width: 4px;
}
.screen-content::-webkit-scrollbar-thumb {
  background: #DEC9B0;
  border-radius: 10px;
}

/* [TOP SIMULATOR BAR] */
.top-simulator-bar {
  background: rgba(240, 230, 218, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  padding-top: 26px; /* notch space */
  border-bottom: 1px solid #E5D5C2;
  position: sticky;
  top: 0;
  z-index: 30;
}

.simulator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

.simulator-label {
  color: var(--earth-700);
  font-weight: 600;
  white-space: nowrap;
}

.simulator-toggle {
  background: #DDC8B1;
  border-radius: 999px;
  padding: 2.5px;
  display: flex;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.simulator-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  color: var(--earth-700);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.simulator-btn.active-husband,
.simulator-btn.active-wife {
  background: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(200, 90, 50, 0.35);
}

/* [APP HEADER] */
.app-header {
  padding: 16px 20px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--earth-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--earth-900);
  letter-spacing: -0.6px;
  margin-top: 2px;
}

.header-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-warm);
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

/* [STATUS CARD: "Trạng thái bếp"] */
.status-card {
  margin: 10px 20px 14px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.status-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--earth-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-time {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--earth-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-card-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--earth-800);
  font-weight: 400;
}

/* Chef Action Panel inside status card */
.chef-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #DFCBB6;
}

.chef-actions-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--earth-700);
  margin-bottom: 8px;
}

.chef-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.chef-btn {
  background: #F4EAE0;
  border: 1px solid #DFCCB8;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--earth-800);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.chef-btn:hover {
  background: #EBDAC6;
}

.chef-btn.active {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* [SECTION: "Chọn món yêu thích"] */
.section-header {
  padding: 4px 20px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--earth-900);
}

.selected-counter {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--earth-600);
}

.random-btn {
  background: #F2E5D5;
  border: 1px solid #DFCBB6;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--earth-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.random-btn:active {
  transform: scale(0.96);
  background: #EADBCC;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  gap: 6px;
  padding: 0 20px 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: rgba(240, 230, 218, 0.7);
  border: 1px solid #E6D7C6;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--earth-700);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-chip.active {
  background: var(--earth-800);
  color: #FFF;
  border-color: var(--earth-800);
}

/* 2x2 Grid of Recipe Cards */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 20px 16px 20px;
}

.recipe-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.recipe-card:active {
  transform: scale(0.98);
}

.recipe-card.selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(200, 90, 50, 0.3), var(--shadow-md);
  background: #FFFDFB;
}

.recipe-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #F0E4D5;
}

.recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-img {
  transform: scale(1.05);
}

.fav-heart-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  transition: transform 0.2s, color 0.2s;
}

.fav-heart-btn.is-fav {
  color: #E63946;
}

.fav-heart-btn:active {
  transform: scale(1.2);
}

.selected-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--terracotta);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.recipe-card-content {
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.recipe-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--earth-900);
  line-height: 1.3;
  margin-bottom: 4px;
}

.recipe-card-meta {
  font-size: 11px;
  color: var(--earth-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #F5ECE0;
}

.recipe-card-tag {
  font-size: 9.5px;
  background: #F4EAE0;
  color: var(--earth-600);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.card-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #F2E5D5;
  color: var(--earth-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.recipe-card.selected .card-action-btn {
  background: var(--terracotta);
  color: white;
}

/* Floating Request Bar */
.floating-order-bar {
  position: absolute;
  bottom: 84px;
  left: 20px;
  right: 20px;
  background: var(--earth-900);
  color: white;
  border-radius: 20px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(42, 23, 13, 0.4);
  z-index: 35;
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.order-bar-text h4 {
  font-size: 12.5px;
  font-weight: 700;
}
.order-bar-text p {
  font-size: 10.5px;
  color: #D5C2AB;
}

.order-send-btn {
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.order-send-btn:hover {
  background: var(--terracotta-hover);
}

/* [BOTTOM NAVIGATION BAR] */
.bottom-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #ECE0D2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 10px 14px 10px;
  z-index: 40;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--earth-500);
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-tab-item.active {
  color: var(--terracotta);
  font-weight: 700;
}

.nav-tab-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.nav-tab-item.active .nav-tab-icon {
  transform: translateY(-2px);
}

.nav-tab-label {
  font-size: 11px;
}

.nav-dot {
  width: 4px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 50%;
  margin-top: 2px;
}

.nav-badge {
  position: absolute;
  top: 1px;
  right: 20px;
  background: var(--terracotta);
  color: white;
  font-size: 9px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODAL: Dish Detail */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-cream);
  width: 100%;
  max-width: 412px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-image-header {
  height: 200px;
  position: relative;
  width: 100%;
  background: #EADBCC;
}

.modal-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 13px;
}

.modal-footer {
  padding: 12px 20px 20px 20px;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

/* Toast message notification */
.toast-msg {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  background: rgba(42, 23, 13, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 60;
  box-shadow: var(--shadow-md);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Desktop Switcher Bar (Outside Phone) */
.desktop-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(25, 17, 13, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #DFCBB6;
  font-size: 12px;
  z-index: 50;
}

.desktop-control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.2s;
}

.desktop-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ADD DISH MODAL & RECIPE STEPS STYLES
   ========================================================================== */

.add-dish-btn {
  background: #EADBCC;
  border: 1px solid #DFCBB6;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--earth-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.add-dish-btn:hover {
  background: #DEC9B0;
  color: var(--earth-900);
}

.add-dish-btn:active {
  transform: scale(0.96);
}

/* Creator Tag on Dish Card */
.creator-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.creator-badge.wife {
  background: #FFEAD9;
  color: #A34823;
  border: 1px solid #F5D3BD;
}
.creator-badge.husband {
  background: #EAE3D9;
  color: #4A3528;
  border: 1px solid #D5C8B8;
}
.creator-badge.mon-ngon {
  background: #FFF1E8;
  color: #C85A32;
  border: 1px solid #F8CBB6;
}

/* Form Styles for Add Dish */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--earth-800);
  margin-bottom: 5px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--earth-900);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.4;
}

/* Sample Image Selector Grid */
.preset-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding: 4px;
  background: #F4EAE0;
  border-radius: 12px;
}

.preset-img-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.preset-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-img-item.active {
  border-color: var(--terracotta);
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Recipe Steps Display */
.recipe-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.recipe-step-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-number {
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 12px;
  color: var(--earth-800);
  line-height: 1.45;
  flex: 1;
}

/* Add Dish Card in Catalog */
.add-new-dish-card {
  border: 2px dashed #DFCBB6;
  border-radius: var(--radius-lg);
  background: rgba(250, 245, 238, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.add-new-dish-card:hover {
  background: #F4EAE0;
  border-color: var(--terracotta);
}

/* ==========================================================================
   SEPARATE ACCOUNTS & HELP-BUY GROCERY STYLES
   ========================================================================== */

.account-selector-bar {
  background: #EFE4D6;
  border-bottom: 1px solid #E2D1BF;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.account-info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--earth-900);
}

.account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.switch-account-btn {
  background: white;
  border: 1px solid #D5C2AB;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--earth-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.switch-account-btn:hover {
  background: var(--terracotta-light);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Help-Buy Grocery Section */
.help-buy-banner {
  background: linear-gradient(135deg, #FFF3EB, #FCE8DC);
  border: 1.5px solid #F5C7AF;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.help-buy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.help-buy-title {
  font-size: 13px;
  font-weight: 800;
  color: #9C3B18;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-buy-badge {
  background: var(--terracotta);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.help-buy-item {
  background: white;
  border: 1px solid #F5D3C0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(156, 59, 24, 0.06);
}

.help-buy-note {
  font-size: 11px;
  color: #8C4729;
  background: #FFF9F5;
  border-left: 2px solid var(--terracotta);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  line-height: 1.35;
}

.help-ask-btn {
  background: #FFF2EA;
  border: 1px solid #F5C9B3;
  color: #A2421E;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
  white-space: nowrap;
}

.help-ask-btn:hover {
  background: var(--terracotta);
  color: white;
}

/* ==========================================================================
   AUTHENTICATION & REGISTRATION MODAL STYLES
   ========================================================================== */

.auth-tabs-nav {
  display: flex;
  background: #EFE4D6;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 14px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--earth-700);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-tab-btn.active {
  background: white;
  color: var(--earth-900);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.avatar-picker-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.avatar-picker-grid::-webkit-scrollbar {
  display: none;
}

.avatar-choice-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.avatar-choice-btn.selected {
  border-color: var(--terracotta);
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(200, 90, 50, 0.25);
  background: var(--terracotta-light);
}

.family-user-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.family-user-item:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.family-user-item.current {
  border-color: var(--terracotta);
  background: #FFFBF8;
  box-shadow: 0 0 0 1px var(--terracotta);
}



