/* ── Fontes locais (sem requisição externa) ─────────────────── */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/CormorantGaramond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/Poppins-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/Poppins-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Poppins-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Poppins-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --bg-body:       #050d0d;
  --bg-dark:       #0a2e2e;
  --bg-surf:       #0d2424;
  --bg-surf2:      #0b1e1e;
  --bg-glass:      rgba(10,46,46,.55);
  --bg-purple:     #2a1c38;
  --bg-purple-d:   #1e1428;

  --gold:          #BF9155;
  --gold-md:       #D8BF85;
  --gold-lt:       #FDE3A8;
  --gold-glow:     rgba(191,145,85,.18);
  --gold-border:   rgba(191,145,85,.22);

  --text:          #F2E3CE;
  --text-muted:    rgba(242,227,206,.58);
  --text-dim:      rgba(242,227,206,.28);

  --border:        rgba(191,145,85,.18);
  --border-sub:    rgba(255,255,255,.055);

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 9999px;

  --sidebar-w:  260px;
  --topbar-h:   60px;

  --c-lead:    #4A90D9;
  --c-neg:     #E6A817;
  --c-fechado: #3BA55C;
  --c-perdido: #c0392b;

  --shadow-card: 0 4px 24px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.25);
  --shadow-modal: 0 24px 80px rgba(0,0,0,.6), 0 4px 20px rgba(0,0,0,.4);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 16px; scroll-behavior: smooth }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--bg-body);
  background-image:
    radial-gradient(ellipse 90% 70% at -5% -5%,  rgba(38,22,58,.65) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 105% 105%, rgba(11,55,55,.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 15%,   rgba(14,50,45,.25) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dot grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.app, .login-body, .portal-body { position: relative; z-index: 1 }

/* ── Aurora de fundo (movimento bem leve) ───────────────────── */
body::after {
  content: '';
  position: fixed; inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(closest-side at 20% 25%, rgba(38,22,58,.55) 0%, transparent 100%),
    radial-gradient(closest-side at 82% 78%, rgba(11,55,55,.5) 0%, transparent 100%),
    radial-gradient(closest-side at 60% 12%, rgba(191,145,85,.10) 0%, transparent 100%);
  filter: blur(28px);
  opacity: .85;
  animation: aurora 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0%   { transform: translate3d(-2.5%, -1.5%, 0) scale(1.02) }
  50%  { transform: translate3d(2%, 2.5%, 0)     scale(1.06) }
  100% { transform: translate3d(-1%, 3%, 0)      scale(1.03) }
}

/* ── Brilho que segue o cursor (desktop) ────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(191,145,85,.10) 0%, rgba(191,145,85,.04) 35%, transparent 68%);
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.is-visible { opacity: 1 }
.cursor-glow.is-hot {
  background: radial-gradient(circle, rgba(253,227,168,.16) 0%, rgba(191,145,85,.06) 35%, transparent 68%);
}
@media (hover: none), (max-width: 768px) {
  .cursor-glow { display: none }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none }
  html { scroll-behavior: auto }
}

a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }
button { font-family: inherit; cursor: pointer; border: none; outline: none }
input, select, textarea { font-family: inherit; outline: none }
table { border-collapse: collapse; width: 100% }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.3 }

/* ── Tipografia utilitária ──────────────────────────────────── */
.text-gold    { color: var(--gold-lt) }
.text-muted   { color: var(--text-muted) }
.text-dim     { color: var(--text-dim) }
.text-sm      { font-size: .875rem }
.text-xs      { font-size: .75rem }
.text-right   { text-align: right }
.text-center  { text-align: center }
.font-mono    { font-family: 'Courier New', monospace; letter-spacing: .04em }
.font-display { font-family: 'Cormorant Garamond', serif }
.fw-600       { font-weight: 600 }

/* ── Layout utilitário ─────────────────────────────────────── */
.flex            { display: flex }
.flex-col        { flex-direction: column }
.items-center    { align-items: center }
.justify-between { justify-content: space-between }
.gap-2 { gap: .5rem } .gap-3 { gap: .75rem } .gap-4 { gap: 1rem }
.mt-2 { margin-top: .5rem } .mt-3 { margin-top: .75rem } .mt-4 { margin-top: 1rem }
.mb-4 { margin-bottom: 1rem } .mb-6 { margin-bottom: 1.5rem }
.w-full { width: 100% }
.truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }

/* ── Divider ───────────────────────────────────────────────── */
.divider { border:none; border-top:1px solid var(--border-sub); margin:1.5rem 0 }

/* ══════════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════════ */
.login-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.25rem;
}
.login-wrap { width:100%; max-width:430px }

