/*
 * Commencis Intern Space - Desktop Web Design System
 * Section 1 Figma node 2385-30414 implementation.
 * Pure Vanilla CSS with modern aesthetics, glassmorphism & responsive layouts.
 */

:root {
  --primary-navy: #211551;
  --primary-deep: #160c38;
  --primary-purple: #6551ff;
  --primary-light-purple: #7a68ff;
  --accent-coral: #ff6b6b;
  --accent-pink: #fd79a8;
  --accent-cyan: #00d2d3;
  --bg-app: #f7f7fc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e8e8f3;
  --border-active: #6551ff;
  --text-main: #1d1b26;
  --text-secondary: #64607d;
  --text-muted: #9592ad;
  --success-green: #10b981;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(33, 21, 81, 0.04);
  --shadow-md: 0 6px 20px rgba(33, 21, 81, 0.06);
  --shadow-lg: 0 12px 36px rgba(33, 21, 81, 0.1);
  --sidebar-w: 260px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease-in-out;
}

/* Surface Cards & Containers */
.surface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.surface-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #dcdcf0;
}

/* Common Buttons */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #34227c 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(33, 21, 81, 0.2);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 21, 81, 0.28);
  background: linear-gradient(135deg, #2b1b69 0%, #442d99 100%);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0f0fa;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.secondary-btn:hover {
  background: #e4e4f5;
  border-color: #d0d0eb;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.ghost-btn:hover {
  background: rgba(101, 81, 255, 0.08);
}

.link-btn {
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--primary-light-purple);
}

/* Badges & Pills */
.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-count {
  background: #edf7ee;
  color: var(--success-green);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #c9ebd0;
}

.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.news-pill {
  background: #eef2ff;
  color: #4f46e5;
}

.community-pill {
  background: #fdf2f8;
  color: #db2777;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-sublabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.text-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(101, 81, 255, 0.15);
}

.textarea-input {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.select-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364607d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

/* Segmented Control */
.segmented-control {
  display: inline-flex;
  background: #edeef6;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.segment-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.segment-btn:hover {
  color: var(--text-main);
}

.segment-btn.active {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 2px 6px rgba(33, 21, 81, 0.08);
}

/* Avatar Stack */
.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  object-fit: cover;
}

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

.avatar-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0fa;
  border: 2px solid #ffffff;
  margin-left: -8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Toast Component */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(33, 21, 81, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 45, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0fa;
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #e2e2f3;
  color: var(--text-main);
}

/* =============================================================
   APPLICATION SHELL: SIDEBAR & TOPBAR
   ============================================================= */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-img {
  width: 38px;
  height: auto;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
}

.brand-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}

.side-nav button img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.side-nav button:hover {
  background: #f4f4fc;
  color: var(--text-main);
}

.side-nav button:hover img {
  opacity: 1;
}

.side-nav button.active {
  background: #eceafc;
  color: var(--primary-navy);
  font-weight: 700;
}

.side-nav button.active img {
  opacity: 1;
}

.sidebar-spacer {
  flex: 1;
}

.side-cta-wrapper {
  padding: 12px 4px;
}

.side-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-purple) 0%, #4f39f6 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(101, 81, 255, 0.3);
}

.side-cta:hover {
  background: linear-gradient(135deg, #7462ff 0%, #5d48fa 100%);
  transform: translateY(-1px);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f7fc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.18s;
}

.sidebar-user-card:hover {
  background: #eeeeff;
  border-color: #d8d8f2;
}

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

.side-user-meta {
  flex: 1;
}

.side-user-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.side-user-meta small {
  font-size: 11px;
  color: var(--text-muted);
}

.side-user-arrow {
  color: var(--text-muted);
  font-size: 16px;
}

.sidebar-footer {
  padding: 14px 6px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
}

/* Topbar */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(247, 247, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.topbar-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.crumb {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.crumb a {
  color: var(--primary-purple);
}

.crumb a:hover {
  text-decoration: underline;
}

.topbar-heading h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.01em;
}

.topbar-heading p {
  font-size: 13px;
  color: var(--text-secondary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.office-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf7ee;
  border: 1px solid #c8ead0;
  color: #15803d;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
}

.office-chip.remote {
  background: #f3f0ff;
  border-color: #dcd3fc;
  color: #6b21a8;
}

.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bell:hover {
  background: #f7f7fc;
  border-color: #dcdcf0;
}

.bell-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--accent-coral);
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.topbar-profile:hover {
  border-color: #dcdcf0;
}

.topbar-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-profile-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.topbar-profile-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.content-body {
  padding: 32px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  width: 100%;
}

/* =============================================================
   1. SPLASH SCREEN
   ============================================================= */
.splash-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #f9f9ff 0%, #eeefff 100%);
  padding: 60px 20px 40px;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: auto;
}

.splash-logo-wrap {
  margin-bottom: 24px;
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.splash-logo {
  width: 130px;
  height: auto;
}

.splash-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.splash-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.splash-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.splash-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

.splash-footer {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================================
   2. LOGIN SCREEN
   ============================================================= */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5fc 0%, #e9eaf8 100%);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 44px 36px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-header {
  margin-bottom: 32px;
}

.login-logo {
  width: 90px;
  height: auto;
  margin-bottom: 16px;
}

.login-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  margin-top: 8px;
}

.login-footer {
  margin-top: 24px;
}

/* =============================================================
   3. ONBOARDING WIZARD
   ============================================================= */
.onboarding-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5fc 0%, #e8e9f8 100%);
  padding: 24px;
}

