/* ============================================
   OBȚII — Premium 2026 Design System
   Palette: Warm amber + deep slate
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --bg: #F8F7F4;
  --bg-alt: #F0EEE9;
  --bg-card: #FFFFFF;
  --bg-dark: #111318;
  --bg-dark-2: #1C1F2E;
  --text: #111318;
  --text-2: #6B7280;
  --text-inv: #F9FAFB;
  --accent: #C8973E;
  --accent-hover: #A87A2A;
  --accent-light: #FDF3E3;
  --accent-dim: #E8B86D;
  --border: #E5E7EB;
  --border-2: #D1D5DB;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 24px 64px rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--text-2); line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(200, 151, 62, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200, 151, 62, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-sm { padding: 16px; border-radius: var(--radius-sm); }

/* ---- Section spacing ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-inv); }
.section-dark p { color: #9CA3AF; }
.section-alt { background: var(--bg-alt); }

/* ---- Dividers ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.navbar-logo span { color: var(--accent); }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-nav a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.navbar-mobile-toggle { display: none; padding: 8px; border-radius: var(--radius-sm); color: var(--text); }
.navbar-mobile-toggle:hover { background: rgba(0,0,0,0.04); }

@media (max-width: 768px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .navbar-nav.open { display: flex; }
  .navbar-mobile-toggle { display: block; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent-hover);
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.flow-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.flow-arrow { color: var(--text-2); font-size: 1.25rem; }

@media (max-width: 640px) {
  .flow-arrow { display: none; }
  .hero-flow { gap: 8px; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; }

/* ============================================
   RESULT OPTIONS (Ce vrei să obții)
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.result-card {
  position: relative;
  padding: 20px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
}

.result-card:hover, .result-card:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.12), var(--shadow-md);
  transform: translateY(-2px);
}
.result-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.result-card p { font-size: 0.8125rem; }

/* ============================================
   CATEGORIES (Cu ce te confrunți)
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.category-card {
  padding: 24px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.category-card:hover, .category-card:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.12), var(--shadow-md);
  transform: translateY(-2px);
}
.category-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.category-title {
  font-size: 1rem;
  font-weight: 600;
}
.category-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.5;
}
.category-examples {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-example {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 6px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  transition: all var(--transition);
}
.category-card:hover .category-example, .category-card:focus .category-example { background: var(--accent-light); color: var(--accent-hover); }

/* ============================================
   BENEFITS (Ce obții cu Obții)
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.benefit-card {
  padding: 28px 24px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(200, 151, 62, 0.12);
}
.benefit-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.benefit-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { font-size: 0.875rem; color: #9CA3AF; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
}
.step-content h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; }

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}
.pricing-card {
  padding: 28px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.12), var(--shadow-md);
  background: #FFFFFF;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.pricing-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 0.875rem; color: var(--text-2); margin-bottom: 16px; }
.pricing-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.03em; }
.pricing-price sup { font-size: 1.25rem; font-weight: 600; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-price-note { font-size: 0.8125rem; color: var(--text-2); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-features li.disabled { color: var(--text-2); text-decoration: line-through; }
.pricing-features li.disabled::before { background: var(--border-2); background-image: none; }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-footer { margin-top: 16px; text-align: center; font-size: 0.8125rem; color: var(--text-2); }

/* Neutral check marks for non-featured pricing cards */
.pricing-card:not(.featured) .pricing-features li::before {
  background: var(--border-2);
  background-image: none;
}
.pricing-card:not(.featured) .btn-primary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: #9CA3AF;
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo { font-size: 1.25rem; font-weight: 700; color: white; }
.footer-logo span { color: var(--accent-dim); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.875rem; color: #9CA3AF; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { font-size: 0.75rem; }

/* ============================================
   DISCLAIMER / LEGAL
   ============================================ */
.disclaimer-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.disclaimer-item {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.disclaimer-item strong { color: var(--text); }

/* ============================================
   ASSISTANT MODAL
   ============================================ */
.assistant-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 19, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.assistant-overlay.open { display: flex; }
.assistant-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.assistant-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}
.assistant-header-info { display: flex; flex-direction: column; gap: 4px; }
.assistant-header h3 { font-size: 1rem; font-weight: 600; }
.assistant-header p { font-size: 0.8125rem; color: var(--text-2); }
.assistant-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--transition);
}
.assistant-close:hover { background: var(--bg-alt); border-color: var(--border-2); color: var(--text); }

.assistant-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat messages */
.assistant-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.assistant-message.bot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  align-self: flex-start;
  max-width: 85%;
}
.assistant-message.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  max-width: 85%;
}
.assistant-message.system {
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(200, 151, 62, 0.25);
  font-size: 0.8125rem;
  text-align: center;
  align-self: stretch;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

/* Typing indicator */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typingPulse 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Summary box */
.summary-box {
  background: white;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}
.summary-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.summary-content {
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
}
.summary-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { font-weight: 600; color: var(--text-2); font-size: 0.8125rem; }
.summary-value { color: var(--text); }
.summary-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Document type selector */
.doc-type-section { margin-top: 8px; }
.doc-type-label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.doc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.doc-option-btn {
  padding: 10px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  color: var(--text);
}
.doc-option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-hover);
}
.doc-option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 600;
}

