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

:root {
  --bg: #f0f4fa;
  --surface: #ffffff;
  --surface2: #e4ecf8;
  --border: #d0dcea;
  --primary: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e3a8a;
  --accent: #d97706;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bot-bg: #eff6ff;
  --user-bg: #1d4ed8;
  --radius: 12px;
  --shadow: 0 1px 4px rgba(15,23,42,0.07), 0 4px 20px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 28px rgba(29,78,216,0.13);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #080e1c;
  --surface: #0f1829;
  --surface2: #162236;
  --border: #1e3050;
  --primary: #60a5fa;
  --primary-light: #0f2040;
  --primary-dark: #93c5fd;
  --text: #e8f0fe;
  --text-secondary: #94b8d8;
  --text-muted: #4e6a88;
  --bot-bg: #0f2040;
  --user-bg: #1d4ed8;
  --shadow: 0 1px 4px rgba(0,0,0,0.4), 0 4px 20px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 28px rgba(0,0,0,0.5);
}

/* Dark mode — callout boxes */
[data-theme="dark"] .risk-box {
  background: #1f0a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}
[data-theme="dark"] .tip-box {
  background: #052e16;
  border-color: #166534;
  color: #86efac;
}
[data-theme="dark"] .topic-content p,
[data-theme="dark"] .topic-content ul,
[data-theme="dark"] .topic-content li {
  color: #94b8d8;
}
[data-theme="dark"] .topic-content strong {
  color: #e8f0fe;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(15,23,42,0.08);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.5rem; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-beginner {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Layout */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 244px 1fr 200px;
  gap: 20px;
  flex: 1;
  width: 100%;
}

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 100px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── Price Ticker ─────────────────────────────────────────────────────────── */
.price-ticker-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between;
}
.price-ticker-dot { font-size: 0.6rem; color: var(--text-muted); transition: color 0.4s; }
.price-ticker-section { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.price-ticker { display: flex; flex-direction: column; gap: 2px; }

/* Price widget — 3rd column right of content */
.price-widget-float {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 68px;
  align-self: start;
}
.price-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: 7px; background: var(--surface2);
  border: 1px solid var(--border); transition: background 0.15s;
}
.price-row:hover { background: var(--primary-light); border-color: #f0c87a; }
.price-row.skeleton { opacity: 0.35; }
.price-icon { font-size: 0.95rem; width: 20px; text-align: center; flex-shrink: 0; }
.price-info { flex: 1; min-width: 0; }
.price-name { font-size: 0.7rem; color: var(--text-muted); line-height: 1.2; }
.price-val { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.price-change { font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.price-change.up { color: var(--green); }
.price-change.down { color: var(--red); }

.topics-nav { display: flex; flex-direction: column; gap: 3px; }
.topic-btn {
  text-align: left;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  width: 100%;
}
.topic-btn:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(29,78,216,0.25); }
.topic-btn.active { background: var(--primary); color: #fff; font-weight: 600; border-color: var(--primary); }

/* Main area */
.main-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Topic Panel */
.topic-panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.topic-content {
  padding: 28px 32px;
  line-height: 1.75;
}
.topic-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.topic-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
  line-height: 1.4;
}
.topic-content p { color: var(--text-secondary); margin-bottom: 10px; font-size: 0.94rem; }
.topic-content ul { padding-left: 18px; color: var(--text-secondary); font-size: 0.94rem; }
.topic-content li { margin-bottom: 6px; }
.topic-content strong { color: var(--text); font-weight: 600; }
.risk-box {
  background: #fff7ed;
  border: 1px solid #fcd4a0;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: #7c2d12;
}
.tip-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: #14532d;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text { color: var(--text-secondary); font-size: 0.92rem; }
.glossar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.glossar-item { background: var(--surface2); border-radius: 8px; padding: 12px; border: 1px solid var(--border); }
.glossar-term { font-weight: 700; color: var(--primary); font-size: 0.88rem; }
.glossar-def { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* Chat Panel */
.chat-panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: 600px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius) var(--radius) 0 0;
}
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.chat-status { font-size: 0.76rem; color: var(--text-muted); }
.chat-status.typing { color: var(--accent); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.msg { display: flex; }
.msg-bot { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }
.msg-bubble {
  max-width: 75%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.msg-bot .msg-bubble {
  background: var(--bot-bg);
  color: var(--text);
  border-radius: 4px 16px 16px 16px;
}
.msg-user .msg-bubble {
  background: var(--user-bg);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}
.msg-typing .msg-bubble {
  background: var(--bot-bg);
  color: var(--text-muted);
  font-style: italic;
}
.typing-dots span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 2px;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.quick-questions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.quick-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.quick-btn:hover { background: var(--primary-light); color: var(--primary); border-color: #f0c87a; }
.chat-input-row {
  display: flex;
  gap: 8px;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 9px 17px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface);
  color: var(--text);
}
.chat-input-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,73,10,0.1); }
.send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.send-btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; }

