/* ============================================================================
   FLOTILLA DESIGN SYSTEM - PROTOTYPE CSS
   Directly mapped from Flotilla codebase design tokens (Clay Theme)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

:root {
  /* Default Theme: Clay Dark (Flotilla's iconic default) */
  --primary: #8e80ff;
  --primary-soft: #a394ff;
  --primary-bold: #7161ff;
  --primary-content: #ffffff;

  --secondary: #f47845;
  --secondary-soft: #f78d61;
  --secondary-bold: #eb5e28;
  --secondary-content: #ffffff;

  --success: #06d6a0;
  --success-content: #ffffff;
  --warning: #fd8d0b;
  --warning-content: #ffffff;
  --error: #ef476f;
  --error-content: #ffffff;

  --backdrop: #121019;
  --surface: #232032;
  --surface-more: #100e17;
  --surface-less: #1b1827;

  --content: #d7d2ea;
  --content-muted: #b4aed0;
  --content-subtle: #918aac;

  --line: #353050;
  --line-more: #4a4470;
  --line-less: #2a2640;

  --border-thin: 2px;
  --border-thick: 3px;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  --shadow-color: 0, 0, 0;
  --shadow-sm: 4px 4px 0 rgba(var(--shadow-color), 0.3);
  --shadow: 6px 6px 0 rgba(var(--shadow-color), 0.35);
  --shadow-lg: 8px 8px 0 rgba(var(--shadow-color), 0.4);
  --shadow-inset: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  --shadow-inset-strong: inset 0 -3px 0 rgba(0, 0, 0, 0.3);

  --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --primary: #7161ff;
  --primary-soft: #5a48f0;
  --primary-bold: #8e80ff;
  --primary-content: #ffffff;

  --secondary: #eb5e28;
  --secondary-soft: #f47845;
  --secondary-bold: #cf4f1d;
  --secondary-content: #ffffff;

  --success: #06d6a0;
  --success-content: #ffffff;
  --warning: #fd8d0b;
  --warning-content: #ffffff;
  --error: #ef476f;
  --error-content: #ffffff;

  --backdrop: #f7f5fd;
  --surface: #ffffff;
  --surface-more: #e0dbf1;
  --surface-less: #f3effc;

  --content: #17122e;
  --content-muted: #554d72;
  --content-subtle: #8d86a6;

  --line: #d3c7ff;
  --line-more: #b3a4ff;
  --line-less: #e5dcff;

  --shadow-color: 113, 97, 255;
  --shadow-sm: 4px 4px 0 rgba(var(--shadow-color), 0.1);
  --shadow: 6px 6px 0 rgba(var(--shadow-color), 0.12);
  --shadow-lg: 8px 8px 0 rgba(var(--shadow-color), 0.15);
  --shadow-inset: inset 0 -4px 0 rgba(0, 0, 0, 0.05);
  --shadow-inset-strong: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  background-color: var(--surface-less);
  color: var(--content);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-less);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-more);
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

.app-viewport {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--primary) 6%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--secondary) 5%, transparent) 0%, transparent 45%),
    var(--surface-less);
}

/* Header Navbar */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-thin) solid var(--line);
  z-index: 100;
  flex-shrink: 0;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--content);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--border-thin) solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--content);
  text-transform: lowercase;
}

.brand-title span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Usability Badge */
.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--content-muted);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface);
  border: var(--border-thin) solid var(--line);
  color: var(--content);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.theme-toggle-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

/* VIEWPORT SCREENS */
.screen {
  flex: 1;
  display: none;
  overflow: hidden;
  position: relative;
}

.screen.active {
  display: flex;
}

/* ============================================================================
   BUTTON SYSTEM (Primary, Secondary, Success, Back)
   ============================================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  height: 3.5rem;
  padding: 0 2rem;
  background-color: var(--primary);
  color: var(--primary-content);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-2xl);
  border: var(--border-thin) solid rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow), var(--shadow-inset-strong);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  user-select: none;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-bold);
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 rgba(var(--shadow-color), 0.35), var(--shadow-inset-strong);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 rgba(var(--shadow-color), 0.35), var(--shadow-inset-strong);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary Button (Clay Theme Style) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  color: var(--content);
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  user-select: none;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success Button (Clay Theme Style) */
.btn-success {
  background-color: var(--success) !important;
  color: var(--success-content) !important;
  border: var(--border-thin) solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: var(--shadow), var(--shadow-inset-strong) !important;
}

