/* =========================================================
   PAINEL DOS NOIVOS · Larissa & Leandro
   Identidade: noite e amanhecer alpinos, ouro sobre azul-marinho,
   papel creme. Animações só com transform/opacity.
   ========================================================= */

:root {
  --navy: #1E2D40;
  --navy-deep: #0F1B2B;
  --navy-light: #2C4060;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #9B7A3F;
  --gold-grad: linear-gradient(135deg, #E8D5B0 0%, #C9A96E 45%, #9B7A3F 100%);
  --cream: #FDF8F0;
  --ivory: #FFFDF8;
  --cream-alt: #F5EDE0;
  --rose: #C4837A;
  --blush: #F2DCD5;
  --sky: #DCE6F0;
  --text: #2D2926;
  --text-light: #6B6460;
  --border: #E8DDD0;

  --ok: #2E7356;
  --ok-bg: #E7F2EC;
  --ok-line: #BFDCCB;
  --warn: #93600F;
  --warn-bg: #FBF1DD;
  --warn-line: #EED9A8;
  --bad: #A8402F;
  --bad-bg: #F9E6E1;
  --bad-line: #EBC2B8;
  --info-bg: #EAF0F6;
  --info-line: #C9D7E6;

  --page: #F6F0E6;
  --shadow-sm: 0 1px 2px rgba(15, 27, 43, .05);
  --shadow: 0 1px 2px rgba(15, 27, 43, .04), 0 10px 30px -12px rgba(15, 27, 43, .14);
  --shadow-lg: 0 30px 80px -20px rgba(15, 27, 43, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 272px;
  --topbar-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-script: 'Great Vibes', 'Cormorant Garamond', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-modal, body.has-sidebar { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold-light); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ícones em linha fina (sprite do site + símbolos do painel) */
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.icon-inline { width: 16px; height: 16px; margin: -2px 1px 0; }

.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------
   Botões
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-sans); font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-busy { opacity: .65; pointer-events: none; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .8rem; }
.btn-lg { min-height: 54px; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold-grad); background-origin: border-box; color: var(--navy-deep);
  box-shadow: 0 8px 22px -10px rgba(155, 122, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(155, 122, 63, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary { background: var(--navy); color: var(--ivory); box-shadow: 0 8px 20px -12px rgba(15, 27, 43, .8); }
.btn-primary:hover { background: var(--navy-light); }
.btn-primary .icon { color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gold); }
.btn-outline:hover { background: rgba(201, 169, 110, .12); }
.btn-outline-light { background: transparent; color: var(--gold-light); border-color: rgba(232, 213, 176, .45); }
.btn-outline-light:hover { background: rgba(232, 213, 176, .1); border-color: var(--gold-light); }
.btn-ghost { background: var(--cream-alt); color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: #EFE4D3; }
.btn-danger { background: var(--bad); color: #fff; box-shadow: 0 8px 20px -12px rgba(168, 64, 47, .9); }
.btn-danger:hover { background: #923626; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 2px;
  background: none; border: 0; color: var(--gold-dark);
  font-size: .84rem; font-weight: 600; text-decoration: none;
}
.link-btn .icon { width: 17px; height: 17px; }
.link-btn:hover { color: var(--navy); }
.link-danger { color: var(--bad); }
.link-danger:hover { color: #7c2a1d; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--ivory); color: var(--navy);
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--cream-alt); border-color: var(--gold-light); color: var(--gold-dark); transform: translateY(-1px); }
.icon-btn-danger { color: var(--bad); }
.icon-btn-danger:hover { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.icon-btn-dark { background: rgba(255, 253, 248, .06); border-color: rgba(232, 213, 176, .2); color: var(--gold-light); }
.icon-btn-dark:hover { background: rgba(255, 253, 248, .12); color: var(--ivory); border-color: rgba(232, 213, 176, .45); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px dashed var(--gold);
  background: rgba(201, 169, 110, .08); color: var(--gold-dark);
  font-size: .8rem; font-weight: 600;
  transition: transform .2s var(--ease), background-color .2s;
}
.chip-btn:hover { background: rgba(201, 169, 110, .16); transform: translateY(-1px); }
.chip-btn:active .icon { transform: rotate(90deg); }
.chip-btn .icon { transition: transform .3s var(--ease); }

/* ---------------------------------------------------------
   Formulários
   --------------------------------------------------------- */
.field { margin-bottom: 18px; min-width: 0; }
.field > label, .field > .label {
  display: block; margin-bottom: 7px;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-light);
}
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea,
.emoji-input, .image-link {
  width: 100%; min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B7A3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #ADA49B; }
.field input:focus, .field select:focus, .field textarea:focus, .emoji-input:focus, .image-link:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, .18);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(168, 64, 47, .1); }
.hint { margin-top: 7px; font-size: .78rem; color: var(--text-light); line-height: 1.5; }
.hint code, .card-text code { font-size: .78rem; background: var(--cream-alt); padding: 1px 6px; border-radius: 6px; }
.field-error { margin-top: 7px; font-size: .8rem; color: var(--bad); font-weight: 500; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--bad-line);
  background: var(--bad-bg); color: var(--bad);
  font-size: .85rem; font-weight: 500;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.form-actions-start { justify-content: flex-start; }

.input-wrap { position: relative; }
.input-wrap.has-lead input { padding-left: 46px !important; }
.input-wrap.has-trail input { padding-right: 52px !important; }
.input-lead { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); pointer-events: none; width: 19px; height: 19px; }
.pw-toggle {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; color: var(--text-light);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
}
.pw-toggle:hover { color: var(--gold-dark); }
.input-wrap.has-prefix input { padding-left: 54px !important; font-weight: 600; font-size: 1.02rem !important; font-variant-numeric: tabular-nums; }
.input-prefix {
  position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 42px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border); border-radius: 11px 0 0 11px;
  background: var(--cream); color: var(--gold-dark); font-weight: 600; font-size: .85rem;
}
.price-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.price-row .input-wrap { flex: 1 1 180px; max-width: 260px; }

.input-code {
  text-align: center; letter-spacing: .5em; font-size: 1.5rem !important; font-weight: 600;
  font-variant-numeric: tabular-nums; padding-left: calc(14px + .5em) !important;
}
.input-code-sm { font-size: 1.15rem !important; letter-spacing: .35em; }

/* Interruptor */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; width: 50px; height: 28px; flex-shrink: 0;
  border-radius: 999px; background: #D8CFC2; transition: background-color .2s;
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(15, 27, 43, .25);
  transition: transform .25s var(--ease);
}
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; line-height: 1.3; }
.switch-text strong { font-size: .9rem; color: var(--navy); }
.switch-text small { font-size: .78rem; color: var(--text-light); }

