/* ============================================
   PUPPYPAD RESOLUTION APP V2 - PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
  /* Primary Brand Colors */
  --brand-navy: #0A1628;
  --brand-navy-light: #1E3A5F;
  --brand-navy-soft: #E8EEF4;

  /* Accent Colors */
  --accent-coral: #FF6B6B;
  --accent-coral-light: #FF8E8E;
  --accent-teal: #4ECDC4;
  --accent-amber: #FFE66D;
  --accent-purple: #A78BFA;

  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Persona Colors */
  --amy-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  --amy-bg: #FFF5F5;
  --sarah-gradient: linear-gradient(135deg, #FFE66D 0%, #F7B733 100%);
  --sarah-bg: #FFFDF5;
  --claudia-gradient: linear-gradient(135deg, #A78BFA 0%, #818CF8 100%);
  --claudia-bg: #F5F3FF;
  --customer-gradient: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

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

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Legacy support */
  --navy: #0A1628;
  --navy-light: #1E3A5F;
  --navy-soft: #E8EEF4;
  --peach: #FFF5F5;
  --yellow: #FFFDF5;
  --mint: #F5F3FF;
  --warm-white: #F9FAFB;
  --coral-soft: #FEE2E2;
  --green-soft: #DCFCE7;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow: var(--shadow-md);
  --shadow-lg-old: var(--shadow-xl);
}

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

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F4F6 100%);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
}

/* ============================================
   APP CONTAINER - Three-tier height constraint
   ============================================ */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: none;
  min-height: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F4F6 100%);
  position: relative;
  overflow: hidden;
}

@media (min-width: 481px) {
  body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    min-height: 100vh;
  }

  .app-container {
    height: 92vh;
    max-height: 850px;
    min-height: 500px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

/* ============================================
   HOME SCREEN
   ============================================ */
.home-screen {
  flex: 1;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F4F6 100%);
  overflow-y: auto;
}

.home-screen.active {
  display: flex;
}

/* Hero Section */
.home-hero {
  position: relative;
  padding: 48px 24px 40px;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 60%, #2D4A6F 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,107,107,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(78,205,196,0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.brand-container {
  margin-bottom: 32px;
  animation: fade-in-down 0.6s ease-out;
}

.home-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.welcome-text {
  margin-bottom: 32px;
  animation: fade-in-up 0.6s ease-out 0.2s backwards;
}

.welcome-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto;
  line-height: 1.5;
  max-width: 320px;
}

/* Team Preview */
.team-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-in-up 0.6s ease-out 0.4s backwards;
}

.team-avatars {
  display: flex;
  align-items: center;
}

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  margin-left: -12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-avatar:first-child {
  margin-left: 0;
}

.team-avatar:hover {
  transform: scale(1.1) translateY(-4px);
  z-index: 10;
}

.team-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Action Cards Section */
.home-actions {
  padding: 32px 20px;
  flex: 1;
}

.actions-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 20px;
  text-align: center;
}

.action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.action-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-navy);
}

.action-card:active {
  transform: translateY(-2px) scale(0.99);
}

.action-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.action-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.action-card:hover .action-icon {
  background: var(--brand-navy);
  transform: scale(1.1) rotate(-5deg);
}

.action-content {
  flex: 1;
  min-width: 0;
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
}

.action-description {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.4;
}

.action-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
  color: var(--brand-navy);
  transform: translateX(4px);
}

/* Trust Section */
.trust-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  background: white;
  border-top: 1px solid var(--gray-100);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-icon {
  font-size: 16px;
}

.trust-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--gray-200);
}

/* Home Footer */
.home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 24px;
  background: white;
}

.footer-text {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

/* Home Screen Animations */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-card:nth-child(1) { animation: slide-up-card 0.4s ease-out 0.3s backwards; }
.action-card:nth-child(2) { animation: slide-up-card 0.4s ease-out 0.4s backwards; }
.action-card:nth-child(3) { animation: slide-up-card 0.4s ease-out 0.5s backwards; }

@keyframes slide-up-card {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CHAT CONTAINER (hidden when home screen active)
   ============================================ */
.chat-container {
  flex: 1;
  display: none;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.chat-container.active {
  display: flex;
}

/* ============================================
   HEADER
   ============================================ */
.header, .app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.persona-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: var(--amy-gradient);
  flex-shrink: 0;
}

.avatar-ring[data-persona="sarah"] {
  background: var(--sarah-gradient);
}

.avatar-ring[data-persona="claudia"] {
  background: var(--claudia-gradient);
}

.avatar-ring[data-status="typing"] {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}

.avatar, .header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
  display: block;
}

.header-info, .persona-info {
  display: flex;
  flex-direction: column;
}

.header-info h1, .persona-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.status, .persona-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.status-dot, .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
}

