/* ============================================================
   ENCURTAR LINK — Design System Premium
   CSS Nativo 100% | Sem dependências externas de framework
   ============================================================ */

/* ---------- 1. RESET & TOKENS -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --ink:       #0B0F1A;
  --ink-mid:   #1E2640;
  --slate:     #3A4460;
  --muted:     #8892AA;
  --border:    #DDE2EE;
  --surface:   #F7F8FC;
  --white:     #FFFFFF;

  /* Brand gradient */
  --brand-1:  #1B40C8;
  --brand-2:  #2E68F0;
  --brand-3:  #4D8AFF;
  --brand-grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 60%, var(--brand-3) 100%);

  /* Accent — Electric Amber (diferenciador premium) */
  --accent:    #F5A623;
  --accent-dk: #D4880A;

  /* Success / WhatsApp */
  --green:     #16A34A;
  --green-lt:  #22C55E;
  --zap-1:     #075E54;
  --zap-2:     #128C7E;
  --zap-3:     #25D366;

  /* Error */
  --red:       #DC2626;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(11,15,26,.08), 0 1px 2px rgba(11,15,26,.05);
  --shadow-md:  0 4px 16px rgba(11,15,26,.10), 0 2px 6px rgba(11,15,26,.06);
  --shadow-lg:  0 12px 40px rgba(11,15,26,.14), 0 4px 12px rgba(11,15,26,.08);
  --shadow-xl:  0 24px 64px rgba(27,64,200,.18);
  --shadow-glow: 0 0 0 4px rgba(46,104,240,.18);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;
}

/* ---------- 2. BASE ------------------------------------------ */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---------- 3. UTILITIES ------------------------------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 4. HEADER / NAV ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}
.nav-logo-text span {
  background: linear-gradient(90deg, var(--brand-3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-links a {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-links a.active {
  color: var(--white);
  background: rgba(77,138,255,.2);
}

/* CTA nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 20px;
  background: var(--brand-grad);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { box-shadow: var(--shadow-xl); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--ink-mid);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--sp-4) var(--sp-5);
  gap: var(--sp-1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-mobile a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav-mobile .nav-cta { margin-top: var(--sp-2); text-align: center; justify-content: center; }

/* ---------- 5. HERO ------------------------------------------ */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: var(--sp-20) 0 var(--sp-24);
}

/* Subtle animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,104,240,.3) 0%, transparent 65%);
  border-radius: 50%;
  animation: pulse-orb 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,.18) 0%, transparent 65%);
  border-radius: 50%;
  animation: pulse-orb 10s ease-in-out 2s infinite;
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: .7; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-6);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green-lt);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--brand-3) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.62);
  max-width: 560px;
  margin: 0 auto var(--sp-10);
  line-height: 1.65;
}

/* ---------- 6. FERRAMENTA CARD (tabs + form) ----------------- */
.tool-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Tabs */
.tool-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: -1px;
  padding: 0 var(--sp-2);
}
.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.tool-tab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); }
.tool-tab.active {
  background: var(--white);
  color: var(--ink);
  border-color: transparent;
}
.tool-tab svg, .tool-tab .icon { width: 18px; height: 18px; }
.tool-tab .tab-icon-zap { color: #25D366; }

/* Tool card */
.tool-card {
  background: var(--white);
  border-radius: 0 var(--r-xl) var(--r-xl) var(--r-xl);
  padding: var(--sp-10) var(--sp-10);
  box-shadow: var(--shadow-xl);
}

/* Section inside card */
.tab-section { display: none; }
.tab-section.active { display: block; }

.tool-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  text-align: center;
  margin-bottom: var(--sp-6);
}

/* URL input row */
.input-row {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input-row:focus-within {
  border-color: var(--brand-2);
  box-shadow: var(--shadow-glow);
}
.input-row input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--text-base);
  color: var(--ink);
}
.input-row input::placeholder { color: var(--muted); }
.btn-shorten {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 16px 28px;
  background: var(--brand-grad);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--r-full);
  margin: 4px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.btn-shorten:hover { box-shadow: 0 8px 24px rgba(27,64,200,.35); transform: translateY(-1px); }
.btn-shorten:disabled { opacity: .6; transform: none; cursor: not-allowed; }
.btn-shorten svg { width: 18px; height: 18px; }

