:root {
  --company-paper: #fff9ed;
  --company-muted: #cfbddb;
  --company-gold: #e6b84f;
  --company-gold-light: #ffe3a1;
  --company-line: rgba(244, 221, 163, .19);
  --company-panel: rgba(255, 255, 255, .035);
}

.companies-body,
.enrollment-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 12%, rgba(126, 59, 178, .18), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgba(89, 29, 130, .22), transparent 27rem),
    linear-gradient(135deg, #100418 0%, #1c082b 45%, #100317 100%);
}

.companies-page {
  position: relative;
  z-index: 1;
  max-width: 1450px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 64px) 64px;
}

.companies-dashboard { max-width: 1350px; margin: 0 auto; }
.companies-header { margin-bottom: 0; }
.back-admin-link { display: inline-flex; align-items: center; text-decoration: none; }

.companies-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(34px, 6vw, 72px) 0 28px;
}

.companies-hero h1,
.company-form-panel h2,
.companies-panel h2,
.company-detail h2,
.company-detail h3,
.companies-access h1,
.enrollment-card h1,
.receipt-card h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.045em;
}

.companies-hero h1 { max-width: 640px; font-size: clamp(38px, 6vw, 70px); line-height: .98; }
.companies-hero .panel-copy { max-width: 620px; margin: 19px 0 0; font-size: 14px; }
.hero-note {
  display: flex;
  max-width: 285px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 221, 163, .2);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.hero-note-mark { color: var(--company-gold-light); font-size: 22px; }
