/* ==============================================
   AMICA - Main Styles
   Theme: "Minty Fresh & Professional"
   Monotonalidad Iluminada — Verdes Menta, Blancos, Azules Profundos
   Material Design 3 Light Mint Token System
   ============================================== */

/* ==================== CSS Variables — MD3 Light Mint ==================== */
:root {
  /* ===== Brand (Manual de Marca) ===== */
  --brand-mint: #7FD2B9;
  --brand-mint-light: #E0F5EE;
  --brand-blue: #282776;
  --brand-blue-soft: #4A4985;
  --white-pure: #FFFFFF;

  /* ===== MD3 Light Theme Surfaces ===== */
  --md-sys-color-background: #F8FBF9;               /* Ice Mint */
  --md-sys-color-surface: #FFFFFF;
  --md-sys-color-surface-container: #FFFFFF;
  --md-sys-color-surface-container-low: #F0F7F4;
  --md-sys-color-surface-container-high: #E8F2ED;

  /* ===== Textos — Azul Corporativo, NO negro ===== */
  --md-sys-color-on-background: #282776;
  --md-sys-color-on-surface: #282776;
  --md-sys-color-on-surface-variant: #6D6D90;
  --md-sys-color-outline: #9A9AB5;
  --md-sys-color-outline-variant: #D4D4E4;

  /* ===== Primary = Menta ===== */
  --md-sys-color-primary: #7FD2B9;
  --md-sys-color-on-primary: #282776;
  --md-sys-color-primary-container: #E0F5EE;

  /* ===== Secondary = Azul ===== */
  --md-sys-color-secondary: #282776;
  --md-sys-color-secondary-container: #E0E0F5;

  /* ===== Gray aliases (backward compat) ===== */
  --gray-50: #F0F7F4;
  --gray-100: #E8F2ED;
  --gray-200: #D4D4E4;
  --gray-300: #B8B8D0;
  --gray-400: #9A9AB5;
  --gray-500: #6D6D90;
  --gray-600: #4A4985;
  --gray-700: #282776;
  --gray-800: #1E1D5C;
  --gray-900: #282776;

  /* Legacy Propii aliases — redirect to brand tokens */
  --propii-blue: #282776;
  --propii-mint: #7FD2B9;

  /* ===== Semantic Colors ===== */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* ===== Spacing ===== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* ===== Border Radius ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ===== Elevations — sombra azulada sutil ===== */
  --elevation-1: 0 1px 3px rgba(40, 39, 118, 0.06);
  --elevation-2: 0 2px 8px rgba(40, 39, 118, 0.08);
  --elevation-3: 0 4px 16px rgba(40, 39, 118, 0.10);
  --shadow-sm: 0 1px 3px rgba(40, 39, 118, 0.06);
  --shadow-md: 0 2px 8px rgba(40, 39, 118, 0.08);
  --shadow-lg: 0 4px 16px rgba(40, 39, 118, 0.10);

  /* ===== Typography ===== */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ==================== Reset ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== Header ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  z-index: 100;
  box-shadow: var(--elevation-1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--brand-blue);
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-mint);
  color: var(--brand-blue);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.badge.hidden {
  display: none;
}

/* ==================== Chat Container ==================== */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px var(--spacing-md) 120px;
  min-height: 100vh;
}

/* ==================== Welcome Section ==================== */
.welcome-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  animation: fadeIn 0.6s ease-out;
}

.avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--elevation-3);
  border: 3px solid var(--brand-mint-light);
}

/* Dynamic Greeting */
.welcome-greeting-dynamic {
  margin-bottom: var(--spacing-lg);
}

.welcome-greeting-dynamic h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 1.125rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
}

.welcome-subtitle strong {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Legacy welcome selectors (backward compat) */
.welcome-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.welcome-greeting {
  margin-bottom: var(--spacing-lg);
}

.welcome-greeting h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--brand-blue);
}

.welcome-text {
  font-size: 1.125rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: var(--spacing-xs);
}

