:root {
  --bg: #0a0a0a;
  --fg: #e5e5e5;
  --dim: #9aa0a6;
  --accent: #7c3aed;
  --ok: #22c55e;
  --card: #111214;
  --muted: #18181b;
  --border: #262626;

  /* Light mode variables */
  --bg-light: #ffffff;
  --fg-light: #111111;
  --text-primary: #111111;
  --text-secondary: #666666;
  --bg-secondary: #f8f9fa;
  --card-light: #ffffff;
  --border-light: #e9ecef;
}
* { box-sizing: border-box }
html,body { margin:0; padding:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji; }
body { background:#fff; color:#111; transition: background .3s, color .3s; }
.dark body { background: var(--bg); color: var(--fg); }
a { color: inherit; text-decoration: none; }
.site-header { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-bottom:1px solid var(--border); position: sticky; top:0; backdrop-filter: blur(6px); background: rgba(0,0,0,0.4); }
.brand { font-weight:800; letter-spacing:.5px; }
.brand .dot { color: var(--accent); margin-left:3px; }
.nav a { margin: 0 10px; opacity:.9 }
.nav .toggle { margin-left: 10px; border:1px solid var(--border); background: var(--muted); color: var(--fg); padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.inline { display:inline-block }
.container { max-width: 960px; margin: 0 auto; padding: 28px 20px; }
.hero { text-align: center; padding: 60px 0; }
.lead { color: #555; }
.dark .lead { color: var(--dim); }
.badges { margin-top: 16px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.badge { background: #f4f4f5; color:#111; padding:6px 10px; border-radius: 999px; font-size: 12px; }
.dark .badge { background: #0f0f12; color: var(--fg); border:1px solid var(--border); }
.cta { background: #111; color:#fff; border:0; padding: 12px 18px; border-radius: 12px; cursor: pointer; }
.dark .cta { background: var(--accent); }
.grid.three { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top: 30px; }
.grid.three article { border:1px solid var(--border); border-radius:16px; padding:16px; background:#fff; }
.dark .grid.three article { background: var(--card); }
.pricing { width:100%; border-collapse: collapse; margin: 20px 0; }
.pricing th, .pricing td { border:1px solid var(--border); padding: 10px; text-align: left; }
.status .green { color: var(--ok); }
.changelog li { margin: 8px 0; }
.darkboard { display:flex; justify-content:center; align-items:center; min-height: 60vh; position: relative; }
.dark-panel { background: #000; color:#fff; border:1px solid #111; border-radius: 18px; padding: 22px; width: 100%; max-width: 720px; box-shadow: 0 0 0 1px #111 inset; position: relative; }
.subtle { color:#bbb; }

/* Enhanced metrics with progress bars */
.metrics { display:grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.metric-card { background:#0c0c0c; padding:14px; border-radius:12px; border:1px solid #121212; text-align:center; transition: all 0.3s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.metric-value { margin-bottom: 8px; }
.metrics span { font-size: 32px; display:block; font-weight: bold; }
.progress-bar { height: 4px; background: #1a1a1a; border-radius: 2px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #22c55e); transition: width 0.5s ease; border-radius: 2px; }
.level-fill { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.peek-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.total-fill { background: linear-gradient(90deg, #ec4899, #f97316); }

/* Enhanced actions */
.actions { display:flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.action-btn { position: relative; border: none; border-radius: 12px; padding: 14px 20px; cursor: pointer; font-size: 16px; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; min-height: 48px; }
.action-btn.primary { background: var(--accent); color: white; }
.action-btn.primary:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.action-btn.secondary { background: #1a1a1a; color: white; border: 1px solid #333; }
.action-btn.secondary:hover { background: #2a2a2a; border-color: #555; }
.action-btn:active { transform: translateY(0); }
.btn-loading { display: none; }
.btn-text { transition: opacity 0.3s ease; }
.action-btn.loading .btn-text { opacity: 0; }
.action-btn.loading .btn-loading { display: block; }

.action-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.actions .api {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background:#0c0c0c;
  border:1px solid #222;
  border-radius:8px;
  padding:8px 12px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-block;
  transform: translateY(0);
}

.actions .api:hover {
  background: #1a1a1a;
  border-color: #444;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.actions .api:active {
  transform: translateY(0);
}

/* General hover effects for interactive elements */
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta:active {
  transform: translateY(0);
}

.badge:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Subtle animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.metric-card:hover .metrics span {
  animation: pulse 1s infinite;
}

/* Form loading states */
.cta.loading .btn-text {
  opacity: 0;
}

.cta.loading .btn-loading {
  display: inline;
}

.cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Input focus states */
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* Onboarding overlay */
.onboarding-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.onboarding-modal { background: #0c0c0c; border: 1px solid #333; border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.onboarding-modal h3 { color: var(--accent); margin-bottom: 16px; }
.onboarding-modal ul { text-align: left; margin: 16px 0; }
.onboarding-modal li { margin: 8px 0; color: #ccc; }
.onboarding-modal .cta { margin-top: 20px; width: 100%; }

/* API Documentation */
.api-section {
  margin: 2rem 0;
}

.api-section h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.api-section h3 {
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.api-section h4 {
  color: var(--fg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.api-section pre.code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.api-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.api-section li {
  margin: 0.5rem 0;
}

.quick-start {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.quick-start h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Home Page Styles */
.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .hero h1 {
  background: linear-gradient(135deg, var(--accent), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
  border: 2px solid transparent;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cta.primary.large {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}


/* Share Page Styles */
.share-section {
  padding: 2rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.share-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.share-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--accent), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .share-content h1 {
  background: linear-gradient(135deg, var(--accent), #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-display {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.share-image {
  margin-bottom: 3rem;
}

.share-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dark .share-image img {
  border-color: var(--border);
}

.image-caption {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.share-actions {
  margin-top: 3rem;
}

.primary-actions {
  margin-bottom: 3rem;
}

.primary-actions .cta {
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.secondary-actions h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.4rem;
}

.export-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .share-content h1 {
    font-size: 2rem;
  }

  .stats-display {
    gap: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .share-container {
    padding: 0 1rem;
  }
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.darkness-meter {
  background: var(--card-light);
  border: 2px solid var(--border-light);
  border-radius: 50px;
  padding: 1rem;
  width: 300px;
  position: relative;
}

.dark .darkness-meter {
  background: var(--card);
  border-color: var(--border);
}

.meter-fill {
  background: linear-gradient(90deg, var(--accent), #667eea);
  height: 20px;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.meter-label {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.features {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.dark .features {
  background: var(--bg-secondary);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.feature-card {
  background: var(--card-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.dark .feature-card {
  background: var(--card);
  border-color: var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.api-example {
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'Monaco', monospace;
  display: inline-block;
  margin-top: 1rem;
}

.testimonials {
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.testimonial {
  background: var(--card-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
  font-style: italic;
}

.dark .testimonial {
  background: var(--card);
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta.primary:hover {
  background: #f8f9fa;
  color: #667eea;
}

.cta.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta.secondary:hover {
  background: white;
  color: var(--accent);
}

/* Embed Page Styles */
.embed-section {
  padding: 2rem 0;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.embed-container {
  max-width: 1000px;
  width: 100%;
  padding: 0 1rem;
}

.embed-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dark .embed-content {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.embed-content h1 {
  color: var(--fg);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-align: center;
}

.embed-content .lead {
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.badge-preview {
  margin-bottom: 3rem;
  text-align: center;
}

.badge-preview h3 {
  color: var(--fg);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.badge-display {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.badge-display img {
  max-width: 100%;
  height: auto;
}

.preview-note {
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

.embed-options {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.embed-method {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.embed-method h3 {
  color: var(--fg);
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.embed-method p {
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.code-block {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

.copy-btn:hover {
  background: #5a0fc8;
}

.code {
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Light mode code blocks */
html.light .code {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}

/* Dark mode code blocks */
html.dark .code {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}

.pixel-tip {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem;
  border-radius: 4px;
  margin: 1rem 0 0 0;
  font-size: 0.9rem;
  border: 1px solid #f59e0b;
}

.dark .pixel-tip {
  background: #451a03;
  color: #fbbf24;
  border-color: #d97706;
}

.embed-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.embed-info h3 {
  color: var(--fg);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.embed-info ul {
  color: var(--text-secondary);
  margin: 0;
  padding-left: 1.5rem;
}

.embed-info li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.embed-info li:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness for embed page */
@media (max-width: 768px) {
  .embed-section {
    padding: 1rem 0;
  }

  .embed-content {
    padding: 1.5rem;
  }

  .embed-content h1 {
    font-size: 2rem;
  }

  .embed-content .lead {
    font-size: 1.1rem;
  }

  .embed-options {
    gap: 1.5rem;
  }

  .embed-method {
    padding: 1rem;
  }

  .code {
    font-size: 0.8rem;
    padding: 0.75rem;
  }

  .copy-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
}

/* Share page and main content button overrides */
.cta.secondary {
  background: #ffffff;
  color: #000000 !important;
  border: 2px solid #6c757d;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dark .cta.secondary {
  background: transparent;
  color: #ffffff !important;
  border-color: var(--accent);
}

.cta.secondary:hover {
  background: #f8f9fa;
  color: #000000 !important;
  border-color: var(--accent);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Toast notifications */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1001; }
.toast { background: #0c0c0c; border: 1px solid #333; border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); animation: toastSlideIn 0.3s ease; max-width: 300px; }
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }
.toast.info { border-color: var(--accent); }
.toast-message { color: white; font-size: 14px; }
.toast-close { float: right; margin-left: 8px; cursor: pointer; color: #666; }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* AI Darkness Coach */
.ai-coach {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 400px;
  background: #0c0c0c;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

.ai-coach-header {
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ai-icon {
  font-size: 18px;
}

.coach-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.coach-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.ai-coach-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coach-message {
  display: flex;
  margin-bottom: 8px;
}

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

.coach-message.ai {
  justify-content: flex-start;
}

.message-text {
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.coach-message.user .message-text {
  background: var(--accent);
  color: white;
}

.coach-message.ai .message-text {
  background: #1a1a1a;
  color: #e5e5e5;
  border: 1px solid #333;
}

.coach-message.ai .message-text strong {
  color: var(--accent);
  font-weight: 600;
}

.coach-message.ai .message-text a {
  color: #00aaff;
  text-decoration: underline;
  text-decoration-color: #00aaff;
  text-decoration-thickness: 2px;
  font-weight: 500;
}

.coach-message.ai .message-text a:hover {
  color: #66ddff;
  text-decoration-color: #66ddff;
}

.coach-message.ai .message-text br {
  display: block;
  margin: 0.5rem 0;
  content: "";
}

.ai-coach-input {
  border-top: 1px solid #333;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.ai-coach-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 20px;
  background: #1a1a1a;
  color: white;
  font-size: 14px;
}

.ai-coach-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.ai-coach-input button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.ai-coach-input button:hover {
  background: #6d28d9;
}

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

.route-note { color:#888; margin-top: 12px; font-size: 12px;}
.error { text-align:center; padding: 80px 0; }
@media (max-width: 820px) {
  .grid.three { grid-template-columns: 1fr; }

  /* Mobile button improvements */
  .action-btn {
    min-height: 56px;
    padding: 16px 24px;
    font-size: 18px;
    width: 100%;
    max-width: 320px;
  }

  .actions {
    align-items: center;
    gap: 20px;
  }

  .action-links {
    flex-direction: column;
    align-items: center;
  }

  .actions .api {
    font-size: 16px;
    padding: 12px 16px;
    min-width: 200px;
    text-align: center;
  }

  /* Mobile metric cards */
  .metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-card {
    padding: 20px;
  }

  .metrics span {
    font-size: 36px;
  }

  /* Mobile onboarding */
  .onboarding-modal {
    width: 95%;
    padding: 20px;
    margin: 20px;
  }

  .onboarding-modal ul {
    padding-left: 20px;
  }

  /* Mobile toast positioning */
  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .toast {
    max-width: none;
  }
}
