/* Custom CSS Style Sheet for Pen Pal platform */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Theme variables (default) */
  color-scheme: dark;
  --bg-color: #0b0f19;
  --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
  --panel-bg: rgba(22, 28, 45, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #4f46e5; /* Rich Indigo */
  --primary-rgb: 79, 70, 229;
  --primary-hover: #4338ca;
  --secondary: #06b6d4; /* Leicester High Teal */
  --secondary-hover: #0891b2;
  --accent: #6366f1;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  
  --card-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.25);
  --glass-blur: blur(16px);
  --font-title: 'Inter', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --chat-sent: #4f46e5;
  --chat-received: rgba(30, 41, 59, 0.8);
  --sidebar-w: 260px; /* Reduced by 20px */
}

[data-theme="light"] {
  /* Light Theme variables */
  color-scheme: light;
  --bg-color: #f1f5f9;
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0891b2;
  --secondary-hover: #0e7490;
  
  --card-shadow: 0 8px 24px 0 rgba(15, 23, 42, 0.08);
  --chat-sent: #2563eb;
  --chat-received: rgba(226, 232, 240, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
}

/* Layout App Shell */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
  width: var(--sidebar-w);
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--panel-border);
  padding: 1.75rem 1.15rem; /* Tighter padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  transition: all 0.3s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem; /* Reduced margin */
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-title);
  box-shadow: none !important;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-section-header {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem 0.1rem 1rem;
  margin-top: 0.25rem;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.mobile-nav-toggle {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.48rem 0.9rem; /* 10-15% tighter spacing */
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: normal; /* Allows wrapping instead of horizontal cutoff */
  line-height: 1.35;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.nav-link span {
  /* Removed ellipsis and truncation to show full text */
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(var(--primary-rgb), 0.15);
  border-left: 3px solid var(--primary);
  padding-left: calc(1rem - 3px);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(79, 70, 229, 0.04) 100%) !important;
  border: 1px solid rgba(6, 182, 212, 0.22) !important;
  border-radius: 12px;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.05);
  transition: all 0.25s ease;
}
.user-profile-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.15);
}

.user-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
  max-width: 140px;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Content styling */
.main-content {
  flex-grow: 1;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: calc(100% - var(--sidebar-w));
  overflow-y: auto;
  height: 100vh;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
}

.page-title h1 {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Glass Panels and Cards */
.panel {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.25rem; /* Shorter padding to fit information above fold */
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.4s ease-out;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem; /* Shorter header margin */
}

.panel-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800; /* Bolder Outfit font headings */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--danger-rgb), 0.25);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Badge labels */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

/* Mini carousel styling */
.mini-carousel-container .carousel-hover-controls {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mini-carousel-container:hover .carousel-hover-controls {
  opacity: 1;
}

/* Grid Dashboard grids */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column; /* Number top, label bottom */
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.08);
}

[data-theme="light"] .stat-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 2.75rem; /* Much larger: 44px */
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Chat Layout Interface */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 580px;
  padding: 0;
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-sidebar-header {
  padding: 1rem;
  font-weight: bold;
  border-bottom: 1px solid var(--panel-border);
}

.chat-list {
  overflow-y: auto;
  flex-grow: 1;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.chat-item:hover, .chat-item.active {
  background: rgba(255, 255, 255, 0.04);
}

.chat-item.active {
  border-left: 4px solid var(--primary);
  padding-left: calc(1rem - 4px);
}

.chat-item-meta {
  flex-grow: 1;
  min-width: 0;
}

.chat-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-item-preview {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

#chat-active-state, #teacher-chat-active-state {
  min-height: 0;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-partner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-feed {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0,0,0,0.05);
  min-height: 0;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.message-row.sent {
  align-self: flex-end;
}

.message-row.received {
  align-self: flex-start;
}

.message-bubble {
  padding: 0.75rem 1.15rem;
  border-radius: 18px;
  font-size: 0.9rem;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.message-row.sent .message-bubble {
  background: var(--chat-sent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-row.received .message-bubble {
  background: var(--chat-received);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--panel-border);
}

.message-translation {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.message-row.received .message-translation {
  border-top: 1px dashed var(--panel-border);
}

.message-row.sent .message-translation {
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.translation-toggle-btn {
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.translation-toggle-btn:hover {
  color: var(--secondary-hover);
}

.message-row.sent .translation-toggle-btn {
  color: rgba(255, 255, 255, 0.85);
}

.message-row.sent .translation-toggle-btn:hover {
  color: white;
}

.message-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  align-self: flex-end;
}

.message-row.received .message-meta {
  align-self: flex-start;
}

.chat-warning-bar {
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
  height: 44px;
  transition: border-color 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.chat-input-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.translation-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(var(--primary-rgb), 0.2);
}

/* Language Support Widget Panels */
.lang-help-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--text-primary);
}

.vocab-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.vocab-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid var(--panel-border);
}

.vocab-tag {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.starters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
}

.starter-item {
  background: rgba(255,255,255,0.03);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.starter-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateX(2px);
}

.starter-cat {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.starter-phrase {
  font-size: 0.8rem;
  font-weight: 500;
}

.starter-translation {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Articles and News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: none !important;
  animation: none !important;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  border-top: 1px solid var(--panel-border);
  padding-top: 0.75rem;
}

/* Forms and fields */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

select option {
  background-color: #0b0f19;
  color: #f8fafc;
}
[data-theme="light"] select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Table layouts */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--panel-border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Platform Matching screen styling */
.matching-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.match-list-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.match-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.match-card.selected {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.15);
}

/* Modals overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Developer Console Panel (Floating) */
.dev-console {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1rem;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 250px;
  transition: all 0.3s;
  overflow: hidden;
}

.dev-console-header {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: #06b6d4; /* Constant high-contrast cyan */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dev-console-toggle {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.dev-console-toggle:hover {
  color: #ffffff;
}

.dev-console-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dev-role-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1; /* Constant light gray instead of theme var */
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.dev-role-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #ffffff;
}

.dev-role-btn.active {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  color: #ffffff;
}

#dev-reset-db-btn {
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.05) !important;
  transition: all 0.2s !important;
}

