/* ── Reset / Base ─────────────────────────────────────────────────────────── */
:root {
  --sidebar-w:     260px;
  --sidebar-bg:    #1d1d1f;
  --footer-bg:     #2c2c2e;
  --sidebar-text:  #f5f5f7;
  --sidebar-muted: #86868b;
  --accent:        #0071e3;
  --accent-hover:  #004aad;
  --logo-purple:   #302050;
  --logo-violet:   #802080;
  --logo-magenta:  #d05080;
  --special-gradient: linear-gradient(135deg, var(--logo-purple) 0%, var(--logo-violet) 52%, var(--logo-magenta) 100%);
  --special-gradient-hover: linear-gradient(135deg, #251846 0%, #6f1b7a 48%, #bd3f78 100%);
  --bg:            #f5f5f7;
  --card-bg:       #ffffff;
  --text:          #1d1d1f;
  --text-muted:    #6e6e73;
  --border:        #d2d2d7;
  --radius:        12px;
  --shadow:        0 2px 20px rgba(0,0,0,.08);
  --shadow-hover:  0 8px 30px rgba(0,0,0,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ── Layout principal ─────────────────────────────────────────────────────── */
#app { display: flex; min-height: 100vh; }
#main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left .3s ease;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 1000;
  overflow: hidden;
  transition: transform .3s ease;
}

.sidebar-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand { color: var(--sidebar-text) !important; }
.sidebar-brand-block { min-width: 0; }
.sidebar-subtitle {
  color: var(--sidebar-muted);
  font-size: .76rem;
  line-height: 1.35;
  margin-top: .35rem;
}
.sidebar-collapse-btn,
.sidebar-reveal-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--sidebar-text);
  transition: background .2s, color .2s, transform .2s;
}
.sidebar-collapse-btn:hover,
.sidebar-reveal-btn:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.sidebar-reveal-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1001;
  background: var(--special-gradient);
  border: 0;
  box-shadow: 0 10px 24px rgba(48,32,80,.28);
}
.sidebar-reveal-btn:hover {
  background: #e5e5ea;
  color: #1d1d1f;
}
.site-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}
.sidebar-brand-logo { width: 35px; height: 35px; }