.onboarding-container {
  width: 100%;
  max-width: 520px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.onboarding-top {
  margin-bottom: 32px;
}

.onboarding-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.onboarding-step-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-purple);
}

.onboarding-skip-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.onboarding-skip-btn:hover {
  color: var(--text-main);
}

.onboarding-progress-bar {
  width: 100%;
  height: 6px;
  background: #e6e6f5;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff5a5f 0%, #6c5ce7 50%, #fd79a8 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.onboarding-step-body {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-question {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.location-btn:hover {
  text-decoration: underline;
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =============================================================
   4. ONBOARDING CHECKLIST
   ============================================================= */
.checklist-page-grid {
  max-width: 860px;
}

.checklist-hero-card {
  padding: 32px 36px;
}

.checklist-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.checklist-hero-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 6px;
}

.checklist-hero-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.meter-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-purple) 0% 66%, #e6e6f5 66% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.meter-circle span {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
}

.checklist-items-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
}

.checklist-action-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-purple);
}

.checklist-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checklist-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #f0f0fa;
  color: var(--primary-purple);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-action-card.is-done .checklist-icon-box {
  background: #eef9f0;
  color: var(--success-green);
  font-weight: 700;
}

.checklist-card-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.checklist-card-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.checklist-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist-status-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.checklist-status-badge.completed {
  background: #eef9f0;
  color: var(--success-green);
}

.checklist-status-badge.pending {
  background: #f0f0fa;
  color: var(--primary-purple);
}

.checklist-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

/* =============================================================
   5. HOME PAGE & PULSE
   ============================================================= */
.home-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
}

.section-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.pulse-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pulse-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  min-height: 160px;
}

.pulse-card:hover {
  transform: translateY(-2px);
}

.pulse-card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pulse-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.pulse-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.pulse-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.time-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.progress-bar-thin {
  flex: 1;
  height: 6px;
  background: #e8e8f3;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-purple);
  border-radius: var(--radius-full);
}

.pulse-percent {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-navy);
}

.link-btn-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-purple);
  margin-top: 12px;
}

/* Two-column layout on Home */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-indicator-dot.online {
  background: var(--success-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.availability-panel, .breakout-preview-panel {
  padding: 24px;
}

.work-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.work-mode-btn {
  padding: 12px;
  background: #f0f0fa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.work-mode-btn.active {
  background: #ffffff;
  border-color: var(--primary-purple);
  color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(101, 81, 255, 0.12);
}

.availability-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
}

.avail-icon {
  font-size: 20px;
}

.avail-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.avail-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.breakout-live-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-room-card {
  padding: 16px;
  background: #f9f9fc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s;
}

.live-room-card:hover {
  background: #ffffff;
  border-color: var(--primary-purple);
  transform: translateX(3px);
}

.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.live-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--success-green);
  text-transform: uppercase;
}

.room-time {
  font-size: 11px;
  color: var(--text-muted);
}

.text-warning {
  color: var(--warning-amber) !important;
  font-weight: 600;
}

.live-room-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.live-room-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.live-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.join-room-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-purple);
  padding: 4px 10px;
  background: #eef2ff;
  border-radius: var(--radius-full);
}

/* MeetUp Section */
.meetup-section {
  padding: 28px;
}

.meetup-head {
  margin-bottom: 20px;
}

.search-wrap {
  position: relative;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  opacity: 0.5;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: #f7f7fc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary-purple);
}

