:root {
  --navy: #211551;
  --navy-dark: #041b3c;
  --purple: #6551FF;
  --purple-dark: #211551;
  --purple-soft: #ECEEFF;
  --ink: #191c1e;
  --secondary: #59637a;
  --surface: #f9f9ff;
  --white: #fff;
  --line: #e8e7ef;
  --pink: #e31c79;
  --coral: #ff626a;
  --teal: #00b5ad;
  --shadow: 0 4px 12px rgba(9, 30, 66, .08);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overscroll-behavior-y: none;
  background: #ecebf4;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(101, 81, 255, .12), transparent 30%),
    #ecebf4;
  font-family: Inter, system-ui, sans-serif;
}

button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(101, 81, 255, .28); outline-offset: 2px; }

.app-shell {
  position: relative;
  width: min(100%, 393px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: visible;
  background: var(--surface);
  box-shadow: 0 20px 70px rgba(33, 21, 81, .16);
}

.screen {
  min-height: 100dvh;
  background: var(--surface);
}

/* Status Bar */
.status-bar {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px 4px 49px;
  color: #000;
  background: inherit;
  font-size: 17px;
  font-weight: 600;
}
.status-bar img { width: 77px; height: 13px; object-fit: contain; }

/* Profile Header */
.profile-header {
  position: sticky;
  z-index: 20;
  top: 52px;
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 28px 6px 24px;
  background: var(--surface);
  box-shadow: 0 3px 2px rgba(0, 0, 0, .05);
}
.profile-status-bar {
  position: sticky;
  z-index: 21;
  top: 0;
  background: var(--surface);
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-radius: 28px;
  padding: 2px 6px 2px 2px;
  transition: opacity .15s ease, transform .15s ease;
}
.profile-card:hover { opacity: .92; }
.profile-card:active { transform: scale(.97); }
.profile-avatar, .avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar { width: 54px; height: 56px; border: 1.5px solid var(--purple); }
.profile-name { margin: 0 0 4px; color: var(--navy); font-size: 15px; font-weight: 700; }
.office-chip { border: 0; border-radius: 999px; padding: 4px 10px; color: #007873; background: #d4f3f1; font-size: 11px; font-weight: 600; }
.bell {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  background: transparent;
  place-items: center;
}
.bell img { display: block; width: 40px; height: 40px; object-fit: contain; }

/* Back Header */
.back-header {
  display: flex;
  height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.back-button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ded9ff;
  place-items: center;
}
.back-button img { width: 24px; height: 24px; }
.back-header h1 { margin: 0; color: var(--navy); font: 700 18px/24px Mulish, sans-serif; }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  z-index: 15;
  right: max(calc((100vw - 393px)/2 + 24px), 24px);
  bottom: 24px;
  left: max(calc((100vw - 393px)/2 + 24px), 24px);
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 70px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(244, 242, 255, .38));
  box-shadow: 0 10px 32px rgba(33, 21, 81, .14), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}
.nav-item {
  display: flex;
  width: 70px;
  height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: var(--navy);
  font-size: 12px;
}
.nav-item.active {
  border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(145deg, rgba(190, 174, 255, .56), rgba(223, 216, 255, .34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58), 0 4px 14px rgba(89, 50, 249, .12);
  font-weight: 600;
}
.nav-item img { width: 23px; height: 23px; object-fit: contain; }

/* Floating Action Button (FAB) */
.fab-btn {
  position: fixed;
  z-index: 18;
  right: max(calc((100vw - 393px)/2 + 20px), 20px);
  bottom: 120px;
  display: grid;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #6551FF;
  box-shadow: 0 6px 16px rgba(101, 81, 255, .4);
  place-items: center;
  font-size: 32px;
  font-weight: 300;
  transition: transform .15s ease;
}
.fab-btn:active { transform: scale(.94); }

/* Common Surface Card & Buttons */
.surface-card { border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.primary-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  color: white;
  background: var(--navy);
  font-size: 16px;
  font-weight: 600;
  transition: opacity .15s;
}
.primary-button:active { opacity: .9; }
.secondary-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  color: var(--navy);
  background: #ECEEFF;
  font-size: 14px;
  font-weight: 600;
}

/* Page Segment (2 or 3 tabs) */
.page-segment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  height: 46px;
  padding: 4px;
  border-radius: 24px;
  background: #ECEEFF;
}
.page-segment button {
  border: 0;
  border-radius: 22px;
  color: var(--navy);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}
.page-segment button.active {
  background: white;
  box-shadow: 0 2px 4px rgba(9, 30, 66, .12);
  font-weight: 600;
}

/* ==========================================================================
   1. SPLASH SCREEN WITH FIGMA ENTRANCE ANIMATION
   ========================================================================== */
