/* C:\Projetos\emitircrlv\public\css\emitircrlv-theme.css */
/*
  CSS global das páginas internas:
  - issueForm.handlebars
  - qrCode.handlebars
  - success.handlebars
  - demais páginas internas

  IMPORTANTE:
  - A home NÃO usa este arquivo.
  - A home usa somente emitircrlv-home.css.
*/

:root {
  --bg: #07070e;
  --s1: #0e0e1a;
  --s2: #141420;
  --s3: #1a1a28;
  --border: #ffffff0f;
  --border2: #ffffff1a;
  --border3: #ffffff28;
  --green: #00ff94;
  --green2: #00cc77;
  --green3: #00ff9422;
  --blue: #4466ff;
  --text: #eeeef8;
  --muted: #9090b0;
  --danger: #ff4d6d;
  --warning: #ffd166;
  --ok: #00ff94;
  --brand: #00ff94;
  --brand-dark: #07070e;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* =========================================================
   AURORA ANIMADA — fundo compartilhado com todas as páginas
========================================================= */

.bg-aurora {
  position: fixed;
  inset: -50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #00ff9422 0deg,
    transparent 60deg,
    #4466ff18 120deg,
    transparent 180deg,
    #00ff941a 240deg,
    transparent 300deg,
    #00ff9422 360deg
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: auroraSpin 25s linear infinite;
}

.bg-aurora-2 {
  position: fixed;
  inset: -30%;
  background: conic-gradient(
    from 90deg at 30% 40%,
    transparent 0deg,
    #00ff9415 90deg,
    transparent 180deg,
    #4466ff10 270deg,
    transparent 360deg
  );
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: auroraSpin2 35s linear infinite reverse;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 90%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 80% at 50% 50%,
    transparent 30%,
    #07070ee0 100%
  );
  pointer-events: none;
  z-index: 0;
}

@keyframes auroraSpin  { to { transform: rotate(360deg); } }
@keyframes auroraSpin2 { to { transform: rotate(360deg); } }

/* =========================================================
   CONTAINER DAS PÁGINAS INTERNAS
========================================================= */

.internal-page-container,
.container {
  flex: 1 0 auto;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 56px;
}

/* =========================================================
   HEADER VALIDADO
   Mantém o HTML do Header.handlebars exatamente como você validou.
========================================================= */

.emitir-simple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 60px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #07070ecc;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.emitir-simple-header-inner {
  width: min(1180px, 100%);
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emitir-simple-logo {
  font-family: 'Cabinet Grotesk', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 4vw, 22px);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.emitir-simple-logo-muted {
  color: white;
}

.emitir-simple-logo-green {
  color: var(--green);
}

.emitir-simple-logo-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 3px;
  animation: emitirSimpleBlink 2s ease-in-out infinite;
}

@keyframes emitirSimpleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.emitir-simple-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emitir-simple-pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.emitir-simple-pill-outline {
  background: transparent;
  border: 1px solid var(--border3);
  color: var(--muted);
}

.emitir-simple-pill-green {
  background: var(--green3);
  border: 1px solid #00ff9430;
  color: var(--green);
}

/* =========================================================
   COMPONENTES INTERNOS EF
========================================================= */

.ef-page-shell {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.ef-hero-card,
.ef-card {
  background: linear-gradient(135deg, var(--s1), rgba(20, 20, 32, .94));
  border: 1px solid var(--border2);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  overflow: hidden;
}

.ef-hero-card {
  padding: clamp(26px, 5vw, 42px);
  text-align: center;
}

.ef-card {
  padding: clamp(20px, 4vw, 28px);
  margin-top: 18px;
  min-width: 0;
}

.ef-back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.ef-back-link:hover {
  color: var(--green);
}

.ef-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--s2);
  border: 1px solid var(--border2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto 16px;
  letter-spacing: .02em;
}

.ef-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.ef-title {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Cabinet Grotesk', Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 6vw, 56px);
  line-height: .98;
  letter-spacing: -1.6px;
  font-weight: 900;
}