.login-card {
  background: linear-gradient(145deg, rgba(12,50,50,.9) 0%, rgba(8,35,35,.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  padding: 2.75rem 2.5rem;
  box-shadow:
    0 0 0 1px rgba(191,145,85,.06),
    0 0 60px rgba(191,145,85,.07),
    0 40px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-sub);
}
.login-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.2rem;
  color: #0a1a0a;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(191,145,85,.35), 0 0 0 1px rgba(253,227,168,.15);
}
.login-logo-title { font-weight: 600; font-size: .9375rem; color: var(--text) }
.login-logo-sub {
  font-size: .68rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: .12em; margin-top: 3px;
}
.login-footer {
  text-align: center; color: var(--text-dim);
  font-size: .72rem; margin-top: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT (ADMIN)
══════════════════════════════════════════════════════════════ */
.app { display: flex; min-height: 100vh }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10,42,42,.97) 0%, rgba(7,28,28,.99) 100%);
  border-right: 1px solid var(--border-sub);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sidebar-brand {
  padding: 1.375rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-sub);
}
.sidebar-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: .95rem;
  color: #0a1a0a;
  margin-bottom: .625rem;
  box-shadow: 0 4px 14px rgba(191,145,85,.3);
}
.sidebar-brand-name { font-size: .8125rem; font-weight: 600; color: var(--text) }
.sidebar-brand-sub {
  font-size: .63rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: .12em; margin-top: 2px;
}
.sidebar-nav {
  flex: 1; padding: .75rem .75rem;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.nav-section-label {
  font-size: .63rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim);
  padding: .875rem .5rem .375rem;
}
.nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: .8375rem; font-weight: 400;
  transition: background .18s, color .18s, box-shadow .18s;
  position: relative;
}
.nav-link:hover {
  background: rgba(191,145,85,.07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(191,145,85,.08);
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(191,145,85,.14) 0%, rgba(191,145,85,.04) 100%);
  color: var(--gold-lt);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(191,145,85,.12);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.nav-icon {
  width: 17px; height: 17px; flex-shrink: 0; opacity: .6;
  transition: opacity .18s;
}
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon { opacity: 1 }

.sidebar-footer {
  padding: .875rem .75rem;
  border-top: 1px solid var(--border-sub);
}
.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
  padding: .375rem .25rem .625rem;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(42,28,56,.9), rgba(74,50,100,.8));
  border: 1px solid rgba(191,145,85,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: var(--gold-md);
  flex-shrink: 0;
}
.sidebar-user-name {
  font-size: .8rem; font-weight: 500;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user-role { font-size: .65rem; color: var(--text-dim) }
.btn-logout {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .625rem;
  border-radius: var(--r-sm);
  color: var(--text-muted); font-size: .8rem;
  width: 100%; background: transparent;
  transition: background .16s, color .16s;
}
.btn-logout:hover { background: rgba(192,57,43,.1); color: #e74c3c }

/* ── Main area ── */
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0 }
.topbar {
  height: var(--topbar-h);
  background: linear-gradient(90deg, rgba(5,13,13,.92) 0%, rgba(7,20,20,.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-sub);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 1.75rem; gap: 1rem;
}
.topbar-title { font-size: .9375rem; font-weight: 600; flex: 1 }
.content { flex: 1; padding: 1.75rem 2rem }

/* ── Hamburger (mobile) ── */
.btn-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: .5rem; background: transparent; border: none;
}
.btn-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-muted); border-radius: 1px;
  transition: background .15s;
}
.btn-hamburger:hover span { background: var(--text) }