.welcome-hero {
  font-size: 1.125rem;
  color: var(--brand-blue);
  margin: var(--spacing-sm) 0;
}

.welcome-subtext {
  font-size: 0.95rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.welcome-cta {
  font-size: 1rem;
  color: var(--brand-blue);
  margin-top: var(--spacing-md);
}

/* ==================== Hero Greeting ==================== */
.hero-greeting {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 var(--spacing-xs);
  line-height: 1.2;
}

/* ==================== Hero Search Wrapper ==================== */
.hero-search-wrapper {
  margin: var(--spacing-lg) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== Hero Accordions ==================== */
.hero-accordions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.hero-accordion {
  background: var(--md-sys-color-surface);
  border: 2px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.hero-accordion.active {
  border-color: var(--brand-mint);
}

.hero-accordion-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.hero-accordion-header:hover {
  background: var(--md-sys-color-surface-container-low);
}

.hero-accordion-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-accordion-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
  flex: 1;
}

.hero-accordion-chevron {
  font-size: 0.65rem;
  color: var(--md-sys-color-outline);
  transition: transform 0.3s ease;
}

.hero-accordion.active .hero-accordion-chevron {
  transform: rotate(180deg);
}

/* Accordion Body — smooth max-height transition */
.hero-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
  padding: 0 18px;
}

.hero-accordion.active .hero-accordion-body {
  max-height: 500px;
  padding: 0 18px 18px;
}

/* Accordion inner content */
.accordion-subtitle {
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 var(--spacing-md);
  line-height: 1.5;
}

.accordion-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-benefits li {
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface);
  line-height: 1.5;
  padding-left: 4px;
}

.accordion-note {
  font-size: 0.75rem;
  color: var(--md-sys-color-outline);
  font-style: italic;
  margin: 0 0 var(--spacing-md);
}

/* Radar mini-form inside accordion */
.accordion-radar-form {
  margin-top: var(--spacing-sm);
}

.accordion-radar-phone-row {
  display: flex;
  align-items: center;
  background: var(--md-sys-color-surface-container-low);
  border: 2px solid var(--md-sys-color-outline-variant);
  border-radius: 12px;
  padding: 0 12px;
  transition: border-color 0.2s;
  margin-bottom: var(--spacing-sm);
}

.accordion-radar-phone-row:focus-within {
  border-color: var(--brand-mint);
  box-shadow: 0 0 0 3px rgba(127, 210, 185, 0.15);
}

.accordion-radar-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 0;
}

.accordion-radar-input::placeholder {
  color: var(--md-sys-color-outline);
}

.accordion-radar-hint {
  font-size: 0.8rem;
  color: var(--warning);
  margin: 0 0 var(--spacing-sm);
  padding: 6px 10px;
  background: #FEF3C7;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.accordion-radar-save-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--brand-blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.accordion-radar-save-btn:hover:not(:disabled) {
  background: var(--brand-blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(40, 39, 118, 0.25);
}

.accordion-radar-save-btn:disabled {
  background: var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-outline);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Tips formula */
.tips-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: var(--spacing-md) 0;
  padding: var(--spacing-md);
  background: var(--md-sys-color-primary-container);
  border-radius: var(--radius-md);
}

.formula-piece {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--md-sys-color-surface);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-mint-light);
}

.formula-plus {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.tips-example {
  background: var(--md-sys-color-surface);
  border: 2px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  text-align: left;
}

.example-badge {
  display: inline-block;
  background: var(--brand-mint);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.example-text {
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin: 0;
}

/* ==================== Bottom Radar Button (integrated in bottom bar) ==================== */
.bottom-radar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-mint-light);
  border: 2px solid var(--brand-mint);
  color: var(--brand-blue);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.bottom-radar-btn:hover {
  background: var(--brand-mint);
  transform: scale(1.05);
}

/* Ripple effect for buttons */
.btn::after,
.send-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 210, 185, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
}