.btn-success:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--success) 85%, black) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow) !important;
}

/* Back Step Button */
.btn-back-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  color: var(--content-muted);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-back-step:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-back-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-primary:hover:not(:disabled) .btn-icon {
  transform: translateX(4px);
}

/* ============================================================================
   SCREEN 1: LANDING
   ============================================================================ */

.landing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  overflow-y: auto;
}

.hero-card {
  background-color: var(--surface);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  max-width: 680px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero-icon-wrapper {
  margin: 0 auto 1.5rem auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border: var(--border-thick) solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--content);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--content-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.feature-tagline {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--content-subtle);
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-tagline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-tagline svg {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}

/* ============================================================================
   SCREEN 2: CREATION WIZARD
   ============================================================================ */

.wizard-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.wizard-card {
  background-color: var(--surface);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
}

.wizard-header {
  padding: 1.5rem 2rem;
  border-bottom: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
}

.wizard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.wizard-title-row h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.wizard-steps-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 1rem;
}

.wizard-steps-tracker::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--line-less);
  z-index: 1;
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 20%;
}

.wizard-step-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--content-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.wizard-step-node.active .wizard-step-bullet {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-content);
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 50%, transparent);
}

.wizard-step-node.completed .wizard-step-bullet {
  border-color: var(--success);
  background-color: var(--success);
  color: var(--success-content);
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--content-subtle);
  text-align: center;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--primary);
}

.wizard-step-node.completed .wizard-step-label {
  color: var(--success);
}

.wizard-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.wizard-step-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.wizard-step-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--content);
}

.form-group input[type="text"], 
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--content);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.subdomain-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0 1rem;
  box-shadow: var(--shadow-inset);
}

.subdomain-input-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.85rem 0;
  outline: none;
  color: var(--content);
  font-size: 1rem;
}

.subdomain-suffix {
  color: var(--content-subtle);
  font-weight: 700;
  font-size: 0.9rem;
  user-select: none;
}

/* Avatar Preview Selector */
.icon-selection-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.avatar-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: var(--border-thick) solid var(--line);
  background-color: var(--surface-less);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-presets {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.avatar-preset-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.avatar-preset-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

.avatar-preset-btn.selected {
  border-color: var(--primary);
  border-width: var(--border-thick);
  box-shadow: 0 0 8px var(--primary);
}

.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Choice grids */
.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.choice-card {
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.choice-card:hover {
  border-color: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.choice-card.selected {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 6%, var(--surface-less));
  box-shadow: var(--shadow);
}

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

.choice-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin) solid var(--line);
}

.choice-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--content-muted);
}

.choice-card.selected .choice-card-icon svg {
  color: var(--primary);
}

.choice-card-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: var(--border-thin) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-card.selected .choice-card-checkbox {
  border-color: var(--primary);
  background-color: var(--primary);
}

.choice-card-checkbox svg {
  width: 12px;
  height: 12px;
  color: var(--primary-content);
  display: none;
}

.choice-card.selected .choice-card-checkbox svg {
  display: block;
}

.choice-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--content);
}

.choice-card-desc {
  font-size: 0.8rem;
  color: var(--content-muted);
  line-height: 1.4;
}

/* Pricing settings */
.pricing-options-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-tabs {
  display: flex;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.25rem;
  align-self: center;
}

.pricing-tab-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--content-muted);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-tab-btn.active {
  background-color: var(--primary);
  color: var(--primary-content);
}

.pricing-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.pricing-panel.active {
  display: flex;
}

.paid-settings-card {
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rate-inputs-row {
  display: flex;
  gap: 1rem;
}

.currency-input-box {
  display: flex;
  align-items: center;
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0 1rem;
  flex: 1;
}

.currency-input-box span {
  font-weight: 700;
  color: var(--content-subtle);
  margin-right: 0.5rem;
}

.currency-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 0;
  color: var(--content);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Screening Questions Row & Style Settings inputs */
.question-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.question-input-row input[type="text"] {
  flex: 1;
  padding: 0.85rem 1rem;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--content);
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s ease;
}