/* Result box */
.result-box {
  margin-top: var(--sp-5);
  background: linear-gradient(135deg, #EEF3FF 0%, #F0F9FF 100%);
  border: 1px solid rgba(46,104,240,.2);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: none;
}
.result-box.show { display: block; }
.result-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.result-label svg { width: 16px; height: 16px; }
.result-row {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.result-url-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--brand-2);
  outline: none;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast);
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--ink-mid); transform: translateY(-1px); }
.btn-copy.copied { background: var(--green); }
.btn-copy svg { width: 16px; height: 16px; }

/* Error msg */
.form-error {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--red);
  font-weight: 500;
  min-height: 20px;
}

/* ---------- 7. WHATSAPP SECTION ------------------------------ */
.zap-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--zap-2);
  text-align: center;
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}
.zap-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-4); }
.zap-field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  background: var(--surface);
}
.zap-field:focus { border-color: var(--zap-2); box-shadow: 0 0 0 4px rgba(18,140,126,.12); }
.zap-field::placeholder { color: var(--muted); }
.zap-hint {
  margin-top: calc(-1 * var(--sp-2));
  font-size: var(--text-xs);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-zap {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--zap-1) 0%, var(--zap-2) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}
.btn-zap:hover { box-shadow: 0 8px 24px rgba(7,94,84,.35); transform: translateY(-1px); }
.zap-result {
  background: #F0FDF4;
  border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  display: none;
}
.zap-result.show { display: block; }
.zap-result-row { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-3); }
.zap-result-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--green);
  background: var(--white);
  outline: none;
  font-size: var(--text-sm);
}
.btn-copy-zap {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
  transition: background var(--dur-fast);
}
.btn-copy-zap:hover { background: var(--ink-mid); }

/* ---------- 8. STATS HERO (section abaixo do hero) ----------- */
.stats-strip {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--sp-5) 0;
}
.stats-strip .container {
  display: flex;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

/* ---------- 9. FEATURE CARDS --------------------------------- */
.section { padding: var(--sp-20) 0; }
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-2);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(46,104,240,.2); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-5);
  background: linear-gradient(135deg, #EEF3FF 0%, #E8F0FF 100%);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  letter-spacing: -.02em;
}
.card-text { font-size: var(--text-sm); color: var(--slate); line-height: 1.65; }

/* ---------- 10. CTA BAND ------------------------------------- */
.cta-band {
  background: var(--ink);
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(46,104,240,.25) 0%, transparent 70%);
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.035em;
  margin-bottom: var(--sp-4);
}
.cta-band-sub { color: rgba(255,255,255,.6); font-size: var(--text-lg); margin-bottom: var(--sp-8); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 16px 36px;
  background: var(--brand-grad);
  color: var(--white);
  border-radius: var(--r-full);
  font-size: var(--text-base);
  font-weight: 700;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast);
  box-shadow: 0 8px 32px rgba(27,64,200,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(27,64,200,.45); }
.btn-primary svg { width: 20px; height: 20px; }

/* ---------- 11. FOOTER --------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer-logo img { height: 34px; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
}
.footer-desc { font-size: var(--text-sm); color: rgba(255,255,255,.45); line-height: 1.7; max-width: 300px; }

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-sm); color: rgba(255,255,255,.35); }
.footer-copy strong { color: rgba(255,255,255,.55); }

/* ---------- 12. TOAST ---------------------------------------- */
.toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  background: var(--ink);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform var(--dur) var(--ease);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-left: 3px solid var(--green-lt);
}
.toast.show { transform: translateY(0); }
.toast-icon { width: 18px; height: 18px; }

/* ---------- 13. INNER PAGES ---------------------------------- */
/* Hero das páginas internas */
.page-hero {
  background: var(--ink);
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% -20%, rgba(46,104,240,.22) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  margin-bottom: var(--sp-3);
}
.page-hero-sub { font-size: var(--text-lg); color: rgba(255,255,255,.6); }

/* Content wrapper */
.content-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-5);
}

/* Prose */
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-10);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-2); text-decoration: underline; }
.prose ul { padding-left: var(--sp-6); list-style: disc; display: flex; flex-direction: column; gap: var(--sp-2); }
.prose ul li { color: var(--slate); line-height: 1.7; }

/* White card in pages */
.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-10);
  box-shadow: var(--shadow-sm);
}