.colleague-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.colleague-card {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.colleague-avatar-wrap {
  position: relative;
  margin-bottom: 10px;
}

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

.colleague-status-pill {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.colleague-status-pill.office {
  background: #dcfce7;
  color: #15803d;
}

.colleague-status-pill.remote {
  background: #f3e8ff;
  color: #7e22ce;
}

.colleague-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.colleague-info small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.meetup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0fa;
  color: var(--primary-purple);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.meetup-btn:hover {
  background: var(--primary-purple);
  color: #ffffff;
}

.meetup-btn img {
  width: 14px;
}

/* Roulette Banner */
.roulette-banner {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2b1b69 0%, #442d99 100%);
  color: #ffffff;
  cursor: pointer;
}

.roulette-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.roulette-icon {
  font-size: 36px;
}

.roulette-left h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}

.roulette-left p {
  font-size: 13px;
  color: #d1c9ff;
}

.roulette-cta {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.roulette-cta:hover {
  background: #f0f0fa;
  color: var(--primary-purple);
}

/* =============================================================
   6. MATCH MODAL
   ============================================================= */
.match-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.match-header {
  margin-bottom: 24px;
}

.match-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 10px;
  margin-bottom: 6px;
}

.match-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.match-person-card {
  padding: 20px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.match-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.match-meta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
}

.match-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag-chip {
  font-size: 11px;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.match-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-forward-btn {
  width: 100%;
  padding: 12px;
}

.match-forward-btn img {
  width: 18px;
}

/* =============================================================
   7. CREATE ROOM PAGE
   ============================================================= */
.create-room-layout {
  max-width: 680px;
}

.create-room-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.duration-pills-row, .time-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.duration-pill, .time-btn {
  padding: 9px 16px;
  background: #f0f0fa;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.duration-pill.active, .time-btn.active {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: #ffffff;
}

.invite-info-box {
  padding: 16px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.groups-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.group-select-card {
  padding: 14px;
  background: #f9f9fc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.group-select-card:hover {
  border-color: #c9c9ea;
}

.group-select-card.active {
  background: #f0edff;
  border-color: var(--primary-purple);
}

.group-select-card strong {
  display: block;
  font-size: 13px;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.group-select-card small {
  font-size: 11px;
  color: var(--text-muted);
}

.people-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.person-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f7f7fc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.person-checkbox-item.checked {
  background: #eceafc;
  border-color: var(--primary-purple);
}

.create-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  margin-top: 8px;
}

/* =============================================================
   8. BREAKOUT ZONE / ROOMS PAGE
   ============================================================= */
.rooms-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rooms-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rooms-heading-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rooms-heading-left h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.room-full-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  cursor: pointer;
}

.room-full-card:hover {
  transform: translateY(-2px);
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.live-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.live-pill.live {
  background: #dcfce7;
  color: #15803d;
}

.live-pill.danger {
  background: #fef3c7;
  color: #b45309;
}

.live-pill.closed {
  background: #f1f5f9;
  color: #64748b;
}

.room-time-text {
  font-size: 12px;
  color: var(--text-muted);
}

.room-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.room-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.room-host-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.room-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-action-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.room-action-btn.join-btn {
  background: var(--primary-navy);
  color: #ffffff;
}

.room-action-btn.see-btn {
  background: #f0f0fa;
  color: var(--text-secondary);
}

/* =============================================================
   9. PARTICIPANTS & ROOM DETAILS
   ============================================================= */
.participants-page-layout {
  max-width: 760px;
}

.participants-hero-card {
  padding: 36px;
}

.room-status-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-not-live {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-host {
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.participants-hero-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.room-sub-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.meeting-details-box {
  padding: 20px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.meeting-details-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.meeting-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cell-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-cell strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-navy);
}

.participants-section {
  margin-bottom: 32px;
}

.part-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.part-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
}

.participants-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.participant-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.participant-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.participant-chip strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.participant-chip small {
  font-size: 11px;
  color: var(--text-muted);
}

.teams-start-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.teams-start-btn img {
  width: 20px;
}

/* Teams Modal */
.teams-modal {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
}

.teams-modal-icon {
  margin-bottom: 16px;
}

.teams-modal-icon img {
  width: 52px;
  height: auto;
}

.teams-modal h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.teams-modal p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.teams-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =============================================================
   10. HUB TEMPLATE (FEED & SOURCES)
   ============================================================= */
.hub-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hub-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-chip {
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-chip.active {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
}

.hub-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
}

.feed-post-card {
  padding: 24px;
}

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

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

.post-meta {
  flex: 1;
}

.post-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.post-meta small {
  font-size: 12px;
  color: var(--text-muted);
}

.post-category-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-purple);
  background: #f0edff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.post-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 14px;
}

.post-attachment {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.post-action-btn:hover {
  color: var(--primary-navy);
}

.post-action-btn.liked {
  color: var(--accent-coral);
}

/* Hub Sources */
.hub-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.source-section-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.source-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 8px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s;
}

.quick-link-item:hover {
  background: #eeeeff;
  color: var(--primary-purple);
}

.quick-link-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.podcast-feature-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #f9f9fc;
  border-radius: var(--radius-md);
}

