:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --panel: rgba(7, 17, 31, 0.82);
  --panel-solid: #0f1b2e;
  --panel-light: #f8fafc;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #9fb0c9;
  --heading: #ffffff;
  --brand: #f4c95d;
  --brand-strong: #e2b23c;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --neutral-bg: #e5e7eb;
  --neutral-text: #374151;
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 18px 40px rgba(2, 6, 23, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(244, 201, 93, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(10, 18, 34, 0.96), rgba(7, 17, 31, 0.94)),
    url('../img/bg.jpg') center/cover fixed;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
}

.app-navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--heading);
  font-weight: 700;
}

.brand img {
  height: 74px;
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-block {
  padding: 72px 0 24px;
}

.hero-home {
  padding-bottom: 10px;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-panel-main {
  position: relative;
  overflow: hidden;
}

.hero-panel-main::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 201, 93, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-metric {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-metric strong {
  display: block;
  color: var(--heading);
  font-size: 1.02rem;
}

.hero-spotlight {
  display: flex;
}

.hero-spotlight-card {
  width: 100%;
  background: rgba(8, 15, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-spotlight-media {
  position: relative;
  height: 290px;
}

.hero-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-spotlight-badge,
.event-floating-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.8);
  color: #fff4ca;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-spotlight-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.hero-spotlight-body h2 {
  margin: 0;
  font-size: 1.8rem;
}

.hero-spotlight-body p {
  margin: 0;
  color: var(--muted);
}

.hero-spotlight-price {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-spotlight-price span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-spotlight-price strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
  color: var(--heading);
}

.sales-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 24px;
}

.sales-strip-card,
.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.sales-strip-card strong,
.benefit-card h3 {
  display: block;
  color: var(--heading);
  margin-bottom: 8px;
}

.sales-strip-card span,
.benefit-card p,
.section-side-note {
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.benefit-number {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.12);
  color: #ffe29a;
  font-size: 0.76rem;
  font-weight: 700;
}

.event-card-sales .event-img {
  height: 250px;
}

.event-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e2f2;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-price-from {
  color: #ffe29a;
  font-size: 0.82rem;
  font-weight: 600;
}

.event-selling-copy {
  color: #d7e2f2;
  font-size: 0.93rem;
  line-height: 1.5;
}

.event-cta-stack {
  display: grid;
  gap: 10px;
}

.image-editor {
  display: grid;
  gap: 12px;
}

.image-editor-copy {
  display: grid;
  gap: 4px;
}

.image-editor-copy strong {
  color: #0f172a;
  font-size: 1rem;
}

.image-editor-copy span {
  color: #64748b;
  font-size: 0.92rem;
}

.image-editor-frame {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border: 1px solid rgba(148, 163, 184, 0.24);
  cursor: grab;
  touch-action: none;
}

.image-editor-frame.is-dragging {
  cursor: grabbing;
}

.image-editor-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.image-editor-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: #475569;
  font-weight: 500;
}

.image-editor-toolbar {
  display: grid;
  gap: 6px;
}

.image-editor-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.image-editor-hint {
  font-size: 0.82rem;
  color: #64748b;
}

.image-editor-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-editor-live-card {
  display: grid;
  gap: 8px;
}

.image-editor-live-card span,
.event-preview-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.image-editor-live-frame,
.event-preview-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe4f0, #cbd5e1);
}

.image-editor-live-frame {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.image-editor-live-frame.is-card {
  aspect-ratio: 16 / 10;
}

.image-editor-live-frame.is-checkout {
  aspect-ratio: 16 / 9;
}

.image-editor-mirror {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: center;
  display: none;
}

.event-preview-panel {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  box-shadow: var(--shadow-md);
}

.event-preview-hero {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.event-preview-media {
  aspect-ratio: 16 / 9;
}

.event-preview-body {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.event-preview-body strong {
  color: #ffffff;
  font-size: 1.3rem;
}

.event-preview-body span {
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.5;
}

.hero-panel,
.glass-card,
.metric-card,
.ticket-card,
.table-card,
.filter-card,
.login-card,
.checkout-card,
.voucher-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-panel,
.glass-card,
.login-card,
.checkout-card,
.voucher-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 201, 93, 0.14);
  color: #ffe29a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--heading);
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading);
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.event-card {
  background: rgba(8, 15, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 201, 93, 0.45);
}

.event-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.event-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.event-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
}

.event-info,
.muted {
  color: var(--muted);
}

.price-box {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.app-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #111827;
}

.app-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(244, 201, 93, 0.28);
}

.app-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.app-btn-secondary:hover {
  border-color: rgba(244, 201, 93, 0.4);
  color: var(--text);
}