/* ---------- 14. FAQ ------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  background: transparent;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: var(--sp-4);
  transition: background var(--dur-fast);
}
.faq-toggle:hover { background: var(--surface); }
.faq-toggle[aria-expanded="true"] { color: var(--brand-2); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}
.faq-toggle[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--brand-2); }
.faq-body {
  display: none;
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: -1px;
}
.faq-body.open { display: block; }

/* ---------- 15. CONTACT -------------------------------------- */
.contact-box {
  text-align: center;
}
.contact-box p { font-size: var(--text-lg); color: var(--slate); margin-bottom: var(--sp-8); line-height: 1.7; }
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 16px 36px;
  background: var(--brand-grad);
  color: var(--white);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--text-base);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast);
  box-shadow: var(--shadow-md);
}
.btn-email:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.contact-email-copy {
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--muted);
}
.contact-email-copy strong { color: var(--ink); }

/* ---------- 16. STATISTICS PAGE ------------------------------ */
.stats-form-card {
  max-width: 560px;
  margin: 0 auto;
}
.stats-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.stats-input {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  margin-bottom: var(--sp-4);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur);
}
.stats-input:focus { border-color: var(--brand-2); box-shadow: var(--shadow-glow); }
.btn-stats {
  width: 100%;
  padding: 15px;
  background: var(--brand-grad);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}
.btn-stats:hover { box-shadow: var(--shadow-xl); }
.stats-info {
  background: linear-gradient(135deg, #EEF3FF, #E8F0FF);
  border: 1px solid rgba(46,104,240,.15);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--slate);
  margin-top: var(--sp-5);
  line-height: 1.6;
}
.stats-msg { margin-top: var(--sp-3); text-align: center; font-size: var(--text-sm); color: var(--muted); }

/* ---------- 17. 404 ------------------------------------------ */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-20) 0;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.06em;
  line-height: 1;
}
.error-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--ink); margin-bottom: var(--sp-3); }
.error-sub { color: var(--slate); font-size: var(--text-lg); margin-bottom: var(--sp-8); }

/* ---------- 18. SOBRE ---------------------------------------- */
.sobre-intro {
  font-size: var(--text-xl);
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
  border-left: 4px solid var(--brand-2);
  padding-left: var(--sp-6);
  font-style: italic;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.feature-dot {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--brand-grad);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.feature-item h4 { font-weight: 700; color: var(--ink); font-size: var(--text-sm); margin-bottom: 4px; }
.feature-item p { font-size: var(--text-xs); color: var(--slate); line-height: 1.6; }

/* ---------- 19. QR CODE / WHATSAPP GERADOR PAGES ------------- */
.tool-page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-5);
}

/* ---------- 20. POLITICA / TERMOS ---------------------------- */
.legal-content h2 { margin-top: var(--sp-8); }
.legal-content p { margin-bottom: var(--sp-4); }

/* ---------- 21. BREADCRUMB ----------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--sp-4) var(--sp-5);
}
.breadcrumb a { color: var(--muted); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--brand-2); }
.breadcrumb-sep { color: var(--border); }

@media (max-width: 700px) {
  .breadcrumb { padding: var(--sp-3) var(--sp-4); font-size: var(--text-xs); }
}

/* ---------- 22. RESPONSIVE ----------------------------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 100%; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: var(--sp-16) 0 var(--sp-20); }
  .tool-card { padding: var(--sp-6) var(--sp-5); }
  .tool-tabs { gap: var(--sp-1); }
  .tool-tab { padding: 10px 14px; font-size: var(--text-xs); }

  .input-row { flex-direction: column; border-radius: var(--r-xl); }
  .btn-shorten { border-radius: var(--r-lg); margin: 0 6px 6px; }

  .result-row { flex-direction: column; }
  .btn-copy { width: 100%; justify-content: center; }

  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .page-card { padding: var(--sp-6) var(--sp-5); }
  .section { padding: var(--sp-12) 0; }

  .stats-strip .container { gap: var(--sp-6); }
}

@media (max-width: 480px) {
  .tool-tabs { overflow-x: auto; padding-bottom: var(--sp-1); }
}

/* ---------- 23. REDUCED MOTION ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 24. PRINT ---------------------------------------- */
@media print {
  .site-header, .site-footer, .tool-wrapper, .cta-band { display: none; }
}

/* ============================================================
   25. BLOG — usa os mesmos tokens da identidade principal
   ============================================================ */

