:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --text: #0e1022;
  --muted: #666d85;
  --primary: #5c5ce7;
  --primary-soft: #eeecff;
  --green: #22c55e;
  --orange: #f59e0b;
  --danger: #ef4444;
  --line: #e8e9f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.app-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.app-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-icon-btn {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.header-icon-btn:active {
  background: var(--primary-soft);
}

#header-back {
  grid-column: 1;
  justify-self: start;
}

#header-profile {
  grid-column: 3;
  justify-self: end;
}

.header-icon-btn .action-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.app-header h1 {
  margin: 0;
  font-size: 33.6px;
  line-height: 1;
}

.app-header h1 .brand-accent {
  color: var(--primary);
}

main {
  flex: 1;
  padding: 14px 14px 96px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #f1f2f8;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}

.space-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.requests-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.space-tabs .segment {
  font-size: 15.6px;
  padding: 8px 4px;
}

.segment {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  border-radius: 8px;
  padding: 9px;
}

.segment.active {
  background: #fff;
  color: var(--primary);
}

.segment-panel {
  display: none;
}

.segment-panel.active {
  display: block;
}

.primary-btn,
.secondary-btn,
.text-btn,
.ghost-icon-btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16.8px;
}

.primary-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn {
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secondary-btn.danger {
  color: var(--danger);
}

.secondary-btn.small,
.primary-btn.small {
  width: auto;
  padding: 0 16px;
}

.fab-btn {
  position: fixed;
  right: calc(50% - min(430px, 100vw) / 2 + 16px);
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 20;
  width: auto;
  height: 36px;
  padding: 0 14px;
  font-size: 15.6px;
  border-radius: 999px;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(92, 92, 231, 0.35);
}

.fab-btn .action-icon {
  width: 20px;
  height: 20px;
}

.fab-btn.is-hidden {
  display: none;
}

.text-btn {
  background: transparent;
  color: var(--primary);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-icon-btn {
  width: 32px;
  height: 32px;
  background: transparent;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card,
.space-card,
.space-choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card {
  cursor: pointer;
}

.event-content,
.space-content {
  flex: 1;
}

.event-content h3,
.space-content h3,
.review-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.event-content p,
.space-content p,
.review-card p,
.description,
.meta-line {
  margin: 0;
  font-size: 15.6px;
  color: var(--muted);
}

.chevron {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.chevron img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

.avatar-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.avatar-ph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0f2ff;
  color: #4a4f67;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.icon-ph {
  border: 1px dashed #a6abc1;
  color: #6d738e;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  /* Muted grey that stays visible for both black SVGs and colored PNGs. */
  filter: brightness(0) saturate(100%) invert(55%);
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Inactive tabs: visible grey (active state overrides to violet below). */
  filter: brightness(0) saturate(100%) invert(55%);
}

.nav-btn.active .nav-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

.action-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  /* Force any source (black SVG or colored PNG) to a clearly visible grey. */
  filter: brightness(0) saturate(100%) invert(45%);
}

.action-icon-sm {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* Force any source to a clearly visible grey (matches .action-icon). */
  filter: brightness(0) saturate(100%) invert(45%);
}

.action-icon-light {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.text-btn .action-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

.icon-xs {
  width: 16px;
  height: 16px;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.event-icon,
.space-icon {
  width: 42px;
  align-self: stretch;
  min-height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
}

.event-icon img,
.space-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

.event-space-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.event-space-icons .space-type-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

/* Availability colors shared by the small event icons and the space-card icons. */
.event-space-icons .space-type-icon.icon-available,
.space-icon.state-available img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(66%) saturate(520%) hue-rotate(92deg)
    brightness(95%) contrast(90%);
}

.event-space-icons .space-type-icon.icon-full,
.space-icon.state-full img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(51%) saturate(2878%) hue-rotate(335deg)
    brightness(95%) contrast(92%);
}

.space-icon.state-available {
  background: #eafaf0;
}

.space-icon.state-full {
  background: #fdecec;
}

/* Circular avatar (Telegram photo with an initials fallback behind it). */
.avatar-wrap {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: none;
  vertical-align: middle;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.avatar-img {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.avatar-wrap.avatar-sm {
  width: 20px;
  height: 20px;
}

.avatar-wrap.avatar-sm .avatar-fallback {
  font-size: 9px;
}

.avatar-wrap.avatar-lg {
  width: 72px;
  height: 72px;
}

.avatar-wrap.avatar-lg .avatar-fallback {
  font-size: 26px;
}

.avatar-wrap.avatar-header {
  width: 34px;
  height: 34px;
}

.avatar-wrap.avatar-header .avatar-fallback {
  font-size: 14px;
}

.space-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  /* No left/vertical padding so the avatar sits flush and fills the chip. */
  padding: 0 14px 0 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15.6px;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* Inside a chip the avatar fills the full height (chip is 36px tall minus the
   1px border on each side), with no surrounding padding. */
.member-chip .avatar-wrap {
  width: 34px;
  height: 34px;
}

.member-chip .avatar-fallback {
  font-size: 13px;
}

.member-chip > .chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clickable member: outline only, no fill. */
.member-chip-link {
  color: var(--primary);
  border-color: var(--primary-soft);
  cursor: pointer;
}

/* Organizer: outline + filled background. */
.organizer-chip {
  color: var(--primary);
  border-color: var(--primary-soft);
  background: var(--primary-soft);
}

.spot-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.spot-name .spot-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-name-link {
  color: var(--primary);
  cursor: pointer;
}

.space-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.space-card-head h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-spots {
  flex: 0 0 auto;
  font-size: 15.6px;
  color: var(--muted);
  white-space: nowrap;
}

.space-count-inline {
  font-weight: 600;
  font-size: 0.85em;
}

.space-count-inline.has-space {
  color: var(--green);
}

.space-count-inline.is-full {
  color: var(--danger);
}

.myspace-group-head {
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 16.8px;
  font-weight: 600;
  color: var(--text);
}

.myspace-group-head:first-child {
  margin-top: 0;
}

.space-organizer-link {
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 16, 34, 0.45);
}

.modal-card {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(14, 16, 34, 0.25);
}

.modal-card h3 {
  margin: 0 0 4px;
  font-size: 21.6px;
}

/* Browser login screen (shown outside Telegram until the user logs in). */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(14, 16, 34, 0.12);
}

.login-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.login-card h1 .brand-accent {
  color: var(--primary);
}

.login-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.6px;
}

.login-widget {
  display: flex;
  justify-content: center;
  min-height: 48px;
}

.login-tg-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 15px;
  text-decoration: none;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head-text {
  min-width: 0;
}

.modal-avatar {
  flex: none;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-card-text {
  min-width: 0;
}

.profile-card-text h3 {
  margin: 0;
}

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

.profile-head h2 {
  margin: 0;
}

.billing-card {
  margin-top: 16px;
}

.billing-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.billing-note {
  margin: 0 0 16px;
  font-size: 14.4px;
  color: var(--muted);
}

.billing-item + .billing-item {
  margin-top: 14px;
}

.billing-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.6px;
  margin-bottom: 6px;
}

.billing-usage {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.billing-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}

.billing-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.billing-bar.is-full > span {
  background: var(--danger);
}

.modal-username {
  margin: 0;
  font-size: 16.8px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-card .primary-btn {
  margin-bottom: 8px;
}

/* Disabled "Telegram is hidden" state: white button with a muted dark icon. */
.primary-btn.is-muted-disabled {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: default;
}

/* Loading skeletons shown while async data is fetched. */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ebf4;
  border-radius: 6px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: skeleton-shimmer 1.2s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-line {
  display: block;
  height: 12px;
}

.skeleton-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.skeleton-badge {
  width: 56px;
  height: 18px;
  border-radius: 999px;
}

.skeleton-bar {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
}

.space-card-skeleton,
.event-card-skeleton {
  pointer-events: none;
}

.spot-row-skeleton {
  align-items: center;
}

.progress-line {
  width: 100%;
  height: 4px;
  background: #eceef8;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.progress-line.warning span {
  background: var(--orange);
}

.progress-line.success span {
  background: var(--green);
}

.progress-line.has-space span {
  background: var(--green);
}

.progress-line.is-full span {
  background: var(--danger);
  width: 100% !important;
}

.section-head {
  margin-top: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 4px;
}

/* Top action bar on the Event/Space detail pages: type label + edit/delete,
   kept on its own row so a long name can't push the buttons around. */
.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-bar-label {
  font-size: 16.8px;
  font-weight: 600;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Owner-only edit/delete group, hidden for non-owners while Copy/Share stay. */
.owner-actions {
  display: flex;
  gap: 8px;
}

/* Compact labelled action (e.g. "Copy Link") that aligns with icon buttons. */
.pill-action {
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.pill-action:active {
  background: var(--primary-soft);
}

.pill-action img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.icon-action {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-action:active {
  background: var(--primary-soft);
}

.icon-action:disabled {
  opacity: 0.5;
}

.icon-action img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Edit: violet. */
.icon-action img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2450%) hue-rotate(228deg)
    brightness(96%) contrast(92%);
}

/* Delete: red. */
.icon-action.danger img {
  filter: brightness(0) saturate(100%) invert(33%) sepia(86%) saturate(2400%) hue-rotate(343deg)
    brightness(97%) contrast(95%);
}

.icon-action.danger {
  border-color: #f3c6c6;
}

/* Type tabs are locked while editing a space (type can't change). */
.space-tabs.tabs-locked {
  pointer-events: none;
  opacity: 0.55;
}

.detail-card h2 {
  margin-bottom: 12px;
}

.detail-card .description:empty {
  margin: 0;
}

/* Stronger divider between the event details card and the Spaces list. */
.spaces-section-head {
  margin-top: 22px;
  gap: 12px;
}

.spaces-section-head h2 {
  margin: 0;
}

/* Inline divider that trails the heading: "Spaces ------------". */
.head-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.space-requests-section {
  margin-top: 22px;
}


.section-head h3,
h2 {
  margin: 0;
}

h2 {
  font-size: 27.6px;
  margin-bottom: 10px;
}

.back-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.description {
  margin-top: 8px;
}

.spot-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.spot-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.spot-row:last-child {
  border-bottom: 0;
}

.badge {
  font-size: 13.2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef0f6;
  color: #4b5169;
}

.badge.organizer {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge.joined {
  background: #eafaf0;
  color: #0f9f46;
}

.badge.muted {
  background: #f3f4f7;
}

.request-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.request-card {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.request-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15.6px;
}

.request-card small {
  color: var(--muted);
  flex: 0 0 auto;
}

.request-name-link {
  color: var(--primary);
  cursor: pointer;
}

.request-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* History rows have a single action button. */
.request-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
}

.error-state {
  color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 15.6px;
  margin: 0 0 10px;
}

.is-hidden {
  display: none !important;
}

.field {
  display: block;
  font-size: 15.6px;
  color: var(--muted);
  margin-bottom: 12px;
}

.date-dropdowns {
  display: flex;
  gap: 8px;
}

.date-dropdowns select {
  flex: 1;
  min-width: 0;
}

input,
select,
textarea {
  margin-top: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16.8px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #aeb3c6;
  opacity: 1;
}

.advanced-settings {
  margin-bottom: 12px;
}

.advanced-settings > summary {
  font-size: 15.6px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
}

.advanced-settings > summary::-webkit-details-marker {
  display: none;
}

.advanced-settings > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
}

.advanced-settings[open] > summary::before {
  transform: rotate(90deg);
}

.advanced-settings .checkbox-field {
  margin-top: 8px;
  margin-bottom: 0;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.6px;
  color: var(--text);
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-field span {
  line-height: 1.4;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stepper span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 14.4px;
}

.stepper .active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.row-gap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.review-card p {
  margin-bottom: 10px;
}

.space-type-panel {
  display: none;
}

.space-type-panel.active {
  display: block;
}

.success-view {
  text-align: center;
  padding-top: 30px;
}

.success-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 20px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-btn {
  border: 0;
  background: transparent;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 14.4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

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