/* ============================================================
   SHARK IMPORTS - DESIGN SYSTEM & IDENTIDADE VISUAL
   Paleta Oficial: Neon Shark Green, Emerald Cyber & Deep Black
   ============================================================ */

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

:root {
  /* Cores Oficiais Shark Imports extraídas do Logo e Feed */
  --shark-neon: #00FF66;
  --shark-neon-hover: #1aff75;
  --shark-emerald: #00D053;
  --shark-emerald-dark: #008736;
  --shark-forest: #072314;
  
  /* Fundos Cyber Dark */
  --bg-primary: #060b08;
  --bg-secondary: #0a130e;
  --bg-tertiary: #0f1c14;
  
  /* Superfícies e Glassmorphism */
  --card-bg: rgba(10, 22, 16, 0.65);
  --card-border: rgba(0, 255, 102, 0.14);
  --card-border-hover: rgba(0, 255, 102, 0.45);
  --card-glow: 0 8px 32px rgba(0, 0, 0, 0.45);
  
  /* Tipografia */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.42);
  --text-highlight: #00FF66;
  --text-mint: #6ee7b7;
  
  /* Acentos Funcionais */
  --accent-amber: #f59e0b;
  --accent-red: #ff453a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% -10%, #0d2818 0%, #060b08 70%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 16px 40px;
}

/* ============================================================
   HEADER & LOGO HERO
   ============================================================ */

.header {
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.09) 0%, rgba(6, 11, 8, 0.85) 100%);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 22px;
  padding: 28px 20px 22px;
  margin-bottom: 24px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(0, 255, 102, 0.18);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.brand-logo-img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid var(--shark-neon);
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.45), 0 8px 22px rgba(0, 0, 0, 0.6);
  background: #000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 38px rgba(0, 255, 102, 0.75);
  border-color: #ffffff;
}

.header h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #00FF66 60%, #00D053 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.header p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.badge-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 18px;
  border-radius: 9999px;
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: #00FF66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.2);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 102, 0.2); border-color: rgba(0, 255, 102, 0.35); }
  50% { box-shadow: 0 0 22px rgba(0, 255, 102, 0.55); border-color: rgba(0, 255, 102, 0.85); }
}

/* ============================================================
   CARDS & CONTAINERS
   ============================================================ */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-glow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-mint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.field label .required {
  color: var(--accent-red);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  background: rgba(6, 15, 10, 0.75);
  border: 1.5px solid rgba(0, 255, 102, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-main);
  transition: all 0.2s ease;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--shark-neon);
  background: rgba(0, 255, 102, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.22), 0 0 16px rgba(0, 255, 102, 0.15);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300ff66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.8'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field select option {
  background: #08140c;
  color: #fff;
}

/* ============================================================
   PROGRESS DOTS
   ============================================================ */

.progress-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 4px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-dot.active {
  background: linear-gradient(135deg, var(--shark-neon), #00b347);
  width: 28px;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.6);
}

.progress-dot.done {
  background: rgba(0, 255, 102, 0.85);
}