.question-input-row input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-remove-question, .btn-remove-settings-question {
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  color: var(--error);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-question:hover, .btn-remove-settings-question:hover {
  background-color: var(--error);
  color: var(--error-content);
  border-color: var(--error);
}

.btn-add-question {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-add-question:hover {
  color: var(--primary-soft);
  text-decoration: underline;
}

/* Console logs */
.terminal-console {
  background-color: #0c0a12;
  border: var(--border-thick) solid #1e1b29;
  border-radius: var(--radius-xl);
  font-family: 'Courier New', Courier, monospace;
  padding: 1.5rem;
  height: 250px;
  overflow-y: auto;
  color: #39ff14;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
  font-size: 0.9rem;
}

.terminal-line.success { color: var(--success); }
.terminal-line.info { color: var(--primary-soft); }
.terminal-line.warning { color: var(--warning); }

.wizard-footer {
  padding: 1.25rem 2rem;
  border-top: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================================
   SCREEN 3: WORKSPACE DASHBOARD (Flotilla Shell)
   ============================================================================ */

.workspace-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.primary-sidebar {
  width: 68px;
  background-color: var(--surface-more);
  border-right: var(--border-thin) solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
  flex-shrink: 0;
  justify-content: space-between;
}

.sidebar-top-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.space-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--line);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);
}

.space-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.space-icon-btn:hover {
  border-radius: var(--radius-xl);
  border-color: var(--primary);
  transform: scale(1.05);
}

.space-icon-btn.active {
  border-radius: var(--radius-xl);
  border-color: var(--primary);
  border-width: var(--border-thick);
}

.space-icon-btn.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 13px;
  width: 4px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 0 4px 4px 0;
}

.space-icon-btn-plus {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: var(--border-thin) dashed var(--line);
  background-color: transparent;
  color: var(--content-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}

.secondary-sidebar {
  width: 240px;
  background-color: var(--surface);
  border-right: var(--border-thin) solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.space-info-header {
  padding: 1.25rem 1rem;
  border-bottom: var(--border-thin) solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.space-header-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: var(--border-thin) solid var(--primary);
  object-fit: cover;
}

.space-header-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.space-header-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--content);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-header-domain {
  font-size: 0.75rem;
  color: var(--content-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.secondary-sidebar-nav {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--content-muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
}

.sidebar-nav-item:hover {
  background-color: var(--surface-less);
  color: var(--content);
}

.sidebar-nav-item.active {
  background-color: var(--surface-less);
  color: var(--primary);
  border-left: var(--border-thick) solid var(--primary);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
}

.sidebar-user-footer {
  padding: 1rem;
  border-top: var(--border-thin) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--primary);
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--content);
}

.sidebar-user-tag {
  font-size: 0.7rem;
  color: var(--content-subtle);
  font-weight: 700;
}

.btn-owner-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: var(--secondary);
  color: var(--secondary-content);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.dashboard-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--backdrop);
}

.panel-header {
  padding: 1.25rem 1.5rem;
  background-color: var(--surface);
  border-bottom: var(--border-thin) solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.panel-title-container {
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--content);
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--content-muted);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.dashboard-view {
  display: none;
  animation: fadeIn 0.25s ease;
  height: 100%;
}

.dashboard-view.active {
  display: flex;
}

/* ============================================================================
   FEED VIEW (💬 General Feed)
   ============================================================================ */

.feed-layout {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
}

.feed-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.feed-sidebar-col {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.feed-compose-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.feed-compose-input-row {
  display: flex;
  gap: 0.75rem;
}

.feed-compose-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--primary);
}

.feed-compose-textarea {
  flex: 1;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  color: var(--content);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  resize: none;
  height: 70px;
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s ease;
}

.feed-compose-textarea:focus { border-color: var(--primary); }

.feed-compose-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-post {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-content);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-post:hover {
  transform: translateY(-2px);
  background-color: var(--primary-bold);
  box-shadow: var(--shadow);
}

.feed-post-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

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

.feed-post-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--line);
}

.feed-post-author-meta {
  display: flex;
  flex-direction: column;
}

.feed-post-author-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--content);
}

.feed-post-time {
  font-size: 0.75rem;
  color: var(--content-subtle);
}

.member-level-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: var(--line-more);
  color: var(--content-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: var(--border-thin) solid var(--line);
}

