/* ==========================================================================
   Monex — estilos base (tema preto e branco)
   ========================================================================== */

:root {
  --bg: #000;
  --bg-1: #08080a;
  --bg-2: #101012;
  --bg-3: #18181b;
  --bg-4: #222226;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f5f5f7;
  --text-2: #a6a6ae;
  --text-3: #6e6e77;
  --danger: #ff7a7a;
  --ok: #8be8ae;

  --radius: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --header-h: 64px;
  --bottom-h: 62px;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #000;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
::selection { background: #fff; color: #000; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.muted { color: var(--text-2); }

.app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.view { flex: 1; outline: none; padding-bottom: 24px; }
.view.is-leaving { opacity: 0; transition: opacity .12s ease; }
.view.view--enter { animation: view-in .38s var(--ease) both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--sal)) calc(var(--gutter) + var(--sar));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text);
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: #fff; color: #000; border-color: #fff; }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(255, 122, 122, .4); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3);
  touch-action: manipulation; transition: background .2s, transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.93); }

@media (hover: hover) {
  .btn:hover { border-color: #fff; }
  .btn--primary:hover { background: #e9e9ec; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
  .btn--danger:hover { background: rgba(255, 122, 122, .1); border-color: var(--danger); }
  .icon-btn:hover { background: var(--bg-4); }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--sat);
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand__word { font-weight: 700; letter-spacing: .28em; font-size: 14px; }

.main-nav { display: none; gap: 4px; }
.main-nav a, .bottom-nav a { text-decoration: none; color: var(--text-2); }
.main-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.main-nav a[aria-current="page"] { color: #fff; background: var(--bg-3); }
@media (hover: hover) { .main-nav a:hover { color: #fff; } }

.search {
  position: relative; display: flex; align-items: center; min-width: 0; width: 100%;
  height: 44px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--line-2); background: var(--bg-2); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.search__icon { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 100%; padding: 0 42px 0 40px;
  border: 0; background: transparent; outline: none;
  font-size: 16px; /* evita zoom automático no iPhone */
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search__clear {
  position: absolute; right: 4px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-2);
}

/* ---------- Navegação inferior (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px calc(8px + var(--sar)) calc(6px + var(--sab)) calc(8px + var(--sal));
  background: rgba(8, 8, 10, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; border-radius: 14px; font-size: 11px; font-weight: 500;
  touch-action: manipulation; transition: color .2s, background .2s;
}
.bottom-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 20px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; width: min(900px, 140vw); aspect-ratio: 1.6;
  translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 72%);
}
.hero > .container { position: relative; }
.hero--compact { padding: 28px 0 12px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.hero__title {
  font-size: clamp(2rem, 7.5vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700;
  max-width: 16ch;
  background: linear-gradient(180deg, #fff 30%, #8d8d96);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--compact .hero__title { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.hero__text { margin-top: 14px; max-width: 52ch; color: var(--text-2); font-size: clamp(1rem, 3.6vw, 1.15rem); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips--scroll {
  flex-wrap: nowrap; margin-top: 0; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font-size: 14px; font-weight: 600; touch-action: manipulation;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip.is-active { background: #fff; color: #000; border-color: #fff; }
@media (hover: hover) { .chip:not(.is-active):hover { color: #fff; border-color: #fff; } }

/* ---------- Seções e grades ---------- */
.section { padding-block: 24px 8px; scroll-margin-top: calc(var(--header-h) + var(--sat) + 12px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.section__head a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.count {
  display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 4px; border-radius: 999px;
  background: var(--bg-4); color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
}
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

/* ---------- Cartão de aplicativo ---------- */
.app-card {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .25s, transform .2s var(--ease), background .25s;
  touch-action: manipulation;
}
.app-card:active { transform: scale(.985); }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line); }
.app-card__body { min-width: 0; }
.app-card__name { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card__desc, .site-card__desc {
  margin-top: 2px; font-size: 13.5px; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card__meta, .site-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ---------- Cartão de site ---------- */
.site-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .25s, transform .2s var(--ease);
  touch-action: manipulation;
}
.site-card:active { transform: scale(.985); }
.site-card__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); }
.site-card__body { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
.site-card__icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line); }
.site-card__text { min-width: 0; }
.site-card__name { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }

@media (hover: hover) {
  .app-card:hover, .site-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .app-card:hover { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
}

/* ---------- Selos ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 18px;
  border: 1px solid var(--line-2); color: #fff; background: rgba(255, 255, 255, .06);
}

/* ---------- Estados: carregando, vazio, erro ---------- */
.skeleton { border-radius: var(--radius-md); background: linear-gradient(100deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton--card { height: 94px; }
.skeleton--details { height: 320px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.state {
  display: grid; place-items: center; text-align: center; gap: 8px; padding: 48px 20px; margin-block: 16px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2);
}
.state h3 { color: var(--text); font-size: 1.1rem; }
.state svg { color: var(--text-3); margin-bottom: 4px; }
.state .btn { margin-top: 10px; }

/* ---------- Instalação no iPhone ---------- */
.install {
  position: relative; overflow: hidden; padding: 24px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-3), var(--bg-1) 60%);
}
.install::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent);
}
.install__head { position: relative; }
.install__head h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); letter-spacing: -.02em; line-height: 1.15; }
.install__head p { margin-top: 8px; color: var(--text-2); }
.steps { position: relative; list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps__n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 700; font-size: 14px;
}
.steps strong { display: block; line-height: 1.3; padding-top: 6px; }
.steps p { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.steps svg { display: inline-block; vertical-align: -4px; margin-inline: 2px; }
.install__note { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.install__actions { position: relative; margin-top: 16px; }

/* ---------- Detalhes ---------- */
.details { padding-block: 16px 24px; max-width: 860px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 14px; }
@media (hover: hover) { .back-link:hover { color: #fff; } }
.details__hero { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; margin-top: 4px; }
.details__icon { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(255, 255, 255, .06); }
.details__title { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; margin-top: 8px; }
.details__sub { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.details__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.details__cover { margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.details__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-2); }
.stats > div { padding: 14px 8px; text-align: center; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats span { font-size: 12px; color: var(--text-3); }
.details__actions { margin-top: 20px; display: grid; gap: 10px; }
.details__note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.details__section { margin-top: 32px; }
.details__section > h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 12px; }
.details__text { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.shots {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: none; height: 340px; width: auto; max-width: none; border-radius: 20px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--bg-3); }

/* ---------- Painel administrativo ---------- */
.admin { padding-block: 24px; }
.admin__head { display: grid; gap: 16px; }
.admin__title { font-size: clamp(1.6rem, 6vw, 2.3rem); letter-spacing: -.03em; }
.admin__head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font-size: 14px; }
.notice strong { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.stat { padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.stat strong { display: block; font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--text-2); }
.tabs { display: flex; gap: 6px; margin-top: 24px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.tab.is-active { background: #fff; color: #000; }
.tab.is-active .count { background: rgba(0, 0, 0, .12); color: #000; }
.admin-list { display: grid; gap: 10px; margin-top: 16px; }
.row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 14px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-2);
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.row__thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--line); }
.row__thumb--cover { width: 88px; height: 56px; border-radius: 10px; grid-column: auto; }
.row__main { min-width: 0; }
.row__main h3 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__main p { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); white-space: nowrap; }
.status--published { color: var(--ok); border-color: rgba(139, 232, 174, .35); }
.status--draft { color: var(--text-2); }

/* ---------- Modal / bottom sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.modal__sheet {
  position: relative; width: 100%; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px calc(var(--gutter) + var(--sar)) calc(20px + var(--sab)) calc(var(--gutter) + var(--sal));
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0; background: var(--bg-1);
  transform: translateY(40px); opacity: 0; transition: transform .3s var(--ease), opacity .25s ease;
  -webkit-overflow-scrolling: touch;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__sheet { transform: none; opacity: 1; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.modal--confirm .modal__sheet h2 { font-size: 1.2rem; margin-bottom: 8px; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field label { font-size: 14px; font-weight: 600; }
.field input:not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-3); font-size: 16px; /* evita zoom no iPhone */
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a6a6ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.field input[type="file"] { font-size: 14px; color: var(--text-2); }
.field input[type="file"]::file-selector-button {
  min-height: 40px; margin-right: 12px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--text); font-weight: 600; cursor: pointer;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.field__hint { font-size: 12px; color: var(--text-3); }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews:empty { display: none; }
.previews img { height: 72px; width: auto; max-width: 140px; border-radius: 12px; border: 1px solid var(--line-2); object-fit: cover; background: var(--bg-3); }
.form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 4px; }
.form__actions .btn { flex: 1; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 32px; padding-block: 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.site-footer__inner { display: grid; gap: 20px; }
.site-footer__brand { display: flex; gap: 12px; align-items: center; }
.site-footer__brand img { width: 28px; height: 28px; }
.site-footer__brand strong { color: #fff; letter-spacing: .24em; font-size: 13px; }
.site-footer__brand p { font-size: 13px; color: var(--text-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__links a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
@media (hover: hover) { .site-footer__links a:hover { color: #fff; } }
.site-footer__copy { font-size: 12px; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed; left: 0; right: 0; z-index: 400; display: grid; justify-items: center; gap: 8px; pointer-events: none;
  bottom: calc(var(--bottom-h) + var(--sab) + 16px); padding-inline: 16px;
}
.toast {
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center;
  background: #fff; color: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .25s ease, transform .3s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error { background: var(--danger); color: #1a0000; }

/* ---------- Login do painel ---------- */
.login { display: grid; place-items: center; padding-block: 32px; min-height: 70vh; }
.login__card {
  width: 100%; max-width: 420px; display: grid; gap: 14px; padding: 28px 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(170deg, var(--bg-3), var(--bg-1) 65%);
}
.login__logo { width: 56px; height: 56px; }
.login__title { font-size: 1.6rem; letter-spacing: -.02em; }
.login__demo { display: block; margin-top: 6px; }
.login code { padding: 1px 6px; border-radius: 6px; background: var(--bg-4); color: #fff; font-size: 13px; }
.password { position: relative; }
.password input { padding-right: 84px !important; }
.password__toggle {
  position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; touch-action: manipulation;
}
