/* ============================================================
   AYASC Enterprise Ecosystem — Master Design System
   Exact tokens from AYASC-Team-Sigma & Figma Prototype (Page 69:5241)
   Colors:
     Primary: #007AFF | Secondary: #5AC8FA | Cyan: #00C2FF / #2BC4F0
     Navy: #0F172A | Dark Card: #2A3F52 | Text: #1A2E3A / #1C1F26
     Gradients:
       Selection: ['#D6F0FA', '#B8E4F5', '#C5EAF7', '#D0EEF8']
       Signup: ['#E8F6FC', '#D0EDF8', '#C8EAF6']
       Dashboard: ['#a1d3ec', '#87bfdc', '#a1d3ec']
       Button: ['#2BC4F0', '#00A8E0']
   ============================================================ */

:root {
  --sigma-primary: #007AFF;
  --sigma-secondary: #5AC8FA;
  --sigma-cyan: #00C2FF;
  --sigma-cyan-btn-start: #2BC4F0;
  --sigma-cyan-btn-end: #00A8E0;
  --sigma-navy: #0F172A;
  --sigma-navy-box: #2A3F52;
  --sigma-navy-title: #1A2E3A;
  --sigma-text-dark: #1C1F26;
  --sigma-muted: #64748B;
  --sigma-muted-blue: #4A6A7A;
  --sigma-subtle: #94A3B8;
  --sigma-border: #E2E8F0;
  --sigma-border-light: rgba(90, 200, 250, 0.25);
  --sigma-bg: #EBF7FF;
  --sigma-bg-splash: #C8EEF8;
  --sigma-card: #FFFFFF;
  --sigma-success: #34C759;
  --sigma-danger: #FF3B30;
  --sigma-warning: #FF9500;
  --sigma-purple: #7B6FE8;
  --sigma-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #0B0F17;
  color: var(--sigma-text-dark);
  font-family: var(--sigma-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ── Top Studio Toolbar ── */
.ayasc-web-toolbar {
  width: 100%;
  height: 60px;
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 194, 255, 0.6));
}

.toolbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-title {
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.toolbar-badge {
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.2), rgba(0, 122, 255, 0.2));
  color: #38BDF8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.4px;
}

.toolbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-label {
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-select {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 340px;
}

.toolbar-select:hover, .toolbar-select:focus {
  border-color: var(--sigma-cyan);
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.25);
}

.toolbar-select optgroup {
  background: #0F172A;
  color: #38BDF8;
  font-weight: 800;
  padding: 6px 0;
}