.splash-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  cursor: pointer;
  animation: splashFadeIn 0.5s ease-out;
}
.splash-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px 24px 60px;
}
.splash-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 140px;
  animation: splashLogoEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.splash-logo-glow {
  position: absolute;
  top: 10px;
  width: 160px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 84, 112, 0.28) 0%, rgba(101, 81, 255, 0.22) 50%, transparent 80%);
  filter: blur(18px);
  z-index: 0;
  animation: pulseGlow 2.4s ease-in-out infinite alternate;
}
.splash-logo {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 90px;
  filter: drop-shadow(0 8px 24px rgba(101, 81, 255, 0.25));
}
.splash-title {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  color: var(--navy);
  font: 700 30px/36px Mulish, sans-serif;
  letter-spacing: -.5px;
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.splash-bottom {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.commencis-brand {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
}

@keyframes splashFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes splashLogoEntrance {
  0% { opacity: 0; transform: scale(0.78) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 1; }
}

/* ==========================================================================
   2. LOGIN SCREEN
   ========================================================================== */
.login-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--surface);
}
.login-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 60px 28px 40px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}
.login-logo { width: 130px; height: 84px; }
.login-title {
  margin: 24px 0 0;
  color: var(--navy);
  font: 700 28px/36px Mulish, sans-serif;
  letter-spacing: -.5px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input-pill {
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid #e4e6f0;
  border-radius: 28px;
  background: white;
  box-shadow: 0 2px 6px rgba(9, 30, 66, .04);
}
.input-pill input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
}
.input-pill input::placeholder { color: #A0A5BA; }
.login-btn { margin-top: 12px; }

/* ==========================================================================
   3. ONBOARDING WIZARD
   ========================================================================== */
.onboarding-screen {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--surface);
}
.onboarding-header {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.step-label { color: var(--navy); font-size: 17px; font-weight: 700; }
.skip-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}
.step-progress-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 28px 24px;
}
.step-seg {
  height: 8px;
  border-radius: 4px;
  background: #D0D6DE;
}
.step-seg.filled {
  background: linear-gradient(90deg, #6551FF, #E25470);
}
.onboarding-body {
  flex: 1;
  padding: 20px 28px;
}
.onboarding-question {
  margin: 0 0 28px;
  color: var(--navy);
  font: 700 28px/36px Mulish, sans-serif;
  letter-spacing: -.4px;
}
.dropdown-pill {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 22px;
  border: 1.5px solid #dcdff0;
  border-radius: 29px;
  background: white;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
}
.dropdown-pill.muted { color: #A6AAB8; }
.use-location-btn { margin-top: 16px; }
.input-card {
  min-height: 72px;
  padding: 16px 20px;
  border: 1.5px solid #dcdff0;
  border-radius: 24px;
  background: white;
}
.input-card input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
}
.input-card input::placeholder { color: #A6AAB8; }
.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 40px;
}
.prev-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
}
.continue-btn {
  min-width: 130px;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 25px;
  color: #8C94A4;
  background: #DFE4EA;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.continue-btn.active, .continue-btn:not([disabled]) {
  color: white;
  background: #211551;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(33, 21, 81, .2);
}
.continue-btn[disabled] {
  color: #8C94A4;
  background: #DFE4EA;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ==========================================================================
   4. ONBOARDING CHECKLIST PAGE
   ========================================================================== */
.checklist-main {
  display: grid;
  gap: 14px;
  padding: 20px 20px 100px;
}
.checklist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  transition: transform .15s;
}
.checklist-card:active { transform: scale(.98); }
.checklist-card.primary-card {
  background: #ECEEFF;
  border: 1px solid rgba(101, 81, 255, .2);
}
.checklist-copy h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font: 700 17px/22px Mulish, sans-serif;
}
.checklist-copy p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}
.circle-arrow {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #6C7289;
  background: #E2E4EE;
  place-items: center;
}
.circle-arrow.filled-circle {
  color: white;
  background: var(--navy);
}

/* ==========================================================================
   5. NOTIFICATIONS PAGE (Breakouts, Updates, Messages)
   ========================================================================== */
.notifications-main {
  padding: 20px 20px 100px;
}
.notifications-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.notification-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}
.notif-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.notif-content { flex: 1; }
.notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.notif-top strong {
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}
.notif-top small { color: #8A8E9F; font-size: 12px; }
.notif-content p {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 14px;
  line-height: 19px;
}
.notif-actions { display: flex; gap: 10px; }
.notif-accept, .notif-join {
  height: 42px;
  border-radius: 21px;
  font-size: 14px;
}
.notif-decline {
  height: 42px;
  border-radius: 21px;
  font-size: 14px;
}
.update-icon-circle {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ECEEFF;
  color: #6551FF;
  place-items: center;
  font-size: 22px;
}
.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  margin-left: 6px;
}

/* ==========================================================================
   6. PROFILE SCREEN (Figma Node 2369:30286)
   ========================================================================== */
.profile-screen {
  padding-bottom: 90px;
}
.profile-header-bar {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.profile-header-bar h1 {
  margin: 0;
  color: var(--navy);
  font: 700 18px/24px Mulish, sans-serif;
}
.profile-save-btn {
  border: 0;
  background: transparent;
  color: var(--pink);
  font-size: 15px;
  font-weight: 700;
  padding: 8px;
}
.profile-main {
  padding: 20px 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.profile-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--purple);
  box-shadow: 0 6px 16px rgba(101, 81, 255, 0.22);
}
.profile-hero-info small {
  color: var(--secondary);
  font-size: 13px;
}
.profile-hero-info h2 {
  margin: 2px 0 4px;
  color: var(--navy);
  font: 700 20px/26px Mulish, sans-serif;
}
.profile-hero-info p {
  margin: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}
.profile-section-card {
  padding: 20px;
}
.profile-section-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font: 700 15px/20px Mulish, sans-serif;
}
.project-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #ECEEFF;
}
.project-chip.current {
  color: #007873;
  background: #d4f3f1;
  box-shadow: 0 2px 6px rgba(0, 120, 115, 0.15);
}
.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-field-item {
  border-bottom: 1px solid #ECEEFF;
  padding-bottom: 14px;
}
.profile-field-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.profile-field-val {
  color: var(--secondary);
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 6px;
}
.privacy-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9A9EAF;
  font-size: 11px;
}

/* ==========================================================================
   7. COMMUNITY DETAIL PAGE
   ========================================================================== */