/* ── Sidebar overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 150;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
}
.page-title { font-size: 1.3125rem; font-weight: 700 }
.page-subtitle { font-size: .8375rem; color: var(--text-muted); margin-top: .125rem }

/* ══════════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: linear-gradient(145deg, rgba(14,40,40,.8) 0%, rgba(9,26,26,.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.375rem 1.5rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(191,145,85,.18), 0 0 24px rgba(191,145,85,.06);
  border-color: rgba(191,145,85,.28);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(253,227,168,.3) 60%, transparent 100%);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,145,85,.06) 0%, transparent 70%);
  pointer-events: none;
}
.stat-label {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: .5rem;
}
.stat-value {
  font-size: 1.875rem; font-weight: 700;
  color: var(--gold-lt); line-height: 1.1;
  letter-spacing: -.02em;
}
.stat-value.sm { font-size: 1.25rem }
.stat-sub { font-size: .72rem; color: var(--text-dim); margin-top: .3rem }
.stat-accent { color: var(--gold) }

/* ══════════════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(145deg, rgba(14,40,40,.75) 0%, rgba(9,26,26,.85) 100%);
  border: 1px solid var(--border-sub);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card + .card { margin-top: 1.25rem }
.card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title { font-size: .9375rem; font-weight: 600 }

/* ══════════════════════════════════════════════════════════════
   TABELAS
══════════════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border-sub);
}
.table { min-width: 580px }
.table thead { background: rgba(0,0,0,.2) }
.table th {
  padding: .6875rem 1rem;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border-sub);
}
.table td {
  padding: .875rem 1rem;
  font-size: .85rem; color: var(--text);
  border-bottom: 1px solid var(--border-sub);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none }
.table tbody tr {
  transition: background .15s;
}
.table tbody tr:hover { background: rgba(191,145,85,.04) }
.table-link { cursor: pointer }
.table-empty {
  text-align: center; padding: 3.5rem;
  color: var(--text-dim); font-size: .875rem;
}

/* ══════════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  font-size: .67rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; border: 1px solid transparent;
}
.badge-lead     { background:rgba(74,144,217,.12); color:#7ab8f5; border-color:rgba(74,144,217,.25) }
.badge-neg      { background:rgba(230,168,23,.12); color:#f0c040; border-color:rgba(230,168,23,.25) }
.badge-fechado  { background:rgba(59,165,92,.12);  color:#5bba6f; border-color:rgba(59,165,92,.25)  }
.badge-perdido  { background:rgba(192,57,43,.1);   color:#e74c3c; border-color:rgba(192,57,43,.22)  }
.badge-pago     { background:rgba(59,165,92,.12);  color:#5bba6f; border-color:rgba(59,165,92,.25)  }
.badge-pendente { background:rgba(230,168,23,.12); color:#f0c040; border-color:rgba(230,168,23,.25) }
.badge-ativo    { background:rgba(59,165,92,.1);   color:#5bba6f }
.badge-inativo  { background:rgba(255,255,255,.05); color:var(--text-muted) }

/* ══════════════════════════════════════════════════════════════
   FORMULÁRIOS
══════════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
.form-grid .full { grid-column: 1 / -1 }
.form-group { display: flex; flex-direction: column; gap: .3rem }
.form-label {
  font-size: .78rem; font-weight: 500; color: var(--text-muted);
}
.form-input, .form-select, .form-textarea {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: .625rem .875rem;
  color: var(--text); font-size: .875rem; width: 100%;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(0,0,0,.45);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 12px rgba(191,145,85,.08);
}
.form-input::placeholder { color: var(--text-dim) }
.form-select option { background: #0a2e2e; color: var(--text) }
.form-textarea { resize: vertical; min-height: 80px }

/* Filter bar */
.filtros-card { padding: 1rem 1.15rem; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .75rem 1rem; align-items: end;
}
.filter-bar .form-group { min-width: 0; margin: 0; }
.filter-bar .form-label { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.filter-actions { display: flex; gap: .5rem; align-items: end; }
.filter-actions .btn { flex: 1; }

/* ══════════════════════════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: .855rem; font-weight: 500;
  transition: all .18s; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #c9985e 0%, #9d6e32 100%);
  color: #0f1e0f; font-weight: 600;
  border-color: rgba(191,145,85,.5);
  box-shadow: 0 2px 12px rgba(191,145,85,.2), inset 0 1px 0 rgba(253,227,168,.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-md) 0%, var(--gold) 100%);
  box-shadow: 0 4px 20px rgba(191,145,85,.35), 0 0 0 1px rgba(191,145,85,.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) }
.btn-ghost {
  background: rgba(255,255,255,.035);
  border-color: var(--border-sub);
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.065);
  color: var(--text);
  border-color: rgba(255,255,255,.1);
}
.btn-danger {
  background: transparent; border-color: rgba(192,57,43,.3); color: #e57373;
}
.btn-danger:hover { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.45) }
.btn-sm  { padding: .375rem .75rem; font-size: .8rem }
.btn-xs  { padding: .22rem .55rem; font-size: .75rem; border-radius: 6px }
.btn-block { width: 100% }
.btn-icon { padding: .44rem; border-radius: var(--r-sm) }

/* ══════════════════════════════════════════════════════════════
   MODAIS
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal-overlay[hidden] { display: none }
.modal {
  background: linear-gradient(145deg, rgba(12,46,46,.97) 0%, rgba(8,30,30,.99) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-modal), 0 0 0 1px rgba(191,145,85,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.modal-lg  { max-width: 680px }
.modal-xl  { max-width: 820px }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-sub);
}
.modal-title { font-size: .9375rem; font-weight: 600 }
.modal-close {
  width: 28px; height: 28px; background: transparent; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: background .14s, color .14s;
}
.modal-close:hover { background: rgba(255,255,255,.08); color: var(--text) }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1 }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-sub);
  display: flex; justify-content: flex-end; gap: .75rem;
}

/* ══════════════════════════════════════════════════════════════
   ALERTAS & TOASTS
══════════════════════════════════════════════════════════════ */
.alert {
  padding: .75rem 1rem; border-radius: var(--r-sm);
  font-size: .875rem; margin-bottom: 1.25rem;
}
.alert-error   { background:rgba(192,57,43,.1); border:1px solid rgba(192,57,43,.28); color:#e57373 }
.alert-success { background:rgba(59,165,92,.1); border:1px solid rgba(59,165,92,.28); color:#5bba6f }

.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem; z-index: 2000;
  pointer-events: none;
}
.toast {
  padding: .875rem 1.25rem; border-radius: var(--r-md);
  font-size: .8375rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
  max-width: 320px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast-success {
  background: linear-gradient(135deg, rgba(15,46,26,.95) 0%, rgba(10,32,18,.98) 100%);
  border:1px solid rgba(59,165,92,.35); color:#5bba6f;
}
.toast-error {
  background: linear-gradient(135deg, rgba(46,16,15,.95) 0%, rgba(32,10,10,.98) 100%);
  border:1px solid rgba(192,57,43,.35); color:#e74c3c;
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════════ */
.timeline { list-style: none }
.timeline-item {
  display: flex; gap: .875rem;
  padding-bottom: 1.1rem; position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px; top: 22px; bottom: 0;
  width: 1px; background: var(--border-sub);
}
.timeline-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-surf2); border: 2px solid var(--border-sub);
  flex-shrink: 0; margin-top: 2px;
  transition: border-color .18s;
}
.timeline-dot.active {
  border-color: var(--gold);
  background: rgba(191,145,85,.12);
  box-shadow: 0 0 8px rgba(191,145,85,.2);
}
.timeline-title { font-size: .8375rem; font-weight: 500 }
.timeline-date  { font-size: .72rem; color: var(--text-dim) }
.timeline-note  { font-size: .8rem; color: var(--text-muted); margin-top: .25rem }

/* ══════════════════════════════════════════════════════════════
   PORTAL DO PARCEIRO
══════════════════════════════════════════════════════════════ */
/* portal-body herda o fundo escuro do body — NÃO sobrescrever com transparent
   (era isso que deixava a página do parceiro com fundo branco) */
.portal-body { min-height: 100vh }
.portal-header {
  background: linear-gradient(90deg, rgba(8,32,32,.95) 0%, rgba(6,22,22,.92) 100%);
  border-bottom: 1px solid var(--border-sub);
  padding: .875rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.portal-logo { display: flex; align-items: center; gap: .875rem }
.portal-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: .875rem; color: #0a1a0a;
  box-shadow: 0 4px 12px rgba(191,145,85,.3);
}
.portal-brand-name { font-size: .875rem; font-weight: 600 }
.portal-brand-sub  { font-size: .68rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em }
.portal-right { display: flex; align-items: center; gap: 1.5rem }
.portal-user-name  { font-size: .875rem; font-weight: 600; text-align: right }
.portal-user-code  { font-size: .72rem; color: var(--gold); font-family: monospace; text-align: right }
.portal-content { max-width: 920px; margin: 0 auto; padding: 2rem 1.5rem }
.portal-welcome { margin-bottom: 2rem }
.portal-welcome h1 { font-size: 1.4rem; font-weight: 700 }
.portal-welcome p  { color: var(--text-muted); font-size: .875rem; margin-top: .25rem }

/* ══════════════════════════════════════════════════════════════
   SEÇÃO TÍTULO
══════════════════════════════════════════════════════════════ */
.section-title {
  font-size: .875rem; font-weight: 600;
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-sub);
  display: flex; align-items: center; justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3.5rem 2rem;
  color: var(--text-dim);
}
.empty-state-icon { font-size: 2.25rem; margin-bottom: 1rem; opacity: .3 }
.empty-state h3 { font-size: .9375rem; font-weight: 500; color: var(--text-muted); margin-bottom: .375rem }
.empty-state p  { font-size: .8375rem }

/* ══════════════════════════════════════════════════════════════
   ONBOARDING — parceiro novo (portal sem indicações)
══════════════════════════════════════════════════════════════ */
.onboard { display: flex; flex-direction: column; gap: 1rem }

.onboard-hero {
  position: relative; overflow: hidden;
  padding: 2rem;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(191,145,85,.10) 0%, transparent 55%),
    var(--bg-glass);
  border: 1px solid var(--gold-border);
}
.onboard-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-lt);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  padding: .3rem .65rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.onboard-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem; font-weight: 500; line-height: 1.15;
  color: var(--text);
}
.onboard-lead {
  color: var(--text-muted); font-size: .9rem; line-height: 1.6;
  margin-top: .5rem; max-width: 46ch;
}

