:root {
  --stitch-primary: #9f12aa;
  --stitch-primary-light: #d752de;
  --stitch-primary-container: #bc38c5;
  --stitch-secondary: #874588;
  --stitch-secondary-container: #feaff9;
  --stitch-tertiary: #b41549;
  --stitch-tertiary-container: #d63460;
  --stitch-surface: #fff7fa;
  --stitch-surface-container: #fbe9f6;
  --stitch-surface-container-low: #ffeff9;
  --stitch-surface-container-high: #f5e3f0;
  --stitch-surface-lowest: #ffffff;
  --stitch-on-surface: #221821;
  --stitch-on-surface-variant: #524250;
  --stitch-outline: #847181;
  --stitch-outline-variant: #d6c0d1;
  --stitch-bg: #f8fafc;
  --font-headline: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--stitch-bg);
  color: var(--stitch-on-surface);
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: var(--font-headline);
  letter-spacing: -0.02em;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1;
}

/* ==================== STITCH TOP APP BAR ==================== */
.stitch-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  z-index: 1030;
  background: rgba(255, 247, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 192, 209, 0.45);
  box-shadow: 0 2px 8px -2px rgba(16, 24, 40, 0.04);
  padding: 8px 16px;
  box-sizing: border-box;
}

.stitch-topbar-spacer {
  display: block;
  width: 100%;
  height: 60px;
  margin-bottom: 8px;
  clear: both;
}

.stitch-brand-logo {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--stitch-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.stitch-brand-logo:hover {
  color: var(--stitch-primary-light);
  text-decoration: none;
}

.stitch-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(214, 192, 209, 0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--stitch-on-surface);
  cursor: pointer;
}

.stitch-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(214, 192, 209, 0.45);
  color: var(--stitch-on-surface-variant);
  transition: all 0.2s ease;
  text-decoration: none;
}

.stitch-icon-btn:hover {
  color: var(--stitch-primary);
  background: var(--stitch-surface-container);
  text-decoration: none;
}

.stitch-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(159, 18, 170, 0.12);
  color: var(--stitch-primary);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(159, 18, 170, 0.25);
  cursor: pointer;
}

/* ==================== STITCH HERO CONTAINER ==================== */
.stitch-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffeff9 0%, #fff7fa 45%, #f5e3f0 100%);
  border: 1px solid rgba(214, 192, 209, 0.45);
  padding: 20px 16px;
  box-shadow: 0 2px 12px -2px rgba(16, 24, 40, 0.04);
  margin-bottom: 16px;
}

.stitch-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--stitch-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 10px;
}

.stitch-hero-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--stitch-on-surface);
  margin-bottom: 6px;
}

.stitch-hero-title span.accent-text {
  color: var(--stitch-primary);
  text-decoration: underline;
  text-decoration-color: var(--stitch-secondary-container);
  text-decoration-thickness: 3px;
}

.stitch-hero-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--stitch-on-surface-variant);
  margin-bottom: 16px;
}

/* ==================== STITCH SEARCH BOX ==================== */
.stitch-search-container {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 14px;
  border: 1px solid rgba(214, 192, 209, 0.5);
  box-shadow: 0 4px 16px -2px rgba(16, 24, 40, 0.06);
}

.stitch-tabs-nav {
  display: flex;
  background: rgba(245, 227, 240, 0.5);
  padding: 4px;
  border-radius: 0.75rem;
  margin-bottom: 12px;
  overflow-x: auto;
  gap: 4px;
}

.stitch-tab-btn {
  flex: 1;
  text-align: center;
  padding: 6px 12px;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--stitch-on-surface-variant);
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stitch-tab-btn.active, .stitch-tab-btn:hover {
  background: var(--stitch-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(159, 18, 170, 0.25);
}

.stitch-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--stitch-surface-container-low);
  border: 1px solid rgba(214, 192, 209, 0.6);
  border-radius: 0.75rem;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

.stitch-input-wrapper:focus-within {
  border-color: var(--stitch-primary);
  box-shadow: 0 0 0 3px rgba(159, 18, 170, 0.12);
}

.stitch-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--stitch-on-surface);
  outline: none;
  box-shadow: none;
  padding: 0 6px;
}

.stitch-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.stitch-filter-chips::-webkit-scrollbar {
  display: none;
}

.stitch-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid rgba(214, 192, 209, 0.6);
  color: var(--stitch-on-surface-variant);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.stitch-chip:hover, .stitch-chip.active {
  background: var(--stitch-primary);
  color: #ffffff;
  border-color: var(--stitch-primary);
  text-decoration: none;
}

.stitch-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: var(--stitch-primary);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  border: none;
  box-shadow: 0 4px 14px rgba(159, 18, 170, 0.28);
  transition: all 0.2s ease;
  cursor: pointer;
}

.stitch-btn-primary:hover {
  background: #8b0e95;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(159, 18, 170, 0.35);
  text-decoration: none;
}

/* ==================== STITCH CITY PILLS ==================== */
.stitch-city-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(214, 192, 209, 0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  text-decoration: none;
  color: var(--stitch-on-surface);
  transition: all 0.2s ease;
}