/* Hero curto do blog (reaproveita .hero mas mais enxuto) */
.blog-hero {
  background: var(--ink);
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(46,104,240,.28) 0%, transparent 65%);
  border-radius: 50%;
}
.blog-hero-inner { position: relative; z-index: 1; text-align: center; }
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: var(--sp-3);
}
.blog-hero-sub { color: rgba(255,255,255,.62); font-size: var(--text-base); max-width: 560px; margin: 0 auto; }

/* Layout principal: lista + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: var(--sp-8);
  padding: var(--sp-12) 0 var(--sp-20);
  align-items: start;
}
.blog-posts { display: flex; flex-direction: column; gap: var(--sp-6); }

/* Card de post na listagem */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; background: var(--surface); }
.blog-card-body { padding: var(--sp-6); }
.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}
.blog-card-title a { transition: color var(--dur-fast) var(--ease); }
.blog-card-title a:hover { color: var(--brand-2); }
.blog-card-excerpt { color: var(--slate); font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--sp-5); }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.blog-card-date { font-size: var(--text-sm); color: var(--muted); }
.btn-readmore {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 22px;
  background: var(--brand-grad);
  color: var(--white);
  border-radius: var(--r-full);
  font-weight: 600; font-size: var(--text-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-readmore:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-readmore svg { width: 16px; height: 16px; }

/* ==========================================================================
   Ajuste Responsivo: Garante imagem 100% sem cortes de texto no Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .blog-card-img {
    aspect-ratio: auto !important; /* Desfaz o corte fixo de proporção */
    height: auto !important;       /* Permite que a altura se ajuste ao texto da imagem */
    object-fit: contain !important;  /* Força a imagem a aparecer por completo */
  }
}

/* Sidebar do blog */
.blog-sidebar { display: flex; flex-direction: column; gap: var(--sp-6); position: sticky; top: 88px; }
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); }
.sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-base); font-weight: 700; color: var(--ink);
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border);
}
.sidebar-post { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); border-radius: var(--r-md); transition: background var(--dur-fast); padding: var(--sp-1); }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post:hover { background: var(--surface); }
/* CORREÇÃO AQUI: Mudado de cover para contain para não cortar a imagem/texto nos posts recentes */
.sidebar-post img { width: 64px; height: 48px; object-fit: contain; border-radius: var(--r-sm); flex-shrink: 0; background: var(--surface); }
.sidebar-post span { font-size: var(--text-sm); font-weight: 600; color: var(--ink); line-height: 1.4; }
.ad-slot { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-md); padding: var(--sp-8); text-align: center; color: var(--muted); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* Paginação do blog */
.blog-pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-8); flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  min-width: 40px; height: 40px; padding: 0 var(--sp-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 600;
  border: 1px solid var(--border); color: var(--slate);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast);
}
.blog-pagination a:hover { background: var(--surface); }
.blog-pagination span.current { background: var(--brand-grad); color: var(--white); border-color: transparent; }

/* Post único (artigo) */
.post-hero-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-xl); margin-bottom: var(--sp-8); box-shadow: var(--shadow-md); }
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.post-meta { display: flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.post-meta svg { width: 16px; height: 16px; }
.post-meta-sep { color: var(--border); margin: 0 var(--sp-1); }

/* Conteúdo do artigo (substitui .post-content antigo) */
.post-body { color: var(--slate); font-size: var(--text-lg); line-height: 1.8; overflow-wrap: break-word; word-break: break-word; }
.post-body p { margin-bottom: var(--sp-5); }
.post-body h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--ink); margin: var(--sp-10) 0 var(--sp-4); }
.post-body h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--ink); margin: var(--sp-8) 0 var(--sp-3); }
.post-body img { border-radius: var(--r-lg); margin: var(--sp-6) 0; max-width: 100%; height: auto; }
.post-body ul, .post-body ol { padding-left: var(--sp-6); margin-bottom: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.post-body blockquote { border-left: 4px solid var(--brand-2); padding-left: var(--sp-5); color: var(--ink-mid); font-style: italic; margin: var(--sp-6) 0; }
.post-inner-link, .post-body a {
  color: var(--brand-2); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid rgba(46,104,240,.2); transition: all var(--dur-fast) var(--ease);
}
.post-inner-link:hover, .post-body a:hover { color: var(--brand-1); border-bottom-color: var(--brand-1); background: rgba(46,104,240,.06); border-radius: 4px; }

/* Relacionados */
.related-section { margin-top: var(--sp-16); padding-top: var(--sp-10); border-top: 1px solid var(--border); }
.related-heading { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--ink); margin-bottom: var(--sp-6); display: flex; align-items: center; gap: var(--sp-3); }
.related-heading .bar { width: 6px; height: 26px; background: var(--brand-grad); border-radius: var(--r-full); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-5); }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* CORREÇÃO: Removido o aspect-ratio fixo. Agora a altura se adapta à imagem real, colando no border-radius sem criar espaços vazios */
.related-card img { 
  width: 100%; 
  height: auto; 
  display: block; 
  object-fit: contain; 
  background: var(--surface); 
}