.sidebar-series-btn {
  background: transparent;
  color: var(--sidebar-muted);
  border: none;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.sidebar-series-btn:hover { background: rgba(255,255,255,.06); color: var(--sidebar-text); }
.sidebar-chevron { font-size: .7rem; transition: transform .25s; }
.sidebar-series-btn[aria-expanded="true"] .sidebar-chevron { transform: rotate(180deg); }

.sidebar-model-link {
  color: rgba(245,245,247,.7);
  font-size: .875rem;
  border-radius: 8px;
  transition: background .15s, color .15s;
  margin: 1px 0;
}
.sidebar-model-link:hover { background: rgba(255,255,255,.08); color: var(--sidebar-text); }
.sidebar-model-link.active {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .75rem;
}
.sidebar-channel-actions {
  display: grid;
  gap: .55rem;
  margin-bottom: .85rem;
}
.sidebar-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 38px;
  padding: .55rem .65rem;
  border-radius: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.sidebar-channel-btn:hover {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.sidebar-channel-btn i {
  font-size: 1rem;
  flex: 0 0 auto;
}
.sidebar-channel-telegram {
  background: linear-gradient(135deg, #3a9fcd, #2f7fa9);
  box-shadow: 0 10px 22px rgba(58, 159, 205, .17);
}
.sidebar-channel-whatsapp {
  background: linear-gradient(135deg, #42bd70, #2f9a78);
  box-shadow: 0 10px 22px rgba(66, 189, 112, .16);
}

@media (min-width: 769px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }
  body.sidebar-collapsed #main {
    margin-left: 0;
  }
  body.sidebar-collapsed .sidebar-reveal-btn {
    display: inline-flex;
  }
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 999;
  padding: .6rem 1.5rem;
}
.topbar-left { justify-self: start; }
.topbar-actions { justify-self: end; }
.topbar-logo {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: .15rem;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--text) !important;
  text-decoration: none;
}
.topbar-logo .site-logo-img {
  width: 45px;
  height: 45px;
  display: block;
  transform-origin: center;
  will-change: transform;
  animation: phoneVibrate 7s linear infinite !important;
}
.topbar-logo:hover { color: var(--text) !important; }

@keyframes phoneVibrate {
  0%, 18%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  2% { transform: translate3d(-3px, 0, 0) rotate(-2deg); }
  4% { transform: translate3d(3px, 0, 0) rotate(2deg); }
  6% { transform: translate3d(-3px, 1px, 0) rotate(-1.6deg); }
  8% { transform: translate3d(3px, -1px, 0) rotate(1.6deg); }
  10% { transform: translate3d(-2px, 0, 0) rotate(-1.2deg); }
  12% { transform: translate3d(2px, 0, 0) rotate(1.2deg); }
  14% { transform: translate3d(-1px, 0, 0) rotate(-.7deg); }
  16% { transform: translate3d(1px, 0, 0) rotate(.7deg); }
}

/* ── Hero Carousel ────────────────────────────────────────────────────────── */
.hero-carousel { border-radius: 0; overflow: hidden; }
.hero-slide {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: var(--hero-gradient);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide-1 {
  --hero-image: url('../img/hero/hero-1920-720-1.webp');
  --hero-gradient: linear-gradient(to right, #3a5499 0%, #1a2e5e 50%, #0a1830 100%);
}
.hero-slide-2 {
  --hero-image: url('../img/hero/hero-1920-720-2.webp');
  --hero-gradient: linear-gradient(to left, #654180 0%, #271834 52%, #120c19 100%);
}
.hero-slide-3 {
  --hero-image: url('../img/hero/hero-1920-720-3.webp');
  --hero-gradient: linear-gradient(to left, #244a93 0%, #0d1937 50%, #050914 100%);
}

.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.29), rgba(0,0,0,.41)),
    radial-gradient(ellipse at center, rgba(0,113,227,.08) 0%, transparent 70%);
}
.hero-slide-image {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}
.hero-slide-image.is-zooming {
  animation: heroImageSlowZoom 5s linear both;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: min(600px, calc(100% - 8.5rem));
  padding: 2rem;
}
@keyframes heroImageSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.hero-title {
  font-size: 2.4rem; font-weight: 700; line-height: 1.15; margin-bottom: .8rem;
  text-shadow: 0 8px 28px rgba(0,0,0,.9), 0 3px 8px rgba(0,0,0,.85), 0 1px 2px rgba(0,0,0,1);
}
.hero-subtitle {
  font-size: 1rem; opacity: .9; margin: 0 auto 1.5rem;
  max-width: 52ch;
  text-shadow: 0 7px 24px rgba(0,0,0,.88), 0 3px 8px rgba(0,0,0,.82), 0 1px 2px rgba(0,0,0,1);
}
.hero-btn {
  background: var(--special-gradient);
  background-size: 140% 140%;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: .6rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(80,32,96,.28);
  transition: background .2s, box-shadow .2s, transform .15s;
  display: inline-block;
}
.hero-btn:hover {
  background: var(--special-gradient-hover);
  color: #fff;
  box-shadow: 0 14px 30px rgba(128,32,128,.34);
  transform: translateY(-1px);
}

.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.5);
}
.carousel-indicators .active { background: #fff; }
.carousel-control-prev-icon,
.carousel-control-next-icon { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.carousel-control-prev,
.carousel-control-next {
  width: clamp(2.75rem, 6vw, 5rem);
}

/* ── Seção de ofertas ─────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: .3rem;
}
.section-subtitle { color: var(--text-muted); font-size: .9rem; }

/* ── Cards de oferta ──────────────────────────────────────────────────────── */
.offer-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
  display: flex; flex-direction: column;
}
.offer-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Imagem do modelo */
.offer-card-img {
  width: 100%; height: 150px;
  background: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.offer-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .3s;
}
.offer-card:hover .offer-card-img img { transform: scale(1.04); }
.offer-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f0f0f2 0%, #e5e5ea 100%);
  display: flex; align-items: center; justify-content: center;
  color: #c7c7cc; font-size: 2.5rem;
}

/* Body do card */
.offer-card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }

.offer-card-model {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: .25rem;
}
.offer-card-price {
  font-size: 1.45rem; font-weight: 700; color: var(--text);
  margin-bottom: .35rem; line-height: 1.1;
}
.offer-card-meta {
  font-size: .76rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .35rem;
  margin-top: auto; margin-bottom: .75rem; flex-wrap: wrap;
}
.store-badge {
  background: transparent; border: none;
  border-radius: 50px; padding: .1rem .45rem;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
}
.store-logo-img {
  width: 64px; height: 32px;
  object-fit: contain; object-position: center;
  border-radius: 3px; flex-shrink: 0;
  filter: invert(1);
}
.offer-card-ended-note {
  font-size: .65rem; color: #8e8e93; margin-bottom: .15rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}

.offer-card-ended-badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #8e8e93;
  margin-bottom: .5rem;
}
.offer-card-btn {
  display: block; text-align: center;
  background: var(--accent); color: #fff;
  border-radius: 8px; padding: .5rem;
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  margin-top: 0;
  /* reset para quando for <button> */
  border: none; cursor: pointer; width: 100%;
  -webkit-appearance: none; appearance: none;
  font-family: inherit;
}
.offer-card-btn:hover { background: var(--accent-hover); color: #fff; }

#loadMoreBtn {
  background: var(--special-gradient);
  border: 0;
  color: #fff;
  font-weight: 700;
  padding-inline: 1.15rem;
  box-shadow: 0 8px 20px rgba(80,32,96,.18);
}
#loadMoreBtn:hover,
#loadMoreBtn:focus {
  background: var(--special-gradient-hover);
  color: #fff;
  box-shadow: 0 10px 24px rgba(128,32,128,.26);
}