.community-hero-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.community-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-back-btn {
  position: absolute;
  top: 48px;
  left: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
  place-items: center;
}
.community-detail-main {
  padding: 20px 20px 120px;
}
.community-detail-header h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font: 700 24px/30px Mulish, sans-serif;
}
.community-detail-header p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}
.members-section {
  margin-top: 24px;
}
.members-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.members-title h2 {
  margin: 0;
  color: var(--navy);
  font: 700 17px/22px Mulish, sans-serif;
}
.members-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.members-scroll::-webkit-scrollbar { display: none; }
.member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  white-space: nowrap;
}
.member-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.invite-member {
  border: 0;
  background: transparent;
  padding: 0;
}
.add-circle {
  display: grid;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  background: white;
  place-items: center;
  font-size: 24px;
  font-weight: 300;
}
.community-tab-content {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

/* ==========================================================================
   8. HOME SCREEN
   ========================================================================== */
.home-content { display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 120px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title h2 { margin: 0; color: var(--navy-dark); font: 700 20px/26px Mulish, sans-serif; letter-spacing: -.24px; }
.link-button { border: 0; background: transparent; padding: 4px; }
.link-button img { display: block; width: 11px; height: 18px; }

/* Pulse Section */
.pulse-section { min-width: 0; }
.onboarding { height: 164px; padding: 20px; cursor: pointer; }
.onboarding-head { display: flex; justify-content: space-between; }
.onboarding h1 { margin: 0; color: var(--navy); font: 700 20px/24px Mulish, sans-serif; }
.onboarding p { margin: 4px 0 0; color: var(--navy); font-size: 14px; }
.onboarding .check { width: 24px; height: 24px; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 36px; color: var(--secondary); font-size: 12px; }
.progress { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(0,45,113,.1); }
.progress span { display: block; width: 66%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--purple)); }