.hero-note p { margin: 0; color: var(--company-muted); font-size: 11px; line-height: 1.5; }
.companies-page-message { min-height: 20px; margin: 0 0 8px; color: var(--company-gold-light); font-size: 12px; }
.companies-page-message.is-error { color: #ffb3bc; }

.companies-layout { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.5fr); gap: clamp(24px, 4.6vw, 68px); align-items: start; }
.company-form-panel {
  position: sticky;
  top: 25px;
  padding: clamp(21px, 3vw, 32px);
  border: 1px solid rgba(245, 218, 145, .21);
  border-radius: 23px;
  background: linear-gradient(140deg, rgba(89, 35, 127, .76), rgba(45, 13, 69, .78));
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.company-form-panel h2 { max-width: 290px; font-size: clamp(29px, 3.2vw, 44px); line-height: 1.02; }
.company-form-panel .panel-copy { margin: 15px 0 23px; }
.company-form { display: grid; gap: 14px; }
.company-form label { display: grid; gap: 6px; }
.company-form label > span { color: var(--company-paper); font-size: 12px; font-weight: 600; }
.company-form label i { color: #b89cc8; font-size: 10px; font-style: normal; font-weight: 400; }
.company-form input[type="file"] { min-height: 44px; padding: 10px; color: #ddcae8; font-size: 11px; }
.company-form input[type="file"]::file-selector-button { margin-right: 9px; padding: 7px 9px; border: 0; border-radius: 7px; color: #2b123d; background: var(--company-gold-light); font: inherit; font-weight: 700; cursor: pointer; }
.company-form select,
.status-filter select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(244, 221, 163, .22);
  border-radius: 10px;
  color: var(--company-paper);
  background-color: rgba(8, 2, 13, .33);
  font: inherit;
}
.company-form select option,
.status-filter select option { color: #261031; background: #fff9ed; }
.logo-upload-preview { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border: 1px solid rgba(244, 221, 163, .15); border-radius: 11px; background: rgba(8,2,13,.24); }
.logo-upload-preview img { width: 47px; height: 38px; flex: 0 0 47px; object-fit: contain; border-radius: 7px; background: rgba(255,255,255,.9); }
.logo-upload-preview span { overflow: hidden; color: var(--company-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.company-form-actions { display: grid; gap: 8px; margin-top: 3px; }
.company-form-actions .primary-button,
.company-form-actions .secondary-button { min-height: 44px; }
.company-form-message { margin: 0; padding: 11px 12px; border: 1px solid var(--company-line); border-radius: 10px; color: var(--company-gold-light); background: rgba(8,2,13,.24); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.company-form-message.is-error { color: #ffb3bc; border-color: rgba(255,179,188,.4); }

.section-heading,
.detail-heading,
.employees-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.companies-panel h2 { font-size: clamp(31px, 4vw, 48px); line-height: 1; }
.total-count { color: var(--company-gold-light); font-size: 12px; font-weight: 600; white-space: nowrap; }
.companies-toolbar,
.employees-toolbar { display: flex; align-items: center; gap: 10px; margin: 25px 0 13px; }
.companies-toolbar .search-field,
.employees-toolbar .search-field { min-height: 44px; margin: 0; }
.company-list { display: grid; gap: 9px; }
.company-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 13px 15px;
  border: 1px solid var(--company-line);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(78, 28, 110, .62), rgba(30, 9, 45, .58));
  transition: border-color .2s ease, transform .2s ease;
}
.company-row:hover,
.company-row.is-selected { border-color: rgba(245, 218, 145, .48); }
.company-row.is-selected { box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.company-row-logo { width: 55px; height: 55px; padding: 6px; border: 1px solid rgba(244, 221, 163, .22); border-radius: 13px; object-fit: contain; background: rgba(255,255,255,.94); }
.company-row-copy { min-width: 0; }
.company-row-copy h3 { margin: 0 0 5px; overflow: hidden; color: var(--company-paper); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.company-row-copy p { margin: 0; color: #b89cc8; font-size: 10px; line-height: 1.55; }
.company-row-copy p.counts-line { color: #d8c4e3; }
.company-row-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.company-row-actions button { min-height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: var(--company-gold-light); background: rgba(255,255,255,.05); font-size: 11px; font-weight: 600; }
.company-row-actions button:hover { border-color: var(--company-line); background: rgba(255,255,255,.1); }
.company-row-actions button.status-action,
.company-row-actions button.danger-action { color: #ffb3bc; }
.company-row-actions button:disabled { opacity: .5; cursor: wait; }
.company-status-actions { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 7px; min-width: max-content; }
.company-status { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid rgba(244,221,163,.29); border-radius: 999px; color: var(--company-gold-light); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.company-status.blocked,
.employee-status.rejected,
.employee-status.blocked { border-color: rgba(255,179,188,.4); color: #ffb3bc; }
.company-status.pending,
.employee-status.pending { color: #f5d58d; }
.companies-empty,
.employees-empty { padding: 57px 20px; border: 1px dashed var(--company-line); border-radius: 16px; color: var(--company-muted); text-align: center; }
.companies-empty span,
.employees-empty span { color: var(--company-gold-light); font-size: 28px; }
.companies-empty h3,
.employees-empty h3 { margin: 10px 0 5px; color: var(--company-paper); font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.companies-empty p,
.employees-empty p { margin: 0; font-size: 13px; }

.company-detail { margin-top: clamp(36px, 6vw, 72px); padding: clamp(23px, 4vw, 36px); border: 1px solid rgba(244,221,163,.18); border-radius: 22px; background: rgba(255,255,255,.032); }
.detail-heading { align-items: center; }
.detail-identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.detail-logo-frame { display: grid; width: 67px; height: 67px; flex: 0 0 67px; place-items: center; padding: 8px; border: 1px solid rgba(244,221,163,.32); border-radius: 17px; background: rgba(255,255,255,.94); }
.detail-logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.company-detail h2 { max-width: 620px; overflow: hidden; color: var(--company-paper); font-size: clamp(27px, 4vw, 44px); line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.detail-identity .admin-eyebrow { margin-bottom: 7px; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.registration-link-row { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 21px 0 33px; padding: 12px 14px; border: 1px solid var(--company-line); border-radius: 11px; background: rgba(255,255,255,.025); }
.registration-link-row > span { color: var(--company-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.registration-link-row a { min-width: 0; overflow: hidden; color: var(--company-gold-light); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.employees-heading { align-items: end; }
.company-detail h3 { color: var(--company-paper); font-size: clamp(25px, 3vw, 36px); line-height: 1; }
.employees-toolbar { margin-top: 21px; }
.status-filter { flex: 0 0 180px; }
.status-filter select { min-height: 44px; color: var(--company-muted); font-size: 11px; }
.employee-list { display: grid; gap: 9px; }
.employee-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(175px, .92fr) auto; align-items: center; gap: 16px; padding: 16px 17px; border: 1px solid var(--company-line); border-radius: 14px; background: linear-gradient(120deg, rgba(78,28,110,.48), rgba(30,9,45,.48)); }
.employee-identity { min-width: 0; }
.employee-name { display: block; overflow: hidden; color: var(--company-paper); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.employee-code { display: block; margin-top: 4px; color: #b89cc8; font-size: 10px; }
.employee-meta { min-width: 0; color: #cdb3dd; font-size: 10px; line-height: 1.55; }
.employee-status { display: inline-flex; width: fit-content; margin-bottom: 4px; padding: 3px 7px; border: 1px solid rgba(244,221,163,.29); border-radius: 999px; color: var(--company-gold-light); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.employee-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.employee-card-actions { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 7px; min-width: max-content; }
.employee-actions button,
.employee-actions a { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: var(--company-gold-light); background: rgba(255,255,255,.05); font-size: 11px; font-weight: 600; text-decoration: none; }
.employee-actions button:hover,
.employee-actions a:hover { border-color: var(--company-line); background: rgba(255,255,255,.1); }
.employee-actions .danger-action { color: #ffb3bc; }
.approval-action { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.approval-action input { width: 132px; min-height: 34px; padding: 0 8px; border-radius: 8px; font-size: 10px; }
.approval-action input[type="date"] { color-scheme: dark; }

.company-qr-dialog { width: min(92vw, 430px); }
.company-qr-dialog .qr-card img { min-height: 230px; object-fit: contain; }
.employee-edit-dialog { width: min(92vw, 520px); }
.employee-edit-dialog .dialog-context { margin: -2px 0 0; color: var(--company-muted); font-size: 12px; line-height: 1.5; }
.employee-edit-dialog .dialog-message { min-height: 18px; margin: -2px 0 0; color: var(--company-gold-light); font-size: 12px; line-height: 1.5; }
.employee-edit-dialog .dialog-message.is-error { color: #ffb3bc; }
.employee-edit-dialog .dialog-actions { display: flex; gap: 9px; margin-top: 1px; }
.employee-edit-dialog .dialog-actions > button { flex: 1; min-height: 44px; }

.companies-access { display: grid; min-height: calc(100vh - 80px); max-width: 580px; align-content: center; justify-items: start; margin: auto; }
.companies-access .login-mark { margin-bottom: 28px; }
.companies-access h1 { margin-top: 21px; font-size: clamp(41px, 8vw, 70px); line-height: .98; }
.companies-access p:not(.admin-eyebrow) { max-width: 440px; margin: 22px 0 28px; color: var(--company-muted); font-size: 16px; line-height: 1.65; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.enrollment-page { display: grid; min-height: 100vh; place-items: start center; padding: 36px 17px 44px; }
.enrollment-shell,
.receipt-shell { width: min(100%, 620px); }
.enrollment-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 28px auto 0; border: 1px solid rgba(239,200,106,.72); border-radius: 50%; color: var(--company-gold-light); background: radial-gradient(circle at 32% 25%, #78479c, #301149 70%); box-shadow: 0 0 0 7px rgba(230,184,79,.08); font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.enrollment-card,
.receipt-card { margin-top: 20px; padding: clamp(25px, 5vw, 42px); border: 1px solid rgba(245,218,145,.22); border-radius: 24px; background: linear-gradient(140deg, rgba(89,35,127,.72), rgba(45,13,69,.79)); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.company-identity-public { display: grid; justify-items: center; gap: 12px; text-align: center; }
.company-identity-public img { width: min(100%, 190px); height: 100px; object-fit: contain; padding: 11px; border-radius: 15px; background: rgba(255,255,255,.94); }
.company-identity-public h1 { max-width: 520px; color: var(--company-paper); font-size: clamp(34px, 7vw, 58px); line-height: .98; }
.company-identity-public p { margin: 0; color: var(--company-muted); font-size: 13px; line-height: 1.55; }
.enrollment-copy { max-width: 480px; margin: 23px auto 0; color: var(--company-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.enrollment-form { display: grid; gap: 14px; margin-top: 25px; }
.enrollment-form label:not(.consent-label) { display: grid; gap: 6px; }
.enrollment-form label > span { color: var(--company-paper); font-size: 12px; font-weight: 600; }
.enrollment-form input { min-height: 47px; }
.consent-label { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0 2px; color: var(--company-muted); font-size: 11px; line-height: 1.5; }
.consent-label input { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; margin: 1px 0 0; accent-color: var(--company-gold); }
.consent-label span { color: var(--company-muted) !important; font-size: 11px !important; font-weight: 400 !important; }
.enrollment-form .primary-button { min-height: 50px; margin-top: 3px; }
.enrollment-message { min-height: 19px; margin: 13px 0 0; color: var(--company-gold-light); font-size: 12px; line-height: 1.5; text-align: center; }
.enrollment-message.is-error { color: #ffb3bc; }
.honey-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.piacentini-brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 28px auto 0; color: var(--company-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.piacentini-brand img { width: 75px; height: 28px; object-fit: contain; opacity: .9; }
.receipt-card { text-align: center; }
.receipt-card .company-identity-public img { width: min(100%, 170px); height: 82px; }
.receipt-company-name { margin: 0; color: var(--company-gold-light); font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 4vw, 28px); }
.receipt-card h1 { margin-top: 21px; color: var(--company-paper); font-size: clamp(31px, 6vw, 50px); line-height: .98; }
.receipt-status { display: inline-flex; margin-top: 20px; padding: 5px 10px; border: 1px solid rgba(244,221,163,.34); border-radius: 999px; color: var(--company-gold-light); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.receipt-status.rejected,
.receipt-status.blocked { border-color: rgba(255,179,188,.42); color: #ffb3bc; }
.receipt-message { max-width: 420px; margin: 16px auto 0; color: var(--company-muted); font-size: 13px; line-height: 1.6; }
.receipt-actions { display: grid; gap: 9px; max-width: 330px; margin: 24px auto 0; }
.receipt-actions .secondary-button { min-height: 43px; }
.receipt-actions .primary-button { min-height: 47px; text-decoration: none; }

@media (max-width: 900px) {
  .companies-layout { grid-template-columns: 1fr; }
  .company-form-panel { position: static; }
  .company-form-panel h2 { max-width: none; }
}

@media (max-width: 720px) {
  .companies-hero { align-items: start; flex-direction: column; }
  .hero-note { max-width: 420px; }
  .employee-row { grid-template-columns: minmax(0, 1fr) minmax(145px, .8fr); }
  .employee-actions { grid-column: 1 / -1; justify-content: start; }
  .detail-heading { align-items: start; flex-direction: column; }
  .detail-actions { justify-content: start; }
}

@media (max-width: 590px) {
  .companies-page { padding: 21px 14px 38px; }
  .companies-header { align-items: flex-start; }
  .companies-header .account-actions { align-items: end; flex-direction: column; }
  .companies-header .account-email { max-width: 145px; }
  .back-admin-link { min-height: 34px; font-size: 10px; }
  .companies-hero { padding-top: 36px; }
  .company-row { grid-template-columns: 47px minmax(0, 1fr); }
  .company-row-logo { width: 47px; height: 47px; }
  .company-row-actions { grid-column: 1 / -1; justify-content: start; }
  .registration-link-row { align-items: start; flex-direction: column; gap: 5px; }
  .registration-link-row a { width: 100%; }
  .companies-toolbar,
  .employees-toolbar { align-items: stretch; flex-wrap: wrap; }
  .employees-toolbar .search-field { flex: 1 1 210px; }
  .status-filter { flex: 1 1 170px; }
  .employees-toolbar .icon-button { flex: 0 0 44px; }
  .employee-row { grid-template-columns: 1fr; gap: 10px; }
  .employee-actions { grid-column: auto; }
  .approval-action { align-items: stretch; }
  .approval-action input { width: 137px; }
  .detail-identity { align-items: flex-start; }
  .company-detail h2 { max-width: calc(100vw - 130px); font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .company-row { transition: none; }
}


/* Editor local da frente: os nomes são prefixados para não importar o layout
   global da carteirinha nem alterar o painel administrativo. */
.logo-editor-controls {
  display: grid;
  gap: 13px;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid rgba(244, 221, 163, .16);
  border-radius: 13px;
  color: var(--company-paper);
  background: rgba(8, 2, 13, .2);
}
.logo-editor-controls legend {
  padding: 0 5px;
  color: var(--company-gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logo-preparation-toggle,
.logo-scale-control { display: grid; gap: 7px; }
.company-editor-control-group { display: grid; gap: 10px; }
.company-editor-control-group + .company-editor-control-group { padding-top: 3px; border-top: 1px solid rgba(244, 221, 163, .1); }
.company-editor-control-group-title { margin: 0; color: var(--company-gold-light); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.logo-preparation-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--company-paper);
  font-size: 11px;
  line-height: 1.35;
}
.logo-preparation-toggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--company-gold);
}
.logo-preparation-toggle i,
.logo-scale-control i { display: block; color: var(--company-muted); font-size: 10px; font-style: normal; font-weight: 400; }
.logo-scale-control > span { display: flex; align-items: center; justify-content: space-between; color: var(--company-paper); font-size: 11px; font-weight: 600; }
.logo-scale-control output { color: var(--company-gold-light); font-variant-numeric: tabular-nums; }
.logo-scale-control input[type="range"] {
  width: 100%;
  min-height: 20px;
  padding: 0;
  accent-color: var(--company-gold);
}
.company-editor-reset-button { min-height: 36px; margin-top: 1px; font-size: 10px; }
.logo-preparation-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.logo-preparation-comparison > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--company-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.logo-preparation-comparison img {
  width: 100%;
  height: 58px;
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(244, 221, 163, .16);
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255, 255, 255, .92);
}
.prepare-current-logo-button { margin-top: -2px; min-height: 39px; font-size: 11px; }
.logo-editor-disclaimer {
  margin: -2px 0 0;
  color: var(--company-muted);
  font-size: 10px;
  line-height: 1.5;
}

.company-card-preview-panel {
  display: grid;
  gap: 12px;
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid rgba(244, 221, 163, .16);
}
.company-card-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.company-card-preview-heading .admin-eyebrow { margin-bottom: 5px; }
.company-card-preview-heading h3 {
  margin: 0;
  color: var(--company-paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 3vw, 27px);
  letter-spacing: -.035em;
  line-height: 1.03;
}
.company-card-preview-scale { color: var(--company-gold-light); font-size: 10px; font-weight: 700; white-space: nowrap; }
.company-card-preview {
  --company-preview-logo-width: 80px;
  --company-preview-logo-height: 24px;
  --company-preview-logo-scale: 1;
  --company-preview-logo-width-scale: 1;
  --company-preview-logo-height-scale: 1;
  --company-preview-name-font-scale: 1;
  --company-preview-name-width-scale: 1;
  --company-preview-logo-offset-x: 0;
  --company-preview-logo-offset-y: 0;
  --company-preview-name-offset-x: 0;
  --company-preview-name-offset-y: 0;
  --company-preview-shift-unit: var(--preview-reference-shift-unit, calc(24cqw / 70));
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 590px;
  margin: 0 auto;
  perspective: 900px;
}
.company-card-preview-face {
  position: relative;
  display: flex;
  min-height: 0;
  aspect-ratio: 1.585 / 1;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(251, 224, 148, .55);
  border-radius: clamp(14px, 3.8vw, 24px);
  box-shadow: 0 19px 37px rgba(2, 0, 8, .38), 0 3px 7px rgba(246, 207, 112, .12) inset;
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 35%, rgba(226, 187, 255, .23), transparent 27%),
    radial-gradient(ellipse 72% 100% at 113% 111%, rgba(196, 139, 73, .36), transparent 50%),
    linear-gradient(128deg, #2d0d4a 0%, #54217a 44%, #29103e 100%);
}
.company-card-preview-noise,
.company-card-preview-sheen,
.company-card-preview-border { position: absolute; pointer-events: none; }
.company-card-preview-noise { inset: 0; z-index: 0; opacity: .065; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.company-card-preview-sheen { inset: 0; z-index: 1; opacity: .6; background: conic-gradient(from 210deg at 54% 38%, transparent 0deg, rgba(255, 238, 190, .16) 28deg, rgba(133, 219, 255, .12) 53deg, transparent 84deg, rgba(255, 184, 241, .1) 110deg, transparent 168deg); mix-blend-mode: screen; }
.company-card-preview-border { z-index: 4; inset: 7px; border: 1px solid rgba(255, 238, 188, .23); border-radius: calc(clamp(14px, 3.8vw, 24px) - 7px); }
.company-card-preview-topline,
.company-card-preview-footer { position: absolute; left: 0; right: 0; z-index: 5; }
.company-card-preview-topline {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  height: calc(var(--preview-reference-area-top, 3.5cqw) + var(--preview-reference-base-height, 7cqw) + var(--preview-reference-gap, 2px) + var(--preview-reference-name-font, 2.2cqw) * 1.2);
  padding: var(--preview-reference-area-top, 3.5cqw) var(--preview-reference-padding, 6.8cqw) 0;
}
.company-card-preview-membership { color: rgba(255, 239, 193, .93); font-size: 2.35cqw; font-weight: 700; letter-spacing: .13em; white-space: nowrap; }
.company-card-preview-badge {
  position: absolute;
  top: var(--preview-reference-area-top, 3.5cqw);
  right: var(--preview-reference-padding, 6.8cqw);
  width: max-content;
  max-width: calc((100% - var(--preview-reference-padding, 6.8cqw) * 2) * .4);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--preview-reference-gap, 2px);
  min-width: 0;
  text-align: center;
}
.company-card-preview-logo-wrap {
  display: flex;
  width: calc(var(--preview-reference-base-width, 24cqw) * var(--company-preview-logo-scale) * var(--company-preview-logo-width-scale));
  max-width: 100%;
  height: min(calc(var(--preview-reference-base-height, 7cqw) * var(--company-preview-logo-scale) * var(--company-preview-logo-height-scale)), var(--preview-reference-cap-height, 8.2cqw));
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translate(
    calc(var(--company-preview-logo-offset-x) * var(--company-preview-shift-unit)),
    max(calc(var(--company-preview-logo-offset-y) * var(--company-preview-shift-unit)), calc(var(--preview-reference-minimum-margin, 2.35cqw) - var(--preview-reference-area-top, 3.5cqw)))
  );
}
.company-card-preview-logo-wrap img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.company-card-preview-badge strong {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #ffe3a1;
  font-size: calc(var(--preview-reference-name-font, 2.2cqw) * var(--company-preview-name-font-scale));
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transform: translate(
    calc(var(--company-preview-name-offset-x) * var(--company-preview-shift-unit)),
    calc(var(--company-preview-name-offset-y) * var(--company-preview-shift-unit))
  );
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.company-card-preview-badge.has-name-width-adjustment strong {
  width: calc(var(--preview-reference-base-width, 24cqw) * var(--company-preview-name-width-scale));
  max-width: 100%;
}
/* POSIÇÃO FIXA APROVADA: não deslocar nem redimensionar para acomodar ajustes empresariais. */
.company-card-preview-piacentini {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 63%;
  aspect-ratio: 944 / 406;
  transform: translate(-49.45%, -63.04%);
  filter: brightness(1.14) saturate(1.28) contrast(1.08) drop-shadow(0 6px 8px rgba(11, 3, 20, .25));
}
.company-card-preview-piacentini::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, #fff4b0 0%, #c48a25 17%, #f9d45e 30%, #56d36d 45%, #b9791d 58%, #ff6d42 69%, #ffd45a 80%, #ffe8a1 100%);
  opacity: .42;
  mix-blend-mode: screen;
  -webkit-mask: url("/assets/logo-placentini-transparent.png") center / contain no-repeat;
  mask: url("/assets/logo-placentini-transparent.png") center / contain no-repeat;
}
.company-card-preview-piacentini img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 2px rgba(255, 220, 126, .28)); }
.company-card-preview-footer {
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6.8cqw 6.2cqw;
}
.company-card-preview-member-details { display: grid; min-width: 0; gap: 3px; }
.company-card-preview-member-details > span { color: rgba(234, 213, 255, .78); font-size: 2.35cqw; font-weight: 700; letter-spacing: .16em; }
.company-card-preview-member-details strong { overflow: hidden; color: #fff6e0; font-family: "Playfair Display", Georgia, serif; font-size: 6.2cqw; font-weight: 600; letter-spacing: -.025em; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.company-card-preview-mark { display: grid; justify-items: end; gap: 4px; color: rgba(255, 234, 183, .86); font-size: 2.35cqw; font-weight: 700; letter-spacing: .13em; }
.company-card-preview-mark span { width: 25px; height: 1px; background: linear-gradient(90deg, transparent, #e8c272); }

/* Mesma adaptação aprovada do cartão; nunca alterar o centro óptico. */
@media (max-width: 360px) {
  .company-card-preview-piacentini { width: 61%; }
}

@media (max-width: 340px) {
  .company-card-preview-piacentini { width: 56%; }
}