/* ── Hamburger button (mobile only) ─────────────────────────────────────── */
.hamburger-btn {
  display: none;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  margin-right: 6px;
  line-height: 1;
  transition: background 0.15s;
}
.hamburger-btn:hover { background: var(--primary-light); border-color: var(--primary); }

/* Sidebar overlay backdrop (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,18,10,0.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .hamburger-btn { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; }

  .layout { grid-template-columns: 1fr; padding: 12px; }
  .price-widget-float { display: none; }

  /* Sidebar becomes a fixed left drawer on mobile */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 var(--radius) var(--radius) 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(26,18,10,0.18);
    padding-top: 20px;
  }
  .sidebar.open { transform: translateX(0); }

  /* Close button inside sidebar on mobile */
  .sidebar-close-btn {
    display: flex !important;
  }

  .topics-nav { flex-direction: column; flex-wrap: nowrap; }
  .topic-btn { flex: 1 1 auto; }
  .glossar-grid { grid-template-columns: 1fr; }
  .msg-bubble { max-width: 88%; }
  .topic-content { padding: 18px 16px; }
  .topic-content h2 { font-size: 1.25rem; }

  /* Kein horizontaler Scroll auf dem Handy */
  html, body { max-width: 100%; overflow-x: hidden; }

  /* Kompakte Kopfzeile, damit alles auf schmale Handys passt */
  .header-inner { padding: 10px 14px; gap: 8px; }
  #header-tagline, .logo-tag { display: none; }
  .logo-text { font-size: 1.05rem; }
  .logo > div:first-child { width: 40px !important; height: 40px !important; }
  .header-right { gap: 6px; }
  .lang-switcher { gap: 3px; margin-left: 4px; }
  .lang-btn { padding: 4px 7px; font-size: 0.8rem; }
  .lang-code { display: none; }                 /* nur Flaggen auf dem Handy */
  .dark-toggle { font-size: 0; padding: 7px 9px; }
  .dark-toggle > span { font-size: 1rem; }
  .hamburger-btn { font-size: 0.8rem; padding: 8px 11px; }
}

/* ── Sidebar Wallet CTA ─────────────────────────────────────────────────── */
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.wallet-cta-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 13px; border-radius: 9px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border: none; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
  text-align: left; font-family: inherit;
}
.wallet-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.wallet-cta-icon { font-size: 17px; }
.wallet-cta-badge {
  margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(255,255,255,0.22); border-radius: 4px; padding: 2px 6px;
}

