/* Identidade visual VS Car: carvão, dourado metálico e branco. */
:root {
  --brand-black: #0b0d10;
  --brand-charcoal: #17191d;
  --brand-gold: #c89b3c;
  --brand-gold-light: #f2c14e;
  --brand-white: #ffffff;
}

.flash-alert {
  overflow: hidden;
  max-height: 180px;
  transition: opacity .35s ease, transform .35s ease, max-height .4s ease, margin .4s ease, padding .4s ease;
}

.flash-alert.is-hiding {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  opacity: 0;
  transform: translateY(-6px);
}

.public-shell .public-nav {
  border-top-color: var(--brand-gold);
}

.premium-hero {
  background: linear-gradient(118deg, var(--brand-black) 0%, #13161b 52%, #2a2418 100%);
}

.premium-hero:after {
  background: radial-gradient(circle at 73% 34%, rgba(200, 155, 60, .2), transparent 26%), linear-gradient(90deg, rgba(8, 10, 12, .28), transparent 60%);
}

.hero-orb-one,
.hero-orb-two {
  background: var(--brand-gold) !important;
}

.premium-hero h1:after {
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
}

.hero-actions .btn-light {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  border-color: var(--brand-gold);
  color: var(--brand-black);
}

.hero-actions .btn-light:hover {
  background: #f7d276;
  border-color: #f7d276;
  color: var(--brand-black);
}

.premium-hero .hero-link,
.consult-link {
  color: var(--brand-gold-light);
}

.preview-icon {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  color: var(--brand-black);
}

.preview-numbers {
  color: var(--brand-black);
}

.preview-numbers span {
  background: #f9f0d9;
  color: #73551e;
}

.public-shell .btn-primary,
.premium-submit {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  border-color: var(--brand-gold);
  color: var(--brand-black);
}

.public-shell .btn-primary:hover,
.premium-submit:hover {
  background: #e0ad44;
  border-color: #e0ad44;
  color: var(--brand-black);
}

.public-shell .text-primary,
.process-item > span {
  color: var(--brand-gold) !important;
}

/* Consulta pública: acesso limpo, seguro e alinhado à marca. */
body:has(.consult-page) {
  background: radial-gradient(circle at 85% 12%, rgba(200, 155, 60, .12), transparent 28rem), linear-gradient(135deg, #f8f9fb 0%, #f2f0e9 100%);
}

.consult-page {
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 8vw, 6.3rem) 1rem 4.5rem;
}

.consult-container {
  width: min(100%, 510px);
  margin: 0 auto;
}

.consult-intro {
  margin: 0 auto 1.8rem;
  text-align: center;
}

.consult-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--brand-gold);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .2em;
}

.consult-eyebrow::before,
.consult-eyebrow::after {
  width: 20px;
  height: 1px;
  background: rgba(200, 155, 60, .5);
  content: "";
}

.consult-intro h1 {
  margin: .7rem 0 .65rem;
  color: #151923;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -.055em;
}

.consult-intro p {
  max-width: 420px;
  margin: 0 auto;
  color: #6c7481;
  font-size: .88rem;
  line-height: 1.65;
}

.consult-alert {
  border: 1px solid rgba(185, 54, 54, .2);
  border-radius: 10px;
  font-size: .8rem;
}

.consult-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid rgba(23, 25, 29, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 60px rgba(32, 28, 17, .11), 0 2px 8px rgba(32, 28, 17, .04);
}

.consult-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-light));
  content: "";
}