/* ============================================================
   CONVERSATIONAL CHAT SYSTEM
   ============================================================ */

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: chatFadeIn 0.45s ease-out;
}

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0, 255, 102, 0.4);
  border: 2px solid var(--shark-neon);
  background: #000;
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-message {
  background: rgba(10, 24, 16, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-radius: 4px 18px 18px 18px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 90%;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.chat-message b {
  color: var(--shark-neon);
}

.bubble-row {
  display: flex;
  animation: chatFadeIn 0.35s ease-out;
}

.bubble-row.user {
  justify-content: flex-end;
}

.bubble-user {
  background: linear-gradient(135deg, #00b347 0%, #005a22 100%);
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 255, 102, 0.25);
}

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

/* ============================================================
   CHIPS & BUTTON SELECTORS
   ============================================================ */

.chat-answer-area {
  animation: stepSlideIn 0.4s ease-out;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.chat-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mint);
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.chip {
  background: rgba(10, 24, 16, 0.6);
  color: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(0, 255, 102, 0.18);
  border-radius: 9999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip:hover {
  border-color: rgba(0, 255, 102, 0.6);
  background: rgba(0, 255, 102, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
}

.chip.active {
  background: linear-gradient(135deg, #00FF66 0%, #00A33B 100%);
  color: #030805;
  font-weight: 800;
  border-color: var(--shark-neon);
  box-shadow: 0 4px 18px rgba(0, 255, 102, 0.45);
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS & NAVIGATION
   ============================================================ */

.btn {
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #00FF66 0%, #00A33B 100%);
  color: #030805;
  box-shadow: 0 4px 16px rgba(0, 255, 102, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 255, 102, 0.55);
  background: linear-gradient(135deg, #1aff75 0%, #00b341 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(10, 24, 16, 0.7);
  color: #fff;
  border: 1px solid rgba(0, 255, 102, 0.22);
}

.btn-secondary:hover {
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #00FF66 0%, #008736 100%);
  color: #030805;
  box-shadow: 0 4px 18px rgba(0, 255, 102, 0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 255, 102, 0.6);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 18px 26px;
  font-size: 16px;
}

.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn-back {
  background: rgba(10, 24, 16, 0.6);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 255, 102, 0.2);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  white-space: nowrap;
}

.btn-back:hover {
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.45);
}

.btn-continue {
  flex: 1;
}

/* ============================================================
   ERROR BOX
   ============================================================ */

.error-box {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-left: 4px solid var(--accent-red);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 13px;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.error-box-title {
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--accent-red);
}

.error-list {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.error-list li {
  margin: 3px 0;
}

/* ============================================================
   RESULT SCREEN
   ============================================================ */

.result-greeting {
  background: rgba(0, 255, 102, 0.08);
  border-left: 4px solid var(--shark-neon);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.result-greeting b {
  color: var(--shark-neon);
}

.result-iphone-image {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(0, 255, 102, 0.35));
  animation: floatPhone 3s ease-in-out infinite alternate;
}

@keyframes floatPhone {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.result-section {
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.08) 0%, rgba(6, 15, 10, 0.9) 100%);
  border: 1px solid rgba(0, 255, 102, 0.28);
  border-radius: 18px;
  padding: 26px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.result-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 255, 102, 0.1);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.result-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.result-value.highlight {
  color: var(--shark-neon);
  font-size: 18px;
}

.result-diff {
  text-align: center;
  padding: 22px 0 12px;
}

.result-diff-label {
  font-size: 13px;
  color: var(--text-mint);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  font-weight: 700;
}

.result-diff-value {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #00FF66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(0, 255, 102, 0.3);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

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

.payment-card {
  background: rgba(10, 24, 16, 0.65);
  border: 1px solid rgba(0, 255, 102, 0.15);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s;
}

.payment-card.pix {
  background: rgba(0, 255, 102, 0.12);
  border-color: rgba(0, 255, 102, 0.45);
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.15);
}

.payment-card-label {
  font-size: 11px;
  color: var(--text-mint);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.payment-card-value {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
}

.payment-card.pix .payment-card-value {
  color: var(--shark-neon);
}

.payment-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
}

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

.trust-badge {
  background: rgba(10, 24, 16, 0.5);
  border: 1px solid rgba(0, 255, 102, 0.14);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  transition: all 0.2s;
}

.trust-badge:hover {
  background: rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.35);
  transform: translateY(-2px);
}

.trust-badge-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}

.trust-badge-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.trust-badge-label {
  font-size: 11px;
  color: var(--text-mint);
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */

.sticky-cta-bar {
  display: none;
}

@media (max-width: 640px) {
  .sticky-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 11, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 102, 0.25);
    padding: 12px 16px calc(env(safe-area-inset-bottom, 12px) + 12px);
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  }

  .container.has-sticky {
    padding-bottom: 120px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 26px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