.status-dot.typing, .status-indicator.typing {
  background: #F59E0B;
  animation: typing-pulse 0.8s infinite alternate;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes typing-pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.restart-btn, .btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.restart-btn:hover, .btn-restart:hover {
  background: var(--gray-100);
  color: var(--brand-navy);
}

/* ============================================
   CHAT AREA
   ============================================ */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-area::-webkit-scrollbar {
  width: 6px;
}

.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.chat-area::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ============================================
   INTERACTIVE CONTENT (forms, selections, etc.)
   ============================================ */
.interactive-content {
  width: 100%;
  animation: slideUpReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideUpReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   MESSAGE CONTAINER
   ============================================ */
.message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: fadeInUp 0.3s ease;
}

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

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

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

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 4px;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Sender Info */
.message-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sender-name {
  font-weight: 600;
  color: var(--gray-800);
}

.sender-role {
  color: var(--gray-500);
  font-weight: 400;
}

.message.user .message-sender {
  justify-content: flex-end;
}

.message.user .sender-name {
  color: var(--gray-600);
}

/* Message Bubble */
.message-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  background: white;
  border: 1px solid var(--gray-100);
}

.message.bot .message-bubble {
  border-bottom-left-radius: 6px;
}

.message.user .message-bubble {
  background: var(--brand-navy);
  color: white;
  border: none;
  border-bottom-right-radius: 6px;
}

/* ============================================
   TYPING INDICATOR
   ============================================ */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 6px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

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

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); background: var(--gray-400); }
  30% { transform: translateY(-8px); background: var(--gray-600); }
}

/* Legacy typing indicator */
.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-navy);
  opacity: 0.4;
  animation: typingBounce 1.4s infinite;
}

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

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Character-by-character typing */
.typing-text {
  display: inline;
}

.typing-cursor {
  display: inline;
  animation: cursor-blink 0.6s step-end infinite;
  color: var(--gray-400);
  font-weight: 300;
  margin-left: 1px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--customer-gradient);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 14px rgba(10, 22, 40, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px rgba(10, 22, 40, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
}

.btn-secondary:hover {
  background: var(--brand-navy);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--brand-navy);
}