.ef-title span {
  color: var(--green);
}

.ef-subtitle {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.ef-stepper {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px auto 0;
}

.ef-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  text-align: left;
}

.ef-step-number {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border2);
  font-weight: 900;
  color: var(--muted);
}

.ef-step.active {
  border-color: rgba(0, 255, 148, .28);
  background: rgba(0, 255, 148, .06);
  color: var(--text);
}

.ef-step.active .ef-step-number,
.ef-step.done .ef-step-number {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}

.ef-step.done {
  color: var(--green);
}

.ef-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ef-form-group {
  margin-bottom: 16px;
}

.ef-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.ef-input,
.ef-select,
.ef-textarea,
input.ef-input,
select.ef-select,
textarea.ef-textarea {
  width: 100%;
  min-width: 0;
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-size: 16px;
  outline: none;
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.ef-input::placeholder,
.ef-textarea::placeholder {
  color: #5f5f7c;
}

.ef-input:focus,
.ef-select:focus,
.ef-textarea:focus {
  border-color: rgba(0, 255, 148, .38);
  box-shadow: 0 0 0 3px rgba(0, 255, 148, .07);
}

.ef-select {
  cursor: pointer;
  appearance: auto;
}

.ef-help {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ef-help span,
.ef-alert div,
.ef-list-row span {
  min-width: 0;
}

.ef-list-row span {
  overflow-wrap: anywhere;
}

.ef-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 255, 148, .22);
  border-radius: 18px;
  background: rgba(0, 255, 148, .055);
  margin: 20px 0;
  min-width: 0;
}

.ef-price-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ef-price-box strong {
  display: block;
  color: var(--green);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1;
}

.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.ef-btn:hover {
  transform: translateY(-1px);
}

.ef-btn-primary {
  background: var(--green);
  color: #000;
  border-color: rgba(0, 255, 148, .35);
  box-shadow: 0 12px 34px rgba(0, 255, 148, .16);
}

.ef-btn-primary:hover {
  background: var(--green2);
  color: #000;
}

.ef-btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}

.ef-btn-outline:hover {
  background: rgba(255, 255, 255, .06);
}

.ef-btn-full {
  width: 100%;
}

.ef-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border2);
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.ef-alert-error {
  border-color: rgba(255, 77, 109, .28);
  background: rgba(255, 77, 109, .08);
  color: #ff9aad;
}

.ef-alert-info {
  border-color: rgba(68, 102, 255, .28);
  background: rgba(68, 102, 255, .08);
  color: #b9c4ff;
}

.ef-alert-warning {
  border-color: rgba(255, 209, 102, .28);
  background: rgba(255, 209, 102, .08);
  color: #ffd166;
}

.ef-alert-success {
  border-color: rgba(0, 255, 148, .28);
  background: rgba(0, 255, 148, .08);
  color: var(--green);
}

.ef-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ef-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--s2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.ef-list-row strong {
  color: var(--text);
}

.ef-list-row .green {
  color: var(--green);
}

.ef-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(700px, 100%);
}

.ef-qr-box {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px dashed var(--green);
  box-shadow: 0 8px 24px rgba(0, 255, 148, .12);
}

.ef-qr-box img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.ef-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 148, .08);
  border: 1px solid rgba(0, 255, 148, .20);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ef-pdf-frame {
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  border-radius: 14px;
  display: block;
  background: #fff;
}

.ef-preview-box {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 6px;
}

.ef-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.ef-modal-card {
  width: min(420px, 100%);
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 34px 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  color: var(--text);
}

.ef-spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--border2);
  border-top-color: var(--green);
  animation: efSpin 1s linear infinite;
}

@keyframes efSpin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   CONTEUDO LEGAL E RESULTADOS
========================================================= */