.onboard-code {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surf2);
  border: 1px dashed var(--gold-border);
  border-radius: var(--r-sm, 10px);
}
.onboard-code-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim);
}
.onboard-code-value {
  font-size: 1.5rem; font-weight: 700; letter-spacing: .12em;
  color: var(--gold-lt); margin-top: .15rem;
}
.onboard-hint {
  font-size: .8rem; color: var(--text-muted); line-height: 1.55;
  margin-top: .85rem;
}

.onboard-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.onboard-step { padding: 1.5rem 1.35rem }
.onboard-step-num {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--bg-body);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  margin-bottom: .85rem;
}
.onboard-step h4 { font-size: .95rem; font-weight: 600; color: var(--text) }
.onboard-step p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin-top: .35rem }

.onboard-foot {
  text-align: center; font-size: .8rem; color: var(--text-dim);
  margin-top: .5rem;
}

@media (max-width: 768px) {
  .onboard-hero { padding: 1.5rem }
  .onboard-title { font-size: 1.5rem }
  .onboard-steps { grid-template-columns: 1fr }
  .onboard-code-value { font-size: 1.3rem }
}

/* ══════════════════════════════════════════════════════════════
   GSAP — estados iniciais (evita flash)
══════════════════════════════════════════════════════════════ */
.gsap-fade { opacity: 0 }

