/* ==========================================================================
   THE BRUTAL MIRROR - PREMIUM DARK CYBERPUNK STYLESHEET
   ========================================================================== */

:root {
  --bg-base: #0a0d14;
  --bg-card: #121724;
  --bg-card-hover: #171e2e;
  --bg-surface: #182030;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 107, 0, 0.4);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-fire: #ff6b00;
  --accent-fire-glow: rgba(255, 107, 0, 0.25);
  --accent-red: #ff2e63;
  --accent-purple: #8b5cf6;
  --accent-cyan: #00e5ff;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px var(--accent-fire-glow);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #161e31 0%, var(--bg-base) 75%);
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--accent-fire);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  text-decoration: underline;
}

/* App Container */
.app-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
  cursor: pointer;
}

.brand-icon {
  font-size: 1.45rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-header-reset:hover {
  background: rgba(255, 46, 99, 0.15);
  border-color: rgba(255, 46, 99, 0.4);
  color: var(--accent-red);
}

/* Views Management */
.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.view-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   LANDING PAGE VIEW
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--accent-fire);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px -5px rgba(255, 107, 0, 0.3);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: #e5e7eb;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.cta-button {
  background: linear-gradient(135deg, #ff6b00 0%, #ff2e63 100%);
  color: #fff;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 107, 0, 0.7);
}

.cta-button:active {
  transform: translateY(1px) scale(0.98);
}

.hero-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* How It Works Section */
.how-it-works-section {
  padding: 2.5rem 0 3.5rem;
}

.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-fire);
  margin-bottom: 0.5rem;
}

.section-heading {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-fire), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: var(--shadow-card);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-fire);
  margin-bottom: 0.5rem;
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Spice Preview Section */
.spice-preview-section {
  padding: 1rem 0 3.5rem;
}

