/* ===== Página pública da empresa ===== */
.pub-body {
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at -10% -10%, #ead9ff 0%, transparent 55%),
    radial-gradient(50rem 40rem at 110% 0%, #ffd9ec 0%, transparent 50%),
    radial-gradient(60rem 40rem at 50% 120%, #ffe2c7 0%, transparent 55%),
    #fbf8ff;
}

.pub-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.pub-card {
  position: relative;
  width: 100%; max-width: 440px;
  margin-top: 44px;
  padding: 68px 20px 22px;
  background: var(--grad) top / 100% 6px no-repeat, rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(76, 29, 149, .14), 0 2px 6px rgba(76, 29, 149, .06);
  text-align: center;
}

.pub-logo {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 104px; height: 104px; border-radius: 30px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 34px; letter-spacing: .02em;
  box-shadow: 0 12px 30px rgba(124, 58, 237, .28), 0 0 0 6px #fff;
}
.pub-logo.has-img { background: #fff; }
.pub-logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-logo--gac span { font-size: 26px; letter-spacing: .14em; }

.pub-name { margin: 0 0 6px; font-size: clamp(23px, 6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pub-desc { margin: 0 auto 22px; max-width: 34ch; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.pub-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

.pub-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pub-link {
  width: 100%; min-height: 60px;
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px 11px 11px; border: 0; border-radius: 18px;
  color: #fff; text-decoration: none; text-align: left; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(30, 10, 60, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pub-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 10, 60, .2); }
.pub-link:active { transform: scale(.985); filter: brightness(.95); }
.pub-link__icon {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .2);
}
.pub-link__icon .icon { width: 22px; height: 22px; }
.pub-link__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pub-link__chev { opacity: .85; display: grid; }
.pub-link__chev .icon { width: 18px; height: 18px; }

/* Cores das marcas (tons escolhidos para manter texto branco legível) */
.t-whatsapp { background: linear-gradient(120deg, #15803d, #0b7a55); }
.t-whatsapp .pub-link__icon { background: #25d366; }
.t-instagram { background: linear-gradient(120deg, #c13584 0%, #833ab4 100%); }
.t-instagram .pub-link__icon { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.t-google_reviews { background: #1a73e8; }
.t-google_reviews .pub-link__icon { background: #fff; color: #1a73e8; }
.t-menu { background: linear-gradient(120deg, #c2410c, #be185d); }
.t-wifi { background: linear-gradient(120deg, #6d28d9, #4f46e5); }
.t-location { background: linear-gradient(120deg, #d93025, #b4232f); }
.t-website { background: linear-gradient(120deg, #334155, #1e293b); }
.t-facebook { background: linear-gradient(120deg, #0866ff, #0a5bd3); }
.t-tiktok { background: linear-gradient(120deg, #111, #262626); }
.t-tiktok .pub-link__icon .icon { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.t-custom { background: linear-gradient(120deg, #6d28d9, #db2777); }

/* Painel de Wi-Fi */
.wifi {
  margin-top: 12px; padding: 14px; text-align: left;
  background: #f6f1ff; border: 1px solid #e4d6ff; border-radius: 18px;
}
.wifi__row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e0d2fb; }
.wifi__row:last-of-type { border-bottom: 0; }
.wifi__k { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wifi__v { min-width: 0; overflow-wrap: break-word; word-break: break-word; font-size: 16px; }
.wifi__pass { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
.wifi__tip { margin: 10px 0 12px; font-size: 13px; color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 11px; border-radius: 999px; border: 1px solid #d9c7fb; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--violet-700);
}
.chip.is-done { background: var(--ok-bg); border-color: #a7e3c8; color: var(--ok); }
.chip .icon { width: 15px; height: 15px; }
.wifi__qr-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 14px; border: 1px solid #d9c7fb; background: #fff;
  font-weight: 700; color: var(--violet-700);
}
.wifi__qr { margin-top: 12px; text-align: center; }
.wifi__qr svg { width: min(240px, 100%); height: auto; margin: 0 auto 10px; border-radius: 12px; border: 1px solid #eee; }
.wifi__qr p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.wifi__sec { font-weight: 600; }

.pub-footer { margin-top: 22px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8a8199; }
.pub-footer .gac-mark { font-size: 12.5px; }

.pub-retry { margin-top: 4px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; }

/* Carregamento */
.pub-card--loading { display: grid; justify-items: center; gap: 12px; }
.pub-card--loading .pub-logo { box-shadow: 0 0 0 6px #fff; }
.sk-line { width: 70%; height: 14px; border-radius: 8px; }
.sk-line--title { width: 55%; height: 24px; }
.sk-btn { width: 100%; height: 60px; border-radius: 18px; }

@media (min-width: 720px) {
  .pub-wrap { justify-content: center; }
  .pub-card { margin-top: 56px; padding: 72px 28px 26px; }
}
