/* ── Mode Cards (Como funciona — 3 modos) ───────────────────────────── */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 860px) { .mode-cards { grid-template-columns: 1fr; } }

.mode-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mode-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.mode-card__header--shopee { background: #EE4D2D; }
.mode-card__header--ml     { background: #FFE600; color: #333; }
.mode-card__header--full   { background: #1A73E8; }
.mode-card__icon { font-size: 1.2rem; }
.mode-card__steps {
  padding: 16px 20px 12px 36px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
}
.mode-card__steps li { margin-bottom: 6px; }
.mode-card__tip {
  padding: 10px 18px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Label Examples (removido — substituído por imagens reais no hero) ── */
.label-examples {
  background: var(--bg-alt);
  padding: 56px 0;
}
.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (max-width: 700px) { .examples-grid { grid-template-columns: 1fr; } }

.example-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.example-card__badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  color: #fff;
}
.example-card__badge--shopee { background: #EE4D2D; }
.example-card__badge--ml     { background: #333; }
.example-card__caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Label mockup base */
.label-mockup {
  width: 100%;
  max-width: 320px;
  border: 1.5px solid #999;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.72rem;
  font-family: 'Arial', sans-serif;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* Shopee mockup */
.label-mockup--shopee .lm-danfe {
  background: #111;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 5px;
  font-size: 0.68rem;
  letter-spacing: .5px;
}
.label-mockup--shopee .lm-barcode-strip {
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 2px;
  padding: 6px 4px 2px;
  color: #111;
}
.label-mockup--shopee .lm-section {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}
.label-mockup--shopee .lm-badge-dest {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  margin-bottom: 4px;
}
.label-mockup--shopee .lm-name { font-weight: 700; font-size: 0.8rem; margin-bottom: 2px; }
.label-mockup--shopee .lm-addr { color: #444; margin-bottom: 4px; }
.label-mockup--shopee .lm-row  { display: flex; justify-content: space-between; font-size: 0.68rem; }
.label-mockup--shopee .lm-delivery-bar {
  background: #111;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px;
}
.label-mockup--shopee .lm-routing-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 10px;
  border-bottom: 1px solid #ddd;
}
.lm-qr-placeholder {
  width: 56px; height: 56px;
  border: 2px solid #333;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 4px;
}
.lm-qr-inner { font-size: 0.65rem; color: #555; font-weight: 700; }
.lm-routing-info { flex: 1; }
.lm-route-num  { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.lm-route-cep  { font-size: 0.72rem; font-weight: 700; }
.lm-route-city { font-size: 0.68rem; color: #555; }
.label-mockup--shopee .lm-remetente-bar {
  padding: 6px 10px;
  font-size: 0.68rem;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
}
.label-mockup--shopee .lm-sku-bar {
  padding: 7px 10px;
  font-size: 0.68rem;
  background: #FFF8F0;
  border-top: 2px solid #EE4D2D;
  color: #333;
}

/* ML mockup */
.label-mockup--ml .lm-lista-section {
  padding: 8px 10px;
  border-bottom: 1px dashed #999;
  background: #fff;
}
.label-mockup--ml .lm-venda { font-size: 0.65rem; color: #555; margin-bottom: 6px; }
.label-mockup--ml .lm-produto-row {
  display: flex; align-items: flex-start; gap: 8px;
}
.lm-qtd-circle {
  width: 28px; height: 28px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900;
  flex-shrink: 0;
}
.lm-produto-nome { font-size: 0.72rem; font-weight: 600; margin-bottom: 2px; }
.lm-sku-ml       { font-size: 0.7rem; color: #111; }
.lm-cor-ml       { font-size: 0.68rem; color: #555; }
.label-mockup--ml .lm-scissors {
  padding: 3px 8px;
  font-size: 0.68rem;
  color: #999;
  background: #f5f5f5;
}
.label-mockup--ml .lm-label-section {
  padding: 8px 10px;
}
.label-mockup--ml .lm-remetente-ml { font-size: 0.68rem; font-weight: 700; margin-bottom: 4px; }
.label-mockup--ml .lm-code-row     { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lm-code-badge {
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
}
.lm-despachar { font-size: 0.6rem; color: #555; }
.label-mockup--ml .lm-barcode-ml {
  font-size: 0.38rem;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 4px 0 2px;
  color: #111;
}
.label-mockup--ml .lm-routing-ml {
  font-size: 0.72rem;
  text-align: center;
  margin: 4px 0;
  color: #222;
}
.label-mockup--ml .lm-dest-name-ml { font-weight: 700; font-size: 0.78rem; margin-top: 4px; }
.label-mockup--ml .lm-dest-ml      { font-size: 0.68rem; color: #555; }

/* ── Quota Countdown (temporizador 24h) ─────────────────────────────── */
.quota-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 14px;
  background: var(--warning-bg);
  border: 1px solid #F59E0B;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #92400E;
  font-weight: 500;
}
.quota-countdown__icon { font-size: 1rem; }
.quota-countdown__timer {
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: #B45309;
  letter-spacing: 1px;
}

/* ── PIX icon no botão ──────────────────────────────────────────────── */
.pix-btn-icon {
  height: 18px;
  width: auto;
  vertical-align: middle;
  margin-left: 6px;
  filter: brightness(10);   /* torna branco sobre fundo verde */
}

/* ── Oferta de primeira compra ──────────────────────────────────────── */
.promo-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .5px;
  margin-bottom: 8px;
  animation: promo-pulse 2s infinite;
}
@keyframes promo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.promo-price-block {
  text-align: center;
  margin: 12px 0 6px;
}
.promo-price-old {
  display: inline-block;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.promo-price-new {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--success);
  line-height: 1;
}
.promo-price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.promo-validade {
  text-align: center;
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.btn--promo {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  animation: promo-pulse 2s infinite;
}

/* ── Upload Grid (aba Arquivo: PDF + Excel) ─────────────────────────── */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
@media (max-width: 540px) {
  .upload-grid { grid-template-columns: 1fr; }
}
.upload-col__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-required {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.badge-optional {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.drop-zone--sm { min-height: 110px; }
.drop-zone--sm .drop-zone__title { font-size: 0.82rem; }
.drop-zone--sm .drop-zone__icon  { font-size: 1.6rem; margin-bottom: 4px; }
.drop-zone--optional { border-style: dashed; opacity: .85; }
.drop-zone--optional:hover { opacity: 1; }

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --primary:       #EE4D2D;
  --primary-dark:  #D43B1E;
  --primary-light: #FFF0ED;
  --ml-yellow:     #F5C518;
  --ml-dark:       #D4AA00;
  --blue:          #1A73E8;
  --blue-light:    #E8F0FE;
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --bg:            #FFFFFF;
  --bg-alt:        #F9FAFB;
  --success:       #16A34A;
  --success-bg:    #F0FDF4;
  --error:         #DC2626;
  --error-bg:      #FEF2F2;
  --warning-bg:    #FFFBEB;
  --info-bg:       #EFF6FF;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:     0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.10);
  --header-h:      64px;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow{ max-width: 720px; }
.container--xs    { max-width: 440px; }

/* ── Logo ──────────────────────────────────────────────────────────── */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--primary); }
.logo--sm  { font-size: 1.2rem; }

/* ── Header ────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav__link:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.auth__name {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--ghost  { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover  { background: var(--bg-alt); color: var(--text); }
.btn--sm  { padding: 6px 14px; font-size: 0.875rem; }
.btn--lg  { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Link button ───────────────────────────────────────────────────── */
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--primary-dark); }

/* ── Flash messages ────────────────────────────────────────────────── */
.flash-wrap { padding: 12px 0; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}
.flash--success { background: var(--success-bg); color: var(--success); }
.flash--error   { background: var(--error-bg);   color: var(--error); }
.flash--warning { background: var(--warning-bg); color: #92400E; }
.flash--info    { background: var(--info-bg);    color: var(--blue); }
.flash__close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: .6;
  padding: 0 4px;
  color: inherit;
}

/* ── Badges ────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge--shopee { background: var(--primary-light); color: var(--primary); }
.badge--ml     { background: var(--ml-yellow); color: #7a5e00; }
.badge--pages  { background: var(--blue-light); color: var(--blue); font-size: 0.8rem; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  padding: 60px 24px;
  text-align: center;
}
.hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  gap: 40px;
  align-items: center;
}
.hero__content { min-width: 0; }

/* Painéis laterais com imagens de exemplo */
.hero__label-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__label-img {
  width: 100%;
  max-width: 295px;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1.5px solid rgba(0,0,0,.08);
  transition: transform .2s;
}
.hero__label-img:hover { transform: scale(1.03); }
.hero__label-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .2px;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__label-panel { display: none; }
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero__title span { color: var(--primary); }
.hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── Tool cards (homepage) ─────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none;
  color: var(--text);
  position: relative;
  text-align: center;
  gap: 12px;
}
.tool-card--shopee:hover,
.tool-card--ml:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.tool-card--disabled { opacity: .65; cursor: not-allowed; }
.tool-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ml-yellow);
  color: #7a5e00;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tool-card__icon  { font-size: 3rem; }
.tool-card__name  { font-size: 1.375rem; font-weight: 700; }
.tool-card__desc  { font-size: 0.9rem; color: var(--text-muted); }
.tool-card__arrow {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: auto;
}
.tool-card--disabled .tool-card__arrow { color: var(--text-muted); }
.tool-card--shopee .tool-card__arrow   { transition: transform .15s; }
.tool-card--shopee:hover .tool-card__arrow { transform: translateX(4px); }
.tool-card--ml .tool-card__arrow       { transition: transform .15s; }
.tool-card--ml:hover .tool-card__arrow { transform: translateX(4px); }

/* ── Steps ─────────────────────────────────────────────────────────── */
.steps { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
}
.steps__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  text-align: center;
  padding: 24px;
}
.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-weight: 600; margin-bottom: 8px; }
.step p  { color: var(--text-muted); font-size: 0.9rem; }
.step--arrow { font-size: 1.5rem; color: var(--border); flex: none; min-width: auto; }

/* ── Benefits ──────────────────────────────────────────────────────── */
.benefits { padding: 48px 0 64px; background: var(--bg-alt); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.benefit {
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.benefit__icon { font-size: 2rem; margin-bottom: 12px; }
.benefit h3    { font-weight: 600; margin-bottom: 8px; }
.benefit p     { font-size: 0.9rem; color: var(--text-muted); }

/* ── CTA section ───────────────────────────────────────────────────── */
.cta-section {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b4a 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p  { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.cta-section__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-section .btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}
.cta-section .btn--outline {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.cta-section .btn--outline:hover { background: rgba(255,255,255,.15); }

/* ── Converter page ────────────────────────────────────────────────── */
.converter-page { padding: 40px 0 0; }

.page-header {
  text-align: center;
  margin-bottom: 32px;
}
.page-header__brand { margin-bottom: 12px; }
.page-header__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header__sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* quota bar */
.quota-bar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quota-bar__text { font-size: 0.875rem; color: var(--text-muted); }
.quota-bar__text a { color: var(--primary); }
.quota-bar__track {
  width: 240px;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.quota-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .3s;
}

/* converter card */
.converter-card {
  max-width: 680px;
  margin: 0 auto 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .15s;
}
.tab--active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}
.tab:hover:not(.tab--active) { color: var(--text); }

/* drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: border-color .15s, background .15s;
  cursor: pointer;
  margin-bottom: 20px;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.drop-zone.has-file {
  border-color: var(--success);
  background: var(--success-bg);
  cursor: default;
}
.drop-zone__icon  { font-size: 2.5rem; margin-bottom: 12px; }
.drop-zone__title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.drop-zone__sub   { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; }
.drop-zone__hint  { font-size: 0.8rem; color: var(--text-muted); }
.drop-zone__file  {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.drop-zone__file-icon { font-size: 1.5rem; }
.drop-zone__file-name { font-weight: 500; font-size: 0.95rem; }
.drop-zone__remove {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  opacity: .7;
}
.drop-zone__remove:hover { opacity: 1; }

/* ZPL textarea */
.zpl-textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  resize: vertical;
  transition: border-color .15s;
  margin-bottom: 20px;
}
.zpl-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* size selector */
.size-selector {
  margin-bottom: 24px;
}
.size-selector__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.size-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s;
  flex: 1;
}
.size-opt input { accent-color: var(--primary); }
.size-opt--selected { border-color: var(--primary); background: var(--primary-light); }
.size-opt--disabled { opacity: .55; cursor: not-allowed; }
.size-opt__name { font-weight: 600; font-size: 0.9rem; }
.size-opt__dim  { font-size: 0.8rem; color: var(--text-muted); }

/* spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* result boxes */
.result-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  margin-top: 20px;
  flex-wrap: wrap;
}
.result-box--error {
  background: var(--error-bg);
  border-color: #fecaca;
}
.result-box__icon { font-size: 2rem; }
.result-box__body { flex: 1; min-width: 160px; }
.result-box__title { font-weight: 700; font-size: 1rem; }
.result-box__pages { font-size: 0.875rem; color: var(--text-muted); }
.result-box__msg   { font-size: 0.875rem; color: var(--error); }
.reset-btn { display: block; margin-top: 16px; font-size: 0.875rem; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { padding: 48px 0 72px; }
.faq__list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--primary); font-size: 1.25rem; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Inner pages (history, contact) ────────────────────────────────── */
.inner-page { padding: 48px 0 72px; }

/* history table */
.history-table-wrap { overflow-x: auto; }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.history-table th, .history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.history-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--bg-alt);
}
.history-table tr:hover td { background: var(--bg-alt); }
.history-table__num  { color: var(--text-muted); }
.history-table__name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-table__date { color: var(--text-muted); white-space: nowrap; }

/* empty state */
.empty-state {
  text-align: center;
  padding: 72px 24px;
}
.empty-state__icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); margin-bottom: 24px; }

/* ── Forms (contact, auth) ─────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.form { display: flex; flex-direction: column; gap: 20px; }
.form__group  { display: flex; flex-direction: column; gap: 6px; }
.form__label  { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form__input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form__textarea { min-height: 120px; resize: vertical; }

/* contact info */
.contact-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 180px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.contact-info__icon { font-size: 1.5rem; }
.contact-info__item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-info__item p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Auth pages ────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: var(--bg-alt);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-card__header .logo { display: inline-block; margin-bottom: 20px; }
.auth-card__header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-card__header p  { color: var(--text-muted); font-size: 0.9rem; }
.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy  { font-size: 0.85rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 20px; font-size: 0.85rem; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; }
  .nav--open { display: flex; }
  .hamburger  { display: flex; }
  .auth .btn--ghost { display: none; }

  .hero { padding: 48px 0 40px; }
  .step--arrow { display: none; }
  .steps__grid { flex-direction: column; align-items: center; }

  .converter-card { padding: 20px; }
  .size-options { flex-direction: column; }

  .footer__inner { flex-direction: column; text-align: center; }
  .auth-card { padding: 28px 20px; }

  .history-table__name { max-width: 120px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { order: -1; }
  .pix-copy-wrap { flex-direction: column; }
  .pix-copy-input { border-radius: var(--radius-sm) !important; }
  .modal { padding: 28px 20px; }
}

/* ── Planos / Pricing ──────────────────────────────────────────────── */
.planos-page { padding: 48px 0 64px; }
.planos-header {
  text-align: center;
  margin-bottom: 40px;
}
.planos-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.planos-header p  { color: var(--text-muted); font-size: 1.05rem; }
.plano-atual-badge {
  display: inline-block;
  margin-top: 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.875rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card__badge--green { background: #16a34a; }
.pricing-card__header { text-align: center; }
.pricing-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.pricing-card__amount { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.pricing-card__period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-card__sub    { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feat {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feat::before { content: ''; display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background-size: 12px; background-repeat: no-repeat; background-position: center; }
.feat--ok::before { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2316a34a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.feat--no { color: var(--text-muted); }
.feat--no::before { background-color: #f3f4f6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%239ca3af' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.planos-footer-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Modal PIX ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer; color: var(--text-muted);
}
.modal__close:hover { color: var(--text); }
.modal__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.modal__sub   { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.pix-qr-wrap  { text-align: center; margin-bottom: 16px; }
.pix-qr-img   { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pix-copy-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pix-copy-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-family: monospace;
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
}
.pix-copy-btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  white-space: nowrap;
}
.pix-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  justify-content: center;
}
.pix-status__dot {
  width: 8px; height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* Spinner dentro do modal tem fundo branco — usa cor primária */
#modal-loading .spinner,
#limit-pix-loading .spinner {
  border-color: rgba(0,0,0,.12);
  border-top-color: var(--primary);
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* ── Layout 2 colunas conversor ────────────────────────────────────── */
.converter-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.converter-layout--full {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}
@media (max-width: 860px) {
  .converter-layout { grid-template-columns: 1fr; }
  .side-panel { order: -1; }
}

/* ── Painel lateral de planos ──────────────────────────────────────── */
.side-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.btn--green {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn--green:hover { background: #15803d; border-color: #15803d; }

.btn--orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s;
}
.btn--orange:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 6px 20px rgba(249,115,22,.45);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn--orange:active { transform: translateY(0); }

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn--whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; text-decoration: none; }

/* ── WhatsApp CTA na página de contato ─────────────────────────────── */
.whatsapp-cta {
  text-align: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.whatsapp-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.side-panel__badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b00, #ee4d2d);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.side-panel__icon { font-size: 1.8rem; margin-bottom: 8px; }
.side-panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.side-panel__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.side-panel__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.side-panel__features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-panel__features li::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2316a34a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.side-panel__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.side-panel__price strong {
  font-size: 1.6rem;
  font-weight: 800;
}
.side-panel__price span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.side-panel__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ── Modal de limite atingido ──────────────────────────────────────── */
#limit-modal .modal { max-width: 400px; }
.limit-emoji { font-size: 2.5rem; text-align: center; margin-bottom: 8px; }
.limit-countdown-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  margin: 12px 0 20px;
}
.limit-countdown-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.limit-countdown-time {
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--text);
}
.limit-or {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 12px 0;
  position: relative;
}
.limit-or::before, .limit-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.limit-or::before { left: 0; }
.limit-or::after  { right: 0; }

/* ── Seção tutorial em vídeo ───────────────────────────────────────── */
.tutorial-section {
  padding: 64px 0 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -12px;
  margin-bottom: 32px;
}
.tutorial-video-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #000;
}
.tutorial-video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.tutorial-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1a1a2e;
  color: #fff;
  min-height: 320px;
}
.tutorial-placeholder__icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
}
.tutorial-placeholder p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
}