.consult-field { margin-top: .9rem; }
.consult-field:first-of-type { margin-top: 0; }
.consult-field label { display: block; margin-bottom: .42rem; color: #30343d; font-size: .74rem; font-weight: 750; }
.consult-field .form-control { min-height: 48px; padding: .72rem .85rem; border: 1px solid #dfe1e5; border-radius: 9px; background: #fbfcfd; color: #171a20; font-size: .88rem; }
.consult-field .form-control::placeholder { color: #aab0b9; }
.consult-field .form-control:focus { border-color: var(--brand-gold); background: #fff; box-shadow: 0 0 0 3px rgba(200, 155, 60, .14); }

.consult-submit { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 46px; margin-top: 1.1rem; border: 0; border-radius: 9px; background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold)); box-shadow: 0 10px 22px rgba(200, 155, 60, .2); color: var(--brand-black); font-size: .8rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.consult-submit:hover { filter: brightness(1.04); box-shadow: 0 13px 26px rgba(200, 155, 60, .28); color: var(--brand-black); transform: translateY(-1px); }
.consult-submit span { font-size: 1.1rem; line-height: 1; }

.consult-back { display: flex; justify-content: center; gap: .45rem; margin-top: 1.35rem; color: #86651f; font-size: .75rem; font-weight: 700; text-decoration: none; }
.consult-back:hover { color: #5c4312; text-decoration: underline; }

/* Consulta no mesmo ambiente visual da campanha principal. */
body:has(.consult-page) {
  background: radial-gradient(circle at 50% -10%, rgba(200, 155, 60, .16), transparent 32rem), #0c0b08;
  color: #fff;
}

body:has(.consult-page) .public-nav {
  position: relative;
  top: auto;
  border-top: 3px solid #c89b3c;
  border-bottom: 1px solid rgba(244, 197, 29, .18);
  background: rgba(12, 11, 8, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

body:has(.consult-page) .public-nav .ms-auto { display: none !important; }
body:has(.consult-page) .public-nav .container { min-height: 64px; }
body:has(.consult-page) .public-nav .navbar-brand { color: #f4c51b; }
body:has(.consult-page) .public-nav .brand-logo { max-width: 178px; max-height: 42px; }

body:has(.consult-page) .consult-page { min-height: calc(100vh - 67px); padding: clamp(3.8rem, 8vw, 6.2rem) 1rem 4.2rem; }
body:has(.consult-page) .consult-intro h1 { color: #fff; font-weight: 800; }
body:has(.consult-page) .consult-intro p { color: #cfc8b8; }
body:has(.consult-page) .consult-eyebrow { color: #f4c51b; }
body:has(.consult-page) .consult-card { border-color: rgba(244, 197, 29, .24); background: linear-gradient(145deg, rgba(27, 23, 13, .98), rgba(15, 14, 10, .98)); box-shadow: 0 22px 60px rgba(0, 0, 0, .32); }
body:has(.consult-page) .consult-card::before { height: 2px; background: linear-gradient(90deg, #f4c51b, #b78323); }
body:has(.consult-page) .consult-field label { color: #f0eade; }
body:has(.consult-page) .consult-field .form-control { border-color: #57451f; background: #11100c; color: #fffaf0; }
body:has(.consult-page) .consult-field .form-control::placeholder { color: #837b6a; }
body:has(.consult-page) .consult-field .form-control:focus { border-color: #f4c51b; background: #17140c; box-shadow: 0 0 0 3px rgba(244, 197, 29, .12); }
body:has(.consult-page) .consult-submit { background: linear-gradient(135deg, #ffdb1b, #d19d2f); box-shadow: 0 12px 26px rgba(240, 173, 22, .2); }
body:has(.consult-page) .consult-back { width: fit-content; margin: 1.6rem auto 0; padding: .7rem 1rem; border: 1px solid rgba(244, 197, 29, .38); border-radius: 999px; color: #f4c51b; font-size: .7rem; letter-spacing: .05em; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
body:has(.consult-page) .consult-back:hover { border-color: #f4c51b; background: rgba(244, 197, 29, .1); color: #fff4be; text-decoration: none; transform: translateY(-1px); }
body:has(.consult-page) > footer { border-top: 1px solid rgba(244, 197, 29, .16); background: #0c0b08; color: #777269 !important; }
body:has(.consult-page) > footer .developer-credit-line { color: #9b8f78; }
body:has(.consult-page) > footer .developer-credit-link { color: #c7a03f; }

@media (max-width: 575px) {
  .consult-page { padding-top: 3rem; }
  .consult-card { padding: 1.15rem; }
}

/* Modos públicos de manutenção e novidades. */
body:has(.site-mode-page) {
  background: #0b0d10;
  color: #fff;
}

body:has(.site-mode-page) .public-nav {
  display: none;
}

body:has(.site-mode-page) > footer {
  display: none;
}

.site-mode-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 3rem 1rem;
  background: radial-gradient(circle at 82% 18%, rgba(200,155,60,.16), transparent 24rem), linear-gradient(135deg,#090b0e 0%,#121519 56%,#211b12 100%);
}

.site-mode-page::before {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(242,193,78,.12);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.site-mode-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .25;
  pointer-events: none;
}

.site-mode-orb-one { width: 370px; height: 370px; top: -180px; right: -120px; background: var(--brand-gold); }
.site-mode-orb-two { width: 180px; height: 180px; bottom: -100px; left: 12%; background: #7d4e20; }

.site-mode-content {
  position: relative;
  width: min(100%, 690px);
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-mode-brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.8rem;
  color: #f2c14e;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.site-mode-brand img { display: block; width: auto; max-width: 150px; height: 48px; object-fit: contain; }
.site-mode-kicker { color: #d2a83f; font-size: .68rem; font-weight: 900; letter-spacing: .24em; }
.site-mode-page h1 { max-width: 650px; margin: .9rem auto 0; color: #fffaf0; font-size: clamp(2.45rem, 7vw, 5.6rem); font-weight: 800; line-height: .98; letter-spacing: -.07em; }
.site-mode-rule { width: 74px; height: 4px; margin: 1.65rem auto 1.5rem; border-radius: 99px; background: linear-gradient(90deg,var(--brand-gold),var(--brand-gold-light)); }
.site-mode-description { max-width: 520px; margin: 0 auto; color: #bbb2a4; font-size: .98rem; line-height: 1.7; }
.site-mode-countdown { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: center; column-gap: .45rem; width: min(100%, 420px); margin: 1.35rem auto 0; padding: .9rem 1.1rem; border: 1px solid rgba(242,193,78,.35); border-radius: 12px; background: linear-gradient(145deg,rgba(65,44,13,.54),rgba(24,19,10,.7)); box-shadow: 0 12px 35px rgba(0,0,0,.2); color: #c5bba9; }
.site-mode-countdown span,.site-mode-countdown small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-mode-countdown strong { color: #f2c14e; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: clamp(1.1rem,4vw,1.6rem); letter-spacing: .05em; text-shadow: 0 0 18px rgba(242,193,78,.3); }
.site-mode-countdown small { grid-column: 1 / -1; margin-top: .25rem; color: #a59b8a; }
.site-mode-image { width: min(100%, 570px); margin: 2rem auto 0; overflow: hidden; border: 1px solid rgba(242,193,78,.32); border-radius: 16px; background: #14130f; box-shadow: 0 22px 60px rgba(0,0,0,.34); }
.site-mode-image img { display: block; width: 100%; max-height: 310px; object-fit: cover; }
.site-mode-spoiler { display: flex; align-items: flex-start; gap: .75rem; width: min(100%, 530px); margin: 1.8rem auto 0; padding: 1rem 1.1rem; border: 1px solid rgba(200,155,60,.5); border-radius: 12px; background: linear-gradient(145deg,rgba(64,42,12,.62),rgba(25,19,8,.72)); text-align: left; }
.site-mode-spoiler > span { color: #f2c14e; font-size: 1.25rem; line-height: 1; }
.site-mode-spoiler strong { color: #f2c14e; font-size: .65rem; letter-spacing: .18em; }
.site-mode-spoiler p { margin: .3rem 0 0; color: #d8cdb9; font-size: .8rem; line-height: 1.5; }
.site-mode-footnote { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 2.3rem; color: #827b70; font-size: .68rem; }
.site-mode-dot { width: 6px; height: 6px; border-radius: 50%; background: #9dddb1; box-shadow: 0 0 0 5px rgba(157,221,177,.08); }
.site-mode-footer { margin-top: 1.5rem; color: #625d55; font-size: .62rem; line-height: 1.7; }
.site-mode-footer span { color: #827b70; }
.site-mode-footer a,.site-mode-footer strong { color: #c89b3c; font-weight: 700; text-decoration: none; }
.site-mode-footer a:hover { color: #f2c14e; text-decoration: underline; }

.maintenance-animation { position: relative; width: min(100%, 330px); height: 150px; margin: 0 auto 1.2rem; }
.maintenance-video { display: block; width: 100%; height: calc(100% - 12px); object-fit: cover; object-position: center 58%; border-radius: 16px; filter: invert(1) grayscale(1) contrast(1.08) brightness(1.08); mix-blend-mode: screen; }
.maintenance-road-effect { position: absolute; left: 2%; right: 2%; bottom: 1px; height: 10px; overflow: hidden; border-top: 1px solid rgba(242,193,78,.6); border-bottom: 1px solid rgba(242,193,78,.18); box-shadow: 0 0 14px rgba(242,193,78,.28); }
.maintenance-road-effect::before,.maintenance-road-effect::after { content: ''; position: absolute; top: 4px; width: 220%; height: 2px; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,240,175,.9) 18px 58px, transparent 58px 92px); animation: maintenance-road-pass .62s linear infinite; }
.maintenance-road-effect::after { top: 7px; left: -110%; opacity: .45; animation-delay: -.31s; }
.luxury-car-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.luxury-car-svg path,.luxury-car-svg circle,.luxury-car-svg ellipse { vector-effect: non-scaling-stroke; }
.car-road path { fill: none; stroke: rgba(242,193,78,.25); stroke-linecap: round; stroke-width: 1; }
.car-road .road-base { stroke: rgba(242,193,78,.5); stroke-width: 1.4; }
.car-road .road-motion { animation: road-pass .62s linear infinite; }
.car-road .road-motion-two { animation-delay: -.31s; }
.car-road .road-motion path { stroke: rgba(242,193,78,.7); stroke-width: 1.5; }
.luxury-car-body { animation: car-cruise 4s ease-in-out infinite; transform-origin: 210px 115px; }
.pickup-body { fill: #302514; stroke: url(#carGold); stroke-linejoin: round; stroke-width: 1.4; }
.car-outline,.car-detail,.car-window,.car-grille,.car-light,.wheel-arch { fill: none; stroke: url(#carGold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1; }
.car-window { fill: rgba(200,155,60,.08); stroke-width: 1.3; }
.car-door { fill: none; stroke: rgba(242,193,78,.5); stroke-width: 1; }
.pickup-bed { fill: rgba(200,155,60,.12); stroke: rgba(242,193,78,.72); stroke-linejoin: round; stroke-width: 1.2; }
.car-detail { stroke: rgba(242,193,78,.55); stroke-width: 1; }
.car-grille { fill: #0b0d10; stroke: rgba(242,193,78,.8); stroke-width: 1; }
.car-light { fill: rgba(242,193,78,.22); stroke: #f9d66f; stroke-width: 1.2; }
.car-mirror { fill: #c89b3c; stroke: #fff0af; stroke-width: 1; }
.car-tail { fill: none; stroke: #e36b52; stroke-linecap: round; stroke-width: 1.5; }
.roof-lights { fill: #f2c14e; stroke: #fff0af; stroke-width: 1; }
.wheel-arch { stroke-width: 1.3; opacity: .72; }
.car-wheel { fill: #0b0d10; stroke: #c89b3c; stroke-width: 2; }
.wheel-tread { fill: none; stroke: rgba(255,240,175,.72); stroke-width: 1.6; stroke-dasharray: 3 3; }
.car-hub { fill: #f2c14e; stroke: #fff0af; stroke-width: 1; }
.wheel-assembly { transform-box: fill-box; transform-origin: center; animation: wheel-spin .48s linear infinite; }
.wheel-spokes { fill: none; stroke: rgba(255,240,175,.8); stroke-linecap: round; stroke-width: 1.1; }
.car-headlights ellipse { fill: #fff0af; opacity: .35; filter: url(#carGlow); animation: headlight-pulse 2s ease-in-out infinite; }
.car-headlights ellipse:last-child { animation-delay: .25s; }
@keyframes road-pass { from { transform: translateX(0); opacity: .2; } to { transform: translateX(-80px); opacity: .9; } }
@keyframes maintenance-road-pass { from { transform: translateX(0); } to { transform: translateX(-92px); } }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes car-cruise { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-2px); } }
@keyframes headlight-pulse { 0%,100% { opacity: .25; } 50% { opacity: .95; } }

@media (max-width: 600px) {
  .site-mode-page { padding: 2rem .85rem; }
  .site-mode-page::before { inset: .55rem; border-radius: 15px; }
  .site-mode-content { padding: 1.25rem .5rem; }
  .site-mode-brand { margin-bottom: 2rem; }
  .site-mode-page h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .site-mode-description { font-size: .88rem; }
  .site-mode-image img { max-height: 220px; }
  .maintenance-animation { width: min(100%, 300px); height: 124px; }
}

/* Portal administrativo premium. */
body:has(.admin-login) {
  background: var(--brand-black);
}

body:has(.admin-login) .public-nav {
  background: rgba(11, 13, 16, .96);
  border-top-color: var(--brand-gold);
  border-bottom-color: rgba(200, 155, 60, .2);
}

body:has(.admin-login) .public-nav .navbar-brand {
  color: #fff;
}

body:has(.admin-login) .public-nav .btn-outline-primary {
  color: #f1d388;
  border-color: rgba(242, 193, 78, .7);
}

body:has(.admin-login) .public-nav .btn-outline-primary:hover {
  background: rgba(242, 193, 78, .12);
  color: #fff;
}

body:has(.admin-login) footer {
  display: none;
}

.admin-login {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, #3a3020 0, transparent 35%), linear-gradient(135deg, #090b0e 0%, #121519 54%, #211b12 100%);
  padding: 4rem 1rem;
}

.admin-login::before,
.admin-login::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(200, 155, 60, .16);
  border-radius: 50%;
}

.admin-login::before {
  width: 560px;
  height: 560px;
  top: -310px;
  right: -180px;
}

.admin-login::after {
  width: 440px;
  height: 440px;
  bottom: -290px;
  left: -180px;
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 2.6rem;
  border: 1px solid rgba(242, 193, 78, .28);
  border-radius: 18px;
  background: rgba(19, 22, 26, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  color: #fff;
}

.login-kicker {
  color: #d6ad55;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-align: center;
}

.login-brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 190px);
  max-height: 48px;
  margin: 0 auto;
  object-fit: contain;
}

.login-emblem {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 1.3rem auto 1rem;
  border: 1px solid rgba(242, 193, 78, .7);
  border-radius: 50%;
  color: var(--brand-gold-light);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.08em;
  box-shadow: 0 0 0 7px rgba(200, 155, 60, .06), 0 10px 28px rgba(0, 0, 0, .3);
}

.login-card h1 {
  color: #fff;
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -.045em;
  margin-bottom: .55rem;
}

.login-card p {
  color: #9fa9b7;
  font-size: .84rem;
}

.login-card .form-label {
  color: #d9dee6;
  font-size: .78rem;
  font-weight: 650;
}

.login-card .form-control {
  color: #fff;
  background: #0c0f13;
  border: 1px solid #343a42;
  border-radius: 8px;
}

.login-card .form-control:focus {
  color: #fff;
  background: #0c0f13;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, .16);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9da6b3;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
  color: var(--brand-gold-light);
  background: rgba(242, 193, 78, .1);
  outline: none;
}

.eye-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.btn-login {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  border: 0;
  border-radius: 8px;
  color: var(--brand-black);
  font-size: .88rem;
  font-weight: 800;
}

.btn-login:hover {
  background: #f5d271;
  color: var(--brand-black);
}

.btn-login span {
  margin-left: .5rem;
  font-size: 1.05rem;
}

.login-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.7rem;
  min-height: 42px;
  border: 1px solid rgba(242, 193, 78, .28);
  border-radius: 8px;
  color: #d8c38f;
  font-size: .8rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.login-card .login-back-button {
  width: 100%;
  background: rgba(255, 255, 255, .025);
}

.login-back:hover {
  border-color: rgba(242, 193, 78, .65);
  background: rgba(242, 193, 78, .08);
  color: #f2c14e;
}

.login-back span {
  font-size: 1rem;
}

@media (max-width: 767px) {
  .admin-login {
    min-height: calc(100vh - 63px);
    padding: 2rem 1rem;
  }

  .login-card {
    padding: 2rem 1.35rem;
  }
}

/* Na consulta, o cabeçalho não cobre o conteúdo durante a rolagem. */
body:has(.consult-page) .public-nav {
  position: relative;
  top: auto;
}
.confirmation-page .combo-numbers .combo-code-number { min-width: 116px; padding: .6rem .8rem; border: 1px solid rgba(200,155,60,.38); border-radius: 9px; background: rgba(200,155,60,.08); color: #a77c24; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 1.02rem; font-weight: 900; letter-spacing: .12em; text-align: center; }

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
  color: var(--brand-gold);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: -.08em;
  vertical-align: middle;
}

.public-shell .public-nav .brand-symbol {
  margin-right: .45rem;
}

.premium-hero {
  padding-top: clamp(4.5rem, 8vw, 6.4rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.2rem);
}

.hero-copy-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-copy-centered h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy-centered h1:after {
  margin-left: auto;
  margin-right: auto;
}

.hero-copy-centered .hero-actions {
  justify-content: center;
}

.premium-hero.has-hero-image {
  background-image: linear-gradient(90deg, rgba(8, 10, 12, .9) 0%, rgba(8, 10, 12, .7) 43%, rgba(8, 10, 12, .3) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.premium-hero.has-hero-image::after {
  display: none;
}

.front-rules {
  padding: 5rem 0;
  background: #fff;
}

.front-section-heading {
  max-width: 680px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.front-section-heading h2 {
  margin: .7rem 0 .65rem;
  color: #18202c;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 720;
  letter-spacing: -.055em;
}

.front-section-heading p {
  margin: 0;
  color: #778397;
  font-size: .9rem;
}

.front-rule-card {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .045);
}

.rule-number {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--brand-gold);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.front-rule-card h3 {
  margin-bottom: .55rem;
  color: #1c2636;
  font-size: 1.02rem;
  font-weight: 720;
}

.front-rule-card p {
  margin: 0;
  color: #7b8798;
  font-size: .8rem;
  line-height: 1.7;
}

.front-how {
  padding: 0 0 5rem;
  background: #f7f8fb;
}

.front-how-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 2.4rem;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fff;
}

.front-how-card h2 {
  margin: .55rem 0 0;
  color: #1b2432;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -.04em;
}

.front-how-card p {
  max-width: 520px;
  margin: 0;
  color: #788496;
  font-size: .84rem;
  line-height: 1.7;
}

.content-rule-box {
  height: 100%;
  padding: 1rem;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fafbfc;
}

.content-rule-box > span {
  display: block;
  margin-bottom: 1rem;
  color: #b18737;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
}

@media (max-width: 767px) {
  .front-rules {
    padding: 3.5rem 0;
  }

  .front-how-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
}

/* Painel administrativo premium. */
.admin-shell {
  background: #f4f5f7;
  color: #18202c;
}

.admin-topbar {
  min-height: 72px;
  background: #0b0d10;
  border-bottom: 1px solid rgba(200, 155, 60, .25);
  box-shadow: 0 4px 22px rgba(7, 10, 14, .18);
}

.admin-topbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  font-size: 1rem;
}

.admin-topbar .brand-symbol {
  color: var(--brand-gold-light);
  border-color: var(--brand-gold);
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-brand-copy strong {
  font-size: .95rem;
  font-weight: 750;
}

.admin-brand-copy small {
  margin-top: .25rem;
  color: #8993a2;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-user-area {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.admin-user-name {
  color: #c7ced8;
  font-size: .8rem;
}

.admin-role-pill {
  padding: .35rem .55rem;
  border: 1px solid rgba(242, 193, 78, .45);
  border-radius: 20px;
  color: #f2c14e;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.admin-logout {
  padding: .45rem .75rem;
  border: 1px solid #353b44;
  border-radius: 7px;
  color: #c7ced8;
  font-size: .76rem;
  text-decoration: none;
  transition: .2s ease;
}

.admin-logout:hover {
  border-color: var(--brand-gold);
  color: #f2c14e;
}

.admin-logout span {
  margin-left: .3rem;
  color: var(--brand-gold-light);
}

.admin-layout {
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  width: 258px;
  padding: 1.6rem .9rem;
  background: #111319;
  border-right: 1px solid #2b2e35;
}

.sidebar-section {
  padding: .35rem .75rem .7rem;
  color: #6f7988;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.sidebar-dev-label {
  color: #d4a942;
}

.sidebar-divider {
  height: 1px;
  margin: 1.15rem .35rem;
  background: #2d3139;
}

.admin-sidebar .admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 43px;
  margin: .18rem 0;
  padding: .65rem .75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b8c0cc;
  font-size: .79rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.admin-sidebar .admin-nav-link:hover {
  background: #1d2027;
  border-color: #30353d;
  color: #fff;
  transform: translateX(2px);
}

.admin-sidebar .admin-nav-link.active {
  background: linear-gradient(90deg, rgba(200, 155, 60, .16), rgba(200, 155, 60, .035));
  border-color: rgba(200, 155, 60, .32);
  color: #f4d277;
  box-shadow: inset 3px 0 0 var(--brand-gold);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  color: #8893a2;
  font-size: .82rem;
}

.admin-nav-link.active .nav-icon,
.admin-nav-link:hover .nav-icon {
  color: var(--brand-gold-light);
}

.admin-sidebar .external-link {
  color: #8f9aaa;
}

.admin-content {
  background: #f4f5f7;
}

.admin-content .container-fluid {
  max-width: 1480px;
}

.admin-content .eyebrow {
  color: #a67b25 !important;
}

.admin-content h1,
.admin-content h2,
.admin-content h3 {
  letter-spacing: -.035em;
}

@media (max-width: 767px) {
  .admin-topbar {
    min-height: 62px;
  }

  .admin-layout {
    min-height: calc(100vh - 62px);
  }

  .admin-sidebar {
    width: 68px;
    padding: 1rem .3rem;
  }

  .sidebar-section,
  .sidebar-divider,
  .admin-sidebar .admin-nav-link span:not(.nav-icon) {
    display: none;
  }

  .admin-sidebar .admin-nav-link {
    justify-content: center;
    min-height: 44px;
    padding: .55rem .25rem;
  }

  .nav-icon {
    width: auto;
    font-size: 1rem;
  }
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.admin-page-header h1 {
  margin: .45rem 0 .25rem;
  color: #172033;
  font-size: 2rem;
  font-weight: 720;
  letter-spacing: -.055em;
}

.admin-page-header p {
  margin: 0;
  color: #7c8798;
  font-size: .84rem;
}

.admin-outline-button {
  border: 1px solid #d5dbe4;
  border-radius: 8px;
  color: #4c596d;
  font-size: .78rem;
  font-weight: 700;
}

.admin-outline-button:hover {
  border-color: var(--brand-gold);
  color: #805f1f;
  background: #fffaf0;
}

.admin-outline-button span {
  margin-left: .45rem;
  color: var(--brand-gold);
}

.admin-overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(200, 155, 60, .22);
  border-radius: 12px;
  background: linear-gradient(105deg, #17191e, #242018);
  box-shadow: 0 10px 26px rgba(23, 32, 51, .08);
  color: #fff;
}

.overview-kicker {
  display: block;
  margin-bottom: .25rem;
  color: #b8a274;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.admin-overview-banner strong {
  display: inline-block;
  color: #f2c14e;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.admin-overview-banner p {
  display: inline-block;
  margin: 0 0 0 .8rem;
  color: #aeb6c2;
  font-size: .75rem;
}

.overview-action {
  flex: none;
  color: #f1d388;
  font-size: .77rem;
  font-weight: 700;
  text-decoration: none;
}

.overview-action span {
  margin-left: .4rem;
  font-size: 1rem;
}

.admin-stat-card {
  min-height: 176px;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .04);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.stat-icon,
.quick-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(200, 155, 60, .4);
  border-radius: 9px;
  background: #fffaf0;
  color: #a77d27;
  font-size: .85rem;
}

.stat-trend {
  color: #9ba5b4;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.stat-label,
.admin-stat-card small {
  display: block;
  color: #778397;
  font-size: .76rem;
}

.admin-stat-card strong {
  display: block;
  margin: .15rem 0 .25rem;
  color: #18202c;
  font-size: 2rem;
  font-weight: 720;
  letter-spacing: -.05em;
}

.admin-section-heading {
  margin: 2rem 0 .85rem;
}

.admin-section-heading h2,
.table-card-header h2 {
  margin: .35rem 0 0;
  color: #1a2230;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -.035em;
}

.admin-quick-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 78px;
  padding: .9rem 1rem;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  background: #fff;
  color: #1a2230;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(23, 32, 51, .035);
  transition: .2s ease;
}

.admin-quick-card:hover {
  border-color: rgba(200, 155, 60, .55);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 32, 51, .08);
}

.admin-quick-card > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .2rem;
}

.admin-quick-card strong {
  font-size: .8rem;
}

.admin-quick-card small {
  color: #8792a2;
  font-size: .68rem;
}

.admin-quick-card > b {
  color: var(--brand-gold);
  font-size: 1rem;
}

.admin-table-card {
  overflow: hidden;
  border: 1px solid #e7eaf0 !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .04);
}

.table-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.3rem 1.4rem 1.1rem;
  border-bottom: 1px solid #edf0f4;
}

.table-card-header > a {
  color: #9a7224;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.table-card-header > a span {
  margin-left: .25rem;
}

.admin-table-card table th {
  padding: .8rem 1.4rem;
  color: #8a95a4;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table-card table td {
  padding: .85rem 1.4rem;
  color: #657187;
  font-size: .78rem;
}

.participant-cell {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.participant-cell > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7ecd0;
  color: #8d6822;
  font-size: .68rem;
  font-weight: 800;
}

.participant-cell a {
  color: #253046;
  font-weight: 700;
  text-decoration: none;
}

.table-action {
  color: #a27828;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  padding: 2rem !important;
  color: #929cab !important;
  text-align: center;
}

@media (max-width: 767px) {
  .admin-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-overview-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-overview-banner p {
    display: block;
    margin: .45rem 0 0;
  }

  .table-card-header {
    align-items: flex-start;
    gap: .8rem;
    flex-direction: column;
  }
}

.settings-panel {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e9ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(23, 32, 51, .035);
}

.settings-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f4;
}

.settings-panel-heading h2 {
  margin: .35rem 0 0;
  color: #1a2230;
  font-size: 1.15rem;
  font-weight: 720;
  letter-spacing: -.035em;
}

.settings-panel-number {
  color: #c7a354;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.settings-panel .form-label {
  color: #4a586c;
  font-size: .75rem;
  font-weight: 700;
}

.settings-panel .form-control,
.settings-panel .form-select {
  border-color: #dfe5ed;
  border-radius: 8px;
  font-size: .82rem;
}

.settings-panel small {
  display: block;
  margin-top: .4rem;
  color: #8994a4;
  font-size: .68rem;
}

.settings-description {
  max-width: 700px;
  margin: .55rem 0 0;
  color: #7f8b9b;
  font-size: .77rem;
  line-height: 1.55;
}

.settings-switch-list {
  display: grid;
  gap: .7rem;
}

.settings-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fafbfc;
}

.settings-switch strong {
  display: block;
  color: #273348;
  font-size: .8rem;
}

.settings-switch p {
  margin: .3rem 0 0;
  color: #8792a2;
  font-size: .72rem;
}

.settings-switch .form-check-input {
  width: 2.55rem;
  height: 1.35rem;
  margin: 0;
  cursor: pointer;
}

.settings-switch .form-check-input:checked {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.legal-editor {
  min-height: 300px;
  font-size: .78rem !important;
  line-height: 1.6;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0 2rem;
  color: #8b95a4;
  font-size: .73rem;
}

.current-document {
  margin-top: .7rem;
  color: #7d8999;
  font-size: .74rem;
}

.current-document a {
  color: #9a7224;
  font-weight: 700;
  text-decoration: none;
}

.legal-page {
  min-height: calc(100vh - 74px);
  padding: 4rem 0 5rem;
  background: #f5f6f8;
}

.legal-shell {
  max-width: 900px;
  margin: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, .06);
}

.legal-heading {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #edf0f4;
}

.legal-heading h1 {
  margin: .7rem 0 .35rem;
  color: #18202c;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 720;
  letter-spacing: -.055em;
}

.legal-heading p {
  margin: 0;
  color: #7d8999;
  font-size: .82rem;
}

.legal-pdf {
  padding: 1.25rem 0 0;
}

.legal-pdf .btn {
  border-radius: 7px;
  font-size: .78rem;
}

.legal-content {
  padding: 2rem 0;
  color: #4d596b;
  font-size: .9rem;
  line-height: 1.85;
  white-space: normal;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf0f4;
  color: #8a95a4;
  font-size: .75rem;
}

.legal-footer a {
  color: #9a7224;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  .settings-panel {
    padding: 1.1rem;
  }

  .settings-actions,
  .legal-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Comprovante público: resultado organizado com acabamento premium. */
body:has(.confirmation-page) {
  background: radial-gradient(circle at 12% 8%, rgba(200, 155, 60, .13), transparent 25rem), linear-gradient(135deg, #f8f9fb 0%, #f2f0e9 100%);
}

.confirmation-page {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(2.8rem, 6vw, 4.8rem) 1rem 4rem;
}

.confirmation-page::before {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: min(88vw, 920px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 60, .55), transparent);
  content: "";
  transform: translateX(-50%);
}

.confirmation-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
}

.confirmation-intro {
  margin: 0 auto 2rem;
  text-align: center;
}

.confirmation-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: #2b7758;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.confirmation-status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(36, 151, 96, .24);
  border-radius: 50%;
  background: #e4f8eb;
  color: #22945e;
  font-size: 1.12rem;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(34, 148, 94, .12);
}

.confirmation-intro h1 {
  margin: 0;
  color: #151923;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.confirmation-intro p {
  margin: .7rem auto 0;
  color: #737d8b;
  font-size: .92rem;
}

.confirmation-card {
  overflow: hidden;
  border: 1px solid rgba(23, 25, 29, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(32, 28, 17, .13), 0 3px 10px rgba(32, 28, 17, .05);
}

.confirmation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 2rem 1.55rem;
  border-top: 4px solid var(--brand-gold);
  background: linear-gradient(135deg, #fff 0%, #fffdf8 100%);
}

.confirmation-kicker {
  display: block;
  color: #a47720;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.confirmation-card-top h2 {
  margin: .45rem 0 .35rem;
  color: #17191d;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.045em;
}

.confirmation-card-top p {
  margin: 0;
  color: #7c8490;
  font-size: .76rem;
}

.confirmation-id-box {
  min-width: min(100%, 275px);
  padding: .85rem 1rem;
  border: 1px solid #ebdfbf;
  border-radius: 12px;
  background: #fcf8ed;
}

.confirmation-id-box span,
.confirmation-meta-item span {
  display: block;
  margin-bottom: .35rem;
  color: #8b9199;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.confirmation-id-box code {
  display: block;
  overflow: hidden;
  color: #8b661d;
  font-size: .7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmation-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  padding: 0 2rem 1.65rem;
}

.confirmation-meta-item {
  padding: .85rem 1rem;
  border: 1px solid #edf0f3;
  border-radius: 11px;
  background: #fbfcfd;
}

.confirmation-meta-item strong {
  display: block;
  overflow: hidden;
  color: #20242c;
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmation-meta-item strong small {
  color: #9b7b38;
  font-size: .66rem;
  font-weight: 700;
}

.confirmation-combinations {
  padding: 1.7rem 2rem 1.9rem;
  border-top: 1px solid #edf0f3;
  background: #fdfdfd;
}

.confirmation-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.confirmation-section-heading h3 {
  margin: .28rem 0 0;
  color: #17191d;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.confirmation-count {
  padding: .34rem .6rem;
  border: 1px solid #eadcb9;
  border-radius: 20px;
  background: #fcf8ed;
  color: #8b661d;
  font-size: .67rem;
  font-weight: 800;
}

.confirmation-page .combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.confirmation-page .combo {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: .7rem .72rem;
  border: 1px solid #ebedf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29, 34, 43, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.confirmation-page .combo:hover {
  border-color: rgba(200, 155, 60, .5);
  box-shadow: 0 8px 18px rgba(200, 155, 60, .1);
  transform: translateY(-1px);
}

.confirmation-page .combo-index {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 8px;
  background: #f8eed7;
  color: #9a7125;
  font-size: .62rem;
  font-weight: 900;
}

.confirmation-page .combo-numbers {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: .25rem;
  width: 100%;
}

.confirmation-page .combo-numbers span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid #e7e9ee;
  border-radius: 50%;
  background: #f8f9fb;
  color: #222832;
  font-size: .64rem;
  font-weight: 800;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: .7rem;
  padding: 1.35rem 2rem 1.65rem;
  border-top: 1px solid #edf0f3;
  background: #fff;
}

.confirmation-actions .btn {
  min-height: 42px;
  border-radius: 9px;
  padding: .65rem 1rem;
  font-size: .76rem;
  font-weight: 800;
}

.confirmation-copy {
  border: 1px solid var(--brand-gold);
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  color: var(--brand-black);
  box-shadow: 0 9px 19px rgba(200, 155, 60, .18);
}

.confirmation-copy:hover { background: #e0ad44; color: var(--brand-black); }
.confirmation-copy span { margin-left: .45rem; font-size: 1rem; }

.confirmation-print {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #596473;
}

.confirmation-print:hover { border-color: #bfc6d0; background: #f8f9fb; color: #222832; }
.confirmation-print span { margin-left: .45rem; }

.confirmation-back {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.25rem;
  color: #86651f;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.confirmation-back:hover { color: #5c4312; text-decoration: underline; }

@media (max-width: 767px) {
  .confirmation-card-top { flex-direction: column; gap: 1.1rem; padding: 1.45rem 1.2rem 1.2rem; }
  .confirmation-id-box { width: 100%; min-width: 0; }
  .confirmation-meta { grid-template-columns: 1fr; padding: 0 1.2rem 1.25rem; }
  .confirmation-combinations { padding: 1.35rem 1.2rem 1.5rem; }
  .confirmation-page .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .confirmation-actions { flex-direction: column; padding: 1.15rem 1.2rem 1.35rem; }
  .confirmation-actions .btn { width: 100%; }
}

@media (max-width: 460px) {
  .confirmation-page { padding-right: .7rem; padding-left: .7rem; }
  .confirmation-intro h1 { font-size: 2rem; }
  .confirmation-intro p { font-size: .8rem; }
  .confirmation-section-heading { align-items: flex-start; flex-direction: column; }
  .confirmation-page .combo-grid { grid-template-columns: 1fr; }
}

@media print {
  body:has(.confirmation-page) { background: #fff; }
  .confirmation-page { min-height: auto; padding: 1rem 0; }
  .confirmation-page::before,
  .confirmation-actions,
  .confirmation-back { display: none; }
  .confirmation-card { box-shadow: none; }
}

/* Cabeçalho público sempre acessível durante a rolagem. */
.public-shell .public-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(28, 31, 38, .06);
  backdrop-filter: blur(14px);
}

.public-shell .public-nav .container {
  min-height: 54px;
}

.public-shell .public-nav .brand-logo {
  max-height: 30px;
}

@media (max-width: 575px) {
  .public-shell .public-nav {
    padding: .65rem 0;
  }

  .public-shell .public-nav .container {
    min-height: 42px;
  }

  .public-shell .public-nav .brand-logo {
    max-width: 116px;
    max-height: 26px;
  }

  .public-shell .public-nav .btn {
    padding: .42rem .62rem;
    font-size: .68rem;
  }

  .confirmation-page .combo-grid {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .confirmation-page .combo {
    min-height: 54px;
    padding: .62rem .68rem;
  }

  .confirmation-page .combo-numbers {
    gap: .2rem;
  }

  .confirmation-page .combo-numbers span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: .61rem;
  }
}