.toolbar-select option {
  background: #1E293B;
  color: #F8FAFC;
  font-weight: 500;
  padding: 6px 12px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-mode-btn {
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-mode-btn:hover {
  color: #FFFFFF;
  border-color: #475467;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, #00C2FF, #007AFF);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.4);
}

/* ── Main Viewport Container ── */
.app-viewport-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 40px;
}

/* Realistic iPhone 15 Pro Titanium Frame */
.web-prototype-viewport {
  width: 393px;
  height: 852px;
  background: #EBF7FF;
  border-radius: 54px;
  box-shadow:
    0 0 0 10px #1E232B,
    0 0 0 12px #333A44,
    0 0 0 13px #12161E,
    0 30px 90px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop Expanded Mode */
.web-prototype-viewport.desktop-mode {
  width: 100%;
  max-width: 1200px;
  height: 880px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px #334155,
    0 25px 80px rgba(0, 0, 0, 0.8);
}

.web-prototype-viewport.desktop-mode .ios-dynamic-island,
.web-prototype-viewport.desktop-mode .ios-status-bar {
  display: none !important;
}

/* Dynamic Island */
.ios-dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 35px;
  background: #000000;
  border-radius: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.island-camera {
  width: 11px;
  height: 11px;
  background: #111827;
  border-radius: 50%;
  border: 1px solid #1F2937;
}

.island-sensor {
  width: 11px;
  height: 11px;
  background: #0F172A;
  border-radius: 50%;
}

/* iOS Status Bar */
.ios-status-bar {
  width: 100%;
  height: 50px;
  padding: 14px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sigma-navy);
  z-index: 999;
  user-select: none;
}

.ios-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

/* ── Screen Lifecycle & Visibility ── */
.flow-screen {
  display: none !important;
  width: 100%;
  height: calc(100% - 50px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 110px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flow-screen::-webkit-scrollbar {
  display: none;
}

.flow-screen.active {
  display: block !important;
  animation: screenFadeIn 0.28s ease-out forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Standard Screen Header Bar ── */
.screen-header-bar {
  width: 100%;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
}

.screen-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sigma-navy-title);
  letter-spacing: -0.2px;
}

.header-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--sigma-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

.sigma-screen-content {
  padding: 0 20px 24px;
}

/* ── SCREEN 1: SPLASH SCREEN (Exact Team Sigma SplashScreen.js) ── */
.screen-splash {
  background: #C8EEF8 !important;
  height: 100% !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.screen-splash.active {
  display: flex !important;
}

.splash-glow-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-glow-ring {
  position: absolute;
  border-radius: 9999px;
  animation: splashPulse 2.4s infinite ease-in-out;
}

.splash-ring-1 {
  width: 380px;
  height: 380px;
  background: rgba(90, 200, 250, 0.18);
  animation-delay: 0s;
}

.splash-ring-2 {
  width: 320px;
  height: 320px;
  background: rgba(56, 189, 248, 0.28);
  animation-delay: 0.3s;
}

.splash-ring-3 {
  width: 260px;
  height: 260px;
  background: rgba(0, 194, 255, 0.38);
  animation-delay: 0.6s;
}

.splash-ring-4 {
  width: 210px;
  height: 210px;
  background: rgba(0, 122, 255, 0.48);
  animation-delay: 0.9s;
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

.splash-logo-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 10px 24px rgba(0, 122, 255, 0.3));
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(15, 23, 42, 0.15);
  border-top-color: #0F172A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 24px;
}

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

/* ── SCREEN 2: LOGIN SCREEN (Exact Team Sigma LoginScreen.js) ── */
.sigma-login-container {
  padding: 0 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sigma-login-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-top: 24px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(90, 200, 250, 0.35));
}

.sigma-role-tabs {
  width: 100%;
  background: #E2E8F0;
  border-radius: 16px;
  padding: 4px;
  display: flex;
  margin-bottom: 20px;
}

.role-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sigma-input-wrap {
  width: 100%;
  position: relative;
  margin-bottom: 14px;
}

.sigma-input {
  width: 100%;
  height: 54px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  padding: 0 20px 0 46px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #0F172A;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.sigma-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1rem;
}

.input-eye {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1.05rem;
  cursor: pointer;
}

.login-options-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 0.84rem;
  color: #334155;
}

/* Primary Navy Button (#0F172A) */
.btn-sigma-navy {
  width: 100%;
  height: 56px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-sigma-navy:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

/* Cyan Gradient Button (#2BC4F0 -> #00A8E0) */
.btn-gradient-cyan {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, #2BC4F0, #00A8E0);
  color: #FFFFFF;
  border-radius: 16px;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 168, 224, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-gradient-cyan:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 168, 224, 0.45);
}

.divider-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 24px 0;
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 600;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #CBD5E1;
}

.divider-row span {
  padding: 0 12px;
}

