/* ==========================================================================
   Customer OTP page, sign-in page and installer
   The one distinctive element is the token card: a recessed readout with a
   tick track that drains second by second, like a hardware key fob.
   ========================================================================== */

/* --- Page shell ---------------------------------------------------------------- */

.pub-body { background: var(--bg); overflow-x: hidden; }
.pub-header { position: relative; z-index: 5; max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub-header .brand { font-size: 17px; }
.pub-header .brand > svg, .pub-header .brand > img { flex: none; }
.pub-actions { display: flex; align-items: center; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status-chip.is-warn .dot { background: var(--warn); }
.status-chip.is-down .dot { background: var(--danger); }

.pub-main { max-width: 1040px; margin: 0 auto; padding: 0 24px 72px; }

/* --- Hero ------------------------------------------------------------------------ */

.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(22px, 5vh, 52px) 0 clamp(12px, 2.5vh, 24px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -90px; left: 50%; width: 100vw; height: 660px; transform: translateX(-50%);
  background:
    radial-gradient(560px 280px at 50% 26%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 72%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% 32%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 62% 72% at 50% 32%, #000 25%, transparent 78%);
  opacity: 0.6;
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); font-size: 13px; font-weight: 600; }
.hero h1 { margin: 22px auto 0; font-size: clamp(34px, 7.4vw, 62px); letter-spacing: -0.038em; line-height: 1.04; font-weight: 750; }
.grad {
  color: var(--accent);
  background: linear-gradient(92deg, var(--accent-text) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 55%, var(--info)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead { margin: 20px auto 0; max-width: 54ch; color: var(--text-2); font-size: clamp(16px, 2.3vw, 18px); }

.notice-bar { margin: 24px auto 0; max-width: 640px; text-align: left; }

/* --- Lookup form ----------------------------------------------------------------- */

.lookup {
  margin: 34px auto 0; max-width: 640px; display: flex; gap: 8px; padding: 8px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 20px 54px -22px color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lookup:focus-within { border-color: var(--accent); box-shadow: 0 20px 54px -20px color-mix(in srgb, var(--accent) 60%, transparent), var(--focus); }
.lookup-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.lookup-field .icon { position: absolute; left: 16px; color: var(--text-3); pointer-events: none; }
.lookup-input { width: 100%; height: 52px; border: 0; background: transparent; padding: 0 12px 0 46px; font-size: 16.5px; color: var(--text); }
.lookup-input:focus { outline: none; box-shadow: none; }
.lookup-input::placeholder { color: var(--text-3); }
.lookup .btn { height: 52px; border-radius: 13px; padding: 0 28px; font-size: 15px; }

.lookup-status { min-height: 24px; margin: 14px auto 0; max-width: 640px; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.lookup-status.is-error { color: var(--danger); font-weight: 560; }

.results { margin: 12px auto 0; max-width: 640px; display: flex; flex-direction: column; gap: 18px; text-align: left; }

.result-empty { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-2); }
.result-empty .icon { color: var(--text-3); margin-top: 2px; }
.result-empty strong { display: block; color: var(--text); margin-bottom: 2px; }

/* --- How it works ---------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.step-num { position: absolute; top: 20px; right: 22px; font: 700 13px var(--font-mono); color: var(--text-3); }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.step h2 { margin-top: 16px; font-size: 17px; letter-spacing: -0.012em; }
.step p { margin: 6px 0 18px; color: var(--text-2); font-size: 14.5px; }
.step-demo { margin-top: auto; padding: 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: 13px; text-align: center; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.demo-input { display: inline-flex; align-items: center; gap: 2px; width: 100%; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; font-size: 13.5px; color: var(--text-2); text-align: left; }
.caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-digits { font: 650 28px var(--font-mono); letter-spacing: 0.03em; color: var(--text); }
.demo-ticks { display: flex; gap: 2px; width: 100%; height: 6px; }
.demo-ticks i { flex: 1 1 0; border-radius: 1px; background: var(--accent); }
.demo-ticks i.off { background: var(--line-strong); opacity: 0.6; }
.demo-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 9px; background: var(--ok); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
:root[data-theme="dark"] .demo-btn { color: #052014; }

.assure { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.assure-item { display: flex; align-items: flex-start; gap: 14px; }
.assure-item .icon { flex: none; margin-top: 2px; color: var(--accent); }
.assure-item strong { display: block; font-size: 14.5px; }
.assure-item span { display: block; margin-top: 2px; color: var(--text-3); font-size: 13.5px; }

/* Once a lookup has produced a result, focus on it. */
.pub-main:has(.results > *) :is(.steps, .assure) { display: none; }


/* --- Single search box extras ---------------------------------------------------------- */

.lookup-input { padding-right: 44px; }
.lookup-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sunken); color: var(--text-2); cursor: pointer; }
.lookup-clear:hover { background: var(--line-strong); color: var(--text); }
.lookup-clear[hidden] { display: none; }
.lookup-hint { margin: 12px auto 0; max-width: 640px; min-height: 20px; font-size: 13px; color: var(--text-3); text-align: center; }
.lookup-hint.is-secret { color: var(--accent-text); font-weight: 560; }
.lookup-hint.is-email { color: var(--text-2); }
.avatar-lock { background: var(--accent-soft); color: var(--accent-text); }

/* --- Advertisement slots ------------------------------------------------------------------- */

.ad-slot { margin: 18px auto 26px; text-align: center; }
.ad-inner { display: inline-block; max-width: 100%; text-align: left; }
.ad-frame { display: inline-block; max-width: 100%; text-align: left; }
.ad-frame .ad-ph { display: block; }
.ad-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.ad-slot .ad-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ad-cta { font-size: 12px; color: var(--text-3); text-decoration: none; }
.ad-cta:hover { color: var(--accent-text); text-decoration: underline; }
.ad-link { display: inline-block; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; transition: box-shadow 0.2s, transform 0.2s; }
.ad-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ad-img { display: block; max-width: 100%; height: auto; }
.ad-ph { position: relative; display: inline-block; max-width: 100%; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface); text-decoration: none; overflow: hidden; transition: border-color 0.2s, background-color 0.2s; }
.ad-ph:hover { border-color: var(--accent); background: var(--accent-soft); }
.ad-ph-ratio { display: block; max-width: 100%; height: auto; }
.ad-ph-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; color: var(--text-2); }
.ad-ph-text strong { font-size: clamp(12px, 2.6vw, 15px); color: var(--text); }
.ad-ph-text small { font-size: clamp(10px, 2.2vw, 12px); color: var(--text-3); }
.foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); }