/* ══════════════════════════════════════════════════════════════
   AVATARES, CAMPOS EXTRAS E PERFIL
══════════════════════════════════════════════════════════════ */
img.sidebar-avatar { object-fit: cover; padding: 0 }

/* Campos personalizados (parceiro) */
.extras-list { display: flex; flex-direction: column; gap: .5rem }
.extra-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .5rem; align-items: center;
}
.extra-row .btn-xs { height: 100% }

/* Avatar do portal (cabeçalho) */
.portal-user-link {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; padding: .25rem .25rem .25rem 0;
  border-radius: var(--r-pill);
}
.portal-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, rgba(42,28,56,.9), rgba(74,50,100,.8));
}
.portal-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--gold-md);
}
.portal-user-meta { display: flex; flex-direction: column; line-height: 1.2 }

/* Avatar grande na página de perfil */
.perfil-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--gold-border);
  background: linear-gradient(135deg, rgba(42,28,56,.9), rgba(74,50,100,.8));
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.perfil-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 700; color: var(--gold-md);
}

/* Checkboxes de permissão (Equipe) */
.perm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.perm-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .7rem;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border-sub);
  border-radius: var(--r-sm);
  font-size: .82rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.perm-item:hover { border-color: var(--gold-border) }
.perm-item input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer }
@media (max-width: 430px) { .perm-grid { grid-template-columns: 1fr } }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: -100%; top: 0;
    width: min(82vw, 300px); z-index: 300;
    height: 100vh; height: 100dvh;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 60px rgba(0,0,0,.6);
  }
  .sidebar.open { left: 0 }

  /* Overlay só aparece quando a sidebar está aberta */
  .sidebar-overlay { display: none }
  .sidebar-overlay.open { display: block; z-index: 250 }

  .btn-hamburger { display: flex }
  .main-area { width: 100% }

  .topbar { padding: 0 .875rem; gap: .625rem }
  .topbar-title { font-size: .875rem }
  .topbar-actions { display: none }

  .content { padding: 1.125rem 1rem }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem }
  .stat-card { padding: 1.1rem 1.15rem }
  .stat-value { font-size: 1.55rem }
  .stat-value.sm { font-size: 1.1rem }

  .form-grid { grid-template-columns: 1fr }
  .filter-bar { gap: .625rem }
  .filter-bar .form-group { min-width: 100% }
  .filter-bar .btn { width: 100% }

  .page-header { flex-direction: column; align-items: stretch; gap: .875rem }
  .page-header .btn { width: 100% }

  .card { padding: 1.15rem }
  .modal-footer { flex-direction: column-reverse }
  .modal-footer .btn { width: 100% }

  .portal-header { padding: .75rem 1rem }
  .portal-content { padding: 1.125rem 1rem }
  .portal-right { gap: .875rem }
  .portal-right .portal-user-code { display: none }
  .portal-welcome h1 { font-size: 1.2rem }

  /* Aurora mais perceptível no celular (sem cursor para animar o ambiente) */
  body::after { opacity: 1; animation-duration: 20s }

  /* ── Tabelas viram cards no celular ──
     Cada linha vira um cartão empilhado; nada de scroll lateral. */
  .table-cards { min-width: 0 }
  .table-cards thead { display: none }
  .table-cards,
  .table-cards tbody,
  .table-cards tr,
  .table-cards td { display: block; width: 100% }
  .table-cards .table-wrap { overflow: visible }

  .table-cards tbody tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border-sub);
  }
  .table-cards tbody tr:hover { background: none }

  .table-cards td {
    padding: .3rem 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
    font-size: .85rem;
  }
  .table-cards td::before {
    content: attr(data-label);
    text-align: left;
    font-size: .68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .table-cards td.text-center { text-align: right }

  /* Cabeçalho do card: nome/código/email em largura total */
  .table-cards td[data-label="Parceiro"] {
    display: block;
    text-align: left;
    padding-bottom: .65rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--border-sub);
  }
  .table-cards td[data-label="Parceiro"]::before { display: none }

  /* Ações: botões em linha, quebrando quando faltar espaço */
  .table-cards td[data-label="Ações"] {
    display: block;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--border-sub);
  }
  .table-cards td[data-label="Ações"]::before { display: none }
  .table-cards td[data-label="Ações"] .flex { flex-wrap: wrap }
  .table-cards td[data-label="Ações"] .btn { flex: 1 1 auto }
}