.related-card .rc-body { padding: var(--sp-4); }
.related-card h3 { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.4; }
.related-card:hover h3 { color: var(--brand-2); }

.back-home-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-12); padding: 14px 28px;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-full); font-weight: 600; font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast);
}
.back-home-link:hover { background: var(--ink-mid); transform: translateY(-1px); }

/* Placeholder de imagem nativo (sem terceiros) */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--muted);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 700px) {
  /* Post único: fonte menor e imagem contida */
  .post-title { font-size: var(--text-2xl); }
  .post-hero-img { border-radius: var(--r-md); margin-bottom: var(--sp-6); max-height: 240px; }
  .post-body { font-size: var(--text-base); }
  .post-body h2 { font-size: var(--text-xl); margin: var(--sp-8) 0 var(--sp-3); }
  .post-body h3 { font-size: var(--text-lg); }
  .post-body img { border-radius: var(--r-md); }
  .post-meta { font-size: var(--text-xs); }

  /* Blog lista */
  .blog-layout { padding: var(--sp-6) var(--sp-4); }
  .blog-posts { gap: var(--sp-4); }
  .related-grid { grid-template-columns: 1fr; }
}
/* ============================================================
   26. ADMIN / PAINEL — dark, mesma identidade visual
   ============================================================ */
.admin-body { background: var(--ink); color: var(--white); min-height: 100vh; display: flex; flex-direction: row; font-family: var(--font-body); }

.admin-sidebar { width: 260px; flex-shrink: 0; background: var(--ink-mid); border-right: 1px solid rgba(255,255,255,.07); padding: var(--sp-6); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-10); }
.admin-logo-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-grad); display: flex; align-items: center; justify-content: center; }
.admin-logo span { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); letter-spacing: -.02em; }
.admin-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.admin-nav-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: var(--sp-3); }
.admin-nav a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); color: rgba(255,255,255,.65); font-size: var(--text-sm); font-weight: 500; transition: background var(--dur-fast) var(--ease), color var(--dur-fast); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(46,104,240,.18); color: var(--white); }
.admin-nav a svg { width: 18px; height: 18px; }
.admin-stat-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-5); }
.admin-stat-box .num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; }
.admin-logout { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); color: var(--red); font-size: var(--text-sm); font-weight: 600; transition: background var(--dur-fast); }
.admin-logout:hover { background: rgba(220,38,38,.12); }

.admin-main { flex: 1; padding: var(--sp-10); overflow-x: hidden; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-10); flex-wrap: wrap; }
.admin-header h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; }
.admin-header h1 span { color: var(--brand-3); }
.admin-header p { color: rgba(255,255,255,.5); margin-top: var(--sp-2); }
.btn-admin-primary { display: inline-flex; align-items: center; gap: var(--sp-2); background: var(--brand-grad); color: var(--white); padding: 14px 26px; border-radius: var(--r-lg); font-weight: 700; font-size: var(--text-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast); }
.btn-admin-primary:hover { box-shadow: var(--shadow-xl); transform: translateY(-1px); }

.admin-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table thead tr { background: rgba(255,255,255,.03); }
.admin-table th { padding: var(--sp-5) var(--sp-6); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.admin-table td { padding: var(--sp-5) var(--sp-6); border-top: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-post-title { font-weight: 700; color: var(--white); display: block; }
.admin-post-slug { font-size: var(--text-xs); color: var(--muted); font-family: monospace; }
.admin-badge { display: inline-block; padding: 4px 14px; border-radius: var(--r-full); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border: 1px solid rgba(255,255,255,.1); }
.admin-badge.published { color: var(--green-lt); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.2); }
.admin-badge.draft { color: var(--accent); background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.2); }
.admin-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.admin-icon-btn { width: 38px; height: 38px; border-radius: var(--r-md); background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease), color var(--dur-fast); }
.admin-icon-btn:hover.view { background: var(--green); color: var(--white); }
.admin-icon-btn:hover.edit { background: var(--brand-2); color: var(--white); }
.admin-icon-btn:hover.delete { background: var(--red); color: var(--white); }
.admin-icon-btn svg { width: 15px; height: 15px; }
.admin-icon-btn button { background: none; border: none; color: inherit; display: flex; cursor: pointer; }

