/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #10a37f;
  --green-dark: #0d8a6b;
  --green-light: #e6f7f3;
  --green-glow: rgba(16,163,127,.25);
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --gray: #6e7681;
  --gray-light: #f6f8fa;
  --white: #ffffff;
  --border: #e1e4e8;
  --border-dark: rgba(255,255,255,.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== REVEAL ANIMATIONS ===== */
/* Hidden state added by JS — content visible without JS */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-ready.visible { opacity: 1; transform: none; }
.reveal-delay-1.reveal-ready { transition-delay: .1s; }
.reveal-delay-2.reveal-ready { transition-delay: .2s; }
.reveal-delay-3.reveal-ready { transition-delay: .3s; }
.reveal-delay-4.reveal-ready { transition-delay: .4s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.08); }

.btn-sm  { padding: 9px 20px; font-size: 14px; }
.btn-lg  { padding: 17px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }
.btn-buy { padding: 18px 24px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 22px rgba(16,163,127,.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

/* Animated pulsing CTA button */
.btn-animated {
  background: linear-gradient(135deg, var(--green) 0%, #0ea5e9 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(16,163,127,.4);
  animation: btn-pulse 2.8s ease-in-out infinite;
}
.btn-animated:hover {
  box-shadow: 0 8px 30px rgba(16,163,127,.55);
  transform: translateY(-3px) scale(1.02);
  animation: none;
  background: linear-gradient(135deg, #0d8a6b 0%, #0284c7 100%);
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(16,163,127,.4); }
  50%       { box-shadow: 0 4px 36px rgba(16,163,127,.7), 0 0 0 8px rgba(16,163,127,.08); }
}

.btn-secondary {
  background: rgba(16,163,127,.08);
  color: var(--dark);
  border: 2px solid var(--border);
  font-weight: 600;
}
.btn-secondary:hover {
  background: rgba(16,163,127,.12);
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
  font-weight: 700;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--dark);
  letter-spacing: -.02em;
}
.logo-icon { color: var(--green); font-size: 22px; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--transition);
  padding: 4px 0;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header-nav a:hover { color: var(--dark); text-decoration: none; }
.header-nav a:hover::after { transform: scaleX(1); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-header p { font-size: 18px; color: var(--gray); }

/* ===== HERO ===== */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background: linear-gradient(175deg, #f0fdf9 0%, #f8fcff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(16,163,127,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,163,127,.1);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(16,163,127,.2);
  letter-spacing: .01em;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}
.hero-title {
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -.04em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 16px 40px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.stat span   { font-size: 13px; color: var(--gray); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== BENEFITS ===== */
.benefits { padding: 88px 0; background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.benefit-card {
  padding: 36px 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,163,127,.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.benefit-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-card:hover::before { opacity: 1; }
.benefit-icon-wrap {
  font-size: 36px;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
.benefit-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.benefit-card p  { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 88px 0; background: var(--gray-light); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.step { flex: 1; min-width: 160px; max-width: 210px; text-align: center; }
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(16,163,127,.35);
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 14px; color: var(--gray); line-height: 1.6; }
.step-arrow { font-size: 26px; color: var(--green); margin-top: 18px; opacity: .6; flex-shrink: 0; }

/* ===== PRICING ===== */
.pricing { padding: 88px 0; background: var(--white); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 36px;
}
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  transition: all var(--transition);
  background: var(--white);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.pricing-card--featured {
  border-color: var(--green);
  background: linear-gradient(160deg, #f0fdf9 0%, #ffffff 60%);
  box-shadow: 0 8px 32px rgba(16,163,127,.12);
}
.pricing-card--featured:hover { box-shadow: 0 20px 60px rgba(16,163,127,.2); }
.pricing-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--green), #0ea5e9);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.pricing-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.pricing-desc { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
}
.price-amount { font-size: 48px; font-weight: 900; color: var(--dark); letter-spacing: -.04em; }
.price-period { font-size: 16px; color: var(--gray); }
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-weight: 500;
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--green); font-weight: 800; flex-shrink: 0; font-size: 16px; }
.pricing-note {
  text-align: center;
  font-size: 15px;
  color: #065f46;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16,163,127,.2);
  font-weight: 500;
}

/* ===== FEATURES ===== */
.features { padding: 88px 0; background: var(--dark); color: var(--white); }
.features .section-header h2 { color: var(--white); }
.features .section-header p  { color: rgba(255,255,255,.5); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  transition: all var(--transition);
}
.feature-item:hover {
  background: #2a2f3d;
  border-color: rgba(16,163,127,.3);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feature-item p  { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ===== FAQ ===== */
.faq { padding: 88px 0; background: var(--gray-light); }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(16,163,127,.3); }
.faq-item.open  { border-color: var(--green); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--dark);
  gap: 16px;
  letter-spacing: -.01em;
}
.faq-toggle {
  width: 28px; height: 28px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--green-light); }
.faq-answer { display: none; padding: 0 26px 22px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 15px; color: var(--gray); line-height: 1.75; }
.faq-answer a { color: var(--green); font-weight: 500; }

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(16,163,127,.2), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.03em; }
.cta-banner p  { font-size: 18px; opacity: .75; margin-bottom: 40px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--white); padding: 68px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); max-width: 260px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-links a, .footer-contact a {
  font-size: 14px; color: rgba(255,255,255,.65);
  padding: 5px 0; transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: none; }
.footer-hours { font-size: 13px; color: rgba(255,255,255,.3); margin-top: 8px; }
.footer-bottom { padding: 26px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); line-height: 1.9; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  width: 100%;
  max-width: 490px;
  position: relative;
  transform: scale(.95) translateY(16px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-light); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--dark); transform: rotate(90deg); }