/* Telas bem pequenas (≤ 430px) */
@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr }
  .content { padding: 1rem .875rem }
  .portal-user-name { font-size: .8rem }
  .btn { padding: .55rem 1rem }
}

@media (min-width: 769px) {
  .sidebar-overlay { display: none !important }
}

/* ══════════════════════════════════════════════════════════════
   Autocadastro: badge no menu, tela "aguardando" e form de registro
══════════════════════════════════════════════════════════════ */

/* Badge de pendências no item "Parceiros" do menu */
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; line-height: 1;
  color: #0a1a0a;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: var(--r-pill);
}

/* Pílula e "bolinha" pulsante de status */
.pending-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: .5rem auto 0;
  padding: .3rem .7rem;
  font-size: .72rem; font-weight: 500;
  color: var(--gold-lt);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
}
.pending-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-md);
  box-shadow: 0 0 0 0 rgba(216,191,133,.6);
  animation: pendingPulse 1.8s infinite;
}
@keyframes pendingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(216,191,133,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(216,191,133,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,191,133,0); }
}

/* Passos da tela de aguardando */
.pending-steps {
  display: flex; flex-direction: column; gap: .6rem;
  text-align: left;
  margin: 1.25rem 0;
}
.pending-step {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: var(--text-muted);
}
.pending-step-ic {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .7rem;
  border: 1px solid var(--gold-border);
}
.pending-step.done    { color: var(--text); }
.pending-step.done .pending-step-ic    { background: var(--c-fechado); color: #fff; border-color: transparent; }
.pending-step.current { color: var(--gold-lt); }

/* Rádios/checkbox do formulário de cadastro */
.reg-radios { display: flex; flex-direction: column; gap: .5rem; }
.reg-radio {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .75rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.reg-radio:hover { background: rgba(191,145,85,.06); }
.reg-radio input { accent-color: var(--gold); }

/* Cadastro em 2 passos */
.reg-step-head { margin-bottom: 1.25rem; position: relative; }
.reg-step-kicker {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.reg-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; line-height: 1.15; margin: .15rem 0 0; color: var(--text);
}
.reg-step-sub { font-size: .85rem; color: var(--text-muted); margin: .3rem 0 0; }
.reg-chosen { font-size: .82rem; color: var(--text-muted); margin-top: .45rem; }
.reg-back {
  background: none; border: 0; color: var(--text-muted); cursor: pointer;
  font-size: .8rem; padding: 0; margin-bottom: .6rem;
}
.reg-back:hover { color: var(--gold-lt); }

.choice-grid { display: grid; gap: .75rem; }
.choice-card {
  display: flex; flex-direction: column; gap: .35rem; text-align: left;
  width: 100%; padding: 1.1rem 1.15rem; cursor: pointer;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--gold-border); border-radius: var(--r-md, 14px);
  color: var(--text);
  transition: border-color .15s, background .15s, transform .12s;
}
.choice-card:hover { border-color: var(--gold); background: rgba(191,145,85,.07); transform: translateY(-2px); }
.choice-card.selected { border-color: var(--gold); background: rgba(191,145,85,.10); }
.choice-ic { font-size: 1.6rem; line-height: 1; }
.choice-name { font-weight: 600; font-size: 1rem; }
.choice-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.35; }