#dev-reset-db-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

.dev-actions {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Animations */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.alert-pulse {
  animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem;
    flex-direction: row;
    align-items: center;
  }
  .brand {
    margin-bottom: 0;
  }
  .nav-links {
    flex-direction: row;
    margin-left: 2rem;
    margin-top: 0;
  }
  .user-profile-badge {
    display: none;
  }
  .main-content {
    max-width: 100%;
    padding: 1.5rem;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-sidebar {
    display: none; /* In responsive view we could toggle it */
  }
  .teacher-spotlight-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .onboarding-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

.teacher-spotlight-grid {
  grid-template-columns: 1.2fr 1fr;
}

.onboarding-grid {
  grid-template-columns: 1.4fr 1fr;
}

/* Collapsible student articles list with smooth transition */
#student-articles-list {
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease-out, margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#student-articles-list.expanded {
  margin-top: 1rem;
  opacity: 1;
}
#articles-toggle-arrow {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clickable school link on student views */
.clickable-school-link {
  cursor: pointer;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
.clickable-school-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Matching tool sub-tab navigation */
.subtabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.5rem;
}

.subtab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.subtab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.subtab-btn.active {
  color: var(--text-primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.subtab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* Premium Segmented Pill Switcher Styles */
.subtab-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1.15rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.subtab-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.subtab-pill.active {
  color: var(--primary);
  background: var(--panel-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 -2.5px 0 var(--primary);
}

.school-hover-row:hover {
  border-color: var(--primary) !important;
  background: rgba(6, 182, 212, 0.08) !important;
}

/* Login Screen Rebrand & Layout */
.login-screen-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at center, #1b1d30 0%, #0c0d12 100%);
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  gap: 2rem;
}

.login-card {
  background: rgba(30, 32, 48, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: 28px;
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  margin: auto;
}

.login-logo-container {
  margin-bottom: 0.6rem;
}

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.35);
}

.login-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0.15rem 0 0.5rem 0;
}

.login-desc {
  display: none !important;
}

.login-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.login-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.login-section-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.1);
}

.login-section-icon {
  font-size: 2.25rem; /* More compact icon */
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.login-section-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.login-section-card p {
  font-size: 1rem; /* Bushed to 12pt (16px) minimum font size */
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.25rem 0; /* Reduced description margin */
  flex-grow: 1;
}

.login-select {
  width: 100%;
  font-size: 0.95rem; /* Bushed to ~12pt minimum */
  padding: 0.5rem 0.75rem; /* Compact selector padding */
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--panel-border);
  text-align-last: center;
  border-radius: 10px;
}

.login-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

@media (max-width: 900px) {
  .login-sections {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .login-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Rebranded Registration Form Layout & Spacing */
.register-section-wrapper {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

.register-section-header {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 1.5rem;
}

.register-button-group {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .register-button-group {
    flex-direction: column;
  }
}

/* Matching Metrics Panel Styles */
.matching-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

.metric-card.active-link::before {
  background: var(--success);
}

.metric-card.pending-link::before {
  background: var(--warning);
}

.metric-card.inactive-link::before {
  background: var(--text-muted);
}

.metric-card.overview-link::before {
  background: var(--accent);
}

.metric-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .metric-card:hover {
  background: rgba(0, 0, 0, 0.015);
}

.metric-card.overview-link:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.metric-card.active-link:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.metric-card.pending-link:hover {
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.metric-card.inactive-link:hover {
  box-shadow: 0 8px 30px rgba(100, 116, 139, 0.15);
  border-color: rgba(100, 116, 139, 0.3);
}

.metric-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.75rem;
  position: relative;
}

[data-theme="light"] .metric-progress-track {
  background: rgba(0, 0, 0, 0.06);
}

.metric-progress-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%; /* Initial state for animated load */
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.overview-link .metric-progress-fill {
  background: var(--accent);
}

.active-link .metric-progress-fill {
  background: var(--success);
}

.pending-link .metric-progress-fill {
  background: var(--warning);
}

.inactive-link .metric-progress-fill {
  background: var(--text-muted);
}

/* Keyframe highlight animation for target cards */
@keyframes pulse-highlight-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    border-color: var(--secondary);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    border-color: var(--secondary);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.pulse-highlight {
  animation: pulse-highlight-animation 1.5s cubic-bezier(0.24, 0, 0.38, 1);
}

/* Student Dashboard Grid Layout to eliminate alignment gaps */
.student-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.student-dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .student-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.info-icon-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--panel-border);
}

.info-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-primary) !important;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Graphical Student Metrics Cards */
.student-metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.student-metric-card.card-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.03);
}