.shell {
  display: block;
  min-height: 100vh;
}

.app-sidebar {
  width: 270px;
  padding: 18px 16px;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-user {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
  margin-bottom: 14px;
}

.sidebar-user img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(244, 201, 93, 0.9);
}

.sidebar-user .name {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.84rem;
}

.sidebar-user .email {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-word;
  line-height: 1.35;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.sidebar-logo {
  text-align: center;
  margin-top: 16px;
}

.sidebar-logo img {
  max-height: 82px;
}

.app-main {
  min-width: 0;
  width: calc(100% - 270px);
  display: flex;
  flex-direction: column;
  padding: 34px;
  margin-left: 270px;
}

.content-header {
  margin-bottom: 26px;
}

.content-header h1 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 2rem;
  font-weight: 700;
}

.content-header p {
  margin: 0;
  color: var(--muted);
}

.metric-card,
.ticket-card,
.table-card,
.filter-card {
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  border: none;
  box-shadow: var(--shadow-md);
}

.metric-card {
  padding: 22px;
  height: 100%;
}

.metric-title {
  color: #64748b;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.9rem;
  font-weight: 700;
}

.metric-extra {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 0.84rem;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.icon-pink {
  background: #fce7f3;
  color: #db2777;
}

.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.ticket-card {
  padding: 22px;
  height: 100%;
  border-radius: var(--radius-lg);
}

.ticket-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-confirmado {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-pendente {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.status-utilizado {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.table-card,
.filter-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.table thead th {
  border: none;
  background: #0f172a;
  color: white;
  font-size: 0.82rem;
}

.table tbody td {
  vertical-align: middle;
}

.login-layout,
.checkout-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.login-wrap,
.checkout-wrap {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.login-showcase,
.checkout-showcase {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.login-showcase img,
.checkout-showcase img {
  max-height: 110px;
}

.login-card,
.checkout-card {
  padding: 34px;
}

.app-input,
.app-select,
.app-textarea {
  border-radius: 14px;
  min-height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

.app-textarea {
  min-height: 100px;
}

.voucher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.voucher-card {
  width: min(360px, 100%);
  padding: 28px;
  text-align: center;
}

.voucher-card .photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.qr-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  color: #0f172a;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.validator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.validator-stage,
.validator-panel,
.scan-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.validator-stage,
.scan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.validator-stage {
  padding: 28px;
}

.validator-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,245,249,0.98));
  color: #0f172a;
  padding: 26px;
  position: sticky;
  top: 24px;
}

.scan-card {
  padding: 20px;
}

.scan-reader {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  padding: 0 !important;
  border: 0 !important;
}

.scan-reader video {
  border-radius: 0;
}

.scan-reader > div {
  padding: 0 !important;
  border: 0 !important;
}

.scan-reader #reader__dashboard,
.scan-reader #reader__header_message,
.scan-reader #reader__scan_region img {
  display: none !important;
}

.scan-reader #reader__scan_region {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.scan-reader #reader__scan_region > div {
  padding: 0 !important;
  margin: 0 !important;
}

.scan-reader #reader__scan_region video {
  margin: 0 !important;
}

.validator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.validator-badge.success {
  background: #dcfce7;
  color: #166534;
}

.validator-badge.error {
  background: #fee2e2;
  color: #b91c1c;
}

.validator-badge.waiting {
  background: #e2e8f0;
  color: #334155;
}

.result-shell {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 18px;
}

.result-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.result-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.result-icon.waiting {
  background: #e2e8f0;
  color: #475569;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.result-item {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.result-item .label {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.manual-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.validator-app {
  min-height: 100vh;
  padding: 16px;
}

.validator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.validator-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.validator-brand img {
  height: 54px;
}

.validator-brand small {
  display: block;
  color: var(--muted);
}

.validator-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.validator-menu::-webkit-scrollbar {
  display: none;
}

.validator-menu a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.validator-menu a.active {
  color: #111827;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
}

.validator-mobile-shell {
  max-width: 760px;
  margin: 0 auto;
}

.validator-main-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.validator-header-block {
  margin-bottom: 16px;
}

.validator-header-block h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  color: var(--heading);
}

.validator-header-block p {
  margin: 0;
  color: var(--muted);
}

.validator-result.compact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.validator-result.compact.waiting {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.validator-result.compact.success {
  background: #dcfce7;
  color: #166534;
}

.validator-result.compact.error {
  background: #fee2e2;
  color: #991b1b;
}

.validator-result-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.16);
}

.validator-result-copy {
  display: grid;
  gap: 4px;
}

.validator-result-copy strong {
  font-size: 1.02rem;
}