.social-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ── SCREEN 4: SELECTION SCREEN (Exact Team Sigma SelectionScreen.js) ── */
.selection-container {
  background: linear-gradient(135deg, #D6F0FA 0%, #B8E4F5 50%, #C5EAF7 75%, #D0EEF8 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.selection-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A2E3A;
  margin-bottom: 4px;
  text-align: center;
}

.selection-subtitle {
  font-size: 0.88rem;
  color: #4A6A7A;
  margin-bottom: 28px;
  text-align: center;
}

.dept-pill-btn {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(180, 215, 230, 0.55);
  border-radius: 30px;
  padding: 12px 18px;
  border: 1px solid rgba(90, 200, 250, 0.25);
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dept-pill-btn:hover {
  background: rgba(180, 215, 230, 0.85);
  transform: translateY(-1px);
}

.dept-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #2A3F52;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7B6FE8;
  font-size: 1.1rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.dept-label-text {
  flex: 1;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1A2E3A;
  letter-spacing: 0.2px;
}

.dept-chevron-arrow {
  color: #2A4A5A;
  font-size: 1rem;
}

/* ── Generic Clean Card Component ── */
.sigma-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.sigma-card:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

/* ── Chips Container (Team Sigma 17 Pain Points) ── */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.pain-chip {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #B8DCED;
  font-size: 0.82rem;
  font-weight: 500;
  color: #2A4A5A;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.pain-chip:hover {
  background: #FFFFFF;
}

.pain-chip.selected {
  background: #007AFF;
  border-color: #007AFF;
  color: #FFFFFF;
  font-weight: 600;
}

.pain-chip.selected::after {
  content: " ✓";
  margin-left: 6px;
  font-weight: 800;
}

/* ── Floating Bottom Navigation Capsule (Exact Team Sigma NavBar.js) ── */
.sigma-bottom-capsule {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 360px;
  height: 64px;
  background: rgba(76, 84, 95, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 9990;
}

.capsule-nav-item {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.capsule-nav-item:hover {
  color: #E5E7EB;
}

.capsule-nav-item.active {
  color: #00C2FF;
  filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.8));
}

.capsule-center-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C2FF, #007AFF);
  border: 3px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 194, 255, 0.65);
  transition: all 0.25s ease;
}

.capsule-center-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 194, 255, 0.8);
}

.capsule-center-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ── Chat Messages Stream ── */
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px;
  min-height: 280px;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.84rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.inbound {
  align-self: flex-start;
  background: #FFFFFF;
  color: #0F172A;
  border-bottom-left-radius: 4px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-bubble.outbound {
  align-self: flex-end;
  background: linear-gradient(135deg, #00C2FF, #007AFF);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  position: sticky;
  bottom: 0;
  z-index: 200;
}

.chat-input-field {
  flex: 1;
  height: 40px;
  background: #F1F5F9;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: 0 16px;
  font-size: 0.85rem;
  color: #0F172A;
  outline: none;
}

.btn-send-chat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007AFF;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-chat:hover {
  background: #0062CC;
  transform: scale(1.05);
}

/* ── Podium Styles (RankingScreen.js) ── */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 24px;
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.podium-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.podium-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.podium-avatar.winner {
  width: 88px;
  height: 88px;
  border-color: #F0B429;
}

.podium-avatar.runner {
  width: 72px;
  height: 72px;
}

.rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* ── Prototype Button Helpers ── */
.proto-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--sigma-border);
  background: #FFFFFF;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.proto-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-primary {
  background: #007AFF;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #0062CC;
}

.btn-outline {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid var(--sigma-border);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

/* ── Additional Team Sigma Rich Component Styles ── */

/* Invoice Components */
.invoice-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.invoice-badge-sent {
  background: #EBF7FF;
  color: #007AFF;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invoice-badge-draft {
  background: #F1F5F9;
  color: #64748B;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invoice-badge-paid {
  background: #ECFDF5;
  color: #10B981;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Chat & Messages Components */
.chat-row-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.chat-row-card:hover {
  transform: translateY(-1px);
  background: #FFFFFF;
}

.chat-bubble-user {
  background: #007AFF;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 80%;
  align-self: flex-end;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

.chat-bubble-peer {
  background: #FFFFFF;
  color: #1E293B;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 80%;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #E2E8F0;
}

.chat-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  color: #0284C7;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Ticket & Issue Components */
.ticket-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ticket-status-open {
  background: #FEF3C7;
  color: #D97706;
}

.ticket-status-resolved {
  background: #D1FAE5;
  color: #059669;
}

/* Resignation & Danger Alerts */
.danger-warning-card {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.danger-icon-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFE4E6;
  color: #E11D48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.2);
}

/* Sheet & Modal Overlays */
.sigma-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 20px 24px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #E2E8F0;
  z-index: 50;
}

.sheet-handle-bar {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Head Office Community Thread */
.community-thread-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reaction-chip.active {
  background: #EBF7FF;
  border-color: #007AFF;
  color: #007AFF;
}
