/* ============================================
   MedVoTalk - Premium Navy & Gold Theme
   ============================================ */

:root {
  /* 🎨 Premium Color System */
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --primary-dark: #152a45;
  --secondary: #c9a227;
  --secondary-light: #d4b343;
  --accent-teal: #0d9488;
  --accent-orange: #ea580c;
  --accent-green: #16a34a;
  --accent-amber: #c9a227;

  /* 🎨 Premium Text Hierarchy */
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;

  /* 🎨 Premium Background Hierarchy */
  --bg-body: #fafbfc;
  --bg-card: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-secondary: #f1f3f5;
  --bg-tertiary: #e9ecef;

  /* 🎨 Premium Border Hierarchy */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: #c9a227;

  /* 🎨 Premium Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.02);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl: 0 24px 48px rgba(15,23,42,0.1), 0 8px 16px rgba(15,23,42,0.06);

  /* 🎨 Premium Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* ============ Premium Hover Effects ============ */
button, .btn, a, .card, .specialty-card, .step-card, .info-card, .nav-links a, .tab-btn, .stat-card, .stat-box, .clinic-card, .link-item, .session-item, .patient-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover, .stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,39,0.3);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201,162,39,0.3);
}

.specialty-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.link-item:hover {
  background: #f0f4f8;
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-1px);
}

.session-item:hover, .patient-item:hover {
  background: linear-gradient(135deg, #fafbfc, #f0f4f8);
  border-left: 3px solid var(--secondary);
}

.tab-btn:hover {
  border-color: var(--secondary);
  color: var(--primary);
  background: #faf8f2;
}

.footer a:hover {
  color: var(--secondary);
}

/* ============ Layout ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* ============ Header / Navigation ============ */
.header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
  border-bottom-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-brand:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(135deg, #f0f4f8, #e8edf5);
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.lang-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  min-width: 120px;
}

.lang-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* ============ Hero Section ============ */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f8fafe 0%, #f0f4f8 30%, #ffffff 70%, #fafbfc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-width: 0;
}

.hero-text {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--primary), #2c5282, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
}

.badge-blue {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.badge-purple {
  background: #f5f3ff;
  color: var(--secondary);
  border-color: #ddd6fe;
}

.badge-teal {
  background: #f0fdfa;
  color: var(--accent-teal);
  border-color: #99f6e4;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 300px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), inset 0 0 0 2px #333;
  overflow: hidden;
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.mockup-screen {
  flex: 1;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mockup-statusbar-right {
  display: flex;
  gap: 4px;
  align-items: center;
}

.mockup-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 0.75rem 1rem 1rem;
  color: white;
}

.mockup-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-header h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
}

.mockup-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  margin-top: 2px;
}

.mockup-lang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
  max-width: 72px;
}

.mockup-flag {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}

.mockup-flag:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.15);
}

.mockup-flag.active {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.8);
}

.mockup-chat {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  background: #f8fafc;
}

.mockup-msg {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.72rem;
  max-width: 82%;
  line-height: 1.45;
}

.mockup-msg.ai {
  background: white;
  color: var(--text-primary);
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.mockup-msg.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mockup-inputbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.mockup-inputbar-field {
  flex: 1;
  height: 30px;
  background: #f1f5f9;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
}

.mockup-inputbar-btn {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
}

.mockup-homebar {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.mockup-homebar::after {
  content: '';
  width: 100px;
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(30,58,95,0.25);
  border: 1px solid rgba(201,162,39,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,95,0.35);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,95,0.2);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
  color: white;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============ Cards ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201,162,39,0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon-blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
}

.card-icon-purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: var(--secondary);
}

.card-icon-teal {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  color: var(--accent-teal);
}

.card-icon-orange {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: var(--accent-orange);
}

.card-icon-green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: var(--accent-green);
}

/* ============ Features Grid ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============ How It Works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1.25rem;
}

/* ============ Specialty Section ============ */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.specialty-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.specialty-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.specialty-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ============ CTA Section ============ */
.cta-section {
  background: linear-gradient(135deg, #0f172a, #1e3a5f, #152a45);
  padding: 5rem 0;
  text-align: center;
  color: white;
  border-radius: var(--radius-xl);
  margin: 3rem 1.5rem;
  border: 1px solid rgba(201,162,39,0.2);
  box-shadow: 0 20px 60px rgba(15,23,42,0.15);
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(201,162,39,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-manual-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251,191,36,0.4);
  color: #1e293b;
}

/* ============ Chat Page ============ */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 70px;
}

.chat-header {
  padding: 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  line-height: 1.6;
  font-size: 0.95rem;
  animation: fadeInUp 0.3s ease;
}

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

.message.ai {
  background: linear-gradient(135deg, #f1f5f9, #f8fafc);
  border: 1px solid var(--border-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.system {
  background: linear-gradient(135deg, #fef3c7, #fef9c3);
  border: 1px solid #fde68a;
  align-self: center;
  text-align: center;
  font-size: 0.85rem;
  max-width: 90%;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  font-family: inherit;
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

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

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  align-self: flex-start;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--border-medium);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

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

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

/* ============ Dashboard ============ */
.dashboard-container {
  padding-top: 80px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
}

.stat-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ Floating Chat Button ============ */
.floating-chat-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37,99,235,0.5);
}

/* ============ Language Selector (Chat) ============ */
.lang-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.lang-chip {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-chip:hover,
.lang-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============ Section Headers ============ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: linear-gradient(135deg, #f8f6f0, #faf8f2);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8b6914;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* ============ Mobile Responsive ============ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero {
    padding: 6rem 0 2rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 1.5rem !important;
  }

  .hero-mockup {
    width: 240px;
    height: 460px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .chat-container {
    padding-top: 60px;
  }

  .message {
    max-width: 90%;
  }

  .floating-chat-btn {
    width: 56px;
    height: 56px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    justify-content: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ Tablet (768px) ============ */
@media (max-width: 768px) {
  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ Pricing Grid ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Loading Spinner ============ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============ Toast Notifications ============ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: var(--transition);
}

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

/* ============ Promo Gallery ============ */
.promo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.promo-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.promo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.promo-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .promo-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============ Print Styles ============ */
@media print {
  .header, .footer, .floating-chat-btn, .nav, .chat-input-area {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
