/* HuisApp — blue mockup shell */

.token-badge {
  background: #fff4d6;
  box-shadow: none;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
}

.token-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.input:focus {
  box-shadow: 0 0 0 3px rgba(94, 129, 255, 0.22);
}

.nav-item .nav-icon {
  width: 44px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-item i {
  width: 20px;
  height: 20px;
}

.page-header h1 {
  font-size: 30px;
}

.kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pattern-geo {
  background-color: #dce6ff;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.55) 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.4) 0 1.5px, transparent 2px),
    radial-gradient(circle at 62% 72%, rgba(94, 129, 255, 0.18) 0 8px, transparent 9px),
    linear-gradient(135deg, #d7e3ff 0%, #eef2ff 55%, #dce8ff 100%);
}

.hero-meal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  min-height: 168px;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero-meal__copy {
  position: relative;
  z-index: 1;
  padding-right: 4px;
}

.hero-meal h2,
.hero-banner h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-meal p,
.hero-banner p {
  margin: 6px 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-meal .btn,
.hero-banner .btn {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.hero-meal__visual {
  position: relative;
}

.hero-meal__photo {
  position: absolute;
  right: -8px;
  top: 18px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(32, 35, 41, 0.16);
  border: 4px solid rgba(255, 255, 255, 0.7);
}

.hero-float-btn {
  position: absolute;
  right: 6px;
  top: -6px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 6px 0 8px;
  text-align: center;
}

.quick-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.quick-act__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.quick-act__icon i {
  width: 22px;
  height: 22px;
}

.quick-act__icon--blue { background: #dce8ff; color: #3d63e8; }
.quick-act__icon--purple { background: #eee4ff; color: #7b6cf6; }
.quick-act__icon--peach { background: #ffe6d6; color: #e07a3d; }
.quick-act__icon--gold { background: #fff1c9; color: #d4890c; }

.update-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -4px;
}

.update-carousel::-webkit-scrollbar { display: none; }

.update-slide {
  min-width: 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 12px;
  align-items: center;
}

.update-slide__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.update-slide__meta strong { font-size: 14px; }
.update-slide__meta .muted { font-size: 12px; }
.update-slide p { margin: 0; font-size: 14px; color: var(--text-primary); }
.update-slide img.thumb {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dce6;
}

.carousel-dots span.is-on { background: var(--primary); }

.day-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 -4px;
}

.day-scroller::-webkit-scrollbar { display: none; }

.day-chip {
  min-width: 52px;
  padding: 10px 8px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
}

.day-chip strong {
  font-size: 16px;
  font-weight: 800;
}

.day-chip.is-today {
  background: var(--dark-button);
  color: #fff;
}

.day-chip.is-selected:not(.is-today) {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.week-meal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.week-meal-card.is-hidden { display: none; }

.meal-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.week-meal-card .meal-date,
.meal-row-card .meal-date {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.eaters-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.token-pill {
  background: #eee8ff;
  color: #6b5ce0;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge--dark {
  background: var(--dark-button);
  color: #fff;
}

.meal-row-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  padding: 0 16px;
  min-height: 48px;
  margin-bottom: 18px;
  color: var(--text-tertiary);
}

.search-pill input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 15px;
  min-height: 48px;
  outline: none;
}

.huischat-card {
  border-radius: 28px;
  padding: 20px 18px 18px;
  position: relative;
  margin-bottom: 14px;
}

.avatar-stack {
  display: flex;
  margin-bottom: 12px;
}

.avatar-stack .avatar {
  border: 2px solid #fff;
  margin-left: -10px;
}

.avatar-stack .avatar:first-child { margin-left: 0; }

.avatar-stack .more {
  background: #c9d6f8;
  color: #2c3d7a;
  font-size: 12px;
}

.huischat-card .new-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.huischat-card h2 { margin: 0 0 4px; font-size: 22px; }
.huischat-card p { margin: 0 0 16px; color: var(--text-secondary); }
.huischat-card .btn { width: auto; margin-left: auto; display: flex; }

.thread-card .count-badge { margin-top: 0; }

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 8px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-banner img.hero-art {
  width: 150px;
  height: 150px;
  object-fit: contain;
  position: absolute;
  right: -8px;
  bottom: -10px;
}

.tools-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-tile {
  border-radius: 24px;
  padding: 18px 16px 16px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tool-tile i.lead {
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
}

.tool-tile strong { font-size: 16px; }
.tool-tile span { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.tool-tile .chevron { margin-top: auto; align-self: flex-end; }

.tool-tile--purple { background: #eee6ff; color: #5b4bb8; }
.tool-tile--peach { background: #ffe8d8; color: #c45d28; }
.tool-tile--blue { background: #dcecff; color: #2f62c4; }
.tool-tile--gold { background: #fff1c4; color: #b47a12; }
.tool-tile--purple strong,
.tool-tile--peach strong,
.tool-tile--blue strong,
.tool-tile--gold strong { color: var(--text-primary); }

.quick-list { padding: 8px 4px; }
.quick-list h2 { margin: 8px 14px 6px; font-size: 16px; }
.quick-list a,
.quick-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  font-weight: 600;
}

.quick-list a + a,
.quick-list a + button,
.quick-list button + a { border-top: 1px solid var(--border); }

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  margin-bottom: 16px;
  position: relative;
}

.profile-hero .avatar {
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
}

.profile-hero h2 { margin: 0; font-size: 22px; }
.profile-hero p { margin: 2px 0 0; color: var(--text-secondary); font-size: 13px; }

.house-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  margin: 16px 0;
}

.logout-btn { margin-top: 8px; }

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.package-tile {
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 16px 14px 18px;
  text-align: left;
  border: 2px solid transparent;
  min-height: 118px;
}

.package-tile.selected {
  border-color: var(--primary);
  background: #eef3ff;
}

.package-tile img {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
}

.package-tile strong { display: block; font-size: 16px; }
.package-tile .package-price {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

.package-tile.selected .package-price { color: var(--primary); }

.popular-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

.check-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: none;
  place-items: center;
}

.package-tile.selected .check-dot { display: grid; }

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
}

.checkout-bar .btn { width: auto; min-width: 46%; }
.checkout-bar .label { font-size: 12px; color: var(--text-secondary); }
.checkout-bar strong { font-size: 24px; letter-spacing: -0.04em; }
.pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 10px;
}

.login-page {
  justify-content: flex-start;
  padding: 28px 22px 40px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--primary);
  color: #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-hero {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 28px;
  margin: 8px 0 24px;
  box-shadow: var(--shadow-sm);
}

.login-page h1 { font-size: 30px; letter-spacing: -0.04em; margin: 0 0 8px; }
.login-page .sub { margin: 0 0 8px; }

.input-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  padding: 0 16px;
  min-height: 56px;
  margin-bottom: 12px;
  color: var(--text-tertiary);
}

.input-pill input {
  border: 0;
  width: 100%;
  min-height: 56px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

.btn-split {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-split i.tail {
  position: absolute;
  right: 18px;
}

.btn-light {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin-top: 10px;
  display: inline-flex;
}

.info-soft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef2ff;
  border-radius: 22px;
  padding: 16px;
  margin-top: 22px;
}

.info-soft .shield {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-soft strong { display: block; margin-bottom: 2px; }
.info-soft p { margin: 0; color: var(--text-secondary); font-size: 13px; }

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.home-greet {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-greet h1 {
  font-size: 22px;
}

.home-greet .avatar {
  width: 48px;
  height: 48px;
}

.huischat-card {
  display: flex;
  flex-direction: column;
}

.huischat-card .btn {
  align-self: flex-end;
  margin-left: 0;
}

.page-header .icon-btn + div h1,
.page-header h1 {
  margin: 0;
}