.pulse-news-card {
  padding: 20px;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-eyebrow { color: var(--pink); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.pulse-news-card h3 { margin: 6px 0 2px; color: var(--navy); font: 700 18px/24px Mulish, sans-serif; }
.pulse-news-card p { margin: 0; color: var(--secondary); font-size: 14px; }
.see-details-btn {
  align-self: flex-start;
  margin-top: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.pulse-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #D5D8E4; }
.pulse-dot.active { background: var(--pink); }

/* Availability Card - With Gradient Effect When Active */
.availability-card {
  padding: 18px 20px;
  transition: all .25s ease;
}
.availability-card.active {
  background: linear-gradient(135deg, #ffffff 60%, rgba(226, 84, 112, 0.08) 100%);
  border: 1px solid rgba(226, 84, 112, 0.2);
  box-shadow: 0 4px 16px rgba(101, 81, 255, 0.12);
}
.availability-row { display: flex; align-items: center; justify-content: space-between; }
.availability-row h2 { margin: 0; color: var(--navy-dark); font: 700 17px/22px Mulish, sans-serif; }
.toggle {
  position: relative;
  width: 55px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #e2e4e4;
  transition: .25s ease;
}
.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  content: "";
  transition: .25s ease;
}
.toggle.on {
  background: linear-gradient(90deg, #6551FF, #E25470);
  box-shadow: 0 2px 10px rgba(226, 84, 112, 0.4);
}
.toggle.on::after { left: 28px; }

/* Breakout Zone & Create Room Button Gradient matching Figma Node 2369:26413 */
.room-type-scroll { display: flex; gap: 10px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.room-type-scroll::-webkit-scrollbar { display: none; }
.room-type-card { flex: 0 0 142px; min-height: 126px; padding: 12px; border: 0; text-align: left; }
.stacked { display: flex; align-items: center; height: 32px; }
.stacked img { width: 28px; height: 28px; border: 2px solid var(--surface); border-radius: 50%; }
.stacked img + img { margin-left: -10px; }
.stacked small { margin-left: 6px; font-size: 11px; color: #555; }
.room-type-card h3 { margin: 6px 0 4px; color: var(--navy); font-size: 15px; font-weight: 700; }
.room-type-card p { margin: 0; color: var(--secondary); font-size: 11px; line-height: 16px; }
.room-type-card .mini-arrow { float: right; width: 28px; height: 28px; margin-top: -24px; }

.create-room-banner {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  border: 0;
  border-radius: 9999px;
  color: var(--navy);
  background: linear-gradient(90deg, rgba(101, 81, 255, 0.08) 0%, rgba(255, 107, 107, 0.22) 100%);
  box-shadow: 0 4px 6px -1px rgba(184, 204, 234, 0.5);
  font-family: Mulish, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease, opacity .15s ease;
}
.create-room-banner:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.banner-plus { font-size: 20px; font-weight: 400; }

/* Quick MeetUp Card */
.meetup-section { padding: 18px 20px; }
.meetup-section h2 { margin: 0 0 12px; color: var(--navy-dark); font: 700 18px/24px Mulish, sans-serif; }
.search-field { display: flex; height: 48px; align-items: center; gap: 12px; padding: 0 16px; border-radius: 24px; background: #f4f4f8; }
.search-field img { width: 18px; height: 18px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--navy); background: transparent; font-size: 14px; }
.search-field input::placeholder { color: #9A9EAF; }
.segment { display: grid; grid-template-columns: 1fr 1fr; height: 40px; margin-top: 14px; padding: 3px; border-radius: 20px; background: #ECEEFF; }
.segment button { border: 0; border-radius: 18px; color: var(--navy); background: transparent; font-size: 13px; font-weight: 500; }
.segment button.active { background: white; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }

.people-list { display: grid; gap: 14px; margin-top: 16px; }
.person-row { display: flex; min-height: 44px; align-items: center; justify-content: space-between; }
.person-info { display: flex; align-items: center; gap: 12px; }
.avatar-wrap { position: relative; }
.avatar-wrap::after { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--teal); content: ""; }
.avatar { width: 44px; height: 44px; }
.person-copy strong { display: block; color: var(--navy); font-size: 14px; font-weight: 600; }
.person-copy small { display: block; color: var(--secondary); font-size: 12px; }
.meetup-pill { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 16px; color: var(--purple); background: #ECEEFF; font-size: 12px; font-weight: 600; }
.meetup-pill img { width: 14px; height: 14px; }
.see-more-link { display: block; width: 100%; margin-top: 12px; padding: 6px 0; border: 0; background: transparent; color: #8A8E9F; font-size: 13px; font-weight: 500; text-align: right; }

/* Roulette Card */
.roulette { padding: 16px 20px; }
.roulette-head { display: flex; align-items: center; gap: 12px; }
.roulette-head img { width: 48px; height: 48px; }
.roulette h3 { margin: 0; color: var(--navy); font-size: 15px; font-weight: 700; }
.roulette p { margin: 2px 0 0; color: var(--secondary); font-size: 12px; }
.match-button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 22px;
  color: white;
  background: linear-gradient(90deg, #6551FF, #E25470);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(226, 84, 112, .3);
}

/* ==========================================================================
   9. CREATE ROOM SCREEN (Figma Node 2369:26082)
   ========================================================================== */
.create-room-screen {
  padding-bottom: 100px;
}
.create-status-bar {
  height: 48px;
  padding-top: 14px;
}
.create-room-header {
  height: 56px;
  padding: 8px 16px;
}
.create-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 100px;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.topic-input {
  display: flex;
  height: 50px;
  align-items: center;
  padding: 0 16px;
  border-radius: 25px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.topic-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
}
.topic-input input::placeholder {
  color: #A6AAB8;
}

.duration-row {
  display: flex;
  gap: 10px;
}
.duration-pill-btn {
  display: flex;
  flex: 1;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 21px;
  background: #ECEEFF;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}
.duration-pill-btn.selected {
  background: #ECEEFF;
  font-weight: 600;
}
.radio-dot {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: white;
  box-sizing: border-box;
}
.radio-dot.on {
  border: 3.5px solid white;
  background: #FF626A;
  box-shadow: 0 0 0 1.5px #6551FF;
}

/* Time Wheel / Drum Picker */
.time-wheel-card {
  position: relative;
  height: 220px;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wheel-selection-highlight {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 44px;
  transform: translateY(-50%);
  background: #ECEEFF;
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}
.time-wheel-scroll {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 88px 0;
  display: flex;
  flex-direction: column;
}
.time-wheel-scroll::-webkit-scrollbar {
  display: none;
}
.wheel-time-item {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #A0A4B8;
  scroll-snap-align: center;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.wheel-time-item.selected {
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}

/* 3-Way Segment & Structure Content */
.three-way-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 46px;
  padding: 4px;
  border-radius: 23px;
  background: #ECEEFF;
  gap: 2px;
}
.three-way-segment button {
  border: 0;
  border-radius: 20px;
  color: #6551FF;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  height: 100%;
}
.three-way-segment button.active {
  background: white;
  box-shadow: 0 2px 4px rgba(9, 30, 66, .08);
  font-weight: 600;
  color: #211551;
}

.everyone-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px;
  margin-top: 14px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}
.everyone-box p {
  margin: 0;
  max-width: 240px;
  color: var(--navy);
  font-size: 15px;
  line-height: 22px;
}
.everyone-box strong {
  font-weight: 700;
}

.create-people-scroll {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.create-people-scroll::-webkit-scrollbar { display: none; }
.create-person {
  display: flex;
  width: 60px;
  min-width: 60px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  white-space: nowrap;
}
.create-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.create-person.selected img { box-shadow: 0 0 0 2px #6551FF, 0 0 0 4px white; }
.create-person.selected span { font-weight: 700; }
.add-person img { width: 44px; height: 44px; }

.team-room-scroll {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.team-room-scroll::-webkit-scrollbar { display: none; }
.team-room-card {
  display: flex;
  width: 144px;
  min-width: 144px;
  min-height: 120px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--navy);
  background: white;
  box-shadow: var(--shadow);
  text-align: left;
}
.team-room-card.selected { border-color: #6551FF; }
.team-room-avatars { display: flex; height: 32px; align-items: center; }
.team-room-avatars img { width: 28px; height: 28px; border: 2px solid var(--surface); border-radius: 50%; object-fit: cover; }
.team-room-avatars img + img { margin-left: -10px; }
.team-room-avatars small { margin-left: 6px; color: #555; font-size: 11px; }
.team-room-card strong { font-size: 15px; }
.team-room-card span:last-child { color: var(--secondary); font-size: 11px; }

.create-footer {
  position: fixed;
  z-index: 14;
  right: max(calc((100vw - 393px)/2), 0px);
  bottom: 0;
  left: max(calc((100vw - 393px)/2), 0px);
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #e0e8ff;
  background: var(--surface);
}

/* ==========================================================================
   10. BREAKOUT ZONE / ROOMS SCREEN
   ========================================================================== */
.rooms-screen .room-list-content { padding: 16px 20px 120px; }
.rooms-page-head h1 { margin: 0 0 14px; color: var(--navy); font: 700 24px/30px Mulish, sans-serif; }
.meeting-list { display: grid; gap: 14px; }
.meeting-card {
  position: relative;
  min-height: 148px;
  padding: 18px;
  overflow: hidden;
}
.meeting-card h2 { margin: 10px 0 4px; color: var(--navy-dark); font: 700 17px/22px Mulish, sans-serif; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  color: #00785f;
  background: #C4F7E5;
  font-size: 10px;
  font-weight: 700;
}
.live-badge::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.live-badge.closed { color: var(--pink); background: #ffd3e8; }
.teams-bubble {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #C4B9F5;
  place-items: center;
}
.teams-bubble img { width: 18px; height: 18px; object-fit: contain; }
.meeting-time { display: flex; align-items: center; gap: 6px; margin: 0; color: #62616e; font-size: 12px; }
.meeting-time.danger { color: #ff5862; }
.meeting-time img { width: 14px; height: 14px; }
.meeting-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.meeting-avatars { display: flex; align-items: center; }
.meeting-avatars img { width: 30px; height: 30px; border: 1.5px solid white; border-radius: 50%; object-fit: cover; }
.meeting-avatars img + img { margin-left: -8px; }
.meeting-avatars small { display: grid; width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; background: #e5e5ea; place-items: center; font-size: 11px; }
.see-button {
  min-width: 72px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

/* Bottom Sheet */
.scrim { position: fixed; z-index: 30; inset: 0; background: rgba(33,21,81,.43); }
.bottom-sheet {
  position: fixed;
  z-index: 31;
  right: max(calc((100vw - 393px)/2), 0px);
  bottom: 0;
  left: max(calc((100vw - 393px)/2), 0px);
  min-height: 500px;
  padding: 36px 20px 24px;
  border-radius: 24px 24px 0 0;
  background: white;
  animation: sheet-in .25s ease-out;
}
.bottom-sheet::before { position: absolute; top: 12px; left: calc(50% - 20px); width: 40px; height: 4px; border-radius: 2px; background: #aeb1c5; content: ""; }
.modal-close { position: absolute; top: 28px; right: 20px; display: grid; width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--navy); background: var(--purple-soft); place-items: center; font-size: 18px; }
.bottom-sheet h1 { margin: 8px 0 2px; color: var(--navy); font: 700 22px/28px Mulish, sans-serif; }
.room-context { margin: 0; color: var(--secondary); font-size: 13px; }
.details-title { margin: 24px 0 10px; color: var(--navy); font: 700 16px/20px Mulish, sans-serif; }
.facts { display: flex; justify-content: space-between; gap: 10px; }
.fact { display: grid; width: 88px; height: 54px; align-content: center; border-radius: 12px; background: #fff1f2; text-align: center; }
.fact small { color: var(--secondary); font-size: 10px; letter-spacing: .4px; }
.fact strong { color: var(--coral); font-size: 15px; font-weight: 600; }
.people-head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.people-head h2 { margin: 0; color: var(--navy); font: 700 16px/20px Mulish, sans-serif; }
.count-chip { padding: 4px 10px; border-radius: 12px; color: var(--navy); background: var(--purple-soft); font-size: 12px; font-weight: 600; }
.compact-list { display: grid; gap: 8px; }
.bottom-sheet .primary-button { margin-top: 24px; }

/* ==========================================================================
   11. PARTICIPANTS / ROOM SUMMARY SCREEN
   ========================================================================== */
.participants-screen { padding-bottom: 0; }
.participant-status-bar { height: 48px; padding-top: 14px; }
.participant-room-header { height: 56px; padding: 8px 16px; }
.participants-main { display: flex; min-height: calc(100dvh - 104px); flex-direction: column; gap: 20px; padding: 16px 20px 24px; }
.participant-room-summary { display: flex; flex-direction: column; gap: 4px; }
.participant-summary-top { display: flex; height: 28px; align-items: center; justify-content: space-between; }
.not-live-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; color: var(--pink); background: rgba(225, 28, 121, .15); font-size: 10px; font-weight: 600; }
.not-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.participant-close { display: grid; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: var(--navy); background: #ECEEFF; place-items: center; font-size: 18px; }
.participant-room-summary h1 { margin: 4px 0 0; color: var(--navy); font: 700 22px/28px Mulish, sans-serif; }
.host-badge { color: var(--pink); font-size: 14px; font-weight: 600; }
.participant-room-summary p { margin: 0; color: var(--secondary); font-size: 13px; }
.participant-details h2, .participant-people-head h2 { margin: 0; color: var(--navy); font: 700 16px/20px Mulish, sans-serif; }
.participant-facts { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.participant-facts > span { display: flex; width: 92px; height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: rgba(255, 229, 229, .5); }
.participant-facts small { color: var(--secondary); font-size: 10px; font-weight: 500; }
.participant-facts strong { color: var(--coral); font-size: 15px; font-weight: 700; }
.participant-people-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.participant-people-head span { padding: 4px 10px; border-radius: 12px; color: var(--navy); background: #ECEEFF; font-size: 11px; font-weight: 600; }
.participant-grid { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; row-gap: 16px; }
.participant-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--navy); font-size: 11px; white-space: nowrap; }
.participant-tile img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.participant-add .add-circle { width: 56px; height: 56px; }
.participant-start { margin-top: auto; }

/* ==========================================================================
   12. TEAMS DIALOG & COFFEE MATCH DIALOG
   ========================================================================== */
.dialog {
  position: fixed;
  z-index: 31;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 40px), 346px);
  padding: 24px;
  border-radius: 20px;
  background: white;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px rgba(33, 21, 81, .2);
  animation: dialog-in .22s ease-out;
}
.teams-logo { width: 88px; height: 90px; object-fit: contain; }
.dialog h1 { margin: 12px 0 6px; color: var(--navy); font: 700 22px/28px Mulish, sans-serif; }
.dialog-copy { margin: 0 0 32px; color: var(--secondary); font-size: 13px; line-height: 19px; }

.match-dialog { padding: 24px; text-align: center; }
.match-dialog-top { display: flex; align-items: center; justify-content: space-between; }
.match-mark { width: 44px; height: 44px; }
.match-dialog h1 { margin: 14px 0 6px; }
.match-dialog .dialog-copy { margin-bottom: 20px; }
.matched-person-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}
.matched-person-center .avatar { width: 68px; height: 68px; border: 3px solid white; box-shadow: 0 0 0 2px #e7e5ee; }
.matched-name { color: var(--navy); font-size: 17px; font-weight: 700; margin-top: 6px; }
.matched-role { color: var(--secondary); font-size: 13px; }
.match-forward-btn { height: 48px; border-radius: 24px; }
.match-try-btn { height: 44px; margin-top: 10px; }

/* ==========================================================================
   13. HUB SCREEN
   ========================================================================== */
.hub-main { padding: 14px 20px 120px; }
.feed-categories { display: flex; gap: 8px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.feed-categories::-webkit-scrollbar { display: none; }
.feed-categories button { flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 20px; color: #6551FF; background: #ECEEFF; font-size: 12px; font-weight: 500; }
.feed-categories button.active { color: white; background: #6551FF; font-weight: 600; }

.feed-list { display: grid; gap: 14px; }
.feed-post { padding: 16px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.feed-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-post header img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.feed-post header strong { display: block; color: var(--navy-dark); font-size: 14px; }
.feed-post header small { display: block; color: #59637a; font-size: 11px; }
.feed-post p { margin: 12px 0; color: var(--navy-dark); font-size: 14px; line-height: 20px; }
.feed-image { display: block; width: 100%; height: 180px; border-radius: 8px; object-fit: cover; }
.feed-post footer { display: flex; gap: 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eeeef4; }
.feed-post footer button { border: 0; color: #35384a; background: transparent; font-size: 13px; }
.feed-post footer button.liked { color: var(--pink); }

.quick-links-wrap { padding: 16px; margin-top: 14px; }
.quick-links-wrap h2 { margin: 0 0 12px; color: var(--navy); font-size: 15px; font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-links button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--navy); font-size: 11px; font-weight: 500; }
.quick-links img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }

.hub-resource { margin-top: 14px; padding: 16px; }
.resource-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.resource-title h2 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 700; }
.resource-title button { border: 0; background: transparent; padding: 4px; }
.resource-title img { width: 8px; height: 14px; }
.resource-card { display: grid; width: 100%; height: 140px; grid-template-columns: 110px 1fr; align-items: stretch; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #fcfcff; box-shadow: 0 2px 8px rgba(9,30,66,.08); text-align: left; }
.resource-card > img { width: 110px; height: 140px; object-fit: cover; }
.resource-card > span { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; }
.resource-card small { align-self: flex-start; padding: 3px 6px; border-radius: 4px; color: #09214d; background: #e5effc; font-size: 9px; font-weight: 700; }
.resource-card strong { color: #09214d; font-size: 13px; line-height: 18px; }
.resource-card em { color: #59637a; font-size: 11px; font-style: normal; }

/* ==========================================================================
   14. GAMES SCREEN
   ========================================================================== */
.games-list { display: grid; gap: 14px; padding: 14px 20px 120px; }
.game-card { position: relative; display: grid; min-height: 112px; grid-template-columns: 72px minmax(0,1fr); align-items: center; overflow: hidden; }
.game-art { width: 72px; height: 112px; object-fit: cover; }
.game-card > div { padding: 12px 10px; }
.game-card h1 { margin: 0; color: var(--navy-dark); font: 700 18px/22px Mulish, sans-serif; }
.game-card p { margin: 4px 0 8px; color: var(--secondary); font-size: 11px; white-space: nowrap; }
.game-social { display: flex; align-items: center; gap: 6px; color: #9394a8; }
.game-social > small { font-size: 9px; }
.play-button { position: absolute; right: 14px; bottom: 16px; min-width: 56px; height: 28px; border: 0; border-radius: 14px; color: white; background: var(--navy); font-size: 11px; font-weight: 600; }
.play-button.played { background: #aca8bd; }

/* Trivia & Color Games */
.game-flow { min-height: 100dvh; padding-bottom: 0; }
.trivia-main { padding: 60px 24px 40px; }
.game-flow-head { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.game-flow-head h1 { margin: 0; text-align: center; font-size: 20px; font-weight: 600; color: var(--navy); }
.game-flow-head > span { font-size: 18px; color: var(--navy); font-weight: 600; }
.game-flow-head button, .color-game header button { justify-self: end; display: grid; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--navy); background: #efefff; place-items: center; font-size: 20px; }
.quiz-progress { height: 8px; margin: 24px 0 20px; overflow: hidden; border-radius: 4px; background: #e2e3e9; }
.quiz-progress span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #32156f, #c7baff); }
.question-card { position: relative; min-height: 480px; padding: 60px 20px 24px; border-radius: 24px; background: linear-gradient(135deg, #f2f1ff, #c7c4ee); box-shadow: 0 5px 10px rgba(38,30,88,.14); }
.timer { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border-radius: 20px; color: #0a234d; background: white; font-weight: 600; font-size: 13px; }
.question-card h2 { margin: 0 0 28px; color: #06214c; font: 700 20px/26px Mulish, sans-serif; }
.answers { display: grid; gap: 14px; }
.answers button { display: flex; width: 100%; height: 52px; align-items: center; justify-content: space-between; padding: 0 18px; border: 2px solid #e7e7e7; border-radius: 26px; color: #0a234d; background: white; font-size: 14px; text-align: left; }
.answers button i { display: grid; width: 22px; height: 22px; border: 2px solid #c1c7da; border-radius: 50%; place-items: center; font-style: normal; }
.answers button.correct { border-color: #08bdac; color: white; background: #08bdac; font-weight: 600; }
.answers button.correct i { border: 0; color: #08bdac; background: white; }
.answers button.wrong { border-color: #ea1674; color: white; background: #ea1674; }
.answers button.wrong i { border: 0; color: #ea1674; background: white; }

.result-header { display: flex; height: 56px; align-items: center; gap: 14px; padding: 0 20px; }
.result-header button { border: 0; background: transparent; font-size: 36px; line-height: 1; color: var(--navy); }
.result-header h1 { margin: 0; font-size: 20px; font-weight: 600; color: var(--navy); }
.results-main { display: grid; gap: 20px; padding: 10px 20px 40px; }
.score-card { padding: 24px 20px; text-align: center; background: linear-gradient(150deg, white 55%, #f0f1ff); }
.score-card h2 { margin: 0; color: #071f48; font: 700 36px/44px Mulish, sans-serif; }
.score-card p { color: #4d4c5d; line-height: 22px; font-size: 14px; }
.score-avatars { display: flex; justify-content: center; margin: 20px 0; }
.score-avatars img, .score-avatars small { width: 40px; height: 40px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.score-avatars img + img, .score-avatars small { margin-left: -7px; }
.score-avatars small { display: grid; background: #ECEEFF; place-items: center; }
.share-result, .back-games { width: 100%; height: 48px; border-radius: 24px; font-size: 15px; font-weight: 600; }
.share-result { border: 0; color: white; background: #ff646c; }
.back-games { margin-top: 10px; border: 1px solid #004bc6; color: var(--navy); background: transparent; }
.leaderboard { padding: 20px 16px; }
.leaderboard h2 { margin: 0 0 20px; color: #071f48; font: 700 22px/28px Mulish, sans-serif; }
.leader { display: grid; height: 56px; grid-template-columns: 28px 42px 1fr 32px; align-items: center; gap: 10px; padding: 0 12px; border-radius: 28px; }
.leader.you { background: #f0efff; }
.leader img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.leader strong { color: #07214b; font-size: 14px; }
.leader b { color: var(--navy); font-size: 20px; }

/* Color Game */
.color-game { padding: 60px 24px 40px; }
.color-game header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.color-game header h1 { margin: 0; font-size: 20px; font-weight: 600; }
.color-start, .color-picker, .color-result { position: relative; display: block; width: 100%; height: 540px; overflow: hidden; border: 0; border-radius: 22px; background: #28758b; box-shadow: 0 5px 10px rgba(0,0,0,.14); }
.color-picker { display: grid; grid-template-columns: 72px 36px 1fr; }
.color-picker label { position: relative; }
.hue-strip, .shade-strip { position: absolute; inset: 0; }
.hue-strip { background: linear-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); }
.shade-strip { background: linear-gradient(#438ce5,#000); }
.color-picker input { position: absolute; z-index: 2; top: 0; left: 50%; width: 500px; margin: 0; transform: translate(-50%, 25px) rotate(90deg); transform-origin: center; }
.chosen-color { background: #527db8; }
.color-next { position: absolute; right: 18px; bottom: 18px; display: grid; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--navy); background: white; place-items: center; font-size: 28px; }
.color-result { display: grid; grid-template-rows: 1fr 1fr; }
.color-result > div { padding: 22px; color: white; background: #527db8; }
.color-result strong { font-size: 48px; font-weight: 400; }
.color-result p { font-size: 15px; }
.color-result > span { background: #28758b; }

/* ==========================================================================
   15. SOCIAL SCREEN
   ========================================================================== */
.social-main { display: grid; gap: 20px; padding: 14px 20px 120px; }
.social-main > section { min-width: 0; }
.social-title h2, .social-heading { margin: 0; color: var(--navy-dark); font: 700 18px/24px Mulish, sans-serif; }
.social-community-scroll { display: flex; gap: 10px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.social-community-scroll::-webkit-scrollbar { display: none; }
.community-card { position: relative; display: grid; min-height: 122px; grid-template-columns: 96px minmax(0,1fr); overflow: hidden; cursor: pointer; }
.community-card > img { width: 96px; height: 122px; object-fit: cover; }
.community-card > div { min-width: 0; padding: 14px 12px; }
.community-card h3 { margin: 0; color: #071f48; font-size: 13px; font-weight: 700; }
.community-card p { margin: 4px 0 8px; color: #53556a; font-size: 11px; }
.community-meta { display: flex; align-items: center; gap: 6px; color: #85879b; }
.community-meta > small { font-size: 9px; }
.community-card .see-btn { position: absolute; right: 12px; bottom: 14px; min-width: 58px; height: 26px; border: 0; border-radius: 13px; color: white; background: var(--navy); font-size: 10px; font-weight: 600; }
.community-card.compact { flex: 0 0 320px; }

.activities-card { padding: 16px; }
.activities-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.activities-head strong { color: #071f48; font-size: 13px; font-weight: 700; }
.cal-icon { width: 18px; height: 18px; }
.week-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 12px; }
.week-row span { position: relative; display: grid; gap: 4px; color: #45475b; text-align: center; font-size: 11px; }
.week-row b { display: grid; width: 26px; height: 26px; margin: auto; border-radius: 50%; place-items: center; font-weight: 500; font-size: 12px; }
.week-row span.active b { color: white; background: #6551FF; font-weight: 700; }
.cal-dot { display: block; width: 4px; height: 4px; margin: 2px auto 0; border-radius: 50%; background: #FF5D68; }
.activities-divider { height: 2px; margin: 8px 0 14px; background: linear-gradient(90deg, #FF5D68, #6551FF); border-radius: 1px; }
.upcoming-events-title { margin: 0 0 10px; color: var(--navy); font-size: 13px; font-weight: 700; }
.activity { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; }
.date { display: grid; width: 48px; height: 50px; align-content: center; border-radius: 8px; color: #ff5d68; background: #ffe6e8; text-align: center; }
.date small { font-size: 9px; font-weight: 700; }
.date b { font-size: 20px; font-weight: 700; }
.activity strong { display: block; color: #071f48; font-size: 13px; line-height: 18px; }
.activity small { display: block; color: #59637a; font-size: 11px; line-height: 16px; }
.activity-join-btn { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 11px; }

/* Commencers Ask Stacked Card */
.stacked-ask-wrap { position: relative; margin-top: 8px; }
.stacked-shadow {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 20px;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}
.shadow-1 { bottom: -6px; z-index: 1; transform: scaleX(.96); opacity: .8; }
.shadow-2 { bottom: -12px; z-index: 0; transform: scaleX(.92); opacity: .6; }
.ask-preview { position: relative; z-index: 2; padding: 16px; cursor: pointer; }
.ask-preview header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ask-preview header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ask-preview header strong { display: block; color: var(--navy-dark); font-size: 12px; }
.ask-preview header small { display: block; color: #59637a; font-size: 10px; }
.ask-preview time { margin-left: auto; color: #7b7c8d; font-size: 9px; }
.ask-preview p { margin: 0 0 12px; color: var(--navy-dark); font-size: 14px; line-height: 20px; }
.ask-preview footer { display: flex; align-items: center; justify-content: space-between; }
.ask-preview footer small { color: #77798b; font-size: 11px; }
.answer-btn { height: 30px; padding: 0 14px; border: 0; border-radius: 15px; color: white; background: var(--navy); font-size: 11px; font-weight: 600; }
.ask-question-btn { margin-top: 24px; height: 48px; }

/* Recommended People */
.recommended-scroll { display: flex; gap: 12px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.recommended-scroll::-webkit-scrollbar { display: none; }
.recommended { display: flex; min-width: 270px; flex: 0 0 270px; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(195,198,214,.3); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.recommended img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.recommended span { flex: 1; }
.recommended strong { display: block; color: #071f48; font-size: 14px; }
.recommended small { display: block; color: var(--secondary); font-size: 12px; }
.recommended button { display: grid; width: 36px; height: 36px; flex: 0 0 36px; border: 0; border-radius: 50%; color: #6551FF; background: #ECEEFF; place-items: center; }

/* ==========================================================================
   16. COMMUNITIES LIST & ASKS LIST SCREEN
   ========================================================================== */
.communities-main { padding: 16px 20px 120px; }
.community-list { display: grid; gap: 16px; margin-top: 16px; }

.asks-main { padding: 16px 20px 120px; }
.asks-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.asks-tabs button { flex: 1; height: 36px; border: 0; border-radius: 18px; color: #6551FF; background: #ECEEFF; font-size: 12px; font-weight: 500; white-space: nowrap; }
.asks-tabs button.active { color: white; background: #6551FF; font-weight: 600; }
.ask-post { padding: 16px; margin-bottom: 14px; }
.ask-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ask-post header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ask-post header strong { display: block; color: var(--navy-dark); font-size: 13px; }
.ask-post header small { display: block; color: #59637a; font-size: 10px; }
.ask-post p { margin: 10px 0; color: #282836; font-size: 14px; line-height: 19px; }
.ask-image { display: block; width: 100%; height: 140px; margin-top: 10px; border-radius: 8px; object-fit: cover; }
.ask-post footer { display: flex; gap: 20px; padding-top: 10px; border-top: 1px solid #eeeef4; }
.ask-post footer button { border: 0; color: #35384a; background: transparent; font-size: 13px; }
.ask-post footer button.liked { color: var(--pink); }

/* Toast */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 40px);
  padding: 12px 20px;
  border-radius: 24px;
  color: white;
  background: #17102e;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .25s ease;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Animations */
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%, -47%) scale(.96); } }

/* Desktop Frame Wrapper */
@media (min-width: 700px) {
  body { display: grid; min-height: 100vh; place-items: center; padding: 38px 0; }
  .app-shell {
    width: 393px;
    height: 852px;
    min-height: 852px;
    overflow: hidden;
    border-radius: 50px;
    outline: 10px solid #1c1c1e;
    box-shadow: 0 28px 80px rgba(15,13,30,.32), 0 0 0 12px #55565b;
    overscroll-behavior: contain;
    transform: translateZ(0);
  }
  .screen { height: 852px; min-height: 852px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
  .screen::-webkit-scrollbar { display: none; }
  .status-bar { position: relative; }
  .profile-status-bar { position: sticky; z-index: 21; top: 0; background: var(--surface); }
  .status-bar::after { position: absolute; z-index: 80; top: 9px; left: 50%; width: 110px; height: 29px; border-radius: 18px; background: #050505; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); content: ""; pointer-events: none; transform: translateX(-50%); }
  .bottom-nav { position: absolute; right: 24px; left: 24px; }
  .fab-btn { position: absolute; right: 20px; bottom: 120px; }
  .footer-action { right: 15px; left: 15px; }
  .create-footer { right: 0; left: 0; }
  .scrim { right: 0; left: 0; }
  .bottom-sheet { right: 0; bottom: 0; left: 0; border-radius: 24px 24px 50px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