.podcast-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.podcast-info .subhead {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-purple);
  text-transform: uppercase;
}

.podcast-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 4px 0 10px;
}

.listen-btn {
  padding: 6px 14px;
  font-size: 12px;
}

.report-card {
  padding: 18px;
  background: #f9f9fc;
  border-radius: var(--radius-md);
}

.report-tag {
  font-size: 11px;
  font-weight: 700;
  color: #db2777;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.report-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.report-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.blog-e-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.blog-preview, .ebook-preview {
  padding: 16px;
  background: #f9f9fc;
  border-radius: var(--radius-md);
}

.blog-preview .subhead, .ebook-preview .subhead {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-purple);
  display: block;
  margin-bottom: 4px;
}

.blog-preview h4, .ebook-preview h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.blog-preview small, .ebook-preview small {
  font-size: 11px;
  color: var(--text-muted);
}

/* =============================================================
   11. GAMES HUB & TRIVIA
   ============================================================= */
.games-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.game-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: #f0edff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-wrap img {
  width: 36px;
  height: 36px;
}

.game-meta {
  flex: 1;
}

.game-meta h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.game-meta p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.game-played-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.play-game-btn {
  padding: 9px 22px;
}

/* Trivia Game Layout */
.trivia-play-layout {
  max-width: 680px;
}

.trivia-box {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trivia-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.trivia-q-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.trivia-header-row h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
}

.trivia-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}

.trivia-question-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.4;
}

.trivia-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trivia-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f9f9fc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
}

.trivia-option-btn:hover:not([disabled]) {
  background: #f0edff;
  border-color: var(--primary-purple);
}

.trivia-option-btn.correct {
  background: #ecfdf5;
  border-color: var(--success-green);
  color: #065f46;
}

.trivia-option-btn.incorrect {
  background: #fef2f2;
  border-color: var(--danger-red);
  color: #991b1b;
}

.opt-check {
  font-size: 13px;
  font-weight: 700;
  color: var(--success-green);
}

.opt-cross {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger-red);
}

.trivia-next-action {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Trivia Results */
.trivia-results-layout {
  max-width: 680px;
}

.results-hero-card {
  padding: 36px;
  text-align: center;
}

.results-hero-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 12px 0 4px;
}

.results-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.results-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.leaderboard-card {
  padding: 24px;
  text-align: left;
}

.leaderboard-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

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

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f9f9fc;
  border-radius: var(--radius-md);
}

.leaderboard-row.is-you {
  background: #eceafc;
  border: 1.5px solid var(--primary-purple);
}

.rank-badge {
  width: 24px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-navy);
}

.rank-1 .rank-badge {
  color: #eab308;
}

.leader-name {
  flex: 1;
}

.leader-name strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.leader-name small {
  font-size: 11px;
  color: var(--text-muted);
}

.leader-pts {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
}

/* Color Guessing Game */
.color-game-layout {
  max-width: 540px;
}

.color-game-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.color-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-game-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
}