.btn:active::after,
.send-btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* ==================== Messages ==================== */
.messages {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.message {
  display: flex;
  gap: var(--spacing-sm);
  animation: slideIn 0.3s ease-out;
}

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

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.message-content {
  max-width: 80%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-xl);
  line-height: 1.5;
}

/* AMICA Bubble: Blanco con borde menta */
.message.amica .message-content {
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--brand-mint-light);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--spacing-xs);
  box-shadow: var(--elevation-2);
}

/* User Bubble: Menta con texto azul */
.message.user .message-content {
  background: var(--brand-mint);
  color: var(--brand-blue);
  border-radius: var(--radius-xl) var(--radius-xl) var(--spacing-xs) var(--radius-xl);
  font-weight: 500;
}

/* Thinking Indicator */
.thinking-indicator {
  display: flex;
  gap: 6px;
  padding: var(--spacing-sm);
}

.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-mint);
  animation: pulse 1.4s infinite;
}

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

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

/* ==================== Chat Input — Floating Pill Glassmorphism ==================== */
.chat-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(248, 251, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: var(--spacing-md);
  z-index: 99;
}

.chat-form {
  max-width: 800px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-end;
  background: var(--md-sys-color-surface);
  border: 2px solid var(--brand-mint-light);
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 4px 20px rgba(127, 210, 185, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within {
  border-color: var(--brand-mint);
  box-shadow: 0 6px 28px rgba(127, 210, 185, 0.25);
  transform: translateY(-2px);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--md-sys-color-on-surface);
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
}

.chat-input:focus {
  outline: none;
}

.chat-input::placeholder {
  color: var(--md-sys-color-outline);
}

.send-btn {
  width: 44px;
  height: 44px;
  background: var(--brand-mint);
  border: none;
  border-radius: 50%;
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.send-btn:hover {
  background: #6CC4A8;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(127, 210, 185, 0.4);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.input-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-xs);
  padding-right: 16px;
}

.char-count {
  font-size: 0.75rem;
  color: var(--md-sys-color-outline);
}

/* ==================== Buttons ==================== */
.btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-mint);
  color: var(--brand-blue);
}

.btn-primary:hover {
  background: #6CC4A8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(127, 210, 185, 0.4);
}

.btn-secondary {
  background: var(--md-sys-color-surface);
  color: var(--brand-blue);
  border: 2px solid var(--brand-mint);
}

.btn-secondary:hover {
  background: var(--md-sys-color-primary-container);
  transform: translateY(-2px);
}

/* ==================== Modals ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 39, 118, 0.3);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s;
}

.modal-content {
  background: var(--md-sys-color-surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(40, 39, 118, 0.12);
}

.modal-large .modal-content {
  max-width: 900px;
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--brand-blue);
  font-family: var(--font-heading);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--md-sys-color-outline);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.close-btn:hover {
  background: var(--md-sys-color-surface-container-high);
  color: var(--brand-blue);
}

.modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
  flex: 1;
}

/* ==================== Floating Button ==================== */
.floating-btn {
  position: fixed;
  bottom: 100px;
  right: var(--spacing-lg);
  background: var(--brand-blue);
  color: var(--white-pure);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: var(--elevation-3);
  z-index: 98;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(40, 39, 118, 0.25);
}