/* Avisos */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--info-line);
  background: var(--info-bg); color: var(--navy);
  font-size: .85rem; line-height: 1.5;
}
.notice .icon { width: 19px; height: 19px; margin-top: 1px; }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: var(--navy); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.notice-danger { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }

/* Pílulas e selos */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  border: 1px solid transparent;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill-bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.pill-muted { background: var(--cream-alt); color: var(--text-light); border-color: var(--border); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .03em;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-muted { background: #EEE8DF; color: var(--text-light); }
.badge-gold { background: rgba(201, 169, 110, .16); color: var(--gold-dark); }

/* Esqueletos (carregamento) */
.skeleton {
  position: relative; display: block; overflow: hidden;
  background: #EEE6D9; border-radius: 8px;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-dark { background: rgba(255, 255, 255, .08); }
.skeleton-dark::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.skeleton-num { width: 64px; height: 34px; margin: 4px 0; }
.skeleton-line { width: 100%; height: 16px; }
.skeleton-block { width: 100%; height: 64px; border-radius: 12px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Monograma */
.monogram {
  position: relative; width: 92px; height: 92px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.monogram-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, .0), inset 0 0 0 5px rgba(201, 169, 110, .45);
}
.monogram-ring::before, .monogram-ring::after {
  content: ''; position: absolute; left: 50%; width: 6px; height: 6px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
}
.monogram-ring::before { top: -3px; }
.monogram-ring::after { bottom: -3px; }
.monogram-text {
  position: relative; font-family: var(--f-script); font-size: 2.15rem; line-height: 1;
  color: var(--gold-dark); white-space: nowrap; padding-top: 4px;
}
.monogram-sm { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
.monogram-sm .monogram-text { font-size: 1.3rem; color: var(--gold-light); }
.monogram-sm .monogram-ring::before, .monogram-sm .monogram-ring::after { width: 4px; height: 4px; }
.monogram-sm .monogram-ring::before { top: -2px; }
.monogram-sm .monogram-ring::after { bottom: -2px; }

/* =========================================================
   LOGIN
   ========================================================= */
.login {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px 18vh;
  overflow: hidden; isolation: isolate;
}
.login-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(242, 220, 213, .95) 0%, rgba(232, 213, 176, .55) 28%, rgba(44, 64, 96, 0) 60%),
    linear-gradient(180deg, #0A1420 0%, var(--navy-deep) 22%, var(--navy) 48%, var(--navy-light) 70%, #7E7A86 88%, #D9BFA9 100%);
}
.login-stars, .login-stars-2 {
  position: absolute; inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 28%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 37% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 51% 22%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 66% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 31%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 44%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 47%, rgba(255,255,255,.55) 50%, transparent 51%);
  opacity: .75;
}
.login-stars-2 {
  background-image:
    radial-gradient(1px 1px at 4% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 29% 17%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 36%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 59% 5%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 40%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 96% 24%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }
.login-glow {
  position: absolute; left: 50%; bottom: 8%; width: 140vmax; height: 50vmax; z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 213, 176, .35), transparent);
}
.login-mountain {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -2;
  width: 100%; height: 46vh; min-height: 260px;
  object-fit: cover; object-position: 50% 100%;
  mix-blend-mode: multiply;
}

.login-card {
  position: relative; width: 100%; max-width: 430px;
  padding: 38px 36px 26px;
  border-radius: 26px;
  background: rgba(255, 253, 248, .93);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(232, 213, 176, .7);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .8);
  text-align: center;
  animation: rise .7s var(--ease) both;
}
.login-card::before {
  content: ''; position: absolute; inset: 8px; border-radius: 20px; pointer-events: none;
  border: 1px solid rgba(201, 169, 110, .28);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-names { font-family: var(--f-script); font-size: 2.1rem; color: var(--navy); line-height: 1.2; margin-top: 14px; }
.login-title {
  margin-top: 4px; font-family: var(--f-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark);
}
.login-sub { margin: 8px 0 24px; font-family: var(--f-serif); font-style: italic; font-size: 1.08rem; color: var(--text-light); }
.login-form { text-align: left; }
.login-form .field input { background: rgba(255, 255, 255, .9); }
.login-step { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.login .notice { text-align: left; }
.login-back { display: flex; margin: 8px auto 0; }
.totp-intro { text-align: center; margin-bottom: 18px; }
.totp-intro h2 { font-family: var(--f-serif); font-size: 1.45rem; color: var(--navy); font-weight: 600; margin: 10px 0 6px; }
.totp-intro p { font-size: .86rem; color: var(--text-light); }
.totp-emblem {
  display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light);
}
.totp-emblem .icon { width: 26px; height: 26px; }
.login-foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 22px; font-size: .74rem; letter-spacing: .04em; color: var(--text-light);
}
.login-foot .icon { width: 16px; height: 16px; color: var(--gold-dark); }
.login-site-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px;
  font-size: .8rem; font-weight: 500; color: var(--navy-light); text-decoration: none;
}
.login-site-link .icon { width: 16px; height: 16px; }
.login-site-link:hover { color: var(--gold-dark); }