.student-metric-card.card-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
}

.student-metric-card.card-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.03);
}

.student-metric-card:hover {
  transform: translateY(-4px);
}

.student-metric-card.card-cyan:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
}

.student-metric-card.card-blue:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.student-metric-card.card-purple:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.student-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.student-metric-card.card-cyan .student-metric-label { color: var(--secondary); }
.student-metric-card.card-blue .student-metric-label { color: #60a5fa; }
.student-metric-card.card-purple .student-metric-label { color: #a78bfa; }

.student-metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.1rem 0;
  font-family: var(--font-title);
  line-height: 1;
}

.student-metric-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.student-metric-watermark {
  position: absolute;
  right: -10px;
  bottom: -12px;
  font-size: 4rem;
  opacity: 0.15;
  transform: rotate(15deg);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.student-metric-card:hover .student-metric-watermark {
  opacity: 0.25;
  transform: rotate(20deg) scale(1.1);
}

/* Shared Projects & Collaboration Styles */
.proj-student-select-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-size: 0.8rem;
  color: var(--text-primary);
  border: 1px solid transparent;
}
.proj-student-select-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}
.proj-student-select-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--primary);
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.pulse-highlight {
  animation: pulseHighlight 1.2s ease-out;
  box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
  border-color: var(--secondary);
}

/* Student Dashboard Grid Layout to eliminate alignment gaps */
.student-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}

.student-dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .student-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.info-icon-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--panel-border);
}

.info-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-primary) !important;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Graphical Student Metrics Cards */
.student-metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.student-metric-card.card-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.03);
}

.student-metric-card.card-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
}

.student-metric-card.card-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.03);
}

.student-metric-card:hover {
  transform: translateY(-4px);
}

.student-metric-card.card-cyan:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
}

.student-metric-card.card-blue:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.student-metric-card.card-purple:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.student-metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.student-metric-card.card-cyan .student-metric-label { color: var(--secondary); }
.student-metric-card.card-blue .student-metric-label { color: #60a5fa; }
.student-metric-card.card-purple .student-metric-label { color: #a78bfa; }

.student-metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.1rem 0;
  font-family: var(--font-title);
  line-height: 1;
}

.student-metric-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.student-metric-watermark {
  position: absolute;
  right: -10px;
  bottom: -12px;
  font-size: 4rem;
  opacity: 0.15;
  transform: rotate(15deg);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.student-metric-card:hover .student-metric-watermark {
  opacity: 0.25;
  transform: rotate(20deg) scale(1.1);
}

/* Shared Projects & Collaboration Styles */
.proj-student-select-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-size: 0.8rem;
  color: var(--text-primary);
  border: 1px solid transparent;
}
.proj-student-select-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}
.proj-student-select-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--primary);
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.pulse-highlight {
  animation: pulseHighlight 1.2s ease-out;
}

.dashboard-article-item {
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease;
}
.dashboard-article-item:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

@keyframes charKeyboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Character Keyboard Panel Styling */
.char-keyboard-panel {
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  animation: charKeyboardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.char-keyboard-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.char-tab {
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  user-select: none;
}
.char-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.char-tab.active {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}
.char-keyboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.char-key {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.char-key:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  transform: scale(1.05);
}
.char-key:active {
  transform: scale(0.95);
}

/* ==========================================
   HELP GUIDE DRAWER & GUIDED TOURS STYLING
   ========================================== */

/* Dimming tour overlay */
#tour-dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99998;
  display: none;
  pointer-events: auto;
}

/* Floating Help trigger button */
.floating-help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: none;
  border-radius: 50px;
  color: #0b0f19;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-help-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.floating-help-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Slide-out Help Drawer */
.help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(15, 17, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--panel-border);
  z-index: 99995;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
}

.help-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.help-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tour element highlight class */
.tour-highlighted-element {
  position: relative !important;
  z-index: 99999 !important;
  box-shadow: 0 0 0 10px rgba(6, 182, 212, 0.15), 0 0 20px var(--secondary) !important;
  border-color: var(--secondary) !important;
  background-color: rgba(22, 28, 45, 0.95) !important;
  pointer-events: none !important;
}

/* Floating Tour Tooltip Bubble */
.tour-tooltip-bubble {
  position: absolute;
  z-index: 100000;
  background: #161a2b;
  border: 2px solid var(--secondary);
  border-radius: 16px;
  padding: 1.25rem;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
  animation: floatUp 0.3s ease-out;
}