.feed-post-body {
  font-size: 0.95rem;
  color: var(--content);
  line-height: 1.5;
  white-space: pre-wrap;
}

.feed-post-footer {
  border-top: 1px solid var(--line-less);
  padding-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
}

.btn-like, .btn-index-qa {
  background: transparent;
  border: none;
  color: var(--content-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-like:hover, .btn-like.liked { color: var(--secondary); }
.btn-index-qa:hover { color: var(--primary); }

.btn-like svg, .btn-index-qa svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.btn-like.liked svg { fill: var(--secondary); }

.leaderboard-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.leaderboard-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--content);
  border-bottom: var(--border-thin) solid var(--line);
  padding-bottom: 0.5rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.leaderboard-rank-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard-rank-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--content-subtle);
  width: 16px;
}

.leaderboard-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--line);
}

.leaderboard-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--content);
}

.leaderboard-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.leaderboard-score-xp {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

/* ============================================================================
   KNOWLEDGE LAYER / COMMUNITY MEMORY VIEW
   ============================================================================ */

.wiki-folder-btn.selected {
  border-color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 6%, var(--surface-less));
}

.wiki-article-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.wiki-article-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

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

.wiki-article-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--content);
}

.wiki-category-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
  color: var(--content-muted);
}

.wiki-article-snippet {
  font-size: 0.9rem;
  color: var(--content-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.wiki-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--content-subtle);
  border-top: 1px solid var(--line-less);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
}

.wiki-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================================
   CLASSROOM VIEW (📚 Classroom)
   ============================================================================ */

.classroom-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.owner-xp-bar-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.owner-xp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.owner-xp-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--content);
}

.owner-xp-desc {
  font-size: 0.8rem;
  color: var(--content-muted);
}

.owner-xp-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owner-xp-progress-bar-bg {
  height: 14px;
  background-color: var(--surface-less);
  border-radius: 9999px;
  overflow: hidden;
  border: var(--border-thin) solid var(--line);
  position: relative;
  box-shadow: var(--shadow-inset);
}

.owner-xp-progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 9999px;
}

.owner-xp-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--content-subtle);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.course-card-banner {
  height: 140px;
  background-color: var(--surface-less);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-gating-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 16, 25, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.course-card.locked .course-gating-overlay {
  opacity: 1;
  pointer-events: auto;
}

.lock-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--warning);
  color: var(--warning-content);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.lock-icon-badge svg {
  width: 22px;
  height: 22px;
}

.lock-gating-text {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--content);
}

.course-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.course-card-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--content);
}

.course-card-desc {
  font-size: 0.85rem;
  color: var(--content-muted);
  line-height: 1.4;
  flex: 1;
}

.course-card-footer {
  border-top: 1px solid var(--line-less);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-modules-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--content-subtle);
}

.btn-open-course {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
  color: var(--content);
  cursor: pointer;
}

/* ============================================================================
   CALENDAR VIEW (📅 Calendar)
   ============================================================================ */

.calendar-layout {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.calendar-grid-col {
  flex: 1;
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.calendar-month-title {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--content);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day-header {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--content-subtle);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-less);
  text-transform: uppercase;
}

.calendar-cell {
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line-less);
  border-radius: var(--radius-md);
  height: 80px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.calendar-cell.muted { opacity: 0.4; }

.calendar-day-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--content-muted);
}

.calendar-cell.today .calendar-day-num {
  color: var(--primary);
  background-color: color-mix(in srgb, var(--primary) 15%, transparent);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.calendar-event-indicator {
  background-color: var(--secondary);
  color: var(--secondary-content);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-top: 0.25rem;
}

.calendar-event-indicator.blue { background-color: var(--primary); }

.calendar-upcoming-col {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.upcoming-events-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.upcoming-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--content);
  border-bottom: var(--border-thin) solid var(--line);
  padding-bottom: 0.5rem;
}

.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 400px;
  overflow-y: auto;
}

.upcoming-event-item {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line-less);
  padding-bottom: 0.75rem;
}

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

.upcoming-date-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.upcoming-date-month {
  font-size: 0.6rem;
  color: var(--secondary);
  text-transform: uppercase;
}

.upcoming-date-day {
  font-size: 1rem;
  color: var(--content);
  line-height: 1;
}