.validator-result-copy span {
  color: inherit;
  opacity: 0.92;
}

.validator-result-top {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.validator-result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.validator-result-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.validator-result-user img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.validator-result-user div {
  width: 100%;
}

.validator-result-user small {
  display: block;
  margin-top: 2px;
  color: #475569;
}

.validator-result-evento {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.validator-result-meta div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.validator-result-wide {
  grid-column: 1 / -1;
}

.validator-result-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  width: 100%;
}

.validator-result-grid-4 > div {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  width: 100%;
  min-width: 0;
}

.validator-result-grid-4 span {
  display: block;
  font-size: 0.76rem;
  color: inherit;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.validator-result-grid-4 strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.validator-result-meta span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.validator-result-meta strong {
  display: block;
  margin-top: 2px;
}

.validator-input-row {
  margin-bottom: 16px;
}

.validator-code-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.validator-code-form.single-column {
  grid-template-columns: 1fr;
  gap: 10px;
}

.validator-code-input {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.validator-camera-card {
  border-radius: 22px;
  padding: 0;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  overflow: hidden;
}

.validator-toggle-btn {
  min-height: 40px;
}

.validator-submit-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
}

.validator-reset-btn {
  width: 100%;
  margin-top: 12px;
}

.validator-shortcut-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--muted);
}
.site-footer.site-footer-with-sidebar {
  width: calc(100% - 270px);
  margin-left: 270px;
  margin-top: 28px;
  padding-bottom: 22px;

  display: flex;
  flex-direction: column;
  align-items: center; /* CENTRALIZA conteúdo interno */
  justify-content: center;
  text-align: center;
}

.site-footer.site-footer-with-sidebar .container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-footer .container {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.site-footer-badges {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer-badge {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  box-shadow: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  overflow: hidden;
  padding: 8px;
}

.site-footer-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.site-footer-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.site-footer-badge-instagram {
  background: #f4a9b1;
}

.site-footer-badge-yrado {
  background: #e9edf5;
}

@media (max-width: 991px) {
  .shell {
    display: block;
    overflow-x: hidden;
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    inset: auto;
    padding: 14px 16px;
    overflow: visible;
  }

  .app-main {
    padding: 24px 16px 32px;
    margin-left: 0;
  }

  .sidebar-user,
  .sidebar-logo {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 14px;
  }

  .login-wrap,
  .checkout-wrap,
  .validator-layout {
    grid-template-columns: 1fr;
  }

  .site-footer.site-footer-with-sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 22px;
  }

  .hero-home-grid,
  .sales-strip,
  .benefits-grid,
  .hero-metrics,
  .image-editor-live-grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .validator-panel {
    position: static;
  }

  .validator-panel-live {
    order: -1;
  }

  .result-shell {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .app-navbar .inner {
    min-height: 84px;
  }

  .brand img {
    height: 60px;
  }

  .hero-panel,
  .login-card,
  .checkout-card,
  .login-showcase,
  .checkout-showcase {
    padding: 24px;
  }

  .hero-spotlight-media {
    height: 220px;
  }

  .hero-actions .app-btn {
    width: 100%;
  }

  .sales-strip-card,
  .benefit-card {
    padding: 18px;
  }

  .hero-block {
    padding-top: 42px;
  }

  .content-header h1 {
    font-size: 1.65rem;
  }

  .validator-stage,
  .validator-panel,
  .scan-card {
    padding: 18px;
    border-radius: 22px;
  }

  .scan-reader {
    min-height: 280px;
  }

  .manual-form {
    grid-template-columns: 1fr;
  }

  .manual-form .app-btn,
  #toggleScannerBtn {
    width: 100%;
    min-height: 54px;
  }

  .result-icon {
    width: 84px;
    height: 84px;
    font-size: 2.3rem;
  }

  .validator-badge {
    font-size: 0.8rem;
  }

  .validator-app {
    padding: 10px;
  }

  .validator-topbar {
    display: grid;
    gap: 10px;
  }

  .validator-brand img {
    height: 42px;
  }

  .validator-main-card {
    padding: 14px;
    border-radius: 22px;
  }

  .validator-header-block h1 {
    font-size: 1.45rem;
  }

  .validator-result.compact {
    padding: 14px;
    gap: 10px;
  }

  .validator-result-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.25rem;
  }

  .validator-result-meta {
    grid-template-columns: 1fr;
  }

  .validator-result-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .validator-code-form {
    grid-template-columns: 1fr;
  }

  .validator-code-form .app-btn,
  .validator-toggle-btn {
    width: 100%;
    min-height: 52px;
  }

  .scan-reader {
    min-height: 240px;
  }
}