@keyframes floatUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* Journey Timeline & Progress Styles */
#journey-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  width: 4px;
  height: calc(100% - 2.5rem);
  background: linear-gradient(180deg, var(--secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 1;
  border-radius: 2px;
}

.journey-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.journey-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.journey-step-dot.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1.5px solid #34d399;
  color: #fff;
}

.journey-step-dot.pending {
  background: #1e293b;
  border: 2.5px solid var(--panel-border);
  color: var(--text-muted);
}

.journey-step-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  flex-grow: 1;
}

.journey-step-item.completed .journey-step-content {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}

/* Visual slide deck preview styling inside Group Projects */
#proj-slides-carousel-bar {
  min-height: 85px !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

/* Override existing slide-thumb style for real visual thumbnail appearance */
.slide-thumb {
  width: 120px !important;
  height: 76px !important;
  flex-shrink: 0;
  padding: 0.5rem !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

.slide-thumb:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: var(--text-primary) !important;
  transform: translateY(-2px) !important;
}

.slide-thumb.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35) !important;
}

.slide-thumb-add {
  border: 1.5px dashed rgba(6, 182, 212, 0.45) !important;
  background: transparent !important;
  color: var(--primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
}

/* Safeguarding Intervention Notice styling */
.safety-system-intervention {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Accessibility & Mobile Overflow Fixes */
.help-drawer:not(.open) {
  display: none !important;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  .top-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .sidebar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mobile-nav-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .sidebar:not(.mobile-nav-open) .nav-links.active-role-nav {
    display: none !important;
  }
  .sidebar.mobile-nav-open .nav-links.active-role-nav {
    display: flex !important;
  }
  .nav-links {
    margin-left: 0 !important;
    width: 100% !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .nav-link {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
  }
}

/* CSP Compliant Hover Classes */
.hover-color-primary {
  transition: color 0.2s;
}
.hover-color-primary:hover {
  color: #0891b2 !important;
}

.hover-upload-label {
  transition: all 0.25s ease;
}
.hover-upload-label:hover {
  border-color: var(--primary) !important;
  background: rgba(6, 182, 212, 0.07) !important;
}

.hover-brightness {
  transition: all 0.2s;
}
.hover-brightness:hover {
  filter: brightness(1.15) !important;
}

.hover-bg-cyan {
  transition: all 0.2s;
}
.hover-bg-cyan:hover {
  background: rgba(255,255,255,0.05) !important;
}

.form-status {
  min-height: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

#session-restoring-screen {
  display: none;
}

.session-restoring #session-restoring-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.session-restoring #login-screen,
.session-restoring .app-container {
  visibility: hidden !important;
}

.session-restoring-brand {
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
}

.session-restoring-brand span {
  color: var(--secondary);
}

.session-restoring-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: session-restoring-spin 0.8s linear infinite;
}

.session-restoring #session-restoring-screen p {
  margin: 0;
  font-size: 0.85rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .session-restoring-spinner {
    animation: none;
    border-top-color: rgba(var(--primary-rgb), 0.2);
    border-right-color: var(--primary);
  }
}

.form-status.error {
  color: #fca5a5;
  font-weight: 600;
  line-height: 1.45;
}

[data-action][role="button"]:focus-visible,
[data-action][role="link"]:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .top-actions button,
  .top-actions select,
  .nav-link,
  .btn {
    min-height: 44px;
  }
}

.hover-opacity {
  transition: all 0.2s;
}
.hover-opacity:hover {
  opacity: 1 !important;
}

/* Keep long task dialogs usable on short laptop and phone viewports. */
.modal-overlay {
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-overlay.active .modal-content {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .modal-overlay.active .modal-content {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
  }

  #add-school-form .form-group[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Safeguarding actions must remain easy to reach on touch and pointer devices. */
.safeguarding-report-btn {
  min-width: 72px;
  min-height: 32px;
  padding: 0.4rem 0.6rem !important;
  justify-content: center;
}

@media (max-width: 768px) {
  .safeguarding-report-btn {
    min-height: 44px;
  }
}

.hover-transform-bg {
  transition: all 0.2s;
}
.hover-transform-bg:hover {
  background: rgba(255,255,255,0.04) !important;
  transform: translateY(-1px) !important;
}

.hover-border {
  transition: all 0.2s;
}
.hover-border:hover {
  border-color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.03) !important;
}

.hover-opacity {
  transition: all 0.2s;
}
.hover-opacity:hover {
  opacity: 1 !important;
}

.hover-transform-bg {
  transition: all 0.2s;
}
.hover-transform-bg:hover {
  background: rgba(255,255,255,0.04) !important;
  transform: translateY(-1px) !important;
}

.hover-border {
  transition: all 0.2s;
}
.hover-border:hover {
  border-color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.03) !important;
}

/* Notification styling */
.notification-card {
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  transition: all 0.2s;
}
.notification-card.unread {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
}
.notification-card.read {
  background: transparent;
  border: 1px solid transparent;
}
.notification-card.clickable {
  cursor: pointer;
}
.notification-card.clickable:hover {
  background: rgba(6, 182, 212, 0.08) !important;
}