/* ── Wallet Wizard Backdrop ─────────────────────────────────────────────── */
.wiz-backdrop {
  position: fixed; inset: 0; background: rgba(26,18,10,0.5);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.wiz-backdrop.hidden { display: none; }

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

.wiz-modal {
  background: var(--surface); border-radius: 18px;
  padding: 36px 32px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 20px 60px rgba(26,18,10,0.22);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.wiz-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; width: 30px; height: 30px; cursor: pointer;
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.wiz-close:hover { background: var(--border); }

.wiz-step { display: flex; flex-direction: column; gap: 16px; }
.wiz-step.hidden { display: none; }

.wiz-step-header { display: flex; flex-direction: column; gap: 6px; }
.wiz-step-num { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.wiz-progress { height: 3px; background: var(--border); border-radius: 2px; }
.wiz-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.4s ease; }
.wiz-spinner { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.wiz-icon { font-size: 46px; text-align: center; }
.success-icon { animation: popIn 0.4s ease; }
@keyframes popIn { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.wiz-modal h2 { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.wiz-modal p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

.wiz-info-row { display: flex; gap: 10px; }
.wiz-info-card {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px; text-align: center; font-size: 13px;
  color: var(--text-secondary);
}
.wiz-info-icon { font-size: 19px; margin-bottom: 4px; }

.wiz-warning {
  background: #fff8e6; border: 1px solid #fcd34d; border-radius: 8px;
  padding: 11px 13px; font-size: 13px; color: #7c2d12; line-height: 1.5;
}

.phantom-detect {
  background: var(--primary-light); border: 1px solid rgba(168,73,10,0.25);
  border-radius: 8px; padding: 11px 13px; font-size: 13px; color: var(--primary-dark);
  font-weight: 600;
}

.wiz-steps-list { display: flex; flex-direction: column; gap: 10px; }
.wiz-step-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: var(--text);
}
.wiz-step-circle {
  flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

.wiz-seed-explainer {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; padding: 13px;
}
.seed-title { font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--text); }
.seed-example { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.seed-word {
  background: var(--primary-light); border: 1px solid rgba(168,73,10,0.2);
  border-radius: 5px; padding: 3px 8px; font-size: 11.5px; color: var(--primary); font-weight: 600;
}
.wiz-seed-explainer p { font-size: 11.5px; color: var(--text-secondary); }

.wiz-btn {
  padding: 12px 18px; border-radius: 9px; border: none;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; text-align: center; text-decoration: none;
  display: block; width: 100%; font-family: inherit;
}
.wiz-btn.primary { background: var(--primary); color: #fff; }
.wiz-btn.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.wiz-btn.outline { background: none; border: 2px solid var(--primary); color: var(--primary); }
.wiz-btn.outline:hover { background: var(--primary-light); }
.wiz-btn.ghost { background: none; color: var(--text-muted); font-size: 13px; padding: 8px; }
.wiz-btn.ghost:hover { color: var(--text); }

.connecting-indicator {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  padding: 20px; background: var(--surface2); border-radius: 9px;
  font-size: 13.5px; color: var(--text-secondary);
}
.spinner {
  width: 19px; height: 19px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.connect-error {
  background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px;
  padding: 11px 13px; font-size: 13px; color: var(--red); line-height: 1.5;
}

.wallet-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  border-radius: 13px; padding: 18px; color: #fff; text-align: center;
}
.wallet-card-label { font-size: 11px; opacity: 0.75; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.wallet-address {
  font-family: monospace; font-size: 12.5px; word-break: break-all;
  background: rgba(255,255,255,0.15); border-radius: 6px; padding: 7px 10px;
  margin-bottom: 9px;
}
.copy-addr-btn {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: 6px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
  transition: background 0.15s; font-family: inherit;
}
.copy-addr-btn:hover { background: rgba(255,255,255,0.3); }

.next-steps-box {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; overflow: hidden;
}
.next-steps-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 11px 13px 7px; }
.next-step-item {
  padding: 9px 13px; font-size: 13.5px; cursor: pointer;
  border-top: 1px solid var(--border); transition: background 0.12s;
  color: var(--text-secondary);
}
.next-step-item:hover { background: var(--primary-light); color: var(--primary); }

/* ── Emblem MultiWallet additions ────────────────────────────────────────── */
.emblem-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.emblem-logo { font-size: 30px; color: var(--primary); }
.emblem-logo-text { font-size: 15px; color: var(--text-secondary); }

.seed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.seed-cell {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 9px;
}
.seed-num { font-size: 10.5px; color: var(--text-muted); font-weight: 600; min-width: 15px; }
.seed-word-val { font-size: 13.5px; font-weight: 600; color: var(--primary); font-family: monospace; }

.wiz-confirm-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; cursor: pointer; line-height: 1.5;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px;
}
.wiz-confirm-label input { accent-color: var(--green); margin-top: 2px; flex-shrink: 0; }

.multi-wallet-cards { display: flex; flex-direction: column; gap: 10px; }
.mw-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px;
}
.mw-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mw-icon { font-size: 17px; }
.mw-chain { font-weight: 700; font-size: 13.5px; color: var(--text); }
.mw-symbol { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--primary-light); border-radius: 5px; padding: 2px 6px; color: var(--primary); }
.mw-address {
  font-family: monospace; font-size: 10.5px; color: var(--text-secondary);
  word-break: break-all; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 9px; margin-bottom: 8px;
}
.mw-copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 11px; font-size: 11.5px; cursor: pointer; color: var(--text-secondary);
  transition: all 0.15s; font-family: inherit;
}
.mw-copy-btn:hover { border-color: var(--primary); color: var(--primary); }

.wiz-info-box {
  background: var(--primary-light); border: 1px solid rgba(168,73,10,0.2);
  border-radius: 8px; padding: 11px 13px; font-size: 13px; color: var(--primary-dark); line-height: 1.5;
}

/* ── HustleAI Command Chat ───────────────────────────────────────────────── */
.hustle-chat-section {
  border: 1px solid var(--border); border-radius: 13px; overflow: hidden;
  background: var(--surface);
}
.hustle-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; background: var(--primary);
  color: #fff;
}
.hustle-avatar { font-size: 19px; width: 34px; height: 34px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hustle-name { font-weight: 700; font-size: 13.5px; }
.hustle-subtitle { font-size: 10.5px; opacity: 0.8; }
.hustle-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; margin-left: auto; box-shadow: 0 0 5px #4ade80; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hustle-messages { max-height: 175px; overflow-y: auto; padding: 9px 11px; display: flex; flex-direction: column; gap: 7px; }
.hustle-msg { font-size: 12.5px; padding: 7px 11px; border-radius: 9px; max-width: 88%; line-height: 1.5; }
.hustle-msg.bot { background: var(--bot-bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 3px; }
.hustle-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }

.hustle-typing { display: flex; align-items: center; }
.hustle-dots { display: flex; gap: 4px; }
.hustle-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: dotBounce 1.2s ease-in-out infinite; }
.hustle-dots span:nth-child(2) { animation-delay: 0.2s; }
.hustle-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

.hustle-quick-cmds { display: flex; gap: 5px; padding: 5px 11px; flex-wrap: wrap; border-top: 1px solid var(--border); background: var(--surface2); }
.hustle-quick { font-size: 10.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; cursor: pointer; color: var(--text-secondary); transition: all 0.12s; }
.hustle-quick:hover { border-color: var(--primary); color: var(--primary); }

.hustle-input-row { display: flex; gap: 7px; padding: 9px 11px; border-top: 1px solid var(--border); }
.hustle-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 7px 11px; font-size: 12.5px; color: var(--text); outline: none; font-family: inherit; }
.hustle-input:focus { border-color: var(--primary); }
.hustle-send-btn { background: var(--primary); border: none; color: #fff; border-radius: 7px; padding: 7px 13px; cursor: pointer; font-size: 13px; transition: opacity 0.15s; }
.hustle-send-btn:hover { opacity: 0.85; }

/* ── Tutorial ──────────────────────────────────────────────────────────────── */
.tutorial-btn { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 11px; font-weight: 600; color: var(--primary) !important; }

.tut-progress-wrap { margin: 14px 0 18px; }
.tut-progress-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.tut-progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width 0.4s ease; }
.tut-progress-label { font-size: 0.8rem; color: var(--text-muted); }