/* --- Token card ---------------------------------------------------------------------- */

.token { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 20px; animation: token-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes token-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.token-head { display: flex; align-items: center; gap: 12px; }
.token-head .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
.token-id { min-width: 0; flex: 1 1 auto; }
.token-name { font-weight: 650; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-email { color: var(--text-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live { background: var(--ok-soft); color: var(--ok); }
.pill-live .dot { animation: pulse 1.8s ease-in-out infinite; }
.pill-updating { background: var(--info-soft); color: var(--info); }
.pill-updating .dot { animation: pulse 0.7s ease-in-out infinite; }
.pill-disabled { background: var(--sunken); color: var(--text-2); }
.pill-error { background: var(--danger-soft); color: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }

.token-display {
  position: relative; margin-top: 18px; padding: 30px 12px 26px;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.06);
  text-align: center;
}
:root[data-theme="dark"] .token-display { box-shadow: inset 0 2px 8px rgb(0 0 0 / 0.35); }
.token-clock { position: absolute; top: 10px; right: 14px; font: 600 12.5px var(--font-mono); color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.token-clock .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.digits { display: inline-flex; align-items: center; justify-content: center; font: 600 clamp(42px, 12.5vw, 64px)/1 var(--font-mono); letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.digits .d { display: inline-block; min-width: 0.64em; text-align: center; }
.digits .gap { display: inline-block; width: 0.42em; }
.digits .d.roll { animation: roll 0.42s cubic-bezier(0.2, 0.9, 0.25, 1); }
@keyframes roll { 0% { opacity: 0; transform: translateY(45%); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.digits.is-loading .d { color: var(--line-strong); animation: shimmer 1.1s ease-in-out infinite; }
.digits.is-loading .d:nth-child(2) { animation-delay: 0.08s; }
.digits.is-loading .d:nth-child(3) { animation-delay: 0.16s; }
.digits.is-loading .d:nth-child(5) { animation-delay: 0.24s; }
.digits.is-loading .d:nth-child(6) { animation-delay: 0.32s; }
.digits.is-loading .d:nth-child(7) { animation-delay: 0.4s; }
@keyframes shimmer { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.token.is-expiring .digits { color: var(--warn); }
.token.is-stale .digits { color: var(--text-3); }

.ticks { display: flex; gap: 3px; height: 14px; margin-top: 16px; }
.ticks i { flex: 1 1 0; border-radius: 2px; background: var(--accent); transition: background-color 0.25s, opacity 0.25s; }
.ticks i.off { background: var(--line-strong); opacity: 0.55; }
.token.is-expiring .ticks i:not(.off) { background: var(--warn); }

.token-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.token-count { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.token-count strong { color: var(--text); font-weight: 650; }
.copy-btn { min-width: 150px; letter-spacing: 0.06em; font-weight: 700; font-size: 13px; }
.copy-btn.is-copied { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .copy-btn.is-copied { color: #052014; }
.token-note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.token.is-disabled .token-display, .token.is-disabled .ticks { opacity: 0.5; }

.pub-footer { max-width: 1160px; margin: 0 auto; padding: 24px 24px 34px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.pub-footer a { color: var(--text-2); }

/* --- Sign-in ---------------------------------------------------------------------------- */

.auth-top { position: fixed; top: 14px; right: 14px; }

/* --- Installer ---------------------------------------------------------------------------- */

.install-shell { max-width: 760px; margin: 0 auto; padding: 36px 16px 64px; }
.install-shell > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.install-shell h1 { font-size: 24px; letter-spacing: -0.02em; }
.install-shell .lead { color: var(--text-2); margin: 6px 0 22px; }
.install-section { margin-bottom: 18px; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 13.5px; }
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-ok { color: var(--ok); }
.req-fail { color: var(--danger); }
.install-shell .fine { font-size: 12.5px; color: var(--text-3); }
.code-box { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-family: var(--font-mono); font-size: 13px; overflow-x: auto; }

@media (max-width: 860px) {
  .steps, .assure { grid-template-columns: 1fr; }
  .assure { gap: 18px; }
}

@media (max-width: 560px) {
  .pub-header { padding: 14px 16px; }
  .pub-actions { gap: 8px; }
  .label-sm { display: none; }
  .pub-main { padding: 0 16px 56px; }
  .pub-footer { padding: 20px 16px 28px; }
  .lookup .btn { height: 50px; }
  .status-chip .status-text { display: none; }
  .status-chip { padding: 0 9px; }
  .lookup { flex-direction: column; padding: 8px; }
  .lookup .btn { width: 100%; }
  .token { padding: 16px; border-radius: 18px; }
  .token-foot { flex-direction: column; align-items: stretch; }
  .copy-btn { width: 100%; }
  .req-list { grid-template-columns: 1fr; }
}

/* --- Sidebar ad rails (wide screens only) ---------------------------------------------------- */

.pub-body { position: relative; }
.ad-rail { display: none; }
.ad-ph-text { text-align: center; }
.ad-ph-text em { margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-text); }
@media (min-width: 1440px) {
  .ad-rail { display: block; position: absolute; top: 150px; bottom: 440px; width: 160px; z-index: 1; }
  .ad-rail-left { left: calc(50% - 544px - 160px); }
  .ad-rail-right { left: calc(50% + 544px); }
  .ad-rail-inner { position: sticky; top: 24px; }
  .ad-rail .ad-slot { margin: 0; }
  .ad-rail .ad-cta { display: none; }
  .ad-rail .ad-ph-text strong { font-size: 15px; }
}

/* --- FAQ (visible content that also feeds the FAQ structured data) ---------------------------- */

.faq { margin-top: 28px; }
.faq h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--text-3); flex: none; }
.faq-item[open] summary::after { content: "\2212"; color: var(--accent-text); }
.faq-item p { margin: 0 0 16px; color: var(--text-2); font-size: 14.5px; }

/* Placeholder boxes must always be tall enough for their text, even when a wide banner shrinks on a phone. */
.ad-ph { min-height: 92px; }
@media (max-width: 560px) {
  .ad-ph { min-height: 100px; }
  .ad-ph-text small { display: none; }
  .ad-ph-text em { margin-top: 2px; }
}

/* --- Informational sections and the full footer (text and navigation only) --------------------- */

.info-section { margin-top: 28px; }
.info-section > h2 { font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -0.02em; margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.info-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.info-card h2 { font-size: clamp(20px, 2.8vw, 24px); letter-spacing: -0.02em; margin-bottom: 12px; }
.info-card p, .info-section > p { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.info-card p:last-child, .info-section > p:last-child { margin-bottom: 0; }
.info-card a, .info-section a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.how-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; counter-reset: how; }
.how-list li { position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text-2); font-size: 15px; line-height: 1.6; counter-increment: how; }
.how-list li::before { content: counter(how); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; }
.how-note { padding: 12px 16px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }

.foot-full { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 40px; position: relative; z-index: 3; background: var(--bg); }
.foot-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-about { flex: 1 1 320px; max-width: 560px; }
.foot-about strong { color: var(--text); font-size: 15px; }
.foot-about p { margin: 6px 0 0; line-height: 1.6; }

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; }
  }
.info-section-link { margin: 14px 0 0; font-size: 14.5px; }
.info-section-link a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Back button (every page except the home page) */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 8px 16px 8px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color 0.15s, color 0.15s, transform 0.15s, background-color 0.15s; }
.back-link .icon { transition: transform 0.15s; }
.back-link:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.back-link:hover .icon { transform: translateX(-3px); }
.back-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.adv-main > .back-link { align-self: flex-start; margin: 4px 0 0; }

/* --- Footer: stylish links and action buttons ------------------------------------------------ */
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 1 1 340px; max-width: 520px; align-content: flex-start; }
.pub-footer .foot-nav a { display: inline-flex; align-items: center; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s; }
.pub-footer .foot-nav a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); transform: translateY(-1px); }
.pub-footer .foot-nav a:focus-visible, .pub-footer .foot-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pub-footer .foot-actions a { text-decoration: none; }
.pub-footer .foot-actions .btn-primary, .pub-footer .foot-actions .btn-primary:hover { color: var(--on-accent); }
.pub-footer .foot-actions .btn-secondary:hover { color: var(--accent-text); }
.foot-more { font-size: 13px; padding: 0 6px; }
.pub-footer .foot-actions .foot-more { color: var(--text-2); }
.pub-footer .foot-actions .foot-more:hover { color: var(--accent-text); }

/* --- Advertiser sign-in and other account pages ----------------------------------------------- */
.auth-shell { position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 76px 16px 44px; }
.auth-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 42% at 50% 0%, var(--accent-soft), transparent 72%); }
.auth-wrap { width: min(440px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.auth-wrap > .back-link { margin: 0; }
.auth-card { position: relative; overflow: hidden; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); padding: 34px 32px 26px; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #4aa8d8)); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; }
.auth-card h1 { margin-top: 20px; text-align: center; font-size: 25px; letter-spacing: -0.025em; }
.auth-lead { margin: 8px auto 0; max-width: 34ch; text-align: center; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.auth-card form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .field-row label { font-size: 13px; font-weight: 600; color: var(--text); }
.auth-card .field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-card .field-link { font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.auth-card .field-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card .btn-lg { min-height: 48px; font-size: 15.5px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-foot a { font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-note { display: inline-flex; align-items: center; gap: 7px; }
.auth-top { position: fixed; top: 14px; right: 14px; z-index: 5; }
@media (max-width: 520px) { .auth-card { padding: 28px 22px 22px; } }
@media (max-width: 860px) { .foot-nav { justify-content: flex-start; flex-basis: 100%; max-width: none; } }