/* =========================================================
   ESTRUTURA DO PAINEL
   ========================================================= */
.app { min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(201, 169, 110, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, #132238 55%, var(--navy) 100%);
  color: rgba(255, 253, 248, .78);
  border-right: 1px solid rgba(201, 169, 110, .18);
  overflow-y: auto; overscroll-behavior: contain;
  transition: transform .32s var(--ease);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid rgba(232, 213, 176, .12);
}
.sidebar-brand-text { min-width: 0; flex: 1; }
.sidebar-names {
  font-family: var(--f-serif); font-style: italic; font-size: 1.22rem; font-weight: 500;
  color: var(--ivory); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-role { margin-top: 3px; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.sidebar-close { display: none; }

.sidebar-nav { flex: 1; padding: 10px 14px 18px; }
.nav-label {
  margin: 18px 10px 8px; font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(232, 213, 176, .5);
}
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  min-height: 46px; padding: 0 12px; margin: 2px 0;
  border-radius: 12px;
  color: rgba(255, 253, 248, .74); text-decoration: none;
  font-size: .86rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.nav-link > span:first-of-type { flex: 1; min-width: 0; }
.nav-link .icon { color: var(--gold); opacity: .85; width: 21px; height: 21px; }
.nav-link:hover { background: rgba(255, 253, 248, .06); color: var(--ivory); }
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(201, 169, 110, .22), rgba(201, 169, 110, .06));
  color: var(--gold-light);
}
.nav-link[aria-current="page"]::before {
  content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gold-grad);
}
.nav-link[aria-current="page"] .icon { opacity: 1; color: var(--gold-light); }
.nav-count {
  min-width: 24px; padding: 1px 8px; border-radius: 999px;
  background: rgba(232, 213, 176, .14); color: var(--gold-light);
  font-size: .7rem; font-weight: 600; text-align: center;
}
.nav-count:empty { display: none; }
.nav-lock { width: 15px !important; height: 15px !important; opacity: .55 !important; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: #E3A74A; box-shadow: 0 0 0 3px rgba(227, 167, 74, .2); }
.nav-dot.is-bad { background: #E0715C; box-shadow: 0 0 0 3px rgba(224, 113, 92, .22); }

.sidebar-foot { position: relative; padding: 16px 14px 70px; border-top: 1px solid rgba(232, 213, 176, .12); }
.sidebar-countdown {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; padding: 12px 14px; border-radius: 12px;
  background: rgba(201, 169, 110, .1); border: 1px solid rgba(201, 169, 110, .2);
  font-family: var(--f-serif); font-size: 1.05rem; font-style: italic; color: var(--gold-light);
}
.sidebar-countdown .icon { color: var(--gold); }
.sidebar-foot-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: none; border: 0; text-align: left; text-decoration: none;
  font-size: .82rem; font-weight: 500; color: rgba(255, 253, 248, .62);
  transition: background-color .2s, color .2s;
}
.sidebar-foot-link .icon { width: 18px; height: 18px; color: var(--gold); opacity: .7; }
.sidebar-foot-link:hover { background: rgba(255, 253, 248, .06); color: var(--ivory); }
.sidebar-mountain {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px;
  fill: none; stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round;
  opacity: .35; pointer-events: none;
}
.sidebar-mountain-detail { opacity: .6; }

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(10, 20, 32, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 14px;
  min-height: var(--topbar-h); padding: 10px 36px;
  background: rgba(246, 240, 230, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-menu { display: none; }
.topbar-titles { flex: 1; min-width: 0; }
.topbar-kicker { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dark); }
.topbar-title {
  font-family: var(--f-serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.content { flex: 1; width: 100%; max-width: 1280px; padding: 30px 36px 60px; }
.tab { display: flex; flex-direction: column; gap: 24px; animation: fadeIn .35s var(--ease) both; }

/* =========================================================
   CARTÕES
   ========================================================= */
.card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  min-width: 0;
}
.card-soft { background: linear-gradient(180deg, #FFFDF8, #FBF5EA); }
.card-accent { border-color: var(--gold-light); box-shadow: 0 0 0 4px rgba(201, 169, 110, .12), var(--shadow); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-head-wrap { flex-wrap: wrap; align-items: center; }
.card-head-title { display: flex; align-items: flex-start; gap: 14px; min-width: 0; flex: 1 1 280px; }
.card-head h2 { font-family: var(--f-serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.card-desc { margin-top: 4px; font-size: .84rem; color: var(--text-light); }
.card-text { font-size: .9rem; color: var(--text); margin-bottom: 14px; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #FFF8EA, #F3E6CF);
  border: 1px solid var(--gold-light); color: var(--gold-dark);
}
.card-icon .icon { width: 21px; height: 21px; }
.card-icon-danger { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.card-foot { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--border); }
.card-foot .link-btn .icon { width: 16px; height: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* =========================================================
   INÍCIO
   ========================================================= */
.welcome {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px 38px; min-height: 190px;
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(201, 169, 110, .28), transparent 55%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--ivory);
  box-shadow: var(--shadow);
}
.welcome::after {
  content: ''; position: absolute; inset: 10px; border-radius: 16px; pointer-events: none;
  border: 1px solid rgba(232, 213, 176, .2);
}
.welcome-mtn {
  position: absolute; right: -4%; bottom: 0; z-index: -1;
  width: 78%; height: 100%; object-fit: cover; object-position: 50% 100%;
  filter: invert(1) sepia(.4); mix-blend-mode: screen; opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.welcome-greet { font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.welcome-names { font-family: var(--f-script); font-weight: 400; font-size: 3rem; line-height: 1.15; color: var(--gold-light); margin: 6px 0 4px; }
.welcome-sub { font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; color: rgba(255, 253, 248, .78); max-width: 520px; }
.welcome-count {
  flex-shrink: 0; text-align: center;
  padding: 18px 26px; border-radius: 18px;
  background: rgba(255, 253, 248, .06); border: 1px solid rgba(232, 213, 176, .3);
}
.welcome-count-num { display: block; font-family: var(--f-serif); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--ivory); }
.welcome-count-label { display: block; margin-top: 6px; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat {
  position: relative; overflow: hidden;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--ivory); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat::after {
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
  background: var(--gold-grad); opacity: .7;
}
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  background: var(--cream-alt); color: var(--gold-dark);
}
.stat-label { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.stat-value { margin-top: 4px; font-family: var(--f-serif); font-size: 2.15rem; font-weight: 600; line-height: 1.1; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { margin-top: 4px; font-size: .76rem; color: var(--text-light); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
}
.check-item.is-loading { padding: 18px 16px; }
.check-dot {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
}
.check-dot .icon { width: 19px; height: 19px; }
.lvl-ok .check-dot { background: var(--ok-bg); color: var(--ok); }
.lvl-warn .check-dot { background: var(--warn-bg); color: var(--warn); }
.lvl-bad .check-dot { background: var(--bad-bg); color: var(--bad); }
.lvl-info .check-dot { background: var(--info-bg); color: var(--navy-light); }
.lvl-warn { border-color: var(--warn-line); background: #FFFBF3; }
.lvl-bad { border-color: var(--bad-line); background: #FFF8F6; }
.check-body { flex: 1; min-width: 0; }
.check-title { font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.35; }
.check-text { margin-top: 3px; font-size: .8rem; color: var(--text-light); line-height: 1.5; }
.check-action { margin-top: 4px; min-height: 36px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 64px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--navy);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.quick:hover { transform: translateY(-2px); border-color: var(--gold-light); box-shadow: 0 10px 22px -14px rgba(15, 27, 43, .35); }
.quick-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
}
.quick-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.quick-text strong { font-size: .85rem; }
.quick-text small { font-size: .74rem; color: var(--text-light); }

.recent-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.recent-item { display: flex; gap: 12px; align-items: flex-start; }
.recent-item p { font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; color: var(--text); line-height: 1.45; }
.recent-item small { display: block; margin-top: 2px; font-size: .74rem; color: var(--text-light); font-style: normal; font-family: var(--f-sans); }
.recent-empty { font-size: .86rem; color: var(--text-light); }

/* Avatar com iniciais */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-deep);
  font-weight: 700; font-size: .8rem; letter-spacing: .03em;
}

/* =========================================================
   LISTAS (presentes, dress code, hotéis, dicas)
   ========================================================= */
.list-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.list-summary:empty { display: none; }
.item-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.item:hover { border-color: var(--gold-light); box-shadow: 0 10px 24px -16px rgba(15, 27, 43, .35); }
.item.is-loading { padding: 10px; }
.item.is-hidden { background: #FBF8F3; }
.item.is-hidden .item-media, .item.is-hidden .item-title { opacity: .55; }
.drag-handle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 52px; margin-left: -6px; border: 0; border-radius: 10px;
  background: none; color: #B9AE9F; cursor: grab; touch-action: none;
}
.drag-handle:hover { color: var(--gold-dark); background: var(--cream-alt); }
.drag-handle:active { cursor: grabbing; }
.item-media {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.medallion {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDF8 0%, #F6EBD6 70%);
  border: 1px solid var(--gold-light);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(201, 169, 110, .35);
  font-size: 1.75rem; line-height: 1;
}
.medallion-icon { color: var(--gold-dark); }
.medallion-icon .icon { width: 28px; height: 28px; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: .95rem; color: var(--navy); line-height: 1.35; }
.item-sub {
  margin-top: 2px; font-size: .8rem; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.price-tag { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 600; color: var(--gold-dark); line-height: 1; }
.stars { color: var(--gold); letter-spacing: .1em; font-size: .85rem; }
.item-link { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--navy-light); text-decoration: none; }
.item-link .icon { width: 14px; height: 14px; }
.item-link:hover { color: var(--gold-dark); }
.item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.color-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.color-chips:empty { display: none; }
.field .color-chips { margin-top: 8px; }
.color-chip {
  padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 500;
  background: var(--cream-alt); border: 1px solid var(--border); color: var(--navy-light);
}

.sortable-ghost { opacity: .35; }
.sortable-chosen { box-shadow: 0 18px 40px -16px rgba(15, 27, 43, .45); border-color: var(--gold); }
.sortable-drag { opacity: .95; }

/* Estado vazio */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 40px 20px; border-radius: 16px;
  border: 1.5px dashed var(--gold-light); background: linear-gradient(180deg, #FFFDF8, #FBF4E8);
}
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 4px;
  background: #fff; border: 1px solid var(--gold-light); color: var(--gold-dark);
}
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { font-family: var(--f-serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.empty p { font-size: .85rem; color: var(--text-light); max-width: 380px; }
.empty .btn { margin-top: 8px; }

/* =========================================================
   RECADOS
   ========================================================= */
.segmented {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--cream-alt); border: 1px solid var(--border);
}
.segment {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: none; color: var(--text-light); font-size: .8rem; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.segment span { opacity: .7; font-weight: 500; }
.segment.is-active { background: var(--navy); color: var(--ivory); box-shadow: var(--shadow-sm); }

.msg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.msg-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
}
.msg-card::before {
  content: '\201C'; position: absolute; right: 18px; top: 2px;
  font-family: var(--f-serif); font-size: 4rem; line-height: 1; color: var(--gold-light);
}
.msg-card.is-hidden { background: #FBF8F3; }
.msg-card.is-hidden .msg-text { opacity: .6; }
.msg-head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.msg-who { min-width: 0; }
.msg-name { font-weight: 600; color: var(--navy); font-size: .92rem; overflow-wrap: anywhere; }
.msg-date { font-size: .74rem; color: var(--text-light); }
.msg-text { font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.msg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.msg-actions { display: flex; gap: 8px; }
.msg-grid .empty { grid-column: 1 / -1; }

/* =========================================================
   PIX (cofre)
   ========================================================= */
.vault-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.vault {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 30px; border-radius: 22px;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(201, 169, 110, .22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(232, 213, 176, .035) 0 2px, transparent 2px 9px),
    linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #24364F);
  color: var(--ivory);
  border: 1px solid rgba(201, 169, 110, .45);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.vault::after {
  content: ''; position: absolute; inset: 9px; border-radius: 16px; pointer-events: none;
  border: 1px dashed rgba(232, 213, 176, .22);
}
.vault-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vault-head-text { flex: 1 1 200px; min-width: 0; }
.vault-lock {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-deep);
  box-shadow: 0 0 0 5px rgba(201, 169, 110, .15);
}
.vault-lock .icon { width: 26px; height: 26px; }
.vault-kicker { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.vault h2 { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; color: var(--ivory); line-height: 1.15; }
.seal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  border: 1px solid transparent;
}
.seal .icon { width: 16px; height: 16px; }
.seal-ok { background: rgba(46, 115, 86, .25); color: #A9E2C6; border-color: rgba(169, 226, 198, .35); }
.seal-bad { background: rgba(168, 64, 47, .3); color: #FFC8BC; border-color: rgba(255, 200, 188, .4); }
.seal-muted { background: rgba(255, 253, 248, .08); color: rgba(255, 253, 248, .7); border-color: rgba(255, 253, 248, .15); }
.vault-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin-bottom: 20px; }
.vault-row { padding: 12px 0; border-bottom: 1px solid rgba(232, 213, 176, .14); min-width: 0; }
.vault-row-key { grid-column: 1 / -1; }
.vault-row dt { font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(232, 213, 176, .7); margin-bottom: 4px; }
.vault-row dd { font-size: .95rem; color: var(--ivory); overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; }
.vault-key {
  flex: 1; min-width: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 1.3rem; letter-spacing: .04em; color: var(--gold-light); overflow-wrap: anywhere;
}
.vault-key .skeleton { max-width: 260px; height: 22px; }
.vault-empty { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: rgba(255, 253, 248, .75); }
.vault-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline-item { position: relative; display: flex; gap: 14px; padding: 8px 0 12px; }
.timeline-item::before {
  content: ''; position: absolute; left: 7px; top: 26px; bottom: -6px; width: 1px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: relative; flex-shrink: 0; width: 15px; height: 15px; margin-top: 4px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
}
.timeline-item:first-child .timeline-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 110, .2); }
.timeline-key { font-family: 'SFMono-Regular', Consolas, monospace; font-size: .86rem; color: var(--navy); overflow-wrap: anywhere; }
.timeline-meta { font-size: .76rem; color: var(--text-light); }
.timeline-empty { font-size: .86rem; color: var(--text-light); padding: 6px 0; }

.key-status { min-height: 22px; margin-top: 7px; font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.key-status .icon { width: 17px; height: 17px; }
.key-status.is-ok { color: var(--ok); }
.key-status.is-bad { color: var(--bad); }
.formats {
  margin: -4px 0 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--border);
}
.formats-title { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-light); margin-bottom: 8px; }
.formats-title .icon { width: 17px; height: 17px; color: var(--gold-dark); }
.formats ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.formats li { font-size: .8rem; color: var(--text-light); display: flex; flex-direction: column; }
.formats li strong { color: var(--navy); font-size: .8rem; }
.formats li span { overflow-wrap: anywhere; }
.formats .hint { margin-top: 10px; }

.qr-preview { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.qr-frame {
  flex-shrink: 0; padding: 14px; border-radius: 18px; background: #fff;
  border: 1px solid var(--gold-light); box-shadow: 0 0 0 6px rgba(201, 169, 110, .1);
}
.qr-frame img { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-info { flex: 1 1 260px; min-width: 0; }
.qr-info h3 { font-family: var(--f-serif); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.qr-info p { font-size: .86rem; color: var(--text-light); margin-top: 6px; }
.qr-info .btn { margin-top: 14px; }
.qr-value { font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-dark); }

.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; font-size: .86rem; color: var(--text); }
.bullets li::before {
  content: ''; position: absolute; left: 4px; top: .55em; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}

/* Confirmação de identidade */
.reauth-box, .confirm-box { text-align: center; }
.reauth-emblem, .confirm-emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px;
  background: var(--navy); color: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(201, 169, 110, .18);
}
.reauth-emblem .icon, .confirm-emblem .icon { width: 28px; height: 28px; }
.confirm-emblem.is-danger { background: var(--bad-bg); color: var(--bad); box-shadow: 0 0 0 6px rgba(168, 64, 47, .08); }
.reauth-box h2, .confirm-box h2 { font-family: var(--f-serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.reauth-desc, #confirm-message { margin: 8px auto 18px; font-size: .9rem; color: var(--text-light); max-width: 340px; }
.reauth-box form { text-align: left; }
.reauth-summary {
  text-align: left; margin-bottom: 18px; padding: 12px 16px; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--border);
}
.reauth-summary:empty { display: none; }
.reauth-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .83rem; }
.reauth-summary dt { color: var(--text-light); }
.reauth-summary dd { color: var(--navy); font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }

/* =========================================================
   SEGURANÇA
   ========================================================= */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.meter span { position: relative; height: 6px; border-radius: 6px; background: #ECE4D8; overflow: hidden; }
.meter span::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--meter-color, var(--bad));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.meter[data-score="1"] { --meter-color: #C0533F; }
.meter[data-score="2"] { --meter-color: #D69A3A; }
.meter[data-score="3"] { --meter-color: #6E9F55; }
.meter[data-score="4"] { --meter-color: var(--ok); }
.meter[data-score="1"] span:nth-child(-n+1)::after,
.meter[data-score="2"] span:nth-child(-n+2)::after,
.meter[data-score="3"] span:nth-child(-n+3)::after,
.meter[data-score="4"] span::after { transform: scaleX(1); }
.meter-label { margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--text-light); }
.rules { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.rules li { position: relative; padding-left: 22px; font-size: .78rem; color: var(--text-light); }
.rules li::before {
  content: ''; position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #C9BFB1;
}
.rules li.is-ok { color: var(--ok); }
.rules li.is-ok::before { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.match { min-height: 20px; margin-top: 6px; font-size: .78rem; font-weight: 600; }
.match.is-ok { color: var(--ok); }
.match.is-bad { color: var(--bad); }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 38px; font-size: .86rem; color: var(--text); min-height: 26px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light); font-size: .74rem; font-weight: 700;
}
.steps-tight { margin: 0; }
.twofa-panel > p { font-size: .88rem; color: var(--text); margin-bottom: 4px; }
.twofa-scan { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.twofa-qr {
  flex-shrink: 0; width: 196px; height: 196px; padding: 10px; border-radius: 16px; background: #fff;
  border: 1px solid var(--gold-light); box-shadow: 0 0 0 5px rgba(201, 169, 110, .1);
  display: flex; align-items: center; justify-content: center;
}
.twofa-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.twofa-scan .steps { flex: 1 1 220px; }
.secret-box, .danger-zone, .guide, .image-link-box {
  border-radius: 14px; border: 1px solid var(--border); background: var(--cream);
  margin-bottom: 16px;
}
.secret-box summary, .danger-zone summary, .guide summary, .image-link-box summary {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px;
  cursor: pointer; list-style: none;
  font-size: .82rem; font-weight: 600; color: var(--navy-light);
}
.secret-box summary::-webkit-details-marker, .danger-zone summary::-webkit-details-marker,
.guide summary::-webkit-details-marker, .image-link-box summary::-webkit-details-marker { display: none; }
.secret-box summary::after, .danger-zone summary::after, .guide summary::after, .image-link-box summary::after {
  content: ''; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
details[open] > summary::after { transform: rotate(-135deg); }
.secret-box > *:not(summary), .danger-zone > *:not(summary), .guide > *:not(summary) { padding: 0 16px 16px; }
.danger-zone { background: #FFF9F7; border-color: var(--bad-line); }
.danger-zone summary { color: var(--bad); }
.secret-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.secret-code {
  flex: 1 1 200px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border);
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .95rem; letter-spacing: .08em; color: var(--navy);
  overflow-wrap: anywhere;
}
.guide { margin-top: 16px; margin-bottom: 0; }
.guide .steps { margin-top: 4px; }
.code-block {
  margin: 8px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--navy-deep); color: var(--gold-light);
  font-family: 'SFMono-Regular', Consolas, monospace; font-size: .78rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.shield-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.shield-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--text); }
.shield-list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select-wrap {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--cream-alt);
}
.select-wrap .icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--gold-dark); pointer-events: none; }
.select-wrap select {
  min-height: 42px; padding: 0 36px 0 38px; border: 0; border-radius: 999px; background: transparent;
  font-size: .8rem; font-weight: 600; color: var(--navy); -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B7A3F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select-wrap select:focus { outline: none; }
.select-wrap:focus-within { box-shadow: 0 0 0 3px rgba(201, 169, 110, .25); }

.table-wrap { border-radius: 14px; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.audit-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.audit-table th {
  padding: 12px 16px; text-align: left; white-space: nowrap;
  background: var(--navy); color: var(--gold-light);
  font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.audit-table td { padding: 12px 16px; border-top: 1px solid #F0E8DC; vertical-align: middle; }
.audit-table tbody tr:nth-child(even) td { background: #FFFCF6; }
.audit-table tbody tr:hover td { background: var(--cream); }
.audit-when { white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.audit-when small { display: block; color: var(--text-light); font-size: .72rem; }
.audit-detail { color: var(--text-light); overflow-wrap: anywhere; max-width: 380px; }
.audit-ip { font-family: 'SFMono-Regular', Consolas, monospace; font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.audit-event { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.audit-event::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ev-ok { background: var(--ok-bg); color: var(--ok); }
.ev-warn { background: var(--warn-bg); color: var(--warn); }
.ev-bad { background: var(--bad-bg); color: var(--bad); }
.ev-info { background: var(--info-bg); color: var(--navy-light); }
.table-empty { text-align: center; padding: 30px 16px !important; color: var(--text-light); }
.table-more { display: flex; justify-content: center; margin-top: 14px; }
.table-more:has(> [hidden]:only-child) { display: none; }

/* =========================================================
   MODAIS
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(10, 20, 32, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 30px;
  border-radius: 24px; background: var(--ivory);
  border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform .3s var(--ease);
}
.modal-box:focus { outline: none; }
.modal.is-open .modal-box { transform: none; }
.modal-lg { max-width: 680px; }
.modal-sm { max-width: 440px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-kicker { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-dark); }
.modal-head h2 { font-family: var(--f-serif); font-size: 1.85rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.modal-x {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--cream-alt); color: var(--navy);
  transition: transform .2s var(--ease), background-color .2s;
}
.modal-x:hover { transform: rotate(90deg); background: #EFE4D3; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  margin: 8px -30px -28px; padding: 18px 30px;
  border-top: 1px solid var(--border); background: var(--cream);
  position: sticky; bottom: -28px; border-radius: 0 0 24px 24px;
}
.modal-foot-center { justify-content: center; margin: 8px 0 0; padding: 0; border: 0; background: none; position: static; }

.idea-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 6px 6px 6px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(201, 169, 110, .14), rgba(201, 169, 110, .04));
  border: 1px solid rgba(201, 169, 110, .3);
  font-size: .84rem; color: var(--navy-light);
}
.idea-bar > .icon { color: var(--gold-dark); }
.gift-grid { grid-template-columns: 120px minmax(0, 1fr); }
.field-emoji { position: relative; }
.emoji-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.emoji-current {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-light);
  background: radial-gradient(circle at 35% 30%, #FFFDF8 0%, #F6EBD6 70%);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(201, 169, 110, .35);
  font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease);
}
.emoji-current:hover { transform: scale(1.05); }
.emoji-input { min-height: 44px !important; padding: 8px 10px !important; text-align: center; font-size: 1.1rem !important; max-width: 100px; }
.emoji-pop {
  position: absolute; top: 96px; left: 0; z-index: 20;
  width: 312px; max-width: calc(100vw - 56px);
  padding: 10px; border-radius: 16px; background: #fff;
  border: 1px solid var(--gold-light); box-shadow: var(--shadow-lg);
  animation: fadeIn .2s var(--ease) both;
}
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.emoji-other {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--border); font-size: .76rem; color: var(--text-light);
}
.emoji-other .emoji-input { flex: 1; min-height: 44px !important; max-width: none; }
.emoji-caption { font-size: .72rem; font-weight: 600; color: var(--gold-dark); text-align: center; width: 64px; }
.emoji-opt {
  aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 10px; background: none;
  font-size: 1.45rem; line-height: 1;
  transition: transform .15s var(--ease), background-color .15s;
}
.emoji-opt:hover, .emoji-opt:focus-visible { background: var(--cream-alt); transform: scale(1.12); }

/* Campo de imagem */
.image-field { display: flex; flex-direction: column; gap: 8px; }
.image-drop {
  position: relative; overflow: hidden;
  min-height: 150px; border-radius: 16px;
  border: 1.5px dashed var(--gold); background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.image-drop:hover, .image-drop.is-drag { background: #FBF1E1; border-color: var(--gold-dark); }
.image-drop:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.image-preview { width: 100%; height: 220px; object-fit: cover; }
.image-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 24px 16px; text-align: center; color: var(--text-light);
}
.image-placeholder .icon { width: 34px; height: 34px; color: var(--gold-dark); margin-bottom: 4px; }
.image-placeholder strong { font-size: .88rem; color: var(--navy); }
.image-placeholder span { font-size: .76rem; }
.has-image .image-placeholder { display: none; }
.image-busy {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 253, 248, .85); color: var(--navy); font-weight: 600; font-size: .86rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.is-uploading .image-busy { opacity: 1; }
.image-tools { display: none; gap: 16px; flex-wrap: wrap; }
.has-image .image-tools { display: flex; }
.image-link-box { margin-bottom: 0; }
.image-link-box summary { font-weight: 500; }
.image-link-box summary .icon { width: 16px; height: 16px; color: var(--gold-dark); }
.image-link-box .image-link { margin: 0 16px 16px; width: calc(100% - 32px); }

/* =========================================================
   TOASTS
   ========================================================= */
.toasts {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  width: 380px; max-width: 100%; padding: 12px 10px 12px 14px;
  border-radius: 16px; background: var(--navy-deep); color: var(--ivory);
  border: 1px solid rgba(201, 169, 110, .35);
  box-shadow: 0 20px 50px -18px rgba(10, 20, 32, .7);
  font-size: .86rem; line-height: 1.45;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateX(16px); }
.toast-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
}
.toast-icon .icon { width: 18px; height: 18px; }
.toast-success .toast-icon { background: rgba(169, 226, 198, .16); color: #A9E2C6; }
.toast-error .toast-icon { background: rgba(255, 200, 188, .16); color: #FFB4A4; }
.toast-info .toast-icon { background: rgba(232, 213, 176, .16); color: var(--gold-light); }
.toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-x {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: rgba(255, 253, 248, .55);
}
.toast-x:hover { color: var(--ivory); background: rgba(255, 253, 248, .08); }
.toast-x .icon { width: 16px; height: 16px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .vault-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .msg-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); box-shadow: none; width: min(86vw, 320px); }
  .sidebar.is-open { transform: none; box-shadow: 30px 0 60px -20px rgba(10, 20, 32, .6); }
  .sidebar-close { display: inline-flex; }
  body.has-sidebar .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .topbar { padding: 8px 16px; min-height: 66px; gap: 10px; }
  .topbar-menu { display: inline-flex; }
  .topbar-title { font-size: 1.45rem; }
  .content { padding: 18px 16px 48px; }
  .hide-sm { display: none; }
  .topbar-actions .btn { padding: 0; width: 44px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .tab { gap: 16px; }
  .card { padding: 20px 18px; border-radius: 16px; }
  .card-head { margin-bottom: 16px; gap: 12px; }
  .card-head h2 { font-size: 1.35rem; }
  .card-head-title { gap: 12px; flex-basis: 100%; }
  .card-head-wrap > .btn { width: 100%; }
  .card-icon { width: 40px; height: 40px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .gift-grid { grid-template-columns: 96px minmax(0, 1fr); }
  .gift-grid .field-grow { grid-column: 2; }
  .form-actions .btn { flex: 1 1 auto; }

  .welcome { flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 18px; }
  .welcome-names { font-size: 2.35rem; }
  .welcome-sub { font-size: 1rem; }
  .welcome-mtn { width: 150%; right: -25%; opacity: .1; }
  .welcome-count { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; }
  .welcome-count-num { font-size: 2.2rem; }
  .welcome-count-label { margin: 0; }
  .stats { gap: 12px; }
  .stat { padding: 16px; }
  .stat::after { left: 16px; right: 16px; }
  .stat-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .stat-icon .icon { width: 18px; height: 18px; }
  .stat-label { font-size: .6rem; letter-spacing: .1em; }
  .stat-value { font-size: 1.6rem; }
  .stat-sub { font-size: .7rem; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); }

  .item { flex-wrap: wrap; padding: 12px; gap: 12px; }
  .item-media, .medallion { width: 56px; height: 56px; }
  .medallion { font-size: 1.5rem; }
  .item-body { flex: 1 1 calc(100% - 120px); }
  .item-actions { width: 100%; justify-content: flex-end; padding-top: 10px; border-top: 1px dashed var(--border); }
  .drag-handle { height: 44px; width: 32px; }

  .segmented { width: 100%; }
  .segment { flex: 1; padding: 0 8px; }

  .vault { padding: 22px 18px; border-radius: 18px; }
  .vault h2 { font-size: 1.35rem; }
  .vault-data { grid-template-columns: minmax(0, 1fr); }
  .vault-key { font-size: 1.05rem; }
  .vault-actions .btn { flex: 1 1 100%; }
  .formats ul { grid-template-columns: minmax(0, 1fr); }
  .qr-frame img { width: 180px; height: 180px; }
  .qr-preview { justify-content: center; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 94dvh; border-radius: 22px 22px 0 0; padding: 22px 18px; border-bottom: 0; }
  .modal-sm { border-radius: 22px 22px 0 0; }
  .modal-head h2 { font-size: 1.55rem; }
  .modal-foot { margin: 8px -18px -22px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); bottom: -22px; border-radius: 0; }
  .modal-foot .btn { flex: 1 1 0; }
  .modal-foot-center { margin: 8px 0 0; padding: 0; }

  .twofa-qr { width: 180px; height: 180px; margin: 0 auto; }

  /* Tabela vira cartões no celular */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .audit-table thead { display: none; }
  .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
  .audit-table tr {
    margin-bottom: 10px; padding: 12px 14px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
  }
  .audit-table td { padding: 3px 0; border: 0; background: none !important; max-width: none; }
  .audit-table td.audit-when { display: flex; gap: 6px; align-items: baseline; font-size: .78rem; }
  .audit-table td.audit-when small { display: inline; }
  .audit-table td.audit-ev { margin: 4px 0; }
  .audit-table td.table-empty { border: 1px solid var(--border); border-radius: 14px; background: #fff !important; }

  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .toast { width: 100%; }

  .login { padding: 24px 16px 140px; align-items: flex-start; }
  .login-card { padding: 30px 22px 20px; border-radius: 22px; margin-top: 4vh; }
  .login-names { font-size: 1.85rem; }
  .login .monogram { width: 80px; height: 80px; }
  .login .monogram-text { font-size: 1.9rem; }
  .sidebar-names { white-space: normal; }
  .card-head { flex-wrap: wrap; }
  .card-head > .pill { margin-left: 52px; }
  .login-mountain { height: 34vh; min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* Ajustes finais */
.card, .vault, .welcome { scroll-margin-top: 92px; }
.no-drag .drag-handle { display: none; }
.script-preview { font-family: var(--f-script); font-weight: 400; font-size: 1.35rem; color: var(--gold-dark); }

/* Algarismos alinhados (a Cormorant usa algarismos antigos por padrão) */
.stat-value, .welcome-count-num, .price-tag, .qr-value, .sidebar-countdown, .welcome-sub,
.timeline-meta, .audit-when, .msg-date, .recent-item small { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.field > label.switch {
  display: flex; margin-bottom: 0; text-transform: none; letter-spacing: 0;
  font-size: inherit; font-weight: inherit; color: inherit;
}
.qr-info .qr-value { font-family: var(--f-serif); font-size: 1.7rem; font-weight: 600; color: var(--gold-dark); margin-top: 2px; }
.qr-info .modal-kicker { margin-bottom: 2px; }
#pix-qr-card .card-head { padding-right: 56px; }
#pix-qr-card .card-head > .icon-btn { position: absolute; top: 18px; right: 18px; }