/* Formulário admin (novo/editar post) */
.editor-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-8); align-items: start; }
.editor-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: var(--sp-8); margin-bottom: var(--sp-6); }
.editor-label { display: block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--sp-3); }
.editor-input, .editor-select { width: 100%; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); color: var(--white); font-size: var(--text-base); transition: border-color var(--dur) var(--ease), box-shadow var(--dur); }
.editor-input:focus, .editor-select:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--shadow-glow); }
.editor-input::placeholder { color: rgba(255,255,255,.3); }
.editor-upload-zone { border: 2px dashed rgba(255,255,255,.15); border-radius: var(--r-md); padding: var(--sp-6); text-align: center; position: relative; transition: background var(--dur-fast); }
.editor-upload-zone:hover { background: rgba(255,255,255,.02); }
.editor-upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.editor-upload-zone svg { width: 26px; height: 26px; color: var(--brand-3); margin-bottom: var(--sp-2); }
.editor-thumb-preview { width: 100%; height: 150px; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-4); border: 1px solid rgba(255,255,255,.08); }
.btn-editor-submit { width: 100%; padding: 16px; background: var(--brand-grad); color: var(--white); font-weight: 800; font-size: var(--text-sm); letter-spacing: .05em; border-radius: var(--r-md); text-transform: uppercase; transition: box-shadow var(--dur) var(--ease); display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.btn-editor-submit:hover { box-shadow: var(--shadow-xl); }
.editor-back { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--brand-3); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--sp-3); }
.editor-errors { background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.25); color: #fca5a5; padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); margin-bottom: var(--sp-6); }

/* ══════════════════════════════════════════
   Editor RTE — estilo WordPress
   Adicione ao final do seu style.css
   ══════════════════════════════════════════ */

/* ── Toolbar ───────────────────────────── */
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  padding: 6px 8px;
  background: #1e2535;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  border-radius: var(--r-md, 8px) var(--r-md, 8px) 0 0;
}

.rte-toolbar button {
  height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}