/* Exciting School-Bridge Landing Page Custom Styles */
.landing-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: 5%;
  left: 2%;
}
.glow-2 {
  width: 550px;
  height: 550px;
  background: var(--secondary);
  top: 60%;
  right: 2%;
}
.glow-3 {
  width: 350px;
  height: 350px;
  background: #a855f7;
  top: 30%;
  left: 45%;
}

.landing-header {
  width: 100%;
  background: rgba(10, 11, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 99;
}
.landing-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.landing-brand-name {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-nav-auth {
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

.landing-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  box-sizing: border-box;
  position: relative;
}
.landing-hero-section {
  padding-top: 5.5rem;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.landing-badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.landing-hero-title {
  font-family: var(--font-title);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.25rem 0;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.text-gradient {
  background: linear-gradient(135deg, var(--secondary) 20%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}
.landing-hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn-hero-primary {
  padding: 0.75rem 1.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3) !important;
}
.btn-hero-secondary {
  padding: 0.75rem 1.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
.landing-hero-trust {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

/* CSS Dashboard Mockup styling */
.dashboard-mockup {
  background: rgba(22, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.05);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.dashboard-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 70px rgba(6, 182, 212, 0.12), 0 0 40px rgba(168, 85, 247, 0.05);
}
.mockup-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mockup-dots {
  display: flex;
  gap: 0.35rem;
}
.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }
.mockup-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 1rem;
  font-family: monospace;
  letter-spacing: 0.5px;
}
.mockup-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mockup-chat-preview {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.mockup-chat-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mockup-chat-message {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.mockup-chat-message:last-child {
  margin-bottom: 0;
}
.mockup-chat-message .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mockup-chat-message.incoming .avatar {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}
.mockup-chat-message.outgoing {
  justify-content: flex-end;
}
.mockup-chat-message.outgoing .avatar {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.msg-bubble {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  max-width: 80%;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: left;
}
.mockup-chat-message.outgoing .msg-bubble {
  background: rgba(37, 99, 235, 0.12);
}
.msg-bubble .sender {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.msg-bubble .translation {
  display: block;
  font-size: 0.65rem;
  font-style: italic;
  color: var(--secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}
.mockup-slides-preview {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.mockup-slides-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.mockup-lock-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.mockup-slide-canvas {
  background: #121422;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.6rem;
}
.slide-title-bar {
  font-size: 0.68rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.3rem;
  margin-bottom: 0.4rem;
}
.slide-layout-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.slide-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.slide-img-placeholder {
  height: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
}
.tea-color {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--secondary);
}
.brezeln-color {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.02) 100%);
  border: 1px solid rgba(234, 179, 8, 0.15);
  color: #eab308;
}
.slide-caption {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
}

/* Features Grid */
.section-header-centered {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}
.section-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  text-align: left;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-4px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.bg-cyan { background: rgba(6, 182, 212, 0.08); color: var(--secondary); }
.bg-blue { background: rgba(37, 99, 235, 0.08); color: var(--primary); }
.bg-green { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.bg-purple { background: rgba(168, 85, 247, 0.08); color: #a855f7; }
.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Stats Section */
.landing-stats-section {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 3.5rem 1.5rem;
  max-width: 100%;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.008);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.testimonial-rating {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.testimonial-quote {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.85rem;
}
.testimonial-author strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CTA & Footer */
.landing-cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-container {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  max-width: 850px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.cta-text {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}
.btn-cta-large {
  padding: 0.85rem 2.25rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3) !important;
}

.landing-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--secondary);
}

/* Glassmorphic Auth Modal Overlay Styling */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
  padding: 1rem;
}
.auth-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.auth-modal-overlay:has(#login-activate-section[style*="display: block"]),
.auth-modal-overlay:has(#login-reset-section[style*="display: block"]),
.auth-modal-overlay:has(#login-register-section[style*="display: block"]) {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.auth-modal-window {
  background: rgba(22, 25, 41, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.08);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 1.75rem;
  box-sizing: border-box;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.85rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.auth-modal-close-btn:hover {
  color: #ef4444;
}

@keyframes scaleUp {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .landing-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .landing-hero-ctas {
    justify-content: center;
  }
  .landing-hero-trust {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .landing-hero-title {
    font-size: 2.35rem;
  }
  .landing-header-container {
    padding: 0.75rem 1rem;
  }
  .landing-section {
    padding: 3rem 1rem;
  }
  .landing-nav-actions {
    gap: 0.5rem;
  }
}

/* Pricing Section Styles */
.pricing-section-container {
  width: 100%;
  max-width: 1100px;
  margin: 4rem auto 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  animation: fadeIn 0.8s ease-out;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-section-heading {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.pricing-supporting-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-vat-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  font-weight: 600;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pricing-card {
  position: relative;
  background: rgba(22, 28, 45, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--card-shadow);
}

.pricing-card:hover {
  transform: translateY(-6px);
  background: rgba(22, 28, 45, 0.65);
}

.main-pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

.founding-pricing-card {
  border: 1.5px dashed var(--secondary);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(22, 28, 45, 0.45) 100%);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

.founding-pricing-card:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(22, 28, 45, 0.6) 100%);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pricing-card-badge.founding-badge {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.pricing-card-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0;
  text-align: center;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 1.25rem 0;
  gap: 0.15rem;
}

.price-currency {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-value {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--text-primary);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 0.25rem;
}

.pricing-card-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.pricing-card-description.font-glow {
  color: var(--secondary);
  font-weight: 500;
}

.pricing-cta-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.pricing-card-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-features-divider {
  width: 100%;
  height: 1px;
  background: var(--panel-border);
  margin-bottom: 1.5rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.pricing-features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features-list li span {
  color: var(--secondary);
  font-weight: 800;
}

.founding-special-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(6, 182, 212, 0.15);
  box-sizing: border-box;
}

.pricing-plus-banner {
  background: linear-gradient(135deg, rgba(22, 28, 45, 0.5) 0%, rgba(30, 32, 48, 0.5) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pricing-plus-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

.pricing-plus-banner h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-plus-banner p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.plus-banner-action {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .plus-banner-action {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .plus-banner-action button {
    width: 100%;
  }
}

.plus-price {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plus-price strong {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.pricing-faq-container {
  border-top: 1px solid var(--panel-border);
  padding-top: 4rem;
  margin-top: 2rem;
  width: 100%;
}

.faq-heading {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Redesigned Landing Page Styles */

/* 1. Header & Sticky Navbar */
.landing-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--panel-border);
  z-index: 1001;
  box-sizing: border-box;
}

.landing-header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-logo {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.landing-brand-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.landing-nav {
  display: flex;
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .landing-nav {
    display: none;
  }
}

.landing-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav a:hover {
  color: var(--secondary);
}

.landing-nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 576px) {
  .landing-header-container {
    padding: 0.75rem 1rem;
  }

  .landing-nav-actions {
    gap: 0.5rem;
  }

  .landing-nav-actions .btn,
  .footer-links a,
  .safeguard-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-pilot-btn {
    display: none;
  }

  .landing-footer-credits .footer-links {
    gap: 0.5rem 1rem !important;
  }
}

.nav-signin-btn {
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
}

.nav-pilot-btn {
  padding: 0.45rem 1.15rem !important;
  font-size: 0.85rem !important;
}

/* 2. Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 1.5rem !important;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
    padding: 3rem 1.5rem !important;
  }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas button {
    width: 100%;
  }
}

.hero-trust {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Connected Visual styles */
.hero-visual-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 380px;
}

.hero-visual-globe {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-line {
  position: absolute;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0.3;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.classroom-card {
  position: absolute;
  background: rgba(22, 28, 45, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--panel-border);
  border-radius: 18px;
  padding: 1.25rem;
  width: 250px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  box-sizing: border-box;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.classroom-left {
  left: -20px;
  top: 30px;
  border-color: var(--secondary);
}

.classroom-right {
  right: -20px;
  bottom: 30px;
  border-color: var(--primary);
  animation-delay: -3s;
}

.classroom-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.5rem;
}

.activity-pill {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255,255,255,0.03);
}

/* 3. Moment of Imagination */
.imagine-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}

.imagine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .imagine-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .imagine-grid {
    grid-template-columns: 1fr;
  }
}

.imagine-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.imagine-visual {
  height: 180px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  box-sizing: border-box;
}

.bg-japan { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(30, 32, 48, 0.65) 100%); }
.bg-spain { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(30, 32, 48, 0.65) 100%); }
.bg-kenya { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(30, 32, 48, 0.65) 100%); }
.bg-discovery { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(30, 32, 48, 0.65) 100%); }

.mock-slide-preview {
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 0.9rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.mock-slide-header {
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.imagine-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* 4. Journey Timeline */
.journey-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.journey-timeline-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .journey-timeline-flow {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.journey-flow-step {
  background: rgba(22, 28, 45, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.step-number {
  position: absolute;
  top: -1.5rem;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.journey-flow-step h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1rem;
}

.journey-flow-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-mock-screen {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.mock-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.mock-q { color: var(--secondary); font-weight: 600; }
.mock-a { color: var(--text-primary); }

.mock-board-editor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22, 28, 45, 0.6);
  padding: 0.4rem;
  border-radius: 6px;
}

.mock-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
}

.reflection-quote {
  font-style: italic;
  line-height: 1.4;
}

/* 5. Activities Section */
.activities-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.activities-tabs-container {
  background: rgba(22, 28, 45, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2rem;
  box-sizing: border-box;
}

.activities-tabs-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.tab-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.tab-nav-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.tab-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .tab-panel-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.tab-panel-text h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.tab-panel-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tab-panel-visual {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.mock-chat-window {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mock-chat-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.8rem;
  max-width: 80%;
  line-height: 1.4;
  box-sizing: border-box;
}

.mock-chat-bubble.received {
  background: rgba(30, 41, 59, 0.8);
  align-self: flex-start;
  color: var(--text-primary);
}

.mock-chat-bubble.sent {
  background: var(--primary);
  align-self: flex-end;
  color: #fff;
}

.bubble-sender {
  font-size: 0.65rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}

.mock-project-board {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-board-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.4rem;
}

.project-board-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.project-column h5 {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.project-column .mock-card {
  background: rgba(22, 28, 45, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-lang-support {
  width: 100%;
}

.input-composer-preview {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  padding: 0.85rem;
  font-size: 0.8rem;
}

.input-composer-preview .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.draft-text {
  background: rgba(0,0,0,0.3);
  padding: 0.5rem;
  border-radius: 6px;
  font-family: monospace;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.sentence-starter-pill {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--secondary);
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

.mock-live-prompt {
  width: 100%;
}

.live-prompt-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-prompt-card {
  background: rgba(22, 28, 45, 0.8);
  border: 1.5px solid var(--secondary);
  border-radius: 12px;
  padding: 1rem;
}

.live-prompt-card h4 {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.live-prompt-card p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.live-prompt-card .timer {
  font-size: 0.75rem;
  color: var(--secondary);
  font-family: monospace;
  font-weight: 700;
}

.mock-world-gallery {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.gallery-photo-card {
  flex: 1;
  height: 150px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}

.gallery-photo-card.card-1 {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%), radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 100%);
}
.gallery-photo-card.card-2 {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%), radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 100%);
}

.gallery-photo-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* 6. Interactive SVG Map */
.map-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.map-section-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 992px) {
  .map-section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.map-visual-area {
  background: rgba(22, 28, 45, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-sizing: border-box;
}

.map-area-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.world-map-svg-container {
  width: 100%;
  position: relative;
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  overflow: hidden;
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-continent-path {
  transition: all 0.3s;
}

.map-connection-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 4;
  animation: dash 30s linear infinite;
  opacity: 0.35;
  cursor: pointer;
  transition: all 0.25s;
}

#line-notts-nairobi {
  stroke: var(--primary);
}

#line-leic-valencia {
  stroke: var(--secondary);
}

.map-connection-line:hover, .map-connection-line.active {
  opacity: 1;
  stroke-width: 3.5;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.map-pin {
  fill: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.map-pin-pulse {
  fill: var(--secondary);
  opacity: 0.4;
  animation: pulsePin 2s infinite ease-out;
  transform-origin: center;
}

@keyframes pulsePin {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(3.5); opacity: 0; }
}

#pin-uk { fill: var(--secondary); }
#pin-spain { fill: var(--secondary); }
#pin-kenya { fill: var(--primary); }

.map-details-sidebar {
  height: 100%;
}

.partnership-card-dynamic {
  background: rgba(22, 28, 45, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s;
  min-height: 200px;
}

.partnership-card-dynamic h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.partner-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.partner-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.partner-sample-qa {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.8rem;
  border-left: 3px solid var(--secondary);
}

.partner-sample-qa strong {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.partner-sample-qa p {
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

/* 7. Prepare students for connected world */
.matters-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.matters-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 992px) {
  .matters-outcomes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .matters-outcomes-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-card {
  background: rgba(22, 28, 45, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-sizing: border-box;
}

.outcome-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.outcome-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.matters-oecd-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* 8. Easy Onboarding for Teachers */
.easy-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.easy-steps-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .easy-steps-flow {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.easy-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.easy-step-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.easy-step-item p {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* 9. Safeguarding credentials */
.safeguard-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.safeguard-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (max-width: 768px) {
  .safeguard-grid-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.safeguard-bullet {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.safeguard-bullet::before {
  content: "🛡️";
  font-size: 1.1rem;
}

.safeguard-link {
  color: var(--secondary);
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 600;
}

.safeguard-link:hover {
  color: var(--secondary-hover);
}

/* 10. Example Project */
.example-project-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.project-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 992px) {
  .project-timeline-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .project-timeline-grid {
    grid-template-columns: 1fr;
  }
}

.project-week-card {
  background: rgba(22, 28, 45, 0.3);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-sizing: border-box;
}

.week-header {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.project-week-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-summary-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border: 1.5px solid var(--panel-border);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
  max-width: 800px;
  margin: 0 auto;
}

.project-summary-box h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-summary-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 11. Built by Educators section */
.educators-section {
  background: radial-gradient(circle at center, rgba(79, 70, 229, 0.06) 0%, transparent 80%);
  padding: 5rem 1.5rem !important;
  width: 100%;
}

.educators-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.educators-copy-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 12. Final Emotional CTA */
.final-cta-section {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 100%);
  padding: 6rem 1.5rem !important;
  width: 100%;
}

.final-cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.final-cta-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.final-cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.final-cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

@media (max-width: 576px) {
  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .final-cta-buttons button {
    width: 100%;
  }
}

.landing-footer-credits {
  border-top: 1px solid var(--panel-border);
  background: rgba(11, 15, 25, 0.5);
  padding: 2rem 1.5rem;
}

/* Modal and layout scroll modifications */
.landing-section {
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

/* Modal Overlay Styling */
.modal-overlay {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-container {
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  background: rgba(30, 32, 48, 0.95);
  backdrop-filter: blur(20px);
}


/* Admin Console Enhancements */
.table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

/* Onboarding Status Badges */
.badge-onboarding {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: capitalize;
}
.badge-not-invited {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}
.badge-invite-generated {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.badge-invited {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.badge-activated {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-active {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-on-hold {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Stacked Lead Teacher styles */
.coord-name-stacked {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}
.coord-email-stacked {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Compact User totals */
.compact-totals {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Template Copy Dialog / Output Area styling */
#invite-output-container {
  transition: all 0.3s ease;
}
#invite-generated-body {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

/* Validation styling */
.invalid-feedback {
  display: none;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.25rem;
}
.form-control.is-invalid {
  border-color: var(--danger);
}

/* Actions dropdown menu styling */
.actions-dropdown-container {
  position: relative;
  display: inline-block;
}

.actions-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #161a2b;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 0.35rem 0;
  margin-top: 4px;
}

.actions-dropdown-menu.show {
  display: block;
}

.actions-dropdown-menu.actions-dropdown-menu--fixed {
  position: fixed;
  top: auto;
  right: auto;
  margin-top: 0;
  z-index: 5000;
}

.actions-dropdown-item {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.actions-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.actions-dropdown-item.destructive {
  color: #f87171;
}

.actions-dropdown-item.destructive:hover {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}

.actions-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.35rem 0;
}

/* Profile dropdown menu styling */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.profile-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #161a2b;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 4px;
}

.profile-dropdown-menu.show {
  display: block;
}

.profile-dropdown-info {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.profile-dropdown-item {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.profile-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.profile-dropdown-item.destructive {
  color: #f87171;
}

.profile-dropdown-item.destructive:hover {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.35rem 0;
}

/* Quieter Floating Help button overrides */
.floating-help-btn {
  background: rgba(30, 32, 48, 0.85) !important;
  border: 1.5px solid var(--panel-border) !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(10px) !important;
  transform: none !important;
}

.floating-help-btn:hover {
  background: #1e293b !important;
  color: var(--text-primary) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Increase contrast for lead teacher email */
.coord-email-stacked {
  color: var(--text-secondary) !important;
}

/* Onboarding status colors and borders overrides */
.badge-invited {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
.badge-activated {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}
.badge-not-invited {
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}
.badge-invite-generated {
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}
.badge-on-hold {
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.badge-onboarding {
  transition: transform 0.2s, box-shadow 0.2s;
}
.badge-onboarding[data-action]:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2) !important;
}

/* Discoveries Tab & Filter styles */
.feed-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}
.feed-tab-btn.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.discoveries-toolbar select {
  cursor: pointer;
  outline: none;
  border: 1px solid var(--panel-border) !important;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.discoveries-toolbar select:focus {
  border-color: var(--primary) !important;
  color: var(--text-primary);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  animation: fadeIn 0.25s ease-out;
}
.filter-chip-remove {
  cursor: pointer;
  color: var(--danger);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: background 0.15s;
}
.filter-chip-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

.discovery-group-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-board-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.article-board-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.15) !important;
}

.bookmark-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.bookmark-btn:hover {
  transform: scale(1.15);
  opacity: 1;
}
.bookmark-btn.active {
  opacity: 1;
  transform: scale(1.1);
}

.follow-btn {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.follow-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(6, 182, 212, 0.05);
}
.follow-btn.active {
  border-color: var(--success);
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   HELP SYSTEM & CENTRAL HELP CENTRE STYLES
   ========================================================================== */

/* Onboarding indicator dots */
.onb-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}
.onb-dot.active {
  background: var(--secondary) !important;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* Onboarding layout typography and icons */
.onboarding-welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse-light 2.5s infinite;
}
.onboarding-welcome-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 0.5rem 0;
}
.onboarding-welcome-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Exchange roadmaps styling inside onboarding */
.onboarding-stages-roadmap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  position: relative;
  padding: 0 0.5rem;
}
.onboarding-stages-roadmap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  transform: translateY(-50%);
}
.onboarding-stage-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 70px;
}
.onboarding-stage-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f2237;
  border: 2px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.onboarding-stage-node.active .onboarding-stage-badge {
  border-color: var(--secondary);
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.onboarding-stage-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
}
.onboarding-stage-node.active .onboarding-stage-label {
  color: var(--text-primary);
}

/* Help centre specific accordion styles */
.help-accordion-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.help-accordion-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.help-accordion-item details {
  width: 100%;
}
.help-accordion-item summary {
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-accordion-item summary::-webkit-details-marker {
  display: none;
}
.help-accordion-item summary::after {
  content: '▼';
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.help-accordion-item details[open] summary::after {
  transform: rotate(-180deg);
  color: var(--secondary);
}
.help-accordion-body {
  padding: 0 1rem 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

/* Filter controls inside Help Centre */
.help-filter-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.help-filter-group .btn.btn-secondary {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.help-filter-group .btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.help-filter-group .btn.btn-secondary.active {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #0b0f19 !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}

/* Animations */
@keyframes pulse-light {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