/* Tone selector */
.tone-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tone-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.tone-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-hover);
}
.tone-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
}

/* Quick reply chips */
.result-option-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  box-shadow: var(--shadow);
}
.result-option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 151, 62, 0.25);
}
.result-option-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .result-option-btn:active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-hover);
  }
}

/* Generated document */
.generated-doc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.875rem;
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
}
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* File upload */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg);
}
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: var(--accent-light); }
.upload-area p { font-size: 0.875rem; color: var(--text-2); }
.upload-area strong { color: var(--accent-hover); }
.uploaded-files { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.uploaded-file-name { flex: 1; font-weight: 500; }
.uploaded-file-status { font-size: 0.75rem; color: var(--text-2); }
.uploaded-file-remove { color: var(--text-2); padding: 4px; border-radius: 4px; }
.uploaded-file-remove:hover { background: #FEE2E2; color: #DC2626; }

/* Assistant footer / input */
.assistant-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.assistant-input-row { display: flex; gap: 8px; }
.assistant-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font);
  outline: none;
  resize: none;
  background: white;
  transition: border-color var(--transition);
  color: var(--text);
}
.assistant-input:focus { border-color: var(--accent); }
.assistant-send {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition);
}
.assistant-send:hover { background: var(--accent-hover); }
.assistant-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Saved indicator */
.saved-indicator {
  display: none;
  font-size: 0.8125rem;
  color: var(--accent);
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.saved-indicator.show { display: flex; }

/* Case progress */
.case-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.progress-dot.active { background: var(--accent); }
.progress-dot.done { background: var(--accent); opacity: 0.4; }

/* Mobile assistant — full screen */
@media (max-width: 768px) {
  .assistant-overlay { padding: 0; align-items: flex-end; }
  .assistant-modal { max-height: 95vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-width: 100%; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1C2332 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: #9CA3AF; max-width: 480px; margin: 0 auto 32px; }
.cta-section .btn-primary { background: var(--accent-dim); color: var(--bg-dark); }
.cta-section .btn-primary:hover { background: var(--accent); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(200,151,62,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Privacy/Terms pages */
.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}
.privacy-page h1 { margin-bottom: 24px; }
.privacy-page h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.privacy-page p { margin-bottom: 16px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.7; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

.auth-logo {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo span { color: var(--accent); }

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form fields */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font);
  background: white;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.12);
}
.form-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* Form row with password toggle */
.form-input-wrap {
  position: relative;
}
.form-input-wrap .form-input {
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--text); }

/* Inline error message */
.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #DC2626;
  margin-top: 6px;
  font-weight: 500;
}
.form-error.show { display: block; }

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}
.form-checkbox {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--accent);
}
.form-checkbox-label {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.form-checkbox-label a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Full-width submit button */
.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(200, 151, 62, 0.3);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-auth:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200, 151, 62, 0.35); }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-auth.loading { pointer-events: none; }

/* Success / confirm message */
.auth-success {
  text-align: center;
  padding: 20px 0;
}
.auth-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-success-icon svg { color: var(--accent); }
.auth-success h2 { font-size: 1.25rem; margin-bottom: 8px; }
.auth-success p { font-size: 0.9rem; color: var(--text-2); }

/* Auth footer links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.auth-footer a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footer a:hover { color: var(--text); }

/* Token error state */
.auth-token-error {
  text-align: center;
  padding: 40px 0;
}
.auth-token-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.auth-token-error-icon svg { color: #DC2626; }
.auth-token-error h2 { font-size: 1.25rem; margin-bottom: 8px; }
.auth-token-error p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 24px; }

/* Spinner inside button */
.btn-auth.loading { position: relative; color: transparent; }
.btn-auth.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   ACCOUNT CREATION PROMPT IN CHATBOT
   ============================================ */
.account-prompt-box {
  background: white;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.1), var(--shadow-md);
  margin-top: 4px;
}

.account-prompt-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.account-prompt-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.account-prompt-text {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.5;
}

.account-prompt-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Document saved note */
.doc-saved-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #DCFCE7;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #15803D;
}
/* Obții.ro assistant batching and commercial plan gate */
.assistant-listening {
  align-self: flex-start;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 4px 0 8px;
}

.assistant-plan-offer {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.assistant-plan-offer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.assistant-plan-offer-copy {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.assistant-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.assistant-plan-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-card);
}

.assistant-plan-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.assistant-plan-card.selected {
  background: var(--accent-light);
}

.assistant-plan-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
}

.assistant-plan-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.assistant-plan-price {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.assistant-plan-price span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-2);
}

.assistant-plan-description {
  min-height: 52px;
  color: var(--text-2);
  font-size: 0.78rem;
  line-height: 1.45;
}

.assistant-plan-card ul {
  margin: 10px 0 12px;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 0.74rem;
  line-height: 1.55;
}

.assistant-plan-card .btn { width: 100%; }

.assistant-plan-pending {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.8rem;
  line-height: 1.5;
}

.assistant-plan-pending .btn { margin-top: 8px; }

.assistant-plan-note {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .assistant-plan-grid { grid-template-columns: 1fr; }
  .assistant-plan-description { min-height: auto; }
}
