/* LeadWise Frontend Styles - Warm Earth Tones */

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

/* CSS Variables */
:root {
  --primary: #C17849;        /* Warm terracotta */
  --secondary: #5C6B54;      /* Deep olive/sage */
  --background: #FAF6F1;     /* Warm cream */
  --text: #2D2D2D;          /* Dark charcoal */
  --accent: #C4A265;        /* Muted gold */
  --card: #FFFFFF;          /* White */
  --error: #B85C5C;         /* Soft red */
  --success: #6B8F6B;       /* Sage green */
  --border: #E5DED3;        /* Warm border */
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(193, 120, 73, 0.08);
  --shadow-md: 0 4px 16px rgba(193, 120, 73, 0.12);
  --shadow-lg: 0 8px 24px rgba(193, 120, 73, 0.16);
  
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #A86638;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #4A5944;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 120, 73, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Auth Pages (Login/Signup) */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--background) 0%, #F5EFE7 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-logo p {
  color: var(--secondary);
  font-size: 14px;
  font-style: italic;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
}

.error-message {
  background: #FFF5F5;
  color: var(--error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  border-left: 3px solid var(--error);
}

/* Profile Page */
.profile-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 20px;
}

.profile-header {
  text-align: center;
  margin-bottom: 48px;
}

.profile-header h1 {
  margin-bottom: 12px;
}

.profile-header p {
  color: var(--secondary);
  font-size: 16px;
}

.profile-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Chat Page */
.chat-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  width: 300px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.chat-sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.new-chat-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.new-chat-btn:hover {
  background: #A86638;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.chat-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.chat-item:hover {
  background: var(--background);
  border-color: var(--border);
}

.chat-item.active {
  background: var(--background);
  border-color: var(--primary);
}

.chat-item-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-date {
  font-size: 12px;
  color: var(--secondary);
}

/* Main Chat Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.chat-header {
  background: var(--card);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  display: none;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--secondary);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon:hover {
  background: var(--background);
  color: var(--primary);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.message {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 70%;
  padding: 16px 20px;
  border-radius: var(--radius);
}

.message.user .message-content {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-text {
  line-height: 1.6;
}

.message-text h2 {
  font-size: 1.25rem;
  margin: 20px 0 8px 0;
  color: var(--primary);
}

.message-text h3 {
  font-size: 1.1rem;
  margin: 16px 0 8px 0;
}

.message-text h2:first-child,
.message-text h3:first-child {
  margin-top: 0;
}

.message-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.message-text a:hover {
  color: var(--accent);
}

.message-text code {
  background: var(--background);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.message-text blockquote {
  border-left: 3px solid var(--border);
  padding-left: 14px;
  margin: 12px 0;
  color: var(--secondary);
  font-style: italic;
}

.message-text p {
  margin-bottom: 12px;
}

.message-text ul, .message-text ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.citation {
  color: var(--accent);
  font-weight: 600;
  cursor: help;
}

.confidence-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--background);
  border-radius: 12px;
  font-size: 12px;
  color: var(--secondary);
  margin-top: 12px;
}

.references-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.references-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.references-toggle:hover {
  color: var(--accent);
}

.references-list {
  margin-top: 12px;
}

.reference-item {
  padding: 12px;
  background: var(--background);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}

.reference-link {
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
}

.low-confidence-warning {
  background: #FFF8E1;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 13px;
  color: var(--text);
}

.welcome-message {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.welcome-message h2 {
  color: var(--primary);
  margin-bottom: 12px;
}

.typing-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--secondary);
  font-size: 14px;
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.input-area {
  background: var(--card);
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.input-container {
  display: flex;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.message-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  resize: none;
  min-height: 50px;
  max-height: 150px;
}

.message-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 120, 73, 0.1);
}

.send-btn {
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.send-btn:hover:not(:disabled) {
  background: #A86638;
  transform: translateY(-1px);
}

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

/* Settings Page */
.settings-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 20px;
}

.settings-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.settings-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.settings-section h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.danger-zone {
  border-top: 2px solid var(--error);
  padding-top: 24px;
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #9A4A4A;
}

