/* ============================================================
   AI深度决策 — Mobile-First Stylesheet
   ============================================================ */

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

:root {
  --bg:        #0d0f14;
  --bg2:       #161921;
  --bg3:       #1e2230;
  --surface:   #242838;
  --border:    #2e3347;
  --accent:    #6c63ff;
  --accent2:   #a78bfa;
  --gold:      #f5a623;
  --red:       #ff4d6d;
  --green:     #22c55e;
  --text:      #e8eaf0;
  --text2:     #9aa3bb;
  --text3:     #5c6480;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }

/* ---------- Landing Page ---------- */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  text-align: center;
  background: radial-gradient(ellipse at 60% 0%, rgba(108,99,255,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(167,139,250,.10) 0%, transparent 50%),
              var(--bg);
}

.landing-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(108,99,255,.4);
}

.landing h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing .subtitle {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 320px;
  margin: 0 auto 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.5rem;
  text-align: left;
  width: 100%;
  max-width: 340px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .9rem;
}

.feature-item .icon { font-size: 1.2rem; flex-shrink: 0; }
.feature-item strong { display: block; color: var(--text); }
.feature-item span { color: var(--text2); font-size: .82rem; }

.btn-start {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(108,99,255,.45);
  transition: transform .15s, box-shadow .15s;
  border: none;
  letter-spacing: .01em;
}

.btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108,99,255,.55); }
.btn-start:active { transform: translateY(0); }

.landing-footer {
  margin-top: 3rem;
  color: var(--text3);
  font-size: .8rem;
}

/* ---------- Session Page ---------- */
.session-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 680px;
  margin: 0 auto;
}

.session-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}

.session-header .logo-sm {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.session-header .title-group { flex: 1; }
.session-header h2 { font-size: 1rem; font-weight: 700; }
.session-header .status-text { font-size: .78rem; color: var(--text2); }

/* Step progress */
.step-progress {
  display: flex;
  gap: 4px;
  padding: .75rem 1.25rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}

.step-dot.answered { background: var(--accent); }
.step-dot.current { background: var(--accent2); animation: pulse-bar 1.2s ease-in-out infinite; }

@keyframes pulse-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Chat area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
}

.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }
.chat-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message bubbles */
.msg {
  display: flex;
  gap: .6rem;
  max-width: 88%;
  animation: msg-in .2s ease-out;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.assistant { align-self: flex-start; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
}

.msg.assistant .msg-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.msg.user .msg-avatar {
  background: var(--surface);
  border: 1px solid var(--border);
}

.msg-bubble {
  padding: .7rem 1rem;
  border-radius: var(--radius);
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.assistant .msg-bubble {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
  color: var(--text);
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: var(--radius) 4px var(--radius) var(--radius);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: .6rem .9rem;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--text2);
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input bar */
.input-bar {
  flex-shrink: 0;
  padding: .75rem 1rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.input-toggle {
  display: flex;
  background: var(--surface);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: .6rem;
  width: fit-content;
}

.toggle-btn {
  padding: .35rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  background: transparent;
  color: var(--text2);
  transition: background .15s, color .15s;
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.text-input-row {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}

.text-input-row textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  padding: .6rem .85rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color .15s;
}

.text-input-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.text-input-row textarea::placeholder { color: var(--text3); }

.btn-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}

.btn-send:hover { background: var(--accent2); }
.btn-send:active { transform: scale(.93); }
.btn-send:disabled { background: var(--border); cursor: not-allowed; }

/* Voice input panel */
.voice-input-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
}

.btn-record {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.btn-record.recording {
  background: var(--red);
  border-color: var(--red);
  animation: record-pulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,77,109,.4);
}

@keyframes record-pulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,77,109,.4); }
  70% { box-shadow: 0 0 0 16px rgba(255,77,109,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}

.voice-status { font-size: .85rem; color: var(--text2); }
.voice-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  font-size: .9rem;
  color: var(--text);
  width: 100%;
  min-height: 40px;
  display: none;
}
.voice-preview.has-text { display: block; }

/* Analyzing overlay */
.analyzing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,15,20,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.analyzing-overlay.hidden { display: none; }

.orbit-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.orbit-spinner::before,
.orbit-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.orbit-spinner::before {
  inset: 0;
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.orbit-spinner::after {
  inset: 12px;
  border-top-color: var(--accent2);
  animation: spin .7s linear infinite reverse;
}

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

.analyzing-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.analyzing-steps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-align: left;
  font-size: .9rem;
  color: var(--text2);
}

.analyzing-step {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  transition: all .3s;
}

.analyzing-step.active {
  background: rgba(108,99,255,.15);
  color: var(--accent2);
  border-left: 3px solid var(--accent);
}

.analyzing-step.done { color: var(--green); }

.progress-bar-wrap {
  width: 240px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width .5s ease-out;
}

/* ---------- Report Page ---------- */
.report-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.report-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.report-top-bar h1 {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-share, .btn-pdf {
  padding: .4rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.btn-share {
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-share:hover { border-color: var(--accent); color: var(--accent2); }

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

.action-bar {
  display: flex;
  gap: .5rem;
}

/* Report sections */
.report-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.core-contradiction {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: .75rem;
  border-left: 3px solid var(--accent);
}

.meta-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

.badge-blue { background: rgba(108,99,255,.2); color: var(--accent2); border: 1px solid rgba(108,99,255,.3); }
.badge-orange { background: rgba(245,166,35,.15); color: var(--gold); border: 1px solid rgba(245,166,35,.3); }

.fact-table {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.fact-category { background: var(--bg3); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.fact-cat-name { font-size: .82rem; font-weight: 700; color: var(--text2); margin-bottom: .4rem; }
.fact-category ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.fact-category li { font-size: .88rem; color: var(--text); padding-left: 1rem; position: relative; }
.fact-category li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

.sub-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: .6rem;
}

.red-title { color: var(--red); }
.green-title { color: var(--green); }

.info-gaps { margin-top: .75rem; }
.gap-item {
  font-size: .87rem;
  color: var(--gold);
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: var(--radius-sm);
  padding: .4rem .7rem;
  margin-bottom: .4rem;
}

/* Pathway cards */
.pathway-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}

.pathway-card.pathway-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), inset 0 0 40px rgba(108,99,255,.05);
}

.recommended-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 0 var(--radius) 0 var(--radius);
  letter-spacing: .05em;
}