.ef-prose {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.ef-prose > *:first-child {
  margin-top: 0;
}

.ef-prose > *:last-child {
  margin-bottom: 0;
}

.ef-prose h2,
.ef-prose h3 {
  margin: 26px 0 10px;
  color: var(--text);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.35px;
  line-height: 1.2;
}

.ef-prose h2 {
  font-size: 24px;
}

.ef-prose h3 {
  font-size: 18px;
}

.ef-prose p {
  margin: 0 0 14px;
}

.ef-prose strong {
  color: var(--text);
  font-weight: 800;
}

.ef-prose a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.ef-prose a:hover {
  text-decoration: underline;
}

.ef-prose-list {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ef-prose-list li {
  position: relative;
  padding: 13px 14px 13px 38px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--s2);
}

.ef-prose-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 255, 148, .08);
}

.ef-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ef-callout {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(0, 255, 148, .22);
  border-radius: 16px;
  background: rgba(0, 255, 148, .055);
}

.ef-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ef-document-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ef-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ef-document-title {
  margin: 0;
  color: var(--text);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.35px;
}

.ef-document-title i {
  color: var(--green);
  margin-right: 7px;
}

.ef-document-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ef-preview-box.compact .ef-pdf-frame {
  height: 320px;
}

.ef-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ef-actions-row .ef-btn {
  flex: 1 1 220px;
}