/* Sidebar Overlay Backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.open {
  display: block;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  /* ── Sidebar: overlay drawer from left ── */
  .chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    height: 100dvh;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .chat-sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  /* ── Chat Header: safe area ── */
  .chat-header {
    padding: max(16px, env(safe-area-inset-top)) 16px 12px;
  }

  /* ── Messages ── */
  .messages-container {
    padding: 16px 12px;
  }

  .message-content {
    max-width: 88%;
    padding: 12px 14px;
  }

  .message-text ul, .message-text ol {
    margin-left: 16px;
  }

  .welcome-message {
    padding: 16px;
    margin-bottom: 16px;
  }

  /* ── Input Area: safe area for bottom ── */
  .input-area {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .input-container {
    gap: 8px;
    flex-wrap: wrap;
  }

  .message-input {
    flex: 1 1 100%;
    order: -1;
  }

  .send-btn {
    padding: 12px 16px;
    min-width: 60px;
    flex: 1;
  }

  /* ── Suggestions Panel ── */
  .suggestions-panel {
    max-height: 75vh;
    max-height: 75dvh;
  }

  .suggestions-header {
    padding: 0 16px 12px;
  }

  .suggestions-list {
    padding: 8px 12px max(24px, env(safe-area-inset-bottom));
  }

  /* ── Typography ── */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }

  .auth-logo h1 {
    font-size: 2rem;
  }

  /* ── Cards & Containers ── */
  .card {
    padding: 20px;
  }

  /* ── Profile / Settings ── */
  .profile-page,
  .settings-page {
    padding: 24px 16px;
  }

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

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

  /* ── Chat history items: bigger tap targets ── */
  .chat-item {
    padding: 14px 16px;
  }

  .question-item {
    padding: 12px 14px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .btn-primary:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .send-btn:hover:not(:disabled) {
    transform: none;
  }

  .chat-item:hover {
    background: transparent;
    border-color: transparent;
  }

  .chat-item.active:hover {
    background: var(--background);
    border-color: var(--primary);
  }

  .header-icon:hover {
    background: transparent;
  }

  .ideas-btn:hover {
    background: transparent;
  }

  .suggestion-topic:hover {
    border-color: var(--border);
  }

  .topic-header:hover {
    background: transparent;
  }

  .question-item:hover {
    background: transparent;
    color: var(--text);
  }

  .btn-ghost:hover {
    background: transparent;
    color: var(--primary);
  }

  .new-chat-btn:hover {
    background: var(--primary);
  }

  .suggestions-close:hover {
    background: transparent;
  }
}

/* Suggestions Panel */
.ideas-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--secondary);
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.ideas-btn:hover {
  background: var(--background);
  color: var(--primary);
}

.suggestions-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.suggestions-overlay.open {
  opacity: 1;
  visibility: visible;
}

.suggestions-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 65vh;
  background: var(--card);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.suggestions-panel.open {
  transform: translateY(0);
}

.suggestions-handle {
  text-align: center;
  padding: 12px 20px 8px;
  flex-shrink: 0;
}

.suggestions-handle::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

.suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.suggestions-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
}

.suggestions-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestions-close:hover {
  background: var(--background);
  color: var(--text);
}