.rte-toolbar button:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.rte-toolbar button.is-active {
  background: var(--brand-2, #3b6fd4);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

/* Select de formato */
.rte-select {
  height: 32px;
  padding: 0 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.rte-select:focus { border-color: var(--brand-2, #3b6fd4); }

/* Separador vertical */
.rte-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.12);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Área de edição ─────────────────────── */
.rte-editor {
  min-height: 420px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 var(--r-md, 8px) var(--r-md, 8px);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.9);
  outline: none;

  /* Tipografia do editor — valores fixos para não herdar o tema */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.8;
}

.rte-editor:focus {
  border-color: var(--brand-2, #3b6fd4);
  background: rgba(255,255,255,.03);
}

/* Elementos dentro do editor */
.rte-editor p        { margin: 0 0 1em; }
.rte-editor h1       { font-size: 2rem;   font-weight: 800; margin: 1.2em 0 .5em; line-height: 1.2; }
.rte-editor h2       { font-size: 1.5rem; font-weight: 700; margin: 1.1em 0 .5em; line-height: 1.3; }
.rte-editor h3       { font-size: 1.2rem; font-weight: 700; margin: 1em 0 .4em;   line-height: 1.3; }
.rte-editor h4       { font-size: 1rem;   font-weight: 700; margin: .9em 0 .4em; }
.rte-editor pre      { background: rgba(0,0,0,.3); border-radius: 6px; padding: 14px 16px; font-size: 13px; font-family: monospace; overflow-x: auto; }
.rte-editor ul,
.rte-editor ol       { padding-left: 1.6em; margin: .5em 0 1em; }
.rte-editor li       { margin: .25em 0; }
.rte-editor blockquote {
  border-left: 4px solid var(--brand-2, #3b6fd4);
  margin: 1em 0;
  padding: 10px 20px;
  color: rgba(255,255,255,.6);
  font-style: italic;
  background: rgba(255,255,255,.03);
  border-radius: 0 6px 6px 0;
}
.rte-editor a        { color: var(--brand-3, #4f8ef7); text-decoration: underline; }
.rte-editor img      { max-width: 100%; border-radius: 6px; margin: 8px 0; display: block; }
.rte-editor hr       { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 1.5em 0; }

/* Tabela */
.rte-editor .rte-table,
.rte-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}
.rte-editor .rte-table th,
.rte-editor .rte-table td,
.rte-editor table th,
.rte-editor table td {
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 12px;
  text-align: left;
  min-width: 60px;
}
.rte-editor .rte-table th,
.rte-editor table th {
  background: rgba(255,255,255,.07);
  font-weight: 700;
}

/* ── Modo HTML fonte ────────────────────── */
.rte-html-source {
  width: 100%;
  min-height: 420px;
  max-height: 70vh;
  padding: 16px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 var(--r-md, 8px) var(--r-md, 8px);
  color: #7ee787;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

/* ── Contador de palavras ───────────────── */
.rte-word-count {
  font-size: 11px;
  color: var(--muted, #8892a4);
  text-align: right;
  margin-top: 6px;
}
/* Login admin */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: var(--sp-5); }
.login-card { width: 100%; max-width: 420px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-xl); padding: var(--sp-10); }
.login-icon { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--brand-grad); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-5); }
.login-icon svg { width: 28px; height: 28px; color: var(--white); }
.login-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--white); text-align: center; margin-bottom: var(--sp-2); }
.login-sub { color: rgba(255,255,255,.5); text-align: center; font-size: var(--text-sm); margin-bottom: var(--sp-8); }
.login-error { background: rgba(220,38,38,.1); border-left: 4px solid var(--red); color: #fca5a5; padding: var(--sp-4); border-radius: var(--r-sm); margin-bottom: var(--sp-6); font-size: var(--text-sm); display: flex; align-items: center; gap: var(--sp-2); }
.login-field { margin-bottom: var(--sp-5); }
.login-field label { display: block; font-size: var(--text-sm); font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: var(--sp-2); }
.login-field input { width: 100%; padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); color: var(--white); font-size: var(--text-base); transition: border-color var(--dur); }
.login-field input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--shadow-glow); }
.btn-login { width: 100%; padding: 15px; background: var(--brand-grad); color: var(--white); font-weight: 700; border-radius: var(--r-md); transition: box-shadow var(--dur) var(--ease); }
.btn-login:hover { box-shadow: var(--shadow-xl); }
.login-footer { text-align: center; font-size: var(--text-xs); color: rgba(255,255,255,.3); margin-top: var(--sp-8); }

/* Responsivo admin */
@media (max-width: 900px) {
  /* Sidebar vira topbar */
  .admin-body { flex-direction: column; }
  .admin-sidebar {
    width: 100%; min-height: auto; height: auto;
    position: static; overflow-y: visible;
    flex-direction: column;
    padding: var(--sp-4) var(--sp-5);
    gap: var(--sp-3);
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .admin-logo { margin-bottom: 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; gap: var(--sp-1); }
  .admin-nav-label { display: none; }
  .admin-nav a { padding: var(--sp-2) var(--sp-3); font-size: var(--text-xs); }
  .admin-stat-box { display: none; }
  .admin-logout { padding: var(--sp-2) var(--sp-3); font-size: var(--text-xs); }
  .admin-main { padding: var(--sp-5) var(--sp-4); }
  .editor-grid { grid-template-columns: 1fr; }
  .admin-table { min-width: 560px; }
  .admin-card { overflow-x: auto; }
}

@media (max-width: 480px) {
  .admin-nav a span { display: none; }
  .admin-nav a { padding: var(--sp-2); }
  .admin-nav a svg { width: 20px; height: 20px; }
}


/* Botão Flutuante - Subir ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--brand-grad); /* Usa o gradiente padrão do seu tema */
  color: var(--white);
  border: none;
  border-radius: var(--r-full); /* Totalmente redondo */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  
  /* Estado Inicial: Oculto e ligeiramente rebaixado */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  box-shadow: var(--shadow-md);
}

/* Ícone interna (Seta) */
.back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}

/* Estado Ativo: Quando o JavaScript adiciona a classe .show */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Efeito de Hover super elegante */
.back-to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px); /* Sobe de leve ao passar o mouse */
}

/* Detalhe interativo: a seta dá um totó para cima no hover */
.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Ajuste sutil para telas menores (não atrapalhar o polegar) */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