/* =========================================================
   BLOG PUBLICO E ADMIN
========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--s1), rgba(20, 20, 32, .94));
  box-shadow: var(--shadow-soft);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--s2);
  overflow: hidden;
}

.blog-card-media img,
.blog-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-body {
  padding: 22px;
}

.blog-card h2 {
  margin: 8px 0 10px;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.45px;
}

.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--green);
}

.blog-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-article {
  max-width: 920px;
}

.blog-hero-image {
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: var(--s2);
  box-shadow: var(--shadow-soft);
}

.blog-content {
  margin-top: 18px;
}

.blog-content p {
  font-size: 16px;
  line-height: 1.85;
}

.blog-content h2 {
  margin-top: 34px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -.7px;
}

.blog-content h2:first-child {
  margin-top: 0;
}

.blog-content .ef-prose-list {
  margin: 16px 0 22px;
}

.blog-content .ef-prose-list li {
  font-size: 15px;
  line-height: 1.7;
}

.blog-video {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.blog-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(0, 255, 148, .22);
  border-radius: 24px;
  background: rgba(0, 255, 148, .055);
  box-shadow: var(--shadow-soft);
}

.blog-cta h2 {
  margin: 12px 0 6px;
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.blog-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.blog-admin-form {
  display: block;
}

.blog-admin-section-title {
  margin: 0 0 18px;
  color: var(--text);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.35px;
}

.blog-editor-textarea {
  min-height: 360px;
  line-height: 1.65;
}

.blog-upload-row {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.blog-upload-row .ef-btn {
  flex: 0 0 190px;
  min-height: 46px;
  white-space: nowrap;
}

.blog-file-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 11px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: var(--s2);
  color: var(--muted);
  font-family: 'Instrument Sans', Arial, sans-serif;
}

.blog-file-input::file-selector-button {
  margin-right: 12px;
  padding: 8px 11px;
  border: 1px solid var(--border2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.blog-admin-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.blog-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-admin-filters .ef-form-group {
  margin-bottom: 0;
}

.blog-admin-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-admin-results-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-admin-table-wrap {
  border-radius: 14px;
}

table.blog-admin-table {
  min-width: 940px;
}

table.blog-admin-table th,
table.blog-admin-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

table.blog-admin-table th:first-child,
table.blog-admin-table td:first-child {
  width: 34%;
}

.blog-admin-title {
  max-width: 360px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.blog-admin-slug {
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-admin-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
}

.blog-admin-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.blog-admin-flag.is-on {
  border-color: rgba(0, 255, 148, .22);
  background: rgba(0, 255, 148, .08);
  color: var(--green);
}

.blog-admin-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.blog-admin-date + .blog-admin-date {
  margin-top: 6px;
}

.blog-admin-date span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.blog-admin-date strong {
  color: var(--text);
  font-weight: 800;
}

.blog-admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-admin-row-actions .ef-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.blog-admin-row-actions form {
  margin: 0;
}

.blog-admin-delete {
  color: #ff9aad;
}

.blog-admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.blog-admin-pagination .ef-btn {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.blog-admin-empty {
  text-align: center;
  padding: 34px 18px;
}

.blog-admin-empty h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.blog-admin-empty p {
  max-width: 460px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border2);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

table.clean {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

table.clean th,
table.clean td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

table.clean thead th {
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

table.clean tbody tr {
  border-bottom: 1px solid var(--border);
}

table.clean tbody tr:last-child {
  border-bottom: 0;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.bs-issued {
  border: 1px solid rgba(0,255,148,.25);
  background: rgba(0,255,148,.1);
  color: var(--green);
}

.bs-pending {
  border: 1px solid rgba(255,209,102,.25);
  background: rgba(255,209,102,.1);
  color: var(--warning);
}

.ef-step strong {
  min-width: 0;
}

.bs-failed {
  border: 1px solid rgba(255,77,109,.25);
  background: rgba(255,77,109,.1);
  color: #ff9aad;
}

.account-issuances-page {
  width: 100%;
}

.account-issuances-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.account-issuances-filters {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

.account-issuances-filter-group {
  margin: 0;
}

.account-issuances-filter-actions {
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.account-issuances-results-card {
  padding: 0;
  overflow: hidden;
}

.account-issuances-table-scroll {
  overflow-x: auto;
}

table.account-issuances-table {
  width: 100%;
  min-width: 760px;
  text-align: left;
}

.account-issuances-row {
  transition: background .2s;
}

.account-issuances-row:hover {
  background: rgba(255,255,255,.03);
}

.account-issuances-access-btn,
.account-issuances-pagination-btn {
  padding: 7px 16px;
  font-size: 13px;
}

.account-issuances-access-btn {
  padding: 5px 14px;
  font-size: 12px;
}

.account-issuances-unavailable,
.account-issuances-cell-muted {
  color: var(--muted);
  font-size: 13px;
}

.account-issuances-plate {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.account-issuances-price {
  font-weight: 600;
  color: var(--text);
}

.account-issuances-payment-cell {
  font-size: 13px;
}

.account-issuances-refund-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.account-issuances-pagination {
  padding: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.07);
}

.account-issuances-empty {
  text-align: center;
  padding: 48px 24px;
}

.account-issuances-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,255,148,.1);
  border: 1px solid rgba(0,255,148,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.account-issuances-empty-title {
  margin: 0 0 8px;
  color: var(--text);
  font-family: 'Cabinet Grotesk', Arial, sans-serif;
  font-size: 20px;
}

.account-issuances-empty-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto 24px;
  max-width: 400px;
  line-height: 1.6;
}

.account-issuances-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER PADRÃO
========================================================= */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: #07070ecc;
  color: var(--text);
  padding: 42px 0 24px;
  position: relative;
  z-index: 1;
}

.footer-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Cabinet Grotesk', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1;
}

.brand-muted {
  color: white;
}

.brand-green {
  color: var(--green);
}

.brand-dot {
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--green);
  animation: emitirSimpleBlink 2s ease-in-out infinite;
}

.muted,
.text-muted {
  color: var(--muted) !important;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.safe-environment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 148, 0.25);
  background: var(--green3);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