.spice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.spice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.spice-card:hover {
  border-color: var(--accent-fire);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.spice-card.active {
  border-color: var(--accent-fire);
  background: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 25px -5px rgba(255, 107, 0, 0.3);
}

.spice-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.spice-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.spice-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CHAT INTERFACE VIEW
   ========================================================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  max-height: 780px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 1rem 0 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-partner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chat-partner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.chat-partner-status {
  font-size: 0.75rem;
  color: var(--accent-fire);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  scroll-behavior: smooth;
}

/* Chat Bubbles */
.message-row {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: fadeIn 0.3s ease-out;
}

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

.message-row.bot {
  align-self: flex-start;
}

.message-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-bubble {
  padding: 0.95rem 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-row.bot .message-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #f3f4f6;
  border-bottom-left-radius: 4px;
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, #ff6b00 0%, #e63946 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  gap: 5px;
  align-items: center;
}

.typing-indicator.active {
  display: inline-flex;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.3s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Quick Replies Container */
.quick-replies-area {
  padding: 0.75rem 1.25rem;
  background: rgba(10, 13, 20, 0.4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 160px;
  overflow-y: auto;
}

.quick-reply-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-reply-btn:hover {
  background: rgba(255, 107, 0, 0.18);
  border-color: var(--accent-fire);
  color: #fff;
  transform: translateY(-1px);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 0.9rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.chat-input:focus {
  border-color: var(--accent-fire);
  box-shadow: 0 0 15px -3px rgba(255, 107, 0, 0.3);
}

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

.btn-send {
  background: linear-gradient(135deg, #ff6b00 0%, #ff2e63 100%);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.btn-send:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.5);
}

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

/* Inline Spice Picker in Chat */
.inline-spice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

.inline-spice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.inline-spice-card:hover {
  border-color: var(--accent-fire);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.inline-spice-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.inline-spice-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.inline-spice-quote {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   ANALYSIS ANIMATION VIEW
   ========================================================================== */
.analysis-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  text-align: center;
  padding: 3rem 1.5rem;
}

.radar-spinner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 0, 0.15);
  border-top-color: var(--accent-fire);
  border-right-color: var(--accent-red);
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 35px -5px rgba(255, 107, 0, 0.35);
}

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

.analysis-headline {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.analysis-status-text {
  font-size: 1.05rem;
  color: var(--accent-fire);
  min-height: 32px;
  font-weight: 600;
  margin-bottom: 2rem;
}

.progress-container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  height: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b00, #ff2e63, #8b5cf6);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.analysis-brace {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.analysis-brace.show {
  opacity: 1;
  animation: pulse-glow 1s infinite alternate;
}

@keyframes pulse-glow {
  from { text-shadow: 0 0 10px rgba(255, 46, 99, 0.5); }
  to { text-shadow: 0 0 25px rgba(255, 46, 99, 0.9); }
}

/* ==========================================================================
   RESULTS DASHBOARD VIEW
   ========================================================================== */
.results-container {
  padding: 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.results-header {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.results-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b00, #ff2e63, #8b5cf6);
}

.results-spice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--accent-fire);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.results-main-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.results-archetype {
  font-size: 1.15rem;
  color: #a5b4fc;
  font-weight: 600;
}

/* Result Sections */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.result-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.result-card-title {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Section 1: The Roast */
.roast-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e5e7eb;
  white-space: pre-wrap;
  border-left: 3px solid var(--accent-fire);
  padding-left: 1.25rem;
  font-style: normal;
}

/* Section 2: Hard Pills */
.pills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.pill-card:hover {
  border-color: rgba(255, 46, 99, 0.35);
  transform: translateX(4px);
}

.pill-badge {
  background: rgba(255, 46, 99, 0.15);
  color: var(--accent-red);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 46, 99, 0.3);
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.95rem;
  color: #f3f4f6;
  line-height: 1.55;
}

/* Section 3: Contradiction & Reality Check */
.contradiction-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .contradiction-comparison {
    grid-template-columns: 1fr;
  }
}

.comparison-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.comparison-box.say {
  border-left: 3px solid var(--accent-cyan);
}

.comparison-box.behavior {
  border-left: 3px solid var(--accent-red);
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.comparison-box.say .comparison-label { color: var(--accent-cyan); }
.comparison-box.behavior .comparison-label { color: var(--accent-red); }

.comparison-text {
  font-size: 0.95rem;
  color: #f3f4f6;
  font-weight: 500;
}

.uncomfortable-truth-box {
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.truth-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-fire);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.truth-text {
  font-size: 0.95rem;
  color: #f9fafb;
  line-height: 1.6;
}

/* Insight mini-cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.insight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.insight-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.insight-body {
  font-size: 0.88rem;
  color: #e5e7eb;
}

.insight-card.strength {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.insight-card.strength .insight-tag {
  color: var(--accent-emerald);
}

/* Section 4: Action Plan */
.action-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.action-week-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.week-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.week-text {
  font-size: 0.88rem;
  color: #f3f4f6;
  line-height: 1.5;
}

.final-message-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(255, 107, 0, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Post-Results Actions Bar */
.post-actions-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.post-actions-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.post-actions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-action-tool {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #f3f4f6;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-action-tool:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-fire);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px -3px rgba(255, 107, 0, 0.3);
}

.btn-action-tool.primary-share {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #000;
  border: none;
  font-weight: 700;
}

.btn-action-tool.primary-share:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  color: #000;
}

.btn-action-tool.danger-reset {
  border-color: rgba(255, 46, 99, 0.3);
  color: var(--accent-red);
}

.btn-action-tool.danger-reset:hover {
  background: rgba(255, 46, 99, 0.15);
  border-color: var(--accent-red);
}

/* Modal Popup for Actions */
.action-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.action-modal-overlay.active {
  display: flex;
}

.action-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalEnter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.modal-content {
  font-size: 0.98rem;
  color: #e5e7eb;
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 1.5rem;
}

.modal-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-step-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid var(--accent-emerald);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-section {
    padding: 2.5rem 0.5rem 1.5rem;
  }
  .chat-container {
    height: calc(100vh - 100px);
    border-radius: var(--radius-md);
    margin: 0.5rem 0 1rem;
  }
  .message-row {
    max-width: 92%;
  }
  .result-card {
    padding: 1.25rem;
  }
}