.stitch-city-card:hover, .stitch-city-card.active {
  border-color: var(--stitch-primary);
  box-shadow: 0 2px 8px rgba(159, 18, 170, 0.15);
  text-decoration: none;
}

.stitch-city-badge {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: rgba(159, 18, 170, 0.1);
  color: var(--stitch-primary);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== STITCH PROPERTY CARDS ==================== */
.stitch-prop-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 10px -2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
  transition: all 0.25s ease;
  margin-bottom: 16px;
}

.stitch-prop-card:hover {
  box-shadow: 0 8px 24px -4px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.stitch-prop-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #f1f5f9;
  overflow: hidden;
}

.stitch-prop-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.stitch-prop-card:hover .stitch-prop-image-wrap img {
  transform: scale(1.03);
}

.stitch-prop-tag-verified {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #12b76a;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.stitch-prop-price-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(34, 24, 33, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.stitch-prop-body {
  padding: 14px;
}

.stitch-prop-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  color: var(--stitch-on-surface);
  margin-bottom: 4px;
  line-height: 1.3;
}

.stitch-prop-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--stitch-on-surface-variant);
  margin-bottom: 8px;
}

.stitch-prop-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.stitch-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--stitch-surface-container);
  color: var(--stitch-on-surface-variant);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ==================== STITCH FLOATING BOTTOM NAV ==================== */
.stitch-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(214, 192, 209, 0.45);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px env(safe-area-inset-bottom, 8px);
}

.stitch-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--stitch-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.stitch-bottom-nav-item:hover, .stitch-bottom-nav-item.active {
  color: var(--stitch-primary);
  text-decoration: none;
}

.stitch-bottom-nav-item .material-symbols-outlined {
  font-size: 22px;
}

.stitch-bottom-nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

/* Utility to ensure content doesn't hide behind fixed top/bottom bars on mobile */
.stitch-mobile-content {
  padding-top: 0px;
  padding-bottom: 74px;
}

/* ==================== STITCH SEARCH FILTER DRAWER ==================== */
.stitch-filter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 24, 33, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stitch-filter-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.stitch-filter-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  max-height: 88vh;
  background: #ffffff !important;
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 1070;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: bottom 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.stitch-filter-drawer.open {
  bottom: 0;
}

.stitch-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(214, 192, 209, 0.4);
  background: #ffffff !important;
}

.stitch-filter-drawer-header h3 {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 17px;
  color: var(--stitch-on-surface);
  margin: 0;
}

.stitch-filter-close-btn {
  position: static !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(214, 192, 209, 0.5);
  background: var(--stitch-surface-container);
  color: var(--stitch-on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.stitch-filter-close-btn:hover {
  background: rgba(159, 18, 170, 0.1);
  color: var(--stitch-primary);
}

.stitch-filter-drawer-body {
  background: #ffffff !important;
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.stitch-filter-section {
  margin-bottom: 20px;
}

.stitch-filter-label {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--stitch-on-surface);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stitch-filter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stitch-filter-drawer-footer {
  display: flex;
  gap: 12px;
  padding: 12px 18px env(safe-area-inset-bottom, 12px);
  border-top: 1px solid rgba(214, 192, 209, 0.4);
  background: #ffffff !important;
}

.stitch-btn-reset {
  flex: 1;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(214, 192, 209, 0.8);
  background: transparent;
  color: var(--stitch-on-surface-variant);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stitch-btn-reset:hover {
  background: var(--stitch-surface-container-low);
  color: var(--stitch-primary);
}

.stitch-btn-apply {
  flex: 2;
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--stitch-primary);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  border: none;
  box-shadow: 0 4px 12px rgba(159, 18, 170, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stitch-btn-apply:hover {
  background: #8b0e95;
}

/* ==================== STITCH SEARCH RESULTS & CARDS ==================== */
.stitch-search-summary {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(214, 192, 209, 0.45);
  padding: 10px 14px;
  margin: 8px 10px 10px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stitch-listing-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(214, 192, 209, 0.45);
  box-shadow: 0 3px 12px -2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
  margin: 0 10px 16px 10px;
  transition: all 0.25s ease;
}

.stitch-listing-card:hover {
  box-shadow: 0 8px 24px -4px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
}

.stitch-listing-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--stitch-surface-container);
  overflow: hidden;
}

.stitch-listing-media img, .stitch-listing-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.stitch-badge-verified {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: #12b76a;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stitch-badge-zerobrokerage {
  background: var(--stitch-primary);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(159, 18, 170, 0.3);
}

.stitch-badge-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stitch-on-surface-variant);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, color 0.2s ease;
}

.stitch-badge-fav:hover, .stitch-badge-fav.active {
  color: #e11d48;
  transform: scale(1.1);
}

.stitch-badge-rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(34, 24, 33, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.stitch-listing-body {
  padding: 14px;
}

.stitch-listing-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  color: var(--stitch-on-surface);
  line-height: 1.35;
  margin-bottom: 4px;
}

.stitch-listing-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--stitch-on-surface-variant);
  margin-bottom: 10px;
}

