/* Full app flow simulator — polished mobile UI */

.phone-frame--sim {
  max-width: 340px;
  width: 100%;
  padding: 11px;
  border-radius: 40px;
  background: linear-gradient(160deg, #3a3a48, #121218);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.phone-screen--sim {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 640px;
  height: 640px;
  max-height: min(640px, 78vh);
  overflow: hidden;
  border-radius: 32px;
  background: #111118;
}

.phone-frame--sim .phone-notch {
  top: 16px;
  width: 96px;
  height: 24px;
  border-radius: 0 0 16px 16px;
}

.sim-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.65rem 1.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: #111118;
}

.sim-viewport {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fdf8f3;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 90, 66, 0.25) transparent;
}

.sim-viewport--onboarding {
  background: #fdf8f3;
}

.sim-viewport--app {
  background: #f3f4f6;
}

.sim-viewport--overlay {
  background: #ffffff;
}

.sim-viewport::-webkit-scrollbar {
  width: 3px;
}

.sim-viewport::-webkit-scrollbar-thumb {
  background: rgba(20, 90, 66, 0.25);
  border-radius: 3px;
}

.sim-viewport.is-entering {
  animation: sim-screen-in 0.28s ease;
}

.sim-viewport.is-exiting {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.sim-screen {
  min-height: min(100%, 520px);
}

.sim-screen--scroll {
  min-height: auto;
  padding-bottom: 1rem;
}

/* Welcome */
.sim-screen--welcome {
  background: #fdf8f3;
  color: #1c1917;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.sim-welcome-hero {
  flex-shrink: 0;
  text-align: center;
  padding: 1.35rem 1rem 1.15rem;
  background: linear-gradient(160deg, #145a42 0%, #1e7a5a 55%, #0f4030 100%);
  border-radius: 0 0 24px 24px;
  color: #fff;
}

.sim-app-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.125rem;
}

.sim-welcome-hero h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.sim-tagline {
  margin: 0.35rem 0 0 !important;
  font-size: 0.8125rem !important;
  opacity: 0.82 !important;
}

.sim-welcome-body {
  flex: 1;
  padding: 1rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sim-card--light {
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem;
  border: 1px solid rgba(20, 90, 66, 0.08);
  box-shadow: 0 2px 12px rgba(20, 90, 66, 0.06);
}

.sim-card--light h2 {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
}

.sim-card--light p {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}

.sim-badges {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: #78716c;
}

.sim-badges span::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25855a;
  margin: 0 auto 0.2rem;
}

/* Form screens (onboarding) */
.sim-screen--form {
  padding: 0.85rem 0.9rem 1rem;
  color: #1c1917;
  background: #fdf8f3;
}

.sim-form-header {
  margin-bottom: 0.85rem;
}

.sim-step-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #145a42;
  background: rgba(20, 90, 66, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.sim-form-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.sim-form-header p[lang="hi"] {
  margin: 0;
  font-family: var(--font-hi);
  font-size: 0.8125rem;
  color: #145a42;
}

.sim-field {
  display: block;
  margin-bottom: 0.65rem;
}

.sim-field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #57534e;
  margin-bottom: 0.3rem;
}

.sim-input {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #1c1917;
  font: inherit;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sim-field-hint {
  display: block;
  font-size: 0.6875rem;
  color: #78716c;
  margin-top: 0.25rem;
}

.sim-link {
  color: #145a42;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sim-btn {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sim-btn:active {
  transform: scale(0.98);
}

.sim-btn--primary {
  background: #f57320;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 115, 32, 0.32);
  margin-top: 0.35rem;
}

.sim-btn--outline {
  background: transparent;
  color: #145a42;
  border: 2px solid #145a42;
  margin-top: 0.35rem;
}

.sim-btn--text {
  background: none;
  color: #78716c;
  font-weight: 600;
  margin-top: 0.35rem;
  padding: 0.5rem;
}

.sim-btn--sm {
  width: auto;
  padding: 0.42rem 0.7rem;
  font-size: 0.6875rem;
  margin-top: 0.45rem;
}

.sim-otp {
  display: flex;
  gap: 0.35rem;
  margin: 0.5rem 0 0.35rem;
}

.sim-otp-box {
  flex: 1;
  max-width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #e7e5e4;
  font-weight: 700;
  font-size: 1rem;
  color: #1c1917;
}

.sim-otp-box.is-filled {
  border-color: #145a42;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(20, 90, 66, 0.12);
}

.sim-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #57534e;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.sim-chips span,
.sim-chips button {
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e7e5e4;
  color: #57534e;
}

.sim-chips span.is-active,
.sim-chips button.is-active {
  background: rgba(20, 90, 66, 0.1);
  border-color: #145a42;
  color: #145a42;
}

.sim-chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 0.9rem 0.45rem;
  margin-bottom: 0.35rem;
}

/* Loading */
.sim-screen--loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 1rem;
  text-align: center;
  background: #fdf8f3;
  color: #1c1917;
}