.suggestions-list {
  overflow-y: auto;
  padding: 8px 16px 24px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.suggestion-topic {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.suggestion-topic:hover {
  border-color: var(--primary);
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
  transition: background 0.15s;
}

.topic-header:hover {
  background: var(--background);
}

.topic-info {
  flex: 1;
  min-width: 0;
}

.topic-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.topic-subtitle {
  font-size: 12px;
  color: var(--secondary);
}

.topic-count {
  font-size: 11px;
  color: var(--secondary);
  background: var(--background);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topic-chevron {
  font-size: 12px;
  color: var(--secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.suggestion-topic.expanded .topic-chevron {
  transform: rotate(90deg);
}

.topic-questions {
  display: none;
  padding: 0 16px 12px;
}

.suggestion-topic.expanded .topic-questions {
  display: block;
}

.question-item {
  padding: 10px 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  line-height: 1.5;
}

.question-item:hover {
  background: var(--background);
  color: var(--primary);
}

.input-highlight {
  animation: inputGlow 0.8s ease-out;
}

@keyframes inputGlow {
  0% { box-shadow: 0 0 0 3px rgba(193, 120, 73, 0.3); }
  100% { box-shadow: none; }
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════════
   App Layout: Header bar + Sidebar + Page content
   ══════════════════════════════════════════════════════════════ */

/* ── Header Bar ── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 200;
  gap: 8px;
}

.app-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #BA7517;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.app-header-logo svg { color: #BA7517; }

.sidebar-toggle {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.sidebar-toggle:hover {
  background: var(--background);
}

/* ── App Layout ── */
.app-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding-top: 48px;
  overflow: hidden;
}

/* ── Nav Sidebar ── */
.nav-sidebar {
  width: 200px;
  background: #F7F4F0;
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 250ms ease;
  overflow: hidden;
  z-index: 150;
}

.nav-sidebar.collapsed {
  width: 60px;
}

.nav-links {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0;
  border-radius: 10px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  background: rgba(186, 117, 23, 0.06);
  color: var(--text);
}

.nav-item.active {
  background: #FAEEDA;
  color: #BA7517;
  font-weight: 600;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg { display: block; width: 20px; height: 20px; }

.nav-label {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 200ms ease;
}

.nav-sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

.nav-sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
}

/* ── Page Content ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-sidebar {
    position: fixed;
    left: 0;
    top: 48px;
    height: calc(100% - 48px);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    z-index: 190;
  }

  .nav-sidebar:not(.collapsed) {
    width: 200px;
  }

  .nav-sidebar.open {
    transform: translateX(0);
  }

  .app-layout .chat-header .menu-toggle {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   Hover Utilities
   ══════════════════════════════════════════════════════════════ */

.hover-lift {
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hover-lift-sm {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.hover-lift-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ══════════════════════════════════════════════════════════════
   Interviews Page
   ══════════════════════════════════════════════════════════════ */

.interviews-page {
  padding: 40px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.interviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.interviews-header h1 {
  font-size: 1.75rem;
  margin: 0;
}

/* ── Round Cards ── */
.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.round-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.round-card:hover {
  box-shadow: var(--shadow-md);
}

.round-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.round-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.round-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--secondary);
}

.round-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.round-card-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active   { background: #D1FAE5; color: #065F46; }
.status-paused   { background: #FEF3C7; color: #92400E; }
.status-closed   { background: #F3F4F6; color: #6B7280; }
.status-analysed { background: #EDE9FE; color: #5B21B6; }
.status-running  { background: #FEF3C7; color: #92400E; }

/* ── Topic Pills ── */
.topic-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.topic-pill {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--secondary);
}

/* ── Progress Bar ── */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  max-width: 120px;
}

.progress-bar-fill {
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary);
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 15px;
}

/* ── Create Form ── */
.create-form-container {
  max-width: 700px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 24px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}

.back-link:hover {
  color: var(--primary);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.form-hint {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ── Topic Checkboxes ── */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .topic-grid { grid-template-columns: 1fr; }
}

.topic-checkbox {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.topic-checkbox:hover {
  border-color: var(--primary);
}

.topic-checkbox.selected {
  border-color: var(--primary);
  background: rgba(193, 120, 73, 0.06);
}

.topic-checkbox input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.topic-checkbox-label {
  font-size: 14px;
  font-weight: 500;
}

.topic-checkbox-desc {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 2px;
}

.topic-counter {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 8px;
}

.topic-counter.error { color: var(--error); }
.topic-counter.ok    { color: var(--success); }

.topic-warning {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400E;
  margin-top: 12px;
  display: none;
  line-height: 1.5;
}

.topic-warning.visible { display: block; }

/* ── Success Box ── */
.success-box {
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.success-box h3 {
  color: #065F46;
  margin-bottom: 8px;
}

.success-box p {
  color: #047857;
  font-size: 14px;
  margin-bottom: 16px;
}

.link-display {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #6EE7B7;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
  text-align: left;
}

.link-display span {
  flex: 1;
  font-size: 13px;
  color: var(--secondary);
  word-break: break-all;
}

/* ── Report View ── */
.report-container {
  max-width: 800px;
}

.report-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
}

.report-content h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.report-content h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.report-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.report-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--background);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--secondary);
}

.report-content ul, .report-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.report-content li {
  margin-bottom: 6px;
}

.report-content p {
  margin-bottom: 14px;
}

/* ── Error Banner ── */
.error-banner {
  background: #FFF5F5;
  border-left: 3px solid var(--error);
  color: var(--error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ── Loading Spinner ── */
.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

/* ── Responsive Interviews ── */
@media (max-width: 768px) {
  .interviews-page {
    padding: 24px 16px;
    padding-top: 56px;
  }

  .interviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .round-card {
    padding: 16px;
  }

  .round-card-header {
    flex-direction: column;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .report-content {
    padding: 24px 16px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Modal
   ══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  animation: modalIn 0.25s ease;
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--secondary);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   Round Detail Page
   ══════════════════════════════════════════════════════════════ */

.detail-page {
  padding: 40px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.detail-header-left h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.detail-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--secondary);
}

.detail-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-icon {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(184, 92, 92, 0.06);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ── Info + Progress Ring Row ── */
.detail-body {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.detail-info {
  flex: 1;
}

.detail-info-section {
  margin-bottom: 20px;
}

.detail-info-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 6px;
}

.detail-info-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ── Progress Ring ── */
.progress-ring-container {
  flex-shrink: 0;
  text-align: center;
}

.progress-ring {
  width: 140px;
  height: 140px;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: #4CAF50;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-ring-text {
  font-family: var(--font-heading);
  font-size: 22px;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: central;
}

.progress-ring-label {
  font-size: 12px;
  fill: var(--secondary);
  text-anchor: middle;
}

/* ── Analysis Section ── */
.analysis-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.analysis-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--primary);
}

/* ── Phase Loading ── */
.phase-loading {
  text-align: center;
  padding: 20px 0;
}

.phase-text {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 16px;
  font-style: italic;
}

.phase-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.phase-bar-fill {
  height: 5px;
  background: #4CAF50;
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0;
}

.phase-note {
  font-size: 12px;
  color: var(--secondary);
}

/* ── Report Panel ── */
.report-panel {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.report-panel-toggle {
  width: 100%;
  padding: 14px 20px;
  background: var(--background);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}

.report-panel-toggle:hover {
  background: var(--border);
}

.report-panel-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.report-panel.expanded .report-panel-toggle svg {
  transform: rotate(180deg);
}

.report-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.report-panel.expanded .report-panel-body {
  max-height: 5000px;
}

.report-panel-inner {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.report-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════
   Consultation Page
   ══════════════════════════════════════════════════════════════ */

.consultation-page {
  padding: 40px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.consultation-header h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.consultation-subtitle {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 32px;
}

.consultation-section {
  margin-bottom: 40px;
}

.consultation-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* ── Consultation Cards ── */
.consult-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.consult-card.issue {
  border-left: 4px solid var(--error);
}

.consult-card.strength {
  border-left: 4px solid var(--success);
}

.consult-card-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.consult-card-header:hover {
  background: var(--background);
}

.consult-card-title {
  font-weight: 600;
  font-size: 14px;
}

.consult-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prevalence-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.prevalence-widespread { background: #DCFCE7; color: #166534; }
.prevalence-common     { background: #FEF3C7; color: #92400E; }
.prevalence-notable    { background: #E0E7FF; color: #3730A3; }
.prevalence-emerging   { background: #F3F4F6; color: #6B7280; }

.consult-card-chevron svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: var(--secondary);
}

.consult-card.expanded .consult-card-chevron svg {
  transform: rotate(180deg);
}

.consult-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.consult-card.expanded .consult-card-body {
  max-height: 3000px;
}

.consult-card-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.consult-section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 20px 0 8px;
}

.consult-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.consult-text blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--background);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--secondary);
  font-size: 13px;
}

.action-plan {
  list-style: none;
  counter-reset: action-counter;
  padding: 0;
}

.action-plan li {
  counter-increment: action-counter;
  padding: 10px 0 10px 40px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.action-plan li:last-child {
  border-bottom: none;
}

.action-plan li::before {
  content: counter(action-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.limited-research-note {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #92400E;
  margin-top: 8px;
}

/* ── Responsive Detail + Consultation ── */
@media (max-width: 768px) {
  .detail-page, .consultation-page {
    padding: 24px 16px;
    padding-top: 56px;
  }

  .detail-header {
    flex-direction: column;
    gap: 12px;
  }

  .detail-body {
    flex-direction: column;
    gap: 24px;
  }

  .progress-ring-container {
    display: flex;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   Home Page
   ══════════════════════════════════════════════════════════════ */

.home-page {
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.home-welcome h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-welcome p {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 28px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.home-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 24px;
  min-height: 200px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

.home-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.home-card-icon svg { width: 20px; height: 20px; }

.home-card-icon.amber { background: #FAEEDA; color: #BA7517; }
.home-card-icon.teal  { background: #E1F5EE; color: #0F6E56; }

.home-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.home-card-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.home-card-cta {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  transition: gap 300ms ease;
}

.home-card:hover .home-card-cta { gap: 7px; }

.home-card-cta.amber { color: #BA7517; }
.home-card-cta.teal  { color: #0F6E56; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary);
  margin-bottom: 14px;
}

.round-rows-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.round-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
}

.round-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.round-row-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-row-progress {
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  white-space: nowrap;
}

.round-row-bar {
  width: 80px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.round-row-bar-fill {
  height: 5px;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.round-row-pct {
  font-size: 11px;
  color: var(--secondary);
  width: 30px;
  text-align: right;
}

.home-empty {
  font-size: 13px;
  color: var(--secondary);
  padding: 16px 0;
}

/* ══════════════════════════════════════════════════════════════
   Share Modal
   ══════════════════════════════════════════════════════════════ */

.share-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 80px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.share-btn svg { width: 24px; height: 24px; }

.share-btn-label {
  font-size: 11px;
  color: var(--secondary);
}

.share-url-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.share-url-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--secondary);
  outline: none;
  font-family: var(--font-body);
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  z-index: 600;
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Delete icon on round cards ── */
.round-card-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--secondary);
  transition: color 150ms ease;
  border-radius: 4px;
}

.round-card-delete:hover {
  color: #E24B4A;
  background: rgba(226, 75, 74, 0.06);
}

.round-card-delete svg { width: 16px; height: 16px; }

.round-card { position: relative; }

@media (max-width: 768px) {
  .home-page {
    padding: 24px 16px;
  }
  .home-cards {
    grid-template-columns: 1fr;
  }
}