/* =========================================================
   TOASTS
========================================================= */

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 900px) {
  .ef-stepper,
  .ef-two-col {
    grid-template-columns: 1fr;
  }

  .ef-two-col {
    width: 100%;
  }

  .blog-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-cta .ef-btn {
    width: 100%;
  }

  .blog-upload-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .blog-upload-row .ef-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .blog-admin-filters {
    grid-template-columns: 1fr;
  }

  .blog-admin-filter-actions .ef-btn {
    flex: 1 1 160px;
  }

  .blog-admin-row-actions {
    justify-content: flex-start;
  }

  .account-issuances-filter-actions {
    justify-content: stretch;
  }

  .account-issuances-filter-actions .ef-btn,
  .account-issuances-hero-actions .ef-btn,
  .account-issuances-empty-actions .ef-btn {
    flex: 1 1 180px;
  }

  .ef-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .internal-page-container,
  .container {
    width: min(100% - 20px, 720px);
    padding-top: 84px;
    padding-bottom: 42px;
  }

  .emitir-simple-pill-outline {
    display: none;
  }

  .ef-hero-card,
  .ef-card {
    border-radius: 18px;
  }

  .ef-hero-card {
    padding: 22px 16px;
  }

  .ef-card {
    padding: 18px 16px;
    margin-top: 14px;
  }

  .ef-back-link {
    margin: 0 0 16px;
  }

  .ef-eyebrow {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ef-title {
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: -1.1px;
  }

  .ef-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .ef-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
  }

  .ef-step {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px 5px;
    text-align: center;
    border-radius: 13px;
  }

  .ef-step-number {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 13px;
  }

  .ef-step strong {
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .ef-price-box {
    gap: 12px;
    padding: 14px;
  }

  .ef-list-row {
    align-items: flex-start;
    padding: 12px;
  }

  .ef-alert {
    padding: 13px 14px;
  }

  .ef-qr-box {
    padding: 10px;
    border-radius: 16px;
  }

  .ef-qr-box img {
    width: min(220px, 74vw);
  }

  .ef-textarea,
  textarea.ef-textarea {
    min-height: 132px;
    resize: vertical;
  }

  .ef-modal {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .ef-modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0;
    overflow-y: auto;
    border-radius: 18px;
    padding: 26px 18px;
  }

  .ef-modal-card * {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .account-issuances-page {
    max-width: 100%;
  }

  .account-issuances-filters {
    grid-template-columns: 1fr;
  }

  .account-issuances-filter-actions {
    gap: 10px;
  }

  .account-issuances-filter-actions .ef-btn,
  .account-issuances-hero-actions .ef-btn,
  .account-issuances-empty-actions .ef-btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .account-issuances-empty {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 520px) {
  .emitir-simple-header {
    min-height: 58px;
  }

  .emitir-simple-logo {
    font-size: 21px;
  }

  .ef-price-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .ef-price-box .ef-badge {
    white-space: normal;
  }

  .ef-card > div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .ef-card > div[style*="justify-content:space-between"] .ef-badge {
    align-self: flex-start;
  }

  .ef-btn {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ef-pdf-frame {
    height: 520px;
  }


}

/* =========================================================
   HEADER — SEÇÃO DO USUÁRIO LOGADO
========================================================= */

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 5px 12px 5px 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  max-width: 220px;
}

.header-user-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  color: var(--text);
}

.header-user-avatar {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 255, 148, .15);
  border: 1px solid rgba(0, 255, 148, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--green);
}

.header-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.header-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.header-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.header-logout-btn:hover {
  color: #ff9aad;
  background: rgba(255, 77, 109, .08);
}

@media (max-width: 640px) {
  .header-nav-hide-mobile { display: none; }
  .header-user-name       { display: none; }
  .header-user-btn        { padding: 5px 8px; }
  .header-logout-label    { display: none; }
  .header-logout-btn      { padding: 5px 8px; }

}

/* =========================================================
   ACCOUNT TAB-BAR MOBILE
========================================================= */

.acct-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .acct-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 10, 20, .94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.has-tabbar .container,
  body.has-tabbar .internal-page-container {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

}

.acct-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .2s;
  min-height: 58px;
  -webkit-tap-highlight-color: transparent;
}

.acct-tab i {
  font-size: 20px;
  line-height: 1;
}

.acct-tab:hover,
.acct-tab.active {
  color: var(--green);
}

.acct-tab--logout:hover {
  color: #ff9aad;
}