.sim-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(20, 90, 66, 0.15);
  border-top-color: #145a42;
  animation: sim-spin 0.85s linear infinite;
  margin-bottom: 1rem;
}

.sim-screen--loading h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.sim-screen--loading p[lang="hi"] {
  font-family: var(--font-hi);
  font-size: 0.8125rem;
  color: #145a42;
}

.sim-loading-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  text-align: left;
  width: 100%;
  max-width: 210px;
}

.sim-loading-steps li {
  font-size: 0.75rem;
  color: #a8a29e;
  padding: 0.3rem 0;
}

.sim-loading-steps li.is-done { color: #145a42; }
.sim-loading-steps li.is-active { color: #f57320; font-weight: 600; }

.sim-review-block {
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  border: 1px solid #e7e5e4;
}

.sim-review-block h3 {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #145a42;
}

.sim-review-block p {
  margin: 0;
  font-size: 0.8125rem;
  color: #44403c;
}

.sim-photo-upload {
  text-align: center;
  margin: 0.5rem 0 0.75rem;
}

.sim-photo-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #145a42, #c9a227);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}

.sim-screen--center {
  text-align: center;
}

.sim-pending-icon {
  width: 56px;
  height: 56px;
  margin: 0.5rem auto 0.75rem;
  border-radius: 50%;
  border: 3px solid #e7e5e4;
  border-top-color: #f57320;
  animation: sim-spin 1s linear infinite;
}

.sim-approved-badge {
  width: 56px;
  height: 56px;
  margin: 0.35rem auto 0.75rem;
  border-radius: 50%;
  background: #145a42;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.sim-muted {
  font-size: 0.8125rem;
  color: #78716c;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.sim-id-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #1a3a5c, #145a42);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0 0 0.75rem;
  text-align: left;
  color: #fff;
}

.sim-id-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.sim-id-card strong {
  display: block;
  font-size: 0.875rem;
}

.sim-id-card span {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.8;
}

/* Dashboard */
.sim-screen--dashboard {
  background: #f3f4f6;
  color: #111827;
  padding-bottom: 0.5rem;
}

.sim-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #e5e7eb;
}

.sim-dash-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8125rem;
}

.sim-dash-brand span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #145a42;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 800;
}

.sim-dash-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sim-pill {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.sim-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.sim-search {
  margin: 0.55rem 0.9rem;
  padding: 0.52rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #9ca3af;
}

.sim-dash-section {
  padding: 0.5rem 0.9rem;
}

.sim-dash-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
}

.sim-stories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.sim-story {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  font-size: 0.5625rem;
  color: #6b7280;
}

.sim-story span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f57320, #c9a227);
  color: #fff;
  font-weight: 700;
  font-size: 0.625rem;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #f57320;
}

.sim-story--add span {
  background: #f3f4f6;
  color: #9ca3af;
  box-shadow: none;
  border: 1.5px dashed #d1d5db;
}

.sim-event-banner {
  margin: 0 0.9rem 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #145a42, #1a7354);
  color: #fff;
}

.sim-event-banner strong {
  display: block;
  font-size: 0.8125rem;
}

.sim-event-banner span {
  font-size: 0.6875rem;
  opacity: 0.88;
}

.sim-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.sim-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 64px;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.5625rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  font-family: inherit;
}

.sim-status-bar--light {
  background: #fff;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.phone-screen--light {
  background: #fff;
}