.color-target-display {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-countdown-overlay {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.timer-large {
  font-size: 38px;
  font-weight: 800;
  display: block;
}

.color-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.slider-group input {
  width: 100%;
}

.color-score-feedback {
  padding: 16px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  text-align: center;
}

.score-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  display: block;
}

.color-score-feedback p {
  font-size: 13px;
  color: var(--text-secondary);
}

.color-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =============================================================
   12. SOCIAL & COMMUNITIES
   ============================================================= */
.social-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.communities-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.community-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.comm-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.comm-info {
  flex: 1;
}

.comm-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.comm-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.comm-members {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.comm-action-btn {
  padding: 6px 16px;
  font-size: 12px;
}

.activity-calendar-panel {
  padding: 24px;
}

.week-days-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.day-pill {
  flex: 1;
  padding: 12px 6px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-pill span {
  font-size: 11px;
  color: var(--text-muted);
}

.day-pill strong {
  font-size: 16px;
  color: var(--text-main);
}

.day-pill.active {
  background: var(--primary-purple);
  color: #ffffff;
}

.day-pill.active span, .day-pill.active strong {
  color: #ffffff;
}

.upcoming-event-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #f9f9fc;
  border-radius: var(--radius-md);
}

.event-date-badge {
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.event-date-badge span {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-purple);
  display: block;
}

.event-date-badge strong {
  font-size: 18px;
  color: var(--primary-navy);
}

.event-details {
  flex: 1;
}

.event-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.event-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

.asks-preview-panel {
  padding: 24px;
}

.asks-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ask-card {
  padding: 20px;
}

.ask-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ask-author-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.ask-author-meta small {
  font-size: 11px;
  color: var(--text-muted);
}

.ask-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 12px;
}

.ask-highlight-answer {
  padding: 12px 14px;
  background: #f7f7fc;
  border-left: 3px solid var(--primary-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.answered-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 2px;
  display: block;
}

.ask-highlight-answer p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ask-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recommended-panel {
  padding: 24px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rec-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
}

.rec-person-card div {
  flex: 1;
}

.rec-person-card strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.rec-person-card small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Communities Dedicated Page */
.communities-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comm-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comm-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.community-full-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comm-cover-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.comm-card-body {
  padding: 18px;
}

.comm-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.comm-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.comm-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.comm-card-foot {
  padding: 0 18px 18px;
}

.comm-btn {
  width: 100%;
}

/* Community Detail */
.community-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
}

.community-hero-banner {
  overflow: hidden;
  position: relative;
}

.hero-cover-wrap {
  position: relative;
  height: 220px;
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 21, 81, 0.2) 0%, rgba(33, 21, 81, 0.8) 100%);
}

.hero-info-content {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
  color: #ffffff;
}

.hero-info-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-info-content p {
  font-size: 14px;
  color: #e5e3ff;
  max-width: 640px;
  line-height: 1.5;
}

.members-scroll-section {
  padding: 20px 24px;
}

.members-scroll-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.members-horizontal-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.invite-member-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  height: 76px;
  border: 1.5px dashed var(--primary-purple);
  border-radius: var(--radius-md);
  color: var(--primary-purple);
  font-size: 11px;
  font-weight: 600;
}

.member-avatar-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.member-avatar-chip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.member-avatar-chip span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.comm-events-panel {
  padding: 24px;
}

/* =============================================================
   13. COMMENCERS ASK STANDALONE
   ============================================================= */
.asks-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}

.asks-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ask-full-card {
  padding: 24px;
}

.ask-full-copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 14px 0 20px;
}

.ask-answers-thread {
  padding: 16px;
  background: #f7f7fc;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.ask-answers-thread h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.answer-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.answer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.answer-item.is-highlight {
  background: #f0edff;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
}

.answer-header strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.answer-header small {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

.answer-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.ask-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ask-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ask-reply-box {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 440px;
}

.reply-input {
  padding: 8px 14px;
  font-size: 13px;
}

.reply-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* =============================================================
   14. NOTIFICATIONS
   ============================================================= */
.notifs-layout {
  max-width: 720px;
}

.notifs-header-row {
  margin-bottom: 20px;
}

.notifs-list {
  padding: 12px 24px;
}

.notif-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-item-card:last-child {
  border-bottom: none;
}

.notif-text {
  flex: 1;
}

.notif-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.notif-title-row strong {
  font-size: 14px;
  color: var(--text-main);
}

.notif-title-row small {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.notif-meta-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-purple);
  margin-top: 4px;
  display: inline-block;
}

.notif-action-group {
  display: flex;
  gap: 8px;
}

.notif-btn {
  padding: 6px 14px;
  font-size: 12px;
}

.unread-count-badge {
  width: 20px;
  height: 20px;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   15. PROFILE PAGE
   ============================================================= */
.profile-layout {
  max-width: 780px;
}

.profile-card {
  padding: 36px;
}

.profile-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.profile-hero-meta .subhead {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-hero-meta h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 2px 0;
}

.role-highlight {
  font-size: 14px;
  color: var(--primary-purple);
  font-weight: 600;
  margin-bottom: 6px;
}

.badge-status-pill {
  font-size: 11px;
  font-weight: 600;
  background: #f0f0fa;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-form-grid .full-width {
  grid-column: 1 / -1;
}

/* =============================================================
   RESPONSIVE DESIGN (TABLETS & LAPTOPS)
   ============================================================= */
@media (max-width: 1180px) {
  .colleague-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .pulse-carousel {
    grid-template-columns: 1fr;
  }
  .home-two-col {
    grid-template-columns: 1fr;
  }
  .colleague-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-sources-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .comm-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