/* Estado encerrada */
.offer-card.ended {
  background: #f3f3f5;
  border-color: #d6d6dc;
  filter: grayscale(.18) saturate(.82);
  opacity: .93;
}
.offer-card.ended:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.offer-card.ended .offer-card-img {
  background: #e8e8ec;
  filter: grayscale(75%);
  position: relative;
}
.offer-card.ended .offer-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(170, 170, 176, 0.42);
  pointer-events: none;
}
.offer-card.ended .offer-card-price { color: #8e8e93; }
.offer-card.ended .offer-card-btn {
  background: #8e8e93;
}
.offer-card.ended .offer-card-btn:hover { background: #636366; }
.offer-card.ended .offer-card-model { color: #8e8e93; }

/* ── Skeleton loader ──────────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg,#e8e8e8 25%,#f0f0f0 50%,#e8e8e8 75%);
            background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Footer ───────────────────────────────────────────────────────────────── */
/* Marketplaces parceiros */
.marketplace-strip {
  background: #eef0f3;
  border-top: 1px solid #e0e2e7;
  border-bottom: 1px solid #e0e2e7;
  padding: 1.85rem 0 2rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.marketplace-strip-head {
  padding: 0 1.5rem .95rem;
  text-align: center;
}
.marketplace-strip-head span {
  display: inline-flex; align-items: center; justify-content: center;
  color: #555b66;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.marketplace-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 72px;
  contain: layout paint;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marketplace-marquee-track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: max-content;
  animation: marketplaceMarquee 42s linear infinite;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .marketplace-marquee:hover .marketplace-marquee-track {
    animation-play-state: paused;
  }
}
.marketplace-logo-set {
  display: flex; align-items: center; gap: 1rem;
  padding-right: 1rem;
}
.marketplace-logo-card {
  width: 152px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
.marketplace-logo-img {
  width: 112px; height: 56px;
  object-fit: contain; object-position: center;
  filter: invert(1) grayscale(1) contrast(1.08);
  opacity: .86;
}
@keyframes marketplaceMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .marketplace-strip { padding: 1.4rem 0 1.55rem; }
  .marketplace-marquee { height: 62px; }
  .marketplace-logo-card { width: 126px; height: 62px; }
  .marketplace-logo-img { width: 94px; height: 47px; }
  .marketplace-marquee-track { animation-duration: 36s; }
}

.site-footer {
  background-color: var(--footer-bg);
  background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
  background-repeat: repeat;
  color: var(--sidebar-muted);
  padding: 2rem 1.5rem; margin-top: auto;
  font-size: .82rem;
}
.site-footer a { color: var(--sidebar-muted); text-decoration: none; }
.site-footer a:hover { color: var(--sidebar-text); }

.footer-social-link {
  color: rgba(255,255,255,.45);
  font-size: 1.15rem;
  transition: color .18s, transform .18s;
  line-height: 1;
}
.footer-social-link:hover { color: #fff; transform: translateY(-2px); }
.footer-social-telegram:hover { color: #3a9fcd; }
.footer-social-whatsapp:hover { color: #42bd70; }

.topbar-badge-telegram {
  background: linear-gradient(135deg, #3a9fcd, #2f7fa9);
  box-shadow: 0 4px 12px rgba(58, 159, 205, .22);
  color: #fff;
  font-weight: 700;
  transition: filter .18s, transform .18s, box-shadow .18s;
}
.topbar-badge-telegram:hover {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58, 159, 205, .32);
}

.topbar-badge-whatsapp {
  background: linear-gradient(135deg, #42bd70, #2f9a78);
  box-shadow: 0 4px 12px rgba(66, 189, 112, .22);
  color: #fff;
  font-weight: 700;
  transition: filter .18s, transform .18s, box-shadow .18s;
}
.topbar-badge-whatsapp:hover {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(66, 189, 112, .32);
}

/* ── Abaixo de 1600px: oculta badges de ofertas/modelos ─────────────────── */
@media (max-width: 1599px) {
  .topbar-badge-stats { display: none !important; }
}

/* ── 5 colunas em telas grandes (≥1400px) ────────────────────────────────── */
@media (min-width: 1400px) {
  .col-xxl-5th {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* ── Cards mobile — margem lateral + imagem quadrada ─────────────────────── */
@media (max-width: 575px) {
  #offersGrid .col-12 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  #offersGrid .col-12 .offer-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  #offersGrid .col-12 .offer-card-img {
    flex: 1;
    height: auto;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-collapse-btn,
  .sidebar-reveal-btn { display: none; }
  #main { margin-left: 0; }
  .topbar-logo .site-logo-img { width: 40.5px; height: 40.5px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: .94rem; max-width: 34ch; }
  .hero-content {
    max-width: min(540px, calc(100% - 5.5rem));
    padding: 1.25rem 1rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 2.65rem;
  }
  .hero-slide { height: clamp(340px, 100vw, 520px); }
  .hero-slide-1 { --hero-image: url('../img/hero/hero-1080-1080-1.webp'); }
  .hero-slide-2 { --hero-image: url('../img/hero/hero-1080-1080-2.webp'); }
  .hero-slide-3 { --hero-image: url('../img/hero/hero-1080-1080-3.webp'); }
}

/* ── Overlay mobile ───────────────────────────────────────────────────────── */
#sidebarOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 999;
}
#sidebarOverlay.show { display: block; }

/* ── Badges de tags no card ─────────────────────────────────────────────────── */
.offer-tags-row { display: flex; flex-wrap: wrap; gap: .3rem; }
.offer-tag-badge {
  display: inline-flex; align-items: center;
  background: rgba(0,113,227,.1); color: var(--accent);
  border: 1px solid rgba(0,113,227,.3);
  border-radius: 0; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; line-height: 1.4; white-space: nowrap;
}

/* ── Badge de cupom no card ─────────────────────────────────────────────────── */
.offer-coupon-badge {
  display: inline-flex; align-items: center; gap: .28rem;
  width: fit-content; max-width: 100%; align-self: flex-start;
  background: rgba(128,32,128,.1); color: var(--logo-purple);
  border: 1px solid rgba(128,32,128,.45);
  border-radius: 8px; font-size: .72rem; font-weight: 600;
  padding: .24rem .52rem; margin-bottom: .25rem;
  flex-wrap: wrap; line-height: 1.25;
  font-family: inherit; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.offer-coupon-badge:hover,
.offer-coupon-badge:focus-visible {
  background: rgba(128,32,128,.16);
  border-color: var(--logo-violet);
}
.offer-coupon-badge:active {
  transform: scale(.98);
}
.offer-coupon-badge strong {
  color: var(--logo-violet);
  font-weight: 800; letter-spacing: .04em;
  font-family: ui-monospace, 'SF Mono', monospace;
}

#couponCopyToast {
  position: fixed; left: 50%; bottom: 22px; z-index: 10000;
  transform: translate(-50%, 14px);
  background: var(--special-gradient); color: #fff;
  border-radius: 999px; padding: .65rem 1rem;
  font-size: .84rem; font-weight: 700;
  box-shadow: 0 12px 28px rgba(48,32,80,.28);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#couponCopyToast.show {
  opacity: 1; transform: translate(-50%, 0);
}

/* ── Modal de cupom ──────────────────────────────────────────────────────────── */
#couponModal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center; padding: 1rem;
}
.coupon-modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
}
.coupon-modal-card {
  position: relative; z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  max-width: 320px; width: 100%;
  box-shadow: var(--shadow-hover);
}
.coupon-modal-close {
  position: absolute; top: .7rem; right: .7rem;
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
  padding: .25rem .4rem; border-radius: 6px;
  transition: background .15s, color .15s;
}
.coupon-modal-close:hover { background: var(--border); color: var(--text); }
.coupon-modal-intro {
  font-size: .82rem; color: var(--text-muted);
  margin: 0 0 .6rem; text-align: center;
}
.coupon-modal-code {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .06em;
  color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem 1rem;
  margin-bottom: .65rem; word-break: break-all; text-align: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
#couponCopyBtn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  padding: .45rem .75rem; font-size: .83rem; font-weight: 500;
  color: var(--text); cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
#couponCopyBtn:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.coupon-modal-offer-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: #fff;
  border-radius: 8px; padding: .5rem .75rem;
  text-decoration: none; font-weight: 600; font-size: .85rem;
  margin-top: .55rem; transition: background .2s;
}
.coupon-modal-offer-btn:hover { background: var(--accent-hover); color: #fff; }

/* Paginas de erro */
#app.error-app,
#app.error-app #main {
  min-height: 100vh;
}
#app.error-app #main {
  margin-left: 0;
  width: 100%;
}
.error-main {
  background: var(--bg);
}
.error-topbar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.error-hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to left, #244a93 0%, #171c3d 46%, #050914 100%);
}
.error-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/hero/hero-1920-720-3.webp');
  background-size: cover;
  background-position: center;
  opacity: .55;
  transform: scale(1.04);
}
.error-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(90deg, rgba(5,9,20,.86), rgba(23,28,61,.68) 48%, rgba(5,9,20,.9));
}
.error-hero-content {
  width: min(760px, calc(100% - 3rem));
  padding: 4rem 0;
}
.error-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: .36rem .95rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.error-code {
  margin: 1.2rem 0 .25rem;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  line-height: .9;
  color: rgba(255,255,255,.95);
  text-shadow: 0 14px 42px rgba(0,0,0,.45);
}
.error-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: .85rem;
  text-shadow: 0 10px 28px rgba(0,0,0,.72);
}
.error-message {
  max-width: 58ch;
  margin: 0 auto 1.7rem;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.65;
  text-shadow: 0 7px 24px rgba(0,0,0,.72);
}
.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.error-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  padding: .55rem 1.2rem;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255,255,255,.12);
  transition: background .18s, border-color .18s, transform .18s;
}
.error-secondary-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.52);
  transform: translateY(-1px);
}
.error-shortcuts {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.error-shortcut-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  height: 100%;
  min-height: 92px;
  padding: 1.05rem;
  color: var(--text);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.error-shortcut-card:hover {
  color: var(--text);
  border-color: rgba(0,113,227,.38);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.error-shortcut-card i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--special-gradient);
  font-size: 1.15rem;
}
.error-shortcut-card span {
  min-width: 0;
  display: grid;
  gap: .18rem;
}
.error-shortcut-card strong {
  font-size: .94rem;
  line-height: 1.25;
}
.error-shortcut-card small {
  color: var(--text-muted);
  line-height: 1.35;
}
@media (max-width: 768px) {
  .error-topbar {
    grid-template-columns: auto 1fr auto;
    padding-inline: 1rem;
  }
  .error-topbar .topbar-logo {
    justify-self: center;
    font-size: 1.25rem;
  }
  .error-topbar .topbar-left .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }
  .error-topbar .topbar-left .btn .me-1 {
    margin-right: 0 !important;
  }
  .error-topbar .topbar-left .btn i {
    font-size: 1rem;
  }
  .error-hero {
    min-height: clamp(500px, 78vh, 680px);
  }
  .error-hero-image {
    background-image: url('../img/hero/hero-1080-1080-3.webp');
  }
  .error-message {
    font-size: .98rem;
  }
  .error-actions a {
    width: min(100%, 280px);
  }
}