.floating-btn.hidden {
  display: none;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ==================== Utility Classes ==================== */
.hidden {
  display: none !important;
}

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

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ==================== Responsive (Tablet+) ==================== */
@media (min-width: 768px) {
  .chat-container {
    padding-top: 100px;
  }

  .message-content {
    max-width: 70%;
  }
}

/* ==================== Responsive (Desktop) ==================== */
@media (min-width: 1024px) {
  .chat-container {
    padding-top: 120px;
  }

  .message-content {
    max-width: 60%;
  }

  .chat-input-container {
    padding: var(--spacing-lg);
  }
}

/* ==================== Consent Modal ==================== */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.consent-card {
  background: var(--white-pure, #fff);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: consentSlideUp 0.3s ease-out;
}

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

.consent-logo {
  margin-bottom: 16px;
  border-radius: 12px;
}

.consent-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue, #282776);
  margin: 0 0 8px;
}

.consent-subtitle {
  font-size: 0.95rem;
  color: var(--md-sys-color-on-surface-variant, #6D6D90);
  margin: 0 0 20px;
}

.consent-terms {
  background: var(--md-sys-color-surface-container-low, #F0F7F4);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.consent-terms p {
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface-variant, #6D6D90);
  line-height: 1.5;
  margin: 0 0 8px;
}

.consent-terms p:last-child {
  margin-bottom: 0;
}

.consent-terms a {
  color: var(--brand-blue, #282776);
  font-weight: 600;
  text-decoration: underline;
}

.consent-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface, #282776);
}

.consent-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-mint, #7FD2B9);
  cursor: pointer;
}

.consent-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: var(--brand-blue, #282776);
  color: var(--white-pure, #fff);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

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

.consent-btn:not(:disabled):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.consent-btn:not(:disabled):active {
  transform: translateY(0);
}

/* ==================== Radar Progressive Cards ==================== */
.radar-progressive-card {
  background: linear-gradient(135deg, var(--brand-mint-light, #E0F5EE), var(--white-pure, #fff));
  border: 2px solid var(--brand-mint, #7FD2B9);
  border-radius: 16px;
  padding: 24px;
  margin: 8px 0;
}

.radar-progressive-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brand-blue, #282776);
  margin: 0 0 8px;
}

.radar-progressive-card .subtitle {
  font-size: 0.9rem;
  color: var(--md-sys-color-on-surface-variant, #6D6D90);
  margin: 0 0 16px;
}

.radar-search-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.radar-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white-pure, #fff);
  border: 1px solid var(--md-sys-color-outline-variant, #D4D4E4);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.radar-search-item:hover,
.radar-search-item.selected {
  border-color: var(--brand-mint, #7FD2B9);
  background: var(--brand-mint-light, #E0F5EE);
}

.radar-search-item input[type="radio"] {
  accent-color: var(--brand-mint, #7FD2B9);
}

.radar-search-item .search-summary {
  flex: 1;
  font-size: 0.85rem;
  color: var(--md-sys-color-on-surface, #282776);
}

.radar-search-item .search-summary strong {
  display: block;
  font-size: 0.9rem;
}

.radar-search-item .search-meta {
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant, #6D6D90);
}

.radar-limit-card {
  background: linear-gradient(135deg, #FFF3E0, var(--white-pure, #fff));
  border: 2px solid #FFB74D;
  border-radius: 16px;
  padding: 24px;
  margin: 8px 0;
  text-align: center;
}

.radar-limit-card h3 {
  font-family: 'Playfair Display', serif;
  color: #E65100;
  margin: 0 0 8px;
}

.radar-limit-card p {
  color: var(--md-sys-color-on-surface-variant, #6D6D90);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* ── Fix: radar-input-group inside progressive/limit cards ── */
.radar-progressive-card .radar-input-group,
.radar-limit-card .radar-input-group,
.radar-capture-card .radar-input-group {
  flex-wrap: wrap;
}

.radar-progressive-card .radar-activate-btn,
.radar-limit-card .radar-activate-btn {
  flex: 1;
  min-width: 160px;
}

/* ── Radar search prompt (selector label) ── */
.radar-search-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue, #282776);
  margin: 16px 0 8px;
}

/* ── Radar search list inside capture card ── */
.radar-capture-card .radar-search-list {
  margin: 0 0 16px;
}

@media (max-width: 600px) {
  .radar-progressive-card .radar-input-group,
  .radar-limit-card .radar-input-group {
    flex-direction: column;
  }

  .radar-progressive-card .radar-activate-btn,
  .radar-limit-card .radar-activate-btn {
    width: 100%;
  }
}