.stitch-listing-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--stitch-surface-container-low);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 192, 209, 0.3);
  margin-bottom: 10px;
}

.stitch-listing-price-val {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 17px;
  color: var(--stitch-primary);
}

.stitch-listing-deposit {
  font-size: 11px;
  font-weight: 600;
  color: var(--stitch-secondary);
  background: rgba(135, 69, 136, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.stitch-listing-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.stitch-listing-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(214, 192, 209, 0.35);
  padding-top: 10px;
}

.stitch-btn-secondary {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--stitch-primary);
  background: transparent;
  color: var(--stitch-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.stitch-btn-secondary:hover {
  background: var(--stitch-primary);
  color: #ffffff;
  text-decoration: none;
}

.stitch-btn-primary-sm {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9999px;
  border: none;
  background: var(--stitch-primary);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(159, 18, 170, 0.25);
  transition: all 0.2s ease;
}

.stitch-btn-primary-sm:hover {
  background: #8b0e95;
  color: #ffffff;
  text-decoration: none;
}

/* ==================== STITCH AUTH / LOGIN MODAL ==================== */
#loginModal .modal-dialog {
  max-width: 440px;
  margin: 1.75rem auto;
}

#loginModal .modal-content {
  border: 1px solid rgba(214, 192, 209, 0.45) !important;
  border-radius: 1.5rem !important;
  background: #ffffff !important;
  box-shadow: 0 20px 45px -10px rgba(159, 18, 170, 0.18), 0 0 1px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.stitch-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(214, 192, 209, 0.35);
}

.stitch-auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-auth-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--stitch-primary), var(--stitch-secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stitch-auth-brand-name {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 17px;
  color: var(--stitch-primary);
  margin: 0;
  line-height: 1;
}

.stitch-auth-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--stitch-on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stitch-auth-close-btn:hover {
  background: var(--stitch-surface-container);
  color: var(--stitch-on-surface);
}

.stitch-auth-body {
  background: #ffffff !important;
  padding: 20px 24px 24px;
}

.stitch-auth-tabs {
  display: flex;
  background: var(--stitch-surface-container-low);
  padding: 4px;
  border-radius: 9999px;
  margin-bottom: 20px;
  border: 1px solid rgba(214, 192, 209, 0.4);
}

.stitch-auth-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--stitch-on-surface-variant);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.stitch-auth-tab.active {
  background: var(--stitch-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(159, 18, 170, 0.25);
}

.stitch-auth-heading {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 18px;
  color: var(--stitch-on-surface);
  margin-bottom: 4px;
}

.stitch-auth-subtext {
  font-size: 12px;
  color: var(--stitch-on-surface-variant);
  margin-bottom: 18px;
  line-height: 1.4;
}

.stitch-auth-input-group {
  margin-bottom: 14px;
}

.stitch-auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--stitch-on-surface);
  margin-bottom: 6px;
  font-family: var(--font-headline);
}

.stitch-auth-field {
  display: flex;
  align-items: center;
  background: var(--stitch-surface-container-low);
  border: 1.5px solid rgba(214, 192, 209, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.stitch-auth-field:focus-within {
  border-color: var(--stitch-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(159, 18, 170, 0.12);
}

.stitch-auth-field .material-symbols-outlined {
  color: var(--stitch-secondary);
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.stitch-auth-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--stitch-on-surface);
  font-family: var(--font-body);
}

.stitch-auth-input::placeholder {
  color: rgba(82, 66, 80, 0.6);
  font-weight: 400;
}

.stitch-auth-otp-input {
  text-align: center;
  letter-spacing: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--stitch-primary);
  padding-left: 12px;
}

.stitch-btn-auth-submit {
  width: 100%;
  padding: 12px 16px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, var(--stitch-primary), #8b0e95);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(159, 18, 170, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  transition: all 0.2s ease;
}

.stitch-btn-auth-submit:hover {
  background: linear-gradient(135deg, #8b0e95, #770c80);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(159, 18, 170, 0.35);
}

.stitch-btn-auth-submit:active {
  transform: scale(0.98);
}

.stitch-btn-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.stitch-auth-notice {
  font-size: 11px;
  color: var(--stitch-on-surface-variant);
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}

.stitch-auth-notice a {
  color: var(--stitch-primary);
  font-weight: 600;
  text-decoration: underline;
}

.stitch-auth-alert {
  display: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.stitch-auth-alert.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.stitch-auth-alert.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* ==================== STITCH BOTTOM MODAL & ENQUIRY ==================== */
.bottom_back_drop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom_back_drop.active {
  display: block !important;
  opacity: 1 !important;
}

.bottom_custom_modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 24px 20px 32px 20px;
  z-index: 1060;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(214, 192, 209, 0.45);
  border-bottom: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.bottom_custom_modal.active {
  transform: translate(-50%, 0) !important;
}

@media (min-width: 768px) {
  .bottom_custom_modal {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -40%) scale(0.95);
    border-radius: 1.5rem;
    border-bottom: 1px solid rgba(214, 192, 209, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .bottom_custom_modal.active {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.bottom_close_btn {
  cursor: pointer;
}