/* ══════════════════════════════════════════════════════════════
   Lista de parceiros: barra de filtros + paginação
══════════════════════════════════════════════════════════════ */
.filtros-grid {
  display: grid;
  grid-template-columns: 1fr 200px 170px auto;
  gap: .6rem;
  align-items: center;
}
.filtros-busca { min-width: 0; }
@media (max-width: 768px) {
  .filtros-grid { grid-template-columns: 1fr 1fr; }
  .filtros-busca { grid-column: 1 / -1; }
}

.paginacao {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1rem;
}
.paginacao-info { font-size: .8rem; color: var(--text-muted); }
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════
   Link de divulgação recolhível + QR code (portal do parceiro)
══════════════════════════════════════════════════════════════ */
.linkbox-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; background: none; border: 0; cursor: pointer; color: var(--text);
  padding: .25rem; text-align: left;
}
.linkbox-toggle-main { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.linkbox-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: rgba(191,145,85,.12); border: 1px solid var(--gold-border);
}
.linkbox-toggle-text { display: flex; flex-direction: column; min-width: 0; }
.linkbox-title { font-weight: 600; font-size: 1rem; }
.linkbox-sub { font-size: .8rem; color: var(--text-muted); }
.linkbox-chevron { color: var(--gold); transition: transform .2s; flex: 0 0 auto; }
.linkbox.open .linkbox-chevron { transform: rotate(180deg); }

.linkbox-panel { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--gold-border); }
.linkbox-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start;
}
.linkbox-left { min-width: 0; }
.linkbox-qr { text-align: center; }
.linkbox-qr-label {
  display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .5rem;
}
.qr-box {
  display: inline-flex; padding: 10px; background: #fff; border-radius: 12px;
  line-height: 0; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.qr-box img, .qr-box canvas { display: block; }

@media (max-width: 640px) {
  .linkbox-grid { grid-template-columns: 1fr; }
  .linkbox-qr { margin: 0 auto; }
}