.sim-quick-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.sim-quick-mark--vote { background: #6366f1; }
.sim-quick-mark--biz { background: #f57320; }
.sim-quick-mark--svc { background: #0ea5e9; }
.sim-quick-mark--buy { background: #145a42; }
.sim-quick-mark--mat { background: #ec4899; }
.sim-quick-mark--job { background: #8b5cf6; }
.sim-quick-mark--don { background: #ef4444; }
.sim-quick-mark--dir { background: #c9a227; }
.sim-quick-mark--wal { background: #14b8a6; }

.sim-bill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #145a42;
}

.sim-quick span:first-child {
  font-size: inherit;
  line-height: 1;
}

.sim-bill span:first-child {
  font-size: inherit;
}

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.sim-bills-grid--full {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 0.9rem;
  margin-bottom: 0.65rem;
}

.sim-bill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.2rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 0.5625rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #374151;
}

.sim-bill span:first-child { font-size: 0.9375rem; }
.sim-bill.is-active {
  border-color: #f57320;
  background: #fff7ed;
  color: #c2410c;
}

.sim-list-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.sim-list-card strong {
  display: block;
  font-size: 0.8125rem;
}

.sim-list-card span {
  font-size: 0.6875rem;
  color: #6b7280;
}

.sim-member {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.35rem;
}

.sim-member > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #145a42;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sim-member strong {
  display: block;
  font-size: 0.75rem;
}

.sim-member span:last-child {
  font-size: 0.625rem;
  color: #6b7280;
}

.sim-announce-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.75rem;
}

.sim-announce-item strong { display: block; font-size: 0.75rem; }
.sim-announce-item span:last-child { color: #6b7280; font-size: 0.6875rem; }

/* Feed */
.sim-screen--feed {
  background: #fff;
  color: #111;
}

.sim-composer {
  margin: 0.55rem 0.9rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 0.75rem;
  color: #9ca3af;
}

.sim-post {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.sim-post-head {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sim-post-head > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c9a227;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sim-post-head strong { display: block; font-size: 0.8125rem; }
.sim-post-head span:last-child { font-size: 0.6875rem; color: #6b7280; }
.sim-post p { margin: 0 0 0.4rem; font-size: 0.8125rem; line-height: 1.45; }
.sim-post-actions { display: flex; gap: 0.85rem; font-size: 0.6875rem; color: #6b7280; }

/* Overlays */
.sim-screen--overlay {
  background: #fff;
  color: #111;
}

.sim-overlay-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #e5e7eb;
}

.sim-overlay-header h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.sim-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

.sim-filter-row {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.9rem 0.55rem;
  font-size: 0.6875rem;
}

.sim-filter-row span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
}

.sim-filter-row span.is-active {
  background: rgba(20, 90, 66, 0.12);
  color: #145a42;
}

.sim-profile-card {
  display: flex;
  gap: 0.65rem;
  margin: 0 0.9rem 0.55rem;
  padding: 0.65rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.sim-profile-card-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.8125rem;
}

.sim-profile-card strong { display: block; font-size: 0.8125rem; }
.sim-profile-card span { display: block; font-size: 0.6875rem; color: #6b7280; margin-bottom: 0.3rem; }

.sim-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0 0.9rem 0.75rem;
}

.sim-product {
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.sim-product-img {
  height: 68px;
  background: linear-gradient(135deg, #c9a227, #f57320);
}

.sim-product-img--2 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.sim-product-img--3 { background: linear-gradient(135deg, #145a42, #22c55e); }
.sim-product-img--4 { background: linear-gradient(135deg, #ec4899, #f97316); }

.sim-product strong,
.sim-product span {
  display: block;
  padding: 0 0.45rem;
  font-size: 0.6875rem;
}

.sim-product strong { padding-top: 0.4rem; font-size: 0.75rem; }
.sim-product span { padding-bottom: 0.4rem; color: #6b7280; }

.sim-vote-card {
  margin: 0 0.9rem 0.55rem;
  padding: 0.65rem;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.sim-vote-tag {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #145a42;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sim-vote-card strong { display: block; margin: 0.2rem 0; font-size: 0.8125rem; }
.sim-vote-card p { margin: 0 0 0.45rem; font-size: 0.6875rem; color: #6b7280; }

.sim-event-card {
  display: flex;
  gap: 0.55rem;
  margin: 0 0.9rem 0.55rem;
  padding: 0.55rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.sim-event-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f57320, #c9a227);
}

.sim-event-img--2 { background: linear-gradient(135deg, #145a42, #0ea5e9); }

.sim-event-card strong { display: block; font-size: 0.8125rem; }
.sim-event-card span { display: block; font-size: 0.6875rem; color: #6b7280; margin-bottom: 0.3rem; }

/* Profile */
.sim-screen--profile {
  background: #fff;
  color: #111;
}

.sim-profile-cover {
  height: 72px;
  background: linear-gradient(135deg, #145a42, #1a3a5c);
}

.sim-profile-head {
  text-align: center;
  padding: 0 0.9rem 0.65rem;
  margin-top: -32px;
}

.sim-profile-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #f57320, #c9a227);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.125rem;
}

.sim-profile-head h2 { margin: 0; font-size: 0.9375rem; }
.sim-profile-head > p { margin: 0.2rem 0; font-size: 0.6875rem; color: #6b7280; }

.sim-profile-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.6875rem;
  color: #6b7280;
}

.sim-profile-stats strong {
  display: block;
  color: #111;
  font-size: 0.875rem;
}

.sim-profile-tabs {
  padding: 0 0.9rem;
  margin-bottom: 0.65rem;
}

.sim-profile-tab {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sim-padded { padding: 0 0.9rem; }

.sim-family-tree { padding: 0 0.9rem 0.75rem; }

.sim-tree-row {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.sim-tree-node {
  width: 58px;
  text-align: center;
  font-size: 0.5625rem;
  color: #6b7280;
}

.sim-tree-node span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.15rem;
  border-radius: 50%;
  background: #e5e7eb;
  font-weight: 700;
  font-size: 0.625rem;
  color: #374151;
}

.sim-tree-node.is-you span {
  background: #145a42;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(20, 90, 66, 0.2);
}

.sim-tree-node--add span {
  border: 1.5px dashed #d1d5db;
  background: #f9fafb;
  color: #9ca3af;
}

/* Bottom nav */
.sim-bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.2rem 0.45rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.sim-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.2rem;
  border: none;
  background: none;
  color: #9ca3af;
  font-size: 0.5625rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.sim-tab.is-active { color: #f57320; }

.sim-tab-icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
}

.sim-tab.is-active .sim-tab-icon { opacity: 1; }

.sim-tab-icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f57320'%3E%3Cpath d='M12 3l9 8v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V11l9-8z'/%3E%3C/svg%3E");
}

.sim-tab-icon--feed {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M4 6h16v2H4V6zm0 5h16v2H4v-2zm0 5h10v2H4v-2z'/%3E%3C/svg%3E");
}

.sim-tab-icon--ai {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 2l1.5 4.5L18 8l-4.5 1.5L12 14l-1.5-4.5L6 8l4.5-1.5L12 2z'/%3E%3C/svg%3E");
}

.sim-tab-icon--reels {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E");
}

.sim-tab-icon--profile {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2c-4 0-7 2-7 4v2h14v-2c0-2-3-4-7-4z'/%3E%3C/svg%3E");
}

.sim-tab.is-active .sim-tab-icon--feed,
.sim-tab.is-active .sim-tab-icon--ai,
.sim-tab.is-active .sim-tab-icon--reels,
.sim-tab.is-active .sim-tab-icon--profile {
  filter: brightness(0) saturate(100%) invert(52%) sepia(85%) saturate(1523%) hue-rotate(346deg) brightness(101%) contrast(95%);
}

/* Onboarding footer */
.sim-onboarding-footer {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem 0.55rem;
  background: #fdf8f3;
  border-top: 1px solid #e7e5e4;
}

.sim-dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.sim-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d6d3d1;
}

.sim-dot.is-active {
  width: 16px;
  border-radius: 999px;
  background: #f57320;
}

.sim-dot.is-done { background: #145a42; }

/* Side panel */
.sim-flow-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.sim-flow-tab {
  flex: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.sim-flow-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sim-flow-tab.is-active {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.5);
  color: #fff;
}

.sim-step-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sim-step-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.sim-step-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sim-step-btn.is-active {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
}

.sim-step-text strong {
  display: block;
  font-size: 0.8125rem;
}

.sim-step-text span {
  font-family: var(--font-hi);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.5);
}

.sim-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sim-flow-btn {
  flex: 1;
  min-width: 130px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.sim-flow-btn--play {
  background: #f57320;
  color: #fff;
}

.sim-flow-btn--reset {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-scroll-hint {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.sim-scroll-hint span:last-child {
  font-family: var(--font-hi);
}

@keyframes sim-screen-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes sim-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
  .phone-screen--sim {
    height: 580px;
    min-height: 580px;
    max-height: min(580px, 70vh);
  }

  .app-showcase-phone {
    position: static;
  }

  .sim-step-list {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-viewport.is-entering,
  .sim-spinner,
  .sim-pending-icon {
    animation: none !important;
  }
}