.modal-header { margin-bottom: 30px; }
.modal-header h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.modal-header p  { font-size: 15px; color: var(--gray); }
.modal-header strong { color: var(--green); }

.order-form { display: flex; flex-direction: column; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }
.required { color: #ef4444; }

.input-prefix-wrap { position: relative; display: flex; }
.input-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; font-weight: 700;
  color: var(--green);
  pointer-events: none;
}
.input-prefix-wrap input { padding-left: 30px !important; }

.form-group input {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  width: 100%;
}
.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,163,127,.12);
}
.form-group input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.field-hint { font-size: 12px; color: var(--gray); }

.form-notice {
  display: flex; gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.notice-icon { font-size: 18px; flex-shrink: 0; }
.form-notice p { font-size: 13px; color: #1e40af; line-height: 1.6; }

.form-agree { display: flex; gap: 10px; align-items: flex-start; }
.form-agree input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--green);
  margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
.form-agree label { font-size: 13px; color: var(--gray); line-height: 1.6; cursor: pointer; }
.form-agree a { color: var(--green); font-weight: 500; }

.btn-pay {
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: -.01em;
}
.btn-pay-price { font-size: 18px; font-weight: 800; }
.btn-pay.loading { pointer-events: none; opacity: .7; }

/* ===== LEGAL PAGES ===== */
.legal-page { min-height: 80vh; padding: 60px 0; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-letters: -.02em; }
.legal-page .last-updated { font-size: 14px; color: var(--gray); margin-bottom: 44px; }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal-content p, .legal-content li {
  font-size: 15px; color: #374151; line-height: 1.85; margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }

/* ===== LIVE CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
}
.chat-toggle {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(16,163,127,.45);
  transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(16,163,127,.6);
}
.chat-icon { display: flex; align-items: center; justify-content: center; }
.chat-unread {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #ef4444; color: white;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  animation: chat-bounce .6s ease-in-out infinite alternate;
}
@keyframes chat-bounce {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}
.chat-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-open .25s cubic-bezier(.34,1.56,.64,1);
}
.chat-panel.open { display: flex; }
@keyframes chat-open {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-header {
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  padding: 18px 20px;
}
.chat-agent { display: flex; align-items: center; gap: 12px; }
.chat-agent-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  border: 2px solid rgba(255,255,255,.3);
}
.chat-agent-name { font-size: 14px; font-weight: 700; color: white; }
.chat-agent-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.status-dot {
  width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 320px;
  background: #fafafa;
}
.chat-msg { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-agent { align-items: flex-start; }
.chat-msg-user  { align-items: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-agent .chat-bubble {
  background: var(--white);
  color: var(--dark);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  color: white;
  border-radius: 16px 4px 16px 16px;
}
.chat-time { font-size: 11px; color: var(--gray); padding: 0 4px; }
.chat-typing {
  display: flex; gap: 4px; align-items: center; padding: 10px 14px;
  background: var(--white); border-radius: 4px 16px 16px 16px;
  width: fit-content; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-typing span {
  width: 6px; height: 6px; background: var(--gray);
  border-radius: 50%; animation: typing-dot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-6px); opacity: 1; }
}
.chat-input-wrap {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-light);
}
.chat-input:focus { border-color: var(--green); background: white; }
.chat-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 4px 12px var(--green-glow); }

/* ── Chat system messages (user-facing) ── */
.chat-msg-system { align-items: center; }
.chat-system-label {
  font-size: 12px;
  color: var(--gray);
  background: rgba(16,163,127,.08);
  border: 1px solid rgba(16,163,127,.18);
  border-radius: 100px;
  padding: 5px 14px;
  text-align: center;
  max-width: 100%;
}

/* ── Rating block ── */
.rating-block { align-items: stretch !important; }
.rating-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rating-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.rating-sub   { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.rating-stars { display: flex; gap: 6px; justify-content: center; }
.star-btn {
  background: none; border: none; font-size: 26px; cursor: pointer;
  color: #d1d5db; transition: color .15s, transform .15s;
  line-height: 1;
}
.star-btn.hover, .star-btn.active { color: #f59e0b; }
.star-btn.hover  { transform: scale(1.15); }
.star-btn:disabled { cursor: default; }
.rating-thanks { padding: 8px 0; }
.rating-thanks-stars { font-size: 24px; color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.rating-thanks-text  { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.rating-thanks-sub   { font-size: 12px; color: var(--gray); }

/* ===== ADMIN PANEL ===== */
.admin-body {
  background: #0f1117;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  padding: 24px;
}
.admin-login-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.admin-login-card .logo { color: white; margin-bottom: 32px; }
.admin-login-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.admin-login-card p { font-size: 14px; color: rgba(255,255,255,.45); margin-bottom: 32px; }
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 4px; display: block; }
.admin-form input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: white; font-family: var(--font); font-size: 15px; outline: none;
  transition: border-color var(--transition);
}
.admin-form input:focus { border-color: var(--green); background: rgba(255,255,255,.08); }
.admin-form input::placeholder { color: rgba(255,255,255,.3); }
.admin-error { color: #f87171; font-size: 13px; display: none; }
.admin-error.show { display: block; }

.admin-layout {
  display: none;
  flex: 1;
  height: 100vh;
  overflow: hidden;
}
.admin-layout.show { display: flex; }

.admin-sidebar {
  width: 300px; min-width: 300px;
  background: var(--dark-2);
  border-right: 1px solid var(--border-dark);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.admin-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-sidebar-header .logo { color: white; font-size: 16px; }
.admin-logout {
  font-size: 12px; color: rgba(255,255,255,.4);
  background: none; border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; color: rgba(255,255,255,.5);
  font-family: var(--font); transition: all var(--transition);
}
.admin-logout:hover { border-color: #f87171; color: #f87171; }
.admin-chat-list {
  flex: 1; overflow-y: auto;
  padding: 10px 0;
}
.admin-chat-item {
  padding: 14px 20px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 4px;
}
.admin-chat-item:hover { background: rgba(255,255,255,.04); }
.admin-chat-item.active { background: rgba(16,163,127,.08); border-left-color: var(--green); }
.admin-chat-item.has-unread { border-left-color: #f59e0b; }
.admin-chat-name { font-size: 14px; font-weight: 600; color: white; }
.admin-chat-preview { font-size: 12px; color: rgba(255,255,255,.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.admin-chat-time { font-size: 11px; color: rgba(255,255,255,.3); }
.admin-unread-badge {
  background: #f59e0b; color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
}
.admin-empty {
  padding: 40px 20px; text-align: center;
  color: rgba(255,255,255,.3); font-size: 14px;
}

.admin-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: #0f1117;
}
.admin-main-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 15px; text-align: center;
}
.admin-chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center; gap: 14px;
  background: var(--dark-2);
  min-height: 70px;
}
.admin-chat-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white; flex-shrink: 0;
}
.admin-chat-info-name { font-size: 15px; font-weight: 700; color: white; }
.admin-chat-info-sub  { font-size: 12px; color: rgba(255,255,255,.4); }

.admin-messages {
  flex: 1; padding: 20px 24px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  background: #0f1117;
}
.admin-msg { display: flex; flex-direction: column; gap: 4px; }
.admin-msg-user   { align-items: flex-start; }
.admin-msg-agent  { align-items: flex-end; }
.admin-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 16px; font-size: 14px; line-height: 1.55; word-break: break-word;
}
.admin-msg-user .admin-bubble {
  background: var(--dark-3); color: rgba(255,255,255,.85);
  border-radius: 4px 16px 16px 16px;
}
.admin-msg-agent .admin-bubble {
  background: linear-gradient(135deg, var(--green), #0ea5e9); color: white;
  border-radius: 16px 4px 16px 16px;
}
.admin-msg-label { font-size: 11px; color: rgba(255,255,255,.3); padding: 0 4px; }

.admin-input-wrap {
  padding: 16px 24px;
  border-top: 1px solid var(--border-dark);
  background: var(--dark-2);
  display: flex; gap: 10px;
}
.admin-input {
  flex: 1; padding: 12px 18px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 100px; color: white;
  font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.admin-input:focus { border-color: var(--green); background: rgba(255,255,255,.08); }
.admin-input::placeholder { color: rgba(255,255,255,.3); }
.admin-send {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 100px;
  color: white; font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.admin-send:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--green-glow); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 85vh; display: flex; align-items: center;
  justify-content: center; padding: 60px 24px;
  background: linear-gradient(175deg, #f0fdf9 0%, #f8fcff 60%, #ffffff 100%);
}
.success-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 52px;
  max-width: 520px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 88px; height: 88px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  margin: 0 auto 32px;
  animation: success-pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes success-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.success-card p  { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.success-steps {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  text-align: left; margin: 28px 0;
}
.success-step-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--dark);
}
.success-step-row:last-child { border-bottom: none; }
.success-step-num {
  width: 24px; height: 24px;
  background: var(--green); color: white;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.manager-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #229ED9 0%, #1a7fc1 100%);
  color: white !important; text-decoration: none !important;
  padding: 18px 36px;
  border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 8px;
  box-shadow: 0 6px 24px rgba(34,158,217,.4);
  animation: manager-pulse 2.5s ease-in-out infinite;
  transition: all var(--transition);
}
.manager-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(34,158,217,.55);
  animation: none;
}
@keyframes manager-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(34,158,217,.4); }
  50%      { box-shadow: 0 6px 36px rgba(34,158,217,.65), 0 0 0 8px rgba(34,158,217,.08); }
}
.manager-btn-icon { font-size: 22px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { padding: 72px 0 60px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .step { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 32px 22px; }
  .chat-panel { width: 300px; right: 0; }
  .admin-sidebar { width: 260px; min-width: 260px; }
  .success-card { padding: 40px 26px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; border-radius: var(--radius); padding: 20px; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
  .chat-panel { width: calc(100vw - 56px); }
  .admin-sidebar { display: none; }
}