.pathway-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .35rem;
}

.pathway-num { font-size: .75rem; color: var(--text3); font-weight: 600; }
.pathway-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.pathway-tagline { font-size: .85rem; color: var(--accent2); margin-bottom: .75rem; font-style: italic; }
.pathway-desc { font-size: .88rem; color: var(--text2); line-height: 1.6; margin-bottom: .75rem; }

.pathway-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }

.rev-badge, .time-badge {
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-weight: 600;
}

.rev-green  { background: rgba(34,197,94,.15);  color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.rev-orange { background: rgba(245,166,35,.15); color: var(--gold); border: 1px solid rgba(245,166,35,.3); }
.rev-red    { background: rgba(255,77,109,.15);  color: var(--red); border: 1px solid rgba(255,77,109,.3); }
.time-badge { background: var(--surface); color: var(--text2); border: 1px solid var(--border); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
.pros, .cons { background: var(--surface); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.pros { border-top: 2px solid var(--green); }
.cons { border-top: 2px solid var(--red); }
.pc-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.pros .pc-title { color: var(--green); }
.cons .pc-title { color: var(--red); }
.pros ul, .cons ul { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.pros li, .cons li { font-size: .82rem; color: var(--text2); padding-left: .9rem; position: relative; }
.pros li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: '−'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.key-risk {
  font-size: .82rem;
  color: var(--red);
  background: rgba(255,77,109,.07);
  border: 1px solid rgba(255,77,109,.2);
  border-radius: var(--radius-sm);
  padding: .4rem .7rem;
}

.synthesis {
  font-size: .9rem;
  color: var(--text2);
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 3px solid var(--accent2);
  margin-top: .5rem;
  font-style: italic;
}

/* Scoring table */
.score-table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.score-table th, .score-table td {
  padding: .6rem .75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.score-table th {
  background: var(--bg3);
  color: var(--text2);
  font-weight: 700;
  font-size: .8rem;
}

.score-table .dim-name {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.dim-weight { color: var(--text3); font-size: .75rem; margin-left: .25rem; }

.score-cell { cursor: help; }

.score-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  background: var(--surface);
}

.total-row td { font-weight: 700; color: var(--accent2); background: rgba(108,99,255,.07); }

.score-note {
  font-size: .82rem;
  color: var(--text3);
  padding: .5rem;
  text-align: center;
  font-style: italic;
}

/* Final recommendation */
.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.rec-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
}

.rec-title span { color: var(--accent2); font-weight: 800; }

.confidence-badge {
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
}

.conf-高 { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.conf-中 { background: rgba(245,166,35,.15); color: var(--gold); border: 1px solid rgba(245,166,35,.3); }
.conf-低 { background: rgba(255,77,109,.15); color: var(--red); border: 1px solid rgba(255,77,109,.3); }

.core-rec {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(108,99,255,.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.reasoning {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.reframe {
  font-size: .92rem;
  color: var(--gold);
  background: rgba(245,166,35,.07);
  border: 1px solid rgba(245,166,35,.2);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Red lines */
.red-lines, .green-lights { margin-bottom: 1.25rem; }

.red-line-item, .green-light-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}

.red-line-item {
  background: rgba(255,77,109,.07);
  border: 1px solid rgba(255,77,109,.2);
  border-left: 3px solid var(--red);
}

.red-line-item strong { color: var(--red); font-size: .88rem; }
.red-line-item span { color: var(--text2); font-size: .82rem; }

.green-light-item {
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2);
  border-left: 3px solid var(--green);
}

.green-light-item strong { color: var(--green); font-size: .88rem; }
.green-light-item span { color: var(--text2); font-size: .82rem; }

/* Timeline */
.timeline { margin-bottom: 1.25rem; }

.timeline-phase {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .75rem;
  position: relative;
  padding-left: 1.25rem;
}

.timeline-phase::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  bottom: -12px;
  width: 2px;
  background: var(--border);
}

.timeline-phase:last-child::before { display: none; }

.phase-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.phase-label::before {
  content: '';
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
}

.timeline-phase ul { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.timeline-phase li { font-size: .87rem; color: var(--text2); padding-left: .75rem; position: relative; }
.timeline-phase li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }

.final-words {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(108,99,255,.1), rgba(167,139,250,.06));
  border-radius: var(--radius);
  border: 1px solid rgba(108,99,255,.2);
  font-style: italic;
  text-align: center;
  margin-top: .5rem;
}

/* Error states */
.error-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text2);
}

.error-state .error-icon { font-size: 3rem; margin-bottom: 1rem; }
.error-state p { margin-bottom: 1.5rem; }

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: .65rem 1.5rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  transition: all .15s;
}

.btn-retry:hover { border-color: var(--accent); color: var(--accent2); }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1.25rem;
  font-size: .88rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
  z-index: 200;
  white-space: nowrap;
}

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

/* ---------- Responsive ---------- */
@media (min-width: 480px) {
  .feature-list { max-width: 400px; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .pros-cons { grid-template-columns: 1fr; }
  .btn-start { padding: .85rem 1.75rem; font-size: 1rem; }
}