.upcoming-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.upcoming-event-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--content);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-event-time {
  font-size: 0.75rem;
  color: var(--content-subtle);
}

/* Modals inputs */
.modal-form-overlay, .modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 16, 25, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-form-overlay.active, .modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-form-card, .modal-card {
  background-color: var(--surface);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-form-overlay.active .modal-form-card, .modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-form-header {
  padding: 1.25rem 1.5rem;
  border-bottom: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
}

.modal-form-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--content);
}

.modal-form-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-form-footer {
  padding: 1rem 1.5rem;
  border-top: var(--border-thin) solid var(--line);
  background-color: var(--surface-less);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ============================================================================
   SETTINGS & APPROVALS VIEW (⚙️ Space Settings)
   ============================================================================ */

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.settings-nav-tabs {
  display: flex;
  border-bottom: var(--border-thin) solid var(--line);
  gap: 1.5rem;
}

.settings-tab-btn {
  background: transparent;
  border: none;
  color: var(--content-muted);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.settings-tab-btn:hover { color: var(--content); }

.settings-tab-btn.active { color: var(--primary); }

.settings-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 9999px;
}

.settings-content-area {
  display: flex;
  flex-direction: column;
}

.settings-section-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.settings-section-panel.active {
  display: flex;
}

.settings-row-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.settings-row-title {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--content);
}

.settings-row-subtitle {
  font-size: 0.8rem;
  color: var(--content-subtle);
  margin-top: -0.25rem;
}

/* Applicants List */
.applicants-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.applicant-card {
  background-color: var(--surface);
  border: var(--border-thin) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.applicant-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.applicant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-thin) solid var(--line);
}

.applicant-meta {
  display: flex;
  flex-direction: column;
}

.applicant-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--content);
}

.applicant-pubkey {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--content-subtle);
}

.applicant-actions { display: flex; gap: 0.75rem; }

.btn-approve {
  background-color: var(--success);
  color: var(--success-content);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-approve:hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--success) 85%, black);
}

.btn-reject {
  background-color: var(--error);
  color: var(--error-content);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-reject:hover {
  transform: translateY(-2px);
  background-color: color-mix(in srgb, var(--error) 85%, black);
}

.applicant-answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--surface-less);
  border: var(--border-thin) solid var(--line-less);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.applicant-qa-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.applicant-question {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--content-subtle);
}

.applicant-answer {
  font-size: 0.9rem;
  color: var(--content);
  line-height: 1.4;
}

.no-applicants-box {
  background-color: var(--surface);
  border: var(--border-thin) dashed var(--line);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  text-align: center;
  color: var(--content-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.no-applicants-box svg {
  width: 48px;
  height: 48px;
  color: var(--line-more);
}

.pinned-alert-bar {
  background-color: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border: var(--border-thin) solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.pinned-alert-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

.pinned-alert-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.pinned-alert-text {
  font-size: 0.85rem;
  color: var(--content);
  line-height: 1.4;
}

.pinned-alert-text strong { color: var(--primary-soft); }

.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--content-subtle);
  border-top: var(--border-thin) solid color-mix(in srgb, var(--line) 50%, transparent);
}

/* Media Adjustments */
@media (max-width: 768px) {
  .feed-layout, .calendar-layout { flex-direction: column; }
  .feed-sidebar-col, .calendar-upcoming-col { width: 100%; }
  .primary-sidebar { width: 60px; }
  .secondary-sidebar { width: 180px; }
}

/* Sidebar Channel Grouping Headers and Formatting */
.sidebar-category-header {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--content-subtle);
  text-transform: uppercase;
  padding: 1rem 0.75rem 0.25rem 0.75rem;
  letter-spacing: 0.08em;
  user-select: none;
}

.sidebar-channel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  color: var(--content-muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.sidebar-channel-item:hover {
  background-color: var(--surface-less);
  color: var(--content);
}

.sidebar-channel-item.active {
  background-color: var(--surface-less);
  color: var(--primary);
  border-left: var(--border-thick) solid var(--primary);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sidebar-channel-prefix {
  color: var(--content-subtle);
  font-weight: 800;
  font-size: 1.1rem;
  width: 16px;
  display: inline-block;
  text-align: center;
}

.sidebar-channel-item.active .sidebar-channel-prefix {
  color: var(--primary);
}