.tut-complete-banner { background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 9px; padding: 13px 17px; margin-bottom: 17px; font-size: 0.93rem; color: #065f46; }

.tut-step { border: 1px solid var(--border); border-radius: 9px; margin-bottom: 9px; overflow: hidden; transition: border-color 0.2s; }
.tut-step.tut-step-done { border-color: var(--green); background: #f0fdf4; }
.tut-step-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; cursor: pointer; user-select: none; }
.tut-step-header:hover { background: var(--primary-light); }
.tut-step.tut-step-done .tut-step-header:hover { background: #dcfce7; }
.tut-step-left { display: flex; align-items: center; gap: 9px; }
.tut-step-circle { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.tut-step-circle.done { background: var(--green); border-color: var(--green); color: #fff; }
.tut-step-icon { font-size: 1.05rem; }
.tut-step-title { font-size: 0.93rem; font-weight: 600; color: var(--text); }
.tut-step.tut-step-done .tut-step-title { color: #166534; }
.tut-chevron { font-size: 0.78rem; color: var(--text-muted); }

.tut-step-body { padding: 0 15px 15px; border-top: 1px solid var(--border); }
.tut-step-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 11px 0; }
.tut-check-label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 9px 11px; background: var(--primary-light); border-radius: 7px; font-size: 0.86rem; color: var(--primary); font-weight: 500; }
.tut-check-label input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.tut-step.tut-step-done .tut-check-label { background: #dcfce7; color: #166534; }

.tut-reset-btn { margin-top: 8px; background: none; border: 1px solid var(--border); border-radius: 7px; padding: 7px 15px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.tut-reset-btn:hover { border-color: var(--red); color: var(--red); }

/* ── First Buy Button ─────────────────────────────────────────────────────── */
.first-buy-btn {
  margin-top: 8px; width: 100%; text-align: center;
  background: var(--primary);
  color: #fff; border: none; border-radius: 9px; padding: 10px 14px;
  font-size: 0.87rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s; font-family: inherit;
}
.first-buy-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── First Buy Modal ──────────────────────────────────────────────────────── */
.fb-backdrop { position: fixed; inset: 0; background: rgba(26,18,10,0.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fb-backdrop.hidden { display: none; }
.fb-modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 26px 22px; position: relative; box-shadow: 0 20px 60px rgba(26,18,10,0.22); }
.fb-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--text-muted); }
.fb-close:hover { color: var(--text); }
.fb-header { text-align: center; margin-bottom: 22px; }
.fb-icon { font-size: 2.3rem; margin-bottom: 7px; }
.fb-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.fb-header p { font-size: 0.87rem; color: var(--text-secondary); }
.fb-steps { display: flex; flex-direction: column; gap: 14px; }
.fb-step { display: flex; gap: 13px; align-items: flex-start; background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; padding: 14px; }
.fb-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.fb-step-body { flex: 1; }
.fb-step-title { font-weight: 700; font-size: 0.93rem; color: var(--text); margin-bottom: 4px; }
.fb-step-desc { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 9px; }
.fb-wallet-status { display: flex; align-items: center; gap: 9px; font-size: 0.83rem; flex-wrap: wrap; }
.fb-wallet-status.no-wallet { color: #7c2d12; }
.fb-wallet-status.has-wallet { color: var(--green); font-weight: 600; }
.fb-link-btn { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 4px 9px; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.fb-link-btn:hover { opacity: 0.85; }
.fb-address-wrap { margin-top: 7px; }
.fb-address-label { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 3px; }
.fb-address-box { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 7px 9px; font-size: 0.7rem; font-family: monospace; color: var(--text); word-break: break-all; }
.fb-copy-mini { background: none; border: none; cursor: pointer; font-size: 0.95rem; flex-shrink: 0; }
.fb-amount-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.fb-amount-chip { background: var(--surface); border: 2px solid var(--border); border-radius: 7px; padding: 6px 15px; font-size: 0.88rem; font-weight: 600; cursor: pointer; color: var(--text); transition: all 0.15s; font-family: inherit; }
.fb-amount-chip:hover { border-color: var(--amber); color: var(--amber); }
.fb-amount-chip.active { background: #fff7e6; border-color: var(--amber); color: var(--primary-dark); }
.fb-amount-note { font-size: 0.76rem; color: var(--text-muted); }
.fb-currency-chip { background: var(--surface); border: 2px solid var(--border); border-radius: 7px; padding: 5px 13px; font-size: 0.86rem; font-weight: 600; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; font-family: inherit; }
.fb-currency-chip:hover { border-color: var(--primary); color: var(--primary); }
.fb-currency-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.fb-moonpay-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; background: linear-gradient(135deg, #1652f0, #0e3eb3); color: #fff; border: none; border-radius: 9px; padding: 12px; font-size: 0.97rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity 0.15s, transform 0.1s; margin-bottom: 5px; }
.fb-moonpay-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.fb-moonpay-logo { font-size: 1.15rem; }
.fb-moonpay-note { font-size: 0.73rem; color: var(--text-muted); text-align: center; }
.fb-warning { margin-top: 14px; background: #fff7ed; border: 1px solid #fcd4a0; border-radius: 8px; padding: 9px 13px; font-size: 0.8rem; color: #7c2d12; }

/* Wallet Widget */
.wallet-widget { margin-top: 10px; background: linear-gradient(135deg, #1e1208, #120b04); border-radius: 13px; padding: 13px; border: 1px solid rgba(255,255,255,0.07); }
.wallet-widget-header { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.wallet-widget-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 5px #22c55e; }
.wallet-widget-title { color: #f1ede8; font-size: 0.8rem; font-weight: 600; flex: 1; }
.wallet-widget-disconnect { background: none; border: none; color: #64748b; cursor: pointer; font-size: 0.83rem; padding: 2px 4px; line-height: 1; }
.wallet-widget-disconnect:hover { color: #ef4444; }
.wallet-widget-addresses { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.wallet-widget-addr { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); border-radius: 7px; padding: 6px 9px; }
.wallet-widget-addr-icon { font-size: 0.88rem; width: 18px; }
.wallet-widget-addr-val { font-family: monospace; font-size: 0.73rem; color: #c8b89a; flex: 1; padding: 0 5px; }
.wallet-widget-copy { background: none; border: none; color: #64748b; cursor: pointer; font-size: 0.83rem; padding: 0; }
.wallet-widget-copy:hover { color: #94a3b8; }
.wallet-widget-send-btn { display: block; text-align: center; background: var(--primary); color: #fff; border-radius: 9px; padding: 9px; font-size: 0.83rem; font-weight: 700; text-decoration: none; transition: opacity 0.15s; }
.wallet-widget-send-btn:hover { opacity: 0.9; }

/* ── Portfolio Tracker ─────────────────────────────────────────────── */
.portfolio-tracker { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 10px; }
.portfolio-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.portfolio-refresh-btn { background: none; border: 1px solid var(--border); border-radius: 7px; padding: 2px 8px; font-size: 1rem; cursor: pointer; color: var(--text-secondary); transition: color 0.15s, border-color 0.15s; line-height: 1.4; }
.portfolio-refresh-btn:hover { color: var(--primary); border-color: var(--primary); }
.portfolio-rows { display: flex; flex-direction: column; gap: 6px; min-height: 30px; }
.portfolio-loading { font-size: 0.78rem; color: var(--text-muted); text-align: center; padding: 6px 0; }
.portfolio-row { display: grid; grid-template-columns: 18px minmax(32px,auto) 1fr auto; align-items: center; gap: 5px; font-size: 0.78rem; }
.pr-icon { font-size: 0.9rem; text-align: center; }
.pr-sym { font-weight: 700; color: var(--text); }
.pr-bal { color: var(--text-muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-eur { font-weight: 700; color: var(--primary); text-align: right; white-space: nowrap; }
.portfolio-total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; font-size: 0.8rem; font-weight: 700; color: var(--text); }
.portfolio-total-val { font-size: 1.1rem; color: var(--primary); }
.portfolio-updated { font-size: 0.68rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
[data-theme="dark"] .portfolio-tracker { background: var(--surface2); }

/* ── Emblem AI Topic ───────────────────────────────────────────────── */
.emblem-ai-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; color: #fff !important; font-weight: 700 !important; }
.emblem-ai-btn:hover { opacity: 0.9; }
.emblem-ai-btn.active { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; }
.ai-prompt-list { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 16px; }
.ai-prompt { display: flex; align-items: flex-start; gap: 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 0.86rem; color: var(--text); }
.ai-prompt-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
[data-theme="dark"] .ai-prompt { background: #1e1a28; border-color: #3d2f5a; }
.ai-cta-btn { display: block; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; text-align: center; padding: 14px 20px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; text-decoration: none; margin-top: 8px; transition: opacity 0.15s; }
.ai-cta-btn:hover { opacity: 0.9; }
.wallet-widget-addr-label { font-size: 0.7rem; font-weight: 700; color: #8a7060; width: 28px; flex-shrink: 0; }

/* MoonPay Registration Button */
.moonpay-reg-btn { display: block; width: 100%; margin-top: 7px; padding: 10px 13px; background: linear-gradient(135deg, #1652f0, #0e3eb3); color: #fff; border: none; border-radius: 9px; font-size: 0.86rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; text-align: center; }
.moonpay-reg-btn:hover { opacity: 0.9; }

/* MoonPay Guide Modal */
.moonpay-explainer { margin-bottom: 15px; }
.mp-what-box { background: var(--primary-light); border-radius: 9px; padding: 11px 13px; font-size: 0.83rem; color: var(--text); margin-bottom: 13px; line-height: 1.5; border: 1px solid rgba(168,73,10,0.15); }
.mp-flow { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 13px; }
.mp-flow-step { display: flex; align-items: center; gap: 9px; background: var(--surface2); border-radius: 7px; padding: 7px 11px; width: 100%; font-size: 0.82rem; color: var(--text-secondary); }
.mp-flow-step.mp-flow-done { background: #f0fdf4; color: #166534; }
.mp-flow-num { width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.73rem; font-weight: 700; flex-shrink: 0; }
.mp-flow-done .mp-flow-num { background: #22c55e; }
.mp-flow-arrow { font-size: 0.95rem; color: var(--text-muted); line-height: 1; }
.mp-reg-title { font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.mp-reg-steps { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.mp-reg-step { display: flex; gap: 7px; font-size: 0.81rem; color: var(--text-secondary); }
.mp-reg-step span { font-weight: 700; color: var(--primary); }
.mp-note { background: #fff8e6; border: 1px solid #fcd34d; border-radius: 7px; padding: 9px 11px; font-size: 0.78rem; color: #7c2d12; }

/* FAQ Panel */
.faq-panel { display: flex; flex-direction: column; }
.faq-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.faq-item { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--primary-light); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; font-size: 0.88rem; font-weight: 600; color: var(--text); gap: 11px; }
.faq-arrow { font-size: 1.15rem; color: var(--primary); flex-shrink: 0; transition: transform 0.2s; line-height: 1; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 15px 13px; font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }
.faq-item.open .faq-a { display: block; }

/* Language switcher */
.lang-switcher { display: flex; gap: 3px; margin-left: 10px; }
.lang-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; font-size: 0.73rem; cursor: pointer; color: var(--text-secondary); font-weight: 500; font-family: inherit; }
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-btn:hover:not(.active) { background: var(--border); }

/* Dark mode toggle */
.dark-toggle {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 4px 11px;
  font-size: 0.72rem; font-weight: 700; cursor: pointer;
  color: var(--text-secondary); font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-left: 8px; letter-spacing: 0.02em;
}
.dark-toggle:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .dark-toggle { border-color: var(--primary); color: var(--primary-dark); }

/* Kurs dropdown */
.kurs-dropdown-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.kurs-dd-arrow { font-size: 1.05rem; color: var(--primary); transition: transform 0.2s; }
.kurs-dropdown-btn.open .kurs-dd-arrow { transform: rotate(90deg); }
.kurs-dropdown { display: none; padding-left: 8px; border-left: 2px solid var(--border); margin-left: 4px; }
.kurs-dropdown.open { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }

/* Sidebar close button (mobile only) */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 10px; right: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.sidebar-close-btn:hover { background: var(--border); }

/* Kurs ablauf label */
.kurs-ablauf-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 4px 2px 2px; }
.kurs-ablauf-divider { height: 1px; background: var(--border); margin: 6px 0 4px; }

/* Kurs step buttons */
.kurs-step-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 11px; border-left: 3px solid var(--primary); }
.kurs-step-tag { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.moonpay-link-btn { display: block; text-align: center; background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff !important; font-weight: 700; font-size: 0.83rem; border-radius: 7px; padding: 8px 11px; text-decoration: none; margin-top: 2px; }
.moonpay-link-btn:hover { opacity: 0.9; }

/* Compare grid for Was ist Krypto */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 11px 0 15px; }
.compare-col { background: var(--surface2); border-radius: 9px; padding: 11px 13px; }
.compare-col.crypto { background: var(--primary-light); border-left: 3px solid var(--primary); }
.compare-title { font-weight: 700; font-size: 0.86rem; margin-bottom: 7px; color: var(--text); }
.compare-col ul { padding-left: 13px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Start CTA at top of sidebar */
.start-cta {
  display: block; width: 100%; margin-bottom: 4px;
  background: var(--primary);
  color: #fff !important; font-weight: 700; font-size: 0.92rem;
  border-radius: 9px; padding: 11px 13px; text-align: left;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.start-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.start-cta.active { background: var(--primary-dark) !important; }

/* Dropdown for "Wo anfangen?" */
.dropdown-wrap { position: relative; margin-bottom: 4px; }
.dropdown-toggle { margin-bottom: 0 !important; display: flex !important; align-items: center; justify-content: space-between; }
.dd-arrow { font-size: 0.85rem; transition: transform 0.25s ease; margin-left: 4px; }
.dropdown-toggle.open .dd-arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease, padding 0.2s ease, margin-top 0.2s ease;
  background: var(--surface2); border-radius: 10px;
  overflow: hidden;
  padding: 0 6px; margin-top: 0;
  border: 1px solid transparent;
}
.dropdown-menu.open {
  grid-template-rows: 1fr;
  padding: 6px;
  margin-top: 3px;
  border-color: var(--border);
}
.dropdown-menu > div { overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.dd-item {
  font-size: 0.88rem !important; padding: 8px 10px !important;
  text-align: left; background: transparent !important;
  color: var(--text) !important; border-radius: 7px !important;
  border: none !important; cursor: pointer;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.dd-item:hover { background: var(--primary) !important; color: #fff !important; padding-left: 14px !important; }
.dd-item.active { background: var(--primary) !important; color: #fff !important; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 10px 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.7rem; color: var(--text-muted); }
.footer-disclaimer-link { background: none; border: none; color: var(--text-muted); font-size: 0.7rem; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }
.footer-disclaimer-link:hover { color: var(--primary); }
.footer-visitors { font-size: 0.7rem; color: var(--text-muted); }

/* ── Entrance animations ──────────────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.topic-panel, .chat-panel {
  animation: fadeSlideIn 0.25s ease forwards;
}

/* ── Welcome Greeting ─────────────────────────────────────────────────────── */
@keyframes greetingIn {
  0%   { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes wavingHand {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(20deg); }
  40%       { transform: rotate(-8deg); }
  60%       { transform: rotate(16deg); }
  80%       { transform: rotate(-4deg); }
}
.welcome-greeting {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  animation: greetingIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.welcome-wave {
  font-size: 2.4rem;
  display: inline-block;
  flex-shrink: 0;
  animation: wavingHand 1.2s ease 0.4s 1;
  transform-origin: 70% 80%;
}
.welcome-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  display: block;
}
.welcome-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 5px;
  animation: greetingIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.welcome-motivation {
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  animation: greetingIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.welcome-dialogue {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dialogue-them {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.dialogue-me {
  background: #22c55e;
  color: #fff;
  border-radius: 10px 10px 2px 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  align-self: flex-end;
}

/* ── Key Facts Visual Cards ───────────────────────────────────────────────── */
.keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}
.keyfact-card {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.keyfact-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.keyfact-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 3px; }
.keyfact-val { font-size: 0.95rem; font-weight: 700; color: var(--text); }