.btn-success {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(78, 205, 196, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
  color: white;
}

/* Option Button */
.btn-option, .option-btn {
  width: 100%;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-option:hover, .option-btn:hover {
  border-color: var(--brand-navy);
  background: var(--brand-navy-soft);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.btn-option .btn-icon, .option-btn .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.btn-option:hover .btn-icon, .option-btn:hover .icon {
  background: var(--brand-navy);
  color: white;
  transform: scale(1.1);
}

.option-btn.primary {
  background: var(--brand-navy);
  color: white;
  border: none;
  justify-content: center;
}

.option-btn.primary:hover {
  background: var(--brand-navy-light);
  transform: translateY(-2px);
}

/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  animation: fadeInUp 0.3s ease;
  width: 100%;
}

.options-container .btn-option:nth-child(1) { animation: slide-up 0.3s ease forwards; animation-delay: 0.1s; opacity: 0; }
.options-container .btn-option:nth-child(2) { animation: slide-up 0.3s ease forwards; animation-delay: 0.2s; opacity: 0; }
.options-container .btn-option:nth-child(3) { animation: slide-up 0.3s ease forwards; animation-delay: 0.3s; opacity: 0; }
.options-container .btn-option:nth-child(4) { animation: slide-up 0.3s ease forwards; animation-delay: 0.4s; opacity: 0; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.options-row {
  display: flex;
  gap: 10px;
}

.options-row .option-btn {
  flex: 1;
  justify-content: center;
}

/* ============================================
   INPUT AREA
   ============================================ */
.input-area {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: none;
  position: sticky;
  bottom: 0;
}

.input-area.active {
  display: block;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.text-input {
  flex: 1;
  padding: 14px 18px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  outline: none;
  transition: all var(--transition-fast);
}

.text-input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(10, 22, 40, 0.1);
}

.send-btn {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--brand-navy-light);
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  margin-top: 8px;
  margin-bottom: 20px;
  animation: slideUpFade 0.4s ease-out;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  background: white;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(10, 22, 40, 0.1);
}

.form-input.error {
  border-color: var(--accent-coral);
  background: #FFF5F5;
}

.form-error, .error-text {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent-coral);
}

.form-input.error + .error-text,
.form-input.error ~ .error-text {
  display: flex;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Toggle Switch - Segmented Control Style */
.toggle-container {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.toggle-option {
  flex: 1;
  padding: 12px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  z-index: 1;
  position: relative;
}

.toggle-option:hover:not(.active) {
  color: var(--gray-600);
}

.toggle-option.active {
  color: white;
  font-weight: 700;
}

/* Active background pill */
.toggle-container::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--brand-navy);
  border-radius: var(--radius-full);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.toggle-container.phone::before {
  transform: translateX(100%);
}

/* ============================================
   ORDER CARDS
   ============================================ */
.order-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.order-card.selected {
  border-color: var(--brand-navy);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-number {
  font-weight: 600;
  font-size: 15px;
}

.order-date {
  font-size: 13px;
  color: var(--gray-500);
}

.order-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.order-status.delivered {
  background: var(--green-soft);
  color: #166534;
}

.order-status.in-transit {
  background: var(--accent-amber);
  color: #92400E;
}

.order-status.pending {
  background: var(--brand-navy-soft);
  color: var(--brand-navy);
}

.order-status.exception {
  background: var(--coral-soft);
  color: #991B1B;
}

.order-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
}

.order-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  font-weight: 600;
  text-align: right;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateX(8px);
  border-left: 4px solid var(--brand-navy);
}

.product-card.selected {
  border-color: var(--brand-navy);
  background: var(--brand-navy-soft);
}

.product-card.selected .checkbox-icon {
  animation: check-bounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes check-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.product-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-variant {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-weight: 600;
  color: var(--brand-navy);
}

.product-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.product-badge.initial {
  background: #E8FFF0;
  color: #166534;
}

.product-badge.upsell {
  background: var(--accent-amber);
  color: #92400E;
}

.product-badge.free {
  background: var(--brand-navy-soft);
  color: var(--brand-navy);
}

.product-badge.digital {
  background: var(--coral-soft);
  color: #991B1B;
}

.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--brand-navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.product-card.selected .checkbox {
  background: var(--brand-navy);
}

.checkbox svg {
  display: none;
  width: 14px;
  height: 14px;
  color: white;
}

.product-card.selected .checkbox svg {
  display: block;
}

.select-all-btn {
  padding: 10px 16px;
  background: var(--brand-navy-soft);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-navy);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.select-all-btn:hover {
  background: var(--brand-navy);
  color: white;
}

/* ============================================
   SUBSCRIPTION CARDS
   ============================================ */
.subscription-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.subscription-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.subscription-card.selected {
  border-color: var(--brand-navy);
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}

.subscription-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.subscription-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.subscription-status.active {
  background: var(--green-soft);
  color: #166534;
}

.subscription-status.paused {
  background: var(--accent-amber);
  color: #92400E;
}

.subscription-status.cancelled {
  background: var(--coral-soft);
  color: #991B1B;
}

.subscription-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.subscription-detail {
  font-size: 13px;
}

.subscription-detail-label {
  color: var(--gray-500);
  margin-bottom: 2px;
}

.subscription-detail-value {
  font-weight: 500;
}

/* ============================================
   TRACKING CARD
   ============================================ */
.tracking-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.tracking-number {
  font-size: 13px;
  color: var(--gray-500);
}

.tracking-status {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
}

.tracking-eta {
  width: 100%;
  padding: 12px;
  background: var(--brand-navy-soft);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
}

.tracking-eta strong {
  display: block;
  margin-bottom: 2px;
}

.tracking-timeline {
  position: relative;
  padding-left: 24px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--gray-200);
}

.timeline-item:first-child .timeline-dot {
  background: var(--brand-navy);
  box-shadow: 0 0 0 2px var(--brand-navy);
}

.timeline-date {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 14px;
  font-weight: 500;
}

.timeline-location {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ============================================
   OFFER CARD
   ============================================ */
.offer-card {
  position: relative;
  background: var(--customer-gradient);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  color: white;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(10, 22, 40, 0.2);
  margin: 16px 0;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: float 6s ease-in-out infinite;
}

.offer-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 60%);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.offer-icon {
  font-size: 40px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.offer-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.offer-value {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.offer-label {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.offer-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.offer-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.offer-btn.accept {
  background: white;
  color: var(--brand-navy);
  box-shadow: var(--shadow-md);
}

.offer-btn.accept:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255,255,255,0.3);
}

.offer-btn.decline {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.offer-btn.decline:hover {
  background: rgba(255,255,255,0.25);
}

.offer-note {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.audio-player {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  margin: 8px 0;
}

.audio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.audio-info {
  flex: 1;
  min-width: 0;
}

.audio-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.audio-role {
  font-size: 12px;
  color: var(--gray-500);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-btn {
  width: 44px;
  height: 44px;
  background: var(--brand-navy);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.play-btn:hover {
  background: var(--brand-navy-light);
  transform: scale(1.05);
}

.play-btn svg {
  width: 20px;
  height: 20px;
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  min-width: 60px;
}

.audio-progress-bar {
  height: 100%;
  background: var(--brand-navy);
  width: 0%;
  transition: width 0.1s;
}

/* ============================================
   FILE UPLOAD
   ============================================ */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
  margin: 8px 0;
}

.upload-area:hover {
  border-color: var(--brand-navy);
  background: var(--brand-navy-soft);
}

.upload-area.dragover {
  border-color: var(--brand-navy);
  background: var(--brand-navy-soft);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 13px;
  color: var(--gray-500);
}

.upload-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.upload-thumb-container {
  position: relative;
}

.upload-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--accent-coral);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ============================================
   PROGRESS SPINNER
   ============================================ */
.progress-container {
  text-align: center;
  padding: 30px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand-navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

.progress-text {
  font-size: 15px;
  color: var(--brand-navy);
  font-weight: 500;
}

.progress-subtext {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   SUCCESS / ERROR CARDS
   ============================================ */
.result-card, .success-card, .error-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-xl);
  animation: result-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-enter {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.result-card.success, .success-card {
  background: linear-gradient(135deg, #E8FFF0 0%, #D1FAE5 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.result-card.error, .error-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FEE2E2 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.result-icon, .success-icon, .error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

.success-icon, .result-card.success .result-icon {
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  animation: success-bounce 0.6s ease-out 0.2s;
}

.error-icon, .result-card.error .result-icon {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

@keyframes success-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.result-title, .success-title, .error-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-title, .result-card.success .result-title { color: #166534; }
.error-title, .result-card.error .result-title { color: #991B1B; }

.result-message, .success-message, .error-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

.result-case-id {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.05);
  border-radius: var(--radius-full);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
}

/* Copyable Case ID */
.case-id-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.case-id-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.case-id-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.case-id-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.case-id-copy-btn:hover {
  background: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
}

.case-id-copy-btn.copied {
  background: var(--accent-teal);
  color: white;
  border-color: var(--accent-teal);
}

.case-id-copy-btn svg {
  flex-shrink: 0;
}

/* ============================================
   CONFIRMATION DIALOG
   ============================================ */
.confirm-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 20px;
}

.confirm-dialog-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.confirm-dialog {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-dialog-overlay.visible .confirm-dialog {
  transform: scale(1) translateY(0);
}

.confirm-dialog-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-dialog-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.confirm-dialog-message {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0 0 24px;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 12px;
}

.confirm-dialog-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.confirm-dialog-btn.cancel {
  background: var(--gray-100);
  color: var(--gray-700);
}

.confirm-dialog-btn.cancel:hover {
  background: var(--gray-200);
}

.confirm-dialog-btn.confirm {
  background: var(--accent-coral);
  color: white;
}

.confirm-dialog-btn.confirm:hover {
  background: var(--accent-coral-light);
  transform: translateY(-1px);
}

/* ============================================
   END-OF-SESSION SURVEY
   ============================================ */
.survey-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  text-align: center;
}

.survey-ratings {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.survey-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.survey-rating:hover {
  background: white;
  border-color: var(--gray-200);
  transform: translateY(-2px);
}

.survey-rating.selected {
  background: var(--brand-navy-soft);
  border-color: var(--brand-navy);
  transform: scale(1.05);
}

.survey-emoji {
  font-size: 28px;
  line-height: 1;
}

.survey-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.survey-rating.selected .survey-label {
  color: var(--brand-navy);
}

.survey-skip {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: color var(--transition-fast);
}

.survey-skip:hover {
  color: var(--gray-600);
}

/* ============================================
   SATISFACTION BUTTONS
   ============================================ */
.satisfaction-container {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.satisfaction-btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.satisfaction-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.satisfaction-btn.yes:hover {
  border-color: #22C55E;
  background: var(--green-soft);
}

.satisfaction-btn.no:hover {
  border-color: var(--accent-coral);
  background: var(--coral-soft);
}

.satisfaction-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.satisfaction-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-navy);
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
}

.powered-text {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.brand-logo {
  height: 24px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 1;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }

/* ============================================
   NETWORK STATUS
   ============================================ */
.network-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.network-banner.show {
  transform: translateY(0);
}

.network-banner.offline {
  background: var(--accent-coral);
  color: white;
}

.network-banner.online {
  background: var(--accent-teal);
  color: white;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .chat-area {
    padding: 16px;
    padding-bottom: 100px;
  }

  .message-wrapper, .message {
    max-width: 90%;
  }

  .message-bubble {
    padding: 12px 16px;
    font-size: 14px;
  }

  .offer-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .offer-amount {
    font-size: 48px;
  }

  .offer-buttons {
    flex-direction: column;
  }

  .input-area {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .text-input {
    padding: 12px 16px;
    font-size: 16px;
  }

  .trust-section {
    flex-wrap: wrap;
    gap: 12px;
  }

  .trust-divider {
    display: none;
  }
}

@media (max-width: 360px) {
  .subscription-details {
    grid-template-columns: 1fr;
  }

  .restart-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}
