/* ============================================================
   MentorLink — Design System
   Premium dark theme with glassmorphism and micro-animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Tokens === */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a26;
  --bg-card: rgba(22, 22, 34, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-muted: #5c5a6e;

  --accent-primary: #7c6aef;
  --accent-primary-rgb: 124, 106, 239;
  --accent-hover: #9585f5;
  --accent-glow: rgba(124, 106, 239, 0.25);
  --accent-subtle: rgba(124, 106, 239, 0.08);

  --accent-green: #3ecf8e;
  --accent-green-rgb: 62, 207, 142;
  --accent-amber: #f5b731;
  --accent-amber-rgb: 245, 183, 49;
  --accent-red: #ef4444;
  --accent-red-rgb: 239, 68, 68;
  --accent-blue: #38bdf8;
  --accent-blue-rgb: 56, 189, 248;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124, 106, 239, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === Background Effects === */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 106, 239, 0.06), transparent),
    radial-gradient(ellipse 60% 70% at 80% 80%, rgba(62, 207, 142, 0.04), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56, 189, 248, 0.03), transparent);
}

/* === Layout === */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

/* === Glass Card === */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-medium);
}

/* === Typography === */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.logo-text .logo-dot {
  -webkit-text-fill-color: var(--accent-green);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #6354d4);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(var(--accent-primary-rgb), 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255,255,255,0.15);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), #2db87a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-green-rgb), 0.25);
}

.btn-success:hover {
  box-shadow: 0 6px 24px rgba(var(--accent-green-rgb), 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #dc2626);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-red-rgb), 0.25);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* === Input === */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-input {
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.text-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.code-input {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* === Status Indicators === */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(var(--accent-green-rgb), 0.5);
  animation: pulse-green 2s infinite;
}

.status-dot.offline {
  background: var(--text-muted);
}

.status-dot.warning {
  background: var(--accent-amber);
  box-shadow: 0 0 8px rgba(var(--accent-amber-rgb), 0.5);
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(var(--accent-green-rgb), 0.4); }
  50% { box-shadow: 0 0 12px rgba(var(--accent-green-rgb), 0.7); }
}

/* === Session Card (Landing) === */
.session-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
}

.session-card .card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.session-card .card-header .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.session-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* === Session Code Display === */
.session-code-display {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
}

.session-code-display .code {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-primary);
}

.session-code-display .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === Connection Status Banner === */
.connection-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.connection-banner.waiting {
  background: rgba(var(--accent-amber-rgb), 0.1);
  border: 1px solid rgba(var(--accent-amber-rgb), 0.2);
  color: var(--accent-amber);
}

.connection-banner.connected {
  background: rgba(var(--accent-green-rgb), 0.1);
  border: 1px solid rgba(var(--accent-green-rgb), 0.2);
  color: var(--accent-green);
}

.connection-banner.error {
  background: rgba(var(--accent-red-rgb), 0.1);
  border: 1px solid rgba(var(--accent-red-rgb), 0.2);
  color: var(--accent-red);
}

/* === Mentor Dashboard Layout === */
.mentor-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto 1fr;
  height: 100vh;
  gap: 0;
}

.mentor-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.mentor-topbar .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mentor-topbar .logo-sm {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mentor-topbar .session-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.mentor-topbar .right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Video area */
.video-area {
  position: relative;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-area video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.video-placeholder .icon {
  font-size: 4rem;
  opacity: 0.3;
}

.video-placeholder p {
  font-size: 0.9rem;
}

/* Sidebar (hints panel) */
.hints-panel {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
}

.hints-panel .panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hints-panel .panel-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.hints-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hints-list::-webkit-scrollbar {
  width: 4px;
}

.hints-list::-webkit-scrollbar-track {
  background: transparent;
}

.hints-list::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.hint-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
  animation: slideUp 0.3s var(--transition-spring);
}

.hint-bubble.sent {
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  align-self: flex-end;
  max-width: 90%;
}

.hint-bubble.acknowledged {
  opacity: 0.6;
}

.hint-bubble .hint-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.hint-bubble .hint-status {
  font-size: 0.7rem;
  color: var(--accent-green);
  margin-top: 0.25rem;
}

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

/* Hint input area */
.hint-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hint-type-selector {
  display: flex;
  gap: 0.5rem;
}

.hint-type-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.hint-type-btn:hover {
  background: var(--bg-glass-hover);
}

.hint-type-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.hint-type-btn.active[data-type="warning"] {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  background: rgba(var(--accent-amber-rgb), 0.08);
}

.hint-type-btn.active[data-type="task"] {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(var(--accent-green-rgb), 0.08);
}

.hint-compose {
  display: flex;
  gap: 0.5rem;
}

.hint-compose .text-input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.hint-compose .btn {
  padding: 0.6rem 1rem;
}

/* Quick hints */
.quick-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quick-hint-chip {
  padding: 0.3rem 0.6rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-hint-chip:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* === Student Overlay Hint === */
.student-hint-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.student-hint-overlay > * {
  pointer-events: auto;
}

/* Hint notification pill (collapsed state) */
.hint-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  animation: slideInRight 0.4s var(--transition-spring);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  user-select: none;
}

.hint-pill:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateX(-4px);
}

.hint-pill .hint-pill-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hint-pill .hint-pill-preview {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.hint-pill .hint-pill-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Expanded hint card */
.hint-expanded {
  width: 340px;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: expandIn 0.35s var(--transition-spring);
}

.hint-expanded .hint-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hint-expanded .hint-expanded-header .hint-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.hint-tag.info {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
}

.hint-tag.warning {
  background: rgba(var(--accent-amber-rgb), 0.15);
  color: var(--accent-amber);
}

.hint-tag.task {
  background: rgba(var(--accent-green-rgb), 0.15);
  color: var(--accent-green);
}

.hint-expanded .hint-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.hint-expanded .hint-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.hint-expanded .hint-expanded-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.hint-expanded .hint-expanded-footer .hint-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hint-expanded .hint-expanded-footer .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* === Student Minimal UI === */
.student-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.student-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.student-topbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.student-topbar .left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.student-topbar .logo-xs {
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sharing-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: rgba(var(--accent-red-rgb), 0.12);
  border: 1px solid rgba(var(--accent-red-rgb), 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 500;
}

.sharing-indicator .rec-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-rec 1.5s infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.student-topbar .right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.student-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 60px;
}

/* === Notification Stack (for student) === */
.notification-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  align-items: flex-end;
}

/* === Animations utility === */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
  animation: slideUp 0.4s var(--transition-spring) forwards;
}

/* === Spinner === */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* === Responsive === */
@media (max-width: 900px) {
  .mentor-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .hints-panel {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    height: auto;
    max-height: 40vh;
  }

  .hint-expanded {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .session-card {
    padding: 1.5rem;
  }

  .hint-expanded {
    width: calc(100vw - 48px);
  }

  .hint-pill {
    max-width: calc(100vw - 48px);
  }
}

/* === Hidden utility === */
.hidden {
  display: none !important;
}

/* === Toast notification === */
.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  z-index: 10000;
  animation: toastIn 0.3s ease forwards;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  border-color: rgba(var(--accent-green-rgb), 0.3);
}

.toast.error {
  border-color: rgba(var(--accent-red-rgb), 0.3);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
