/* ============================================================
   ASSOCIAÇÃO DE MORADORES DO REMANSO — Stylesheet
   Paleta: Verde floresta + Âmbar + Bege quente
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
  --verde-escuro:   #1B4332;
  --verde:          #2D6A4F;
  --verde-medio:    #40916C;
  --verde-claro:    #74C69D;
  --verde-menta:    #B7E4C7;
  --verde-pale:     #D8F3DC;
  --ambar:          #E9A319;
  --ambar-claro:    #FEF3C7;
  --bege:           #F9F5EF;
  --bege-medio:     #EDE8DF;
  --marrom:         #7C4A1E;
  --texto:          #1C2B1E;
  --texto-medio:    #3D5247;
  --texto-claro:    #6B8F78;
  --branco:         #FFFFFF;
  --sombra-sm:      0 1px 3px rgba(27,67,50,.12);
  --sombra:         0 4px 16px rgba(27,67,50,.13);
  --sombra-md:      0 8px 32px rgba(27,67,50,.16);
  --raio:           12px;
  --raio-sm:        8px;
  --raio-lg:        20px;
  --trans:          .22s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bege);
  color: var(--texto);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--verde); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--verde-medio); }
img { max-width: 100%; display: block; }

/* ── Tipografia ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--verde-escuro); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 600; }
h3 { font-size: 1.2rem;  font-weight: 600; }

p { color: var(--texto-medio); }

/* ── Layout ─────────────────────────────────────────────────── */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER / NAV ───────────────────────────────────────────── */
.header {
  background: var(--verde-escuro);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px; margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-logo-text { color: var(--branco); }
.nav-logo-text strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.nav-logo-text small  { font-size: .72rem; color: var(--verde-menta); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--verde-pale); font-weight: 500; font-size: .92rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: all var(--trans); }
.nav-links a:hover, .nav-links a.ativo { color: var(--ambar); border-bottom-color: var(--ambar); }

.nav-cta { display: flex; gap: .75rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.hamburger span { width: 24px; height: 2px; background: var(--branco); border-radius: 2px; transition: var(--trans); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde) 55%, var(--verde-medio) 100%);
  padding: 6rem 1.5rem 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cpath d='M0 400 Q200 300 400 380 T800 350 L800 600 L0 600Z' fill='%2340916C' opacity='.3'/%3E%3Cpath d='M0 450 Q300 370 600 430 T800 400 L800 600 L0 600Z' fill='%232D6A4F' opacity='.4'/%3E%3C/svg%3E") no-repeat bottom / cover;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); color: var(--verde-pale);
  border: 1px solid rgba(255,255,255,.2);
  padding: .4rem 1rem; border-radius: 100px; font-size: .82rem;
  margin-bottom: 1.5rem; backdrop-filter: blur(4px);
}
.hero h1 { color: var(--branco); margin-bottom: 1.25rem; }
.hero p   { color: var(--verde-menta); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 540px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BOTÕES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--raio-sm);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .92rem;
  cursor: pointer; transition: all var(--trans); border: 2px solid transparent;
  text-align: center; white-space: nowrap;
}

.btn-primary {
  background: var(--ambar); color: var(--verde-escuro);
  border-color: var(--ambar);
}
.btn-primary:hover { background: #f5b52e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,163,25,.4); color: var(--verde-escuro); }

.btn-outline {
  background: transparent; color: var(--branco);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--branco); color: var(--branco); }

.btn-verde {
  background: var(--verde); color: var(--branco);
  border-color: var(--verde);
}
.btn-verde:hover { background: var(--verde-escuro); border-color: var(--verde-escuro); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--verde);
  border-color: var(--verde);
}
.btn-ghost:hover { background: var(--verde); color: var(--branco); }

.btn-perigo { background: #EF4444; color: #fff; border-color: #EF4444; }
.btn-perigo:hover { background: #DC2626; }

.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--branco); border-radius: var(--raio);
  box-shadow: var(--sombra-sm); border: 1px solid #e8ede9;
  transition: box-shadow var(--trans);
}
.card:hover { box-shadow: var(--sombra); }
.card-body { padding: 1.75rem; }
.card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e8ede9;
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; color: var(--verde-escuro); }

/* ── SEÇÕES ─────────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--verde-pale); }
.section-dark { background: var(--verde-escuro); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title p { color: var(--texto-claro); margin-top: .5rem; }

/* ── FEATURES ───────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--branco); border-radius: var(--raio);
  padding: 2rem; box-shadow: var(--sombra-sm);
  border: 1px solid #e8ede9; transition: all var(--trans);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--raio-sm);
  background: var(--verde-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }

/* ── PLANOS ─────────────────────────────────────────────────── */
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.25rem; }
.plano-card {
  background: var(--branco); border-radius: var(--raio);
  padding: 1.75rem; border: 2px solid #e8ede9;
  text-align: center; transition: all var(--trans); position: relative;
}
.plano-card.destaque { border-color: var(--verde); }
.plano-card.destaque::before {
  content: '⭐ Popular';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--verde); color: var(--branco);
  padding: .25rem .9rem; border-radius: 100px; font-size: .75rem; font-weight: 700;
}
.plano-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.plano-nome { font-weight: 700; color: var(--verde); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; margin-bottom: .75rem; }
.plano-valor { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--verde-escuro); }
.plano-valor small { font-size: 1rem; }
.plano-desc { color: var(--texto-claro); font-size: .88rem; margin: .5rem 0 1.5rem; }

/* ── FORMULÁRIOS ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

label { display: block; font-size: .875rem; font-weight: 600; color: var(--texto-medio); margin-bottom: .4rem; }
label .obrigatorio { color: #EF4444; margin-left: .25rem; }

.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid #dce8df; border-radius: var(--raio-sm);
  font-family: 'Nunito', sans-serif; font-size: .92rem;
  color: var(--texto); background: var(--branco);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-control:focus { border-color: var(--verde-medio); box-shadow: 0 0 0 3px rgba(64,145,108,.15); }
.form-control:invalid:not(:placeholder-shown) { border-color: #EF4444; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%232D6A4F' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px; padding-right: 2.5rem; }

.form-hint { font-size: .78rem; color: var(--texto-claro); margin-top: .3rem; }
.form-erro { font-size: .78rem; color: #EF4444; margin-top: .3rem; display: none; }
.form-control.erro + .form-erro { display: block; }

/* ── ALERTAS ────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: var(--raio-sm);
  margin-bottom: 1.25rem; font-size: .92rem;
}
.alert-sucesso { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-erro    { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-aviso   { background: #FEF9C3; color: #854D0E; border: 1px solid #FDE68A; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── BADGE / TAG ────────────────────────────────────────────── */
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 100px; font-size: .75rem; font-weight: 700; }

/* ── TABELAS ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--raio); border: 1px solid #e8ede9; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead { background: var(--verde-escuro); color: var(--branco); }
thead th { padding: .9rem 1rem; text-align: left; font-weight: 600; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
tbody tr { border-bottom: 1px solid #e8ede9; transition: background var(--trans); }
tbody tr:hover { background: var(--verde-pale); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: .85rem 1rem; vertical-align: middle; }

/* ── DASHBOARD LAYOUT ───────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--verde-escuro);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo strong { color: var(--branco); font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.sidebar-logo span { display: block; color: var(--verde-claro); font-size: .75rem; margin-top: .2rem; }

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-section { padding: .75rem 1.5rem .25rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--verde-claro); }

.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; color: rgba(255,255,255,.75);
  font-size: .9rem; font-weight: 500; border-left: 3px solid transparent;
  transition: all var(--trans);
}
.sidebar-link:hover, .sidebar-link.ativo {
  background: rgba(255,255,255,.08); color: var(--branco);
  border-left-color: var(--ambar);
}
.sidebar-link .icone { font-size: 1.1rem; min-width: 20px; text-align: center; }
.sidebar-link .badge-num { background: var(--ambar); color: var(--verde-escuro); font-size: .7rem; font-weight: 700; border-radius: 100px; padding: .1rem .45rem; margin-left: auto; }

.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user { display: flex; align-items: center; gap: .75rem; }
.sidebar-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--verde-medio); }
.sidebar-user-info strong { display: block; color: var(--branco); font-size: .85rem; }
.sidebar-user-info small  { color: var(--verde-claro); font-size: .75rem; }

.dash-main { background: var(--bege); overflow-y: auto; }
.dash-topbar {
  background: var(--branco); padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #e8ede9; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--sombra-sm);
}
.dash-title { font-size: 1.35rem; font-family: 'Playfair Display', serif; color: var(--verde-escuro); }
.dash-content { padding: 2rem; }

/* ── STATS CARDS ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--branco); border-radius: var(--raio);
  padding: 1.5rem; box-shadow: var(--sombra-sm);
  border: 1px solid #e8ede9; border-left: 4px solid var(--verde);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.stat-card.ambar  { border-left-color: var(--ambar); }
.stat-card.azul   { border-left-color: #3B82F6; }
.stat-card.roxo   { border-left-color: #8B5CF6; }
.stat-label { font-size: .8rem; color: var(--texto-claro); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.stat-valor { font-family: 'Playfair Display', serif; font-size: 1.85rem; font-weight: 700; color: var(--verde-escuro); }
.stat-icon { font-size: 2rem; opacity: .3; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(3px); }
.modal-overlay.aberto { display: flex; }
.modal {
  background: var(--branco); border-radius: var(--raio-lg);
  width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; animation: slideUp .25s ease;
}
.modal-header { padding: 1.5rem; border-bottom: 1px solid #e8ede9; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { color: var(--verde-escuro); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid #e8ede9; display: flex; justify-content: flex-end; gap: .75rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--texto-claro); line-height: 1; padding: .25rem; border-radius: 4px; }
.modal-close:hover { color: #EF4444; background: #FEE2E2; }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── PIX / PAGAMENTO ────────────────────────────────────────── */
.pix-box {
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  border-radius: var(--raio); padding: 1.5rem; text-align: center; color: var(--branco);
}
.pix-logo { font-size: 2.5rem; margin-bottom: .5rem; }
.pix-code {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--raio-sm); padding: 1rem; margin: 1rem 0;
  font-family: monospace; font-size: .8rem; word-break: break-all;
  color: var(--verde-pale); text-align: left;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--verde-escuro); color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-brand strong { font-family: 'Playfair Display', serif; color: var(--branco); font-size: 1.1rem; }
.footer-brand p { font-size: .85rem; margin-top: .5rem; }
.footer h4 { color: var(--branco); font-size: .875rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: .05em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul a { color: rgba(255,255,255,.65); font-size: .875rem; }
.footer ul a:hover { color: var(--ambar); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; text-align: center; font-size: .8rem; }

/* ── UTILITÁRIOS ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.divider { height: 1px; background: #e8ede9; margin: 1.5rem 0; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── PÁGINA DE AUTH ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(160deg, var(--verde-escuro) 0%, var(--verde) 100%);
  padding: 3rem; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.05); border-radius: 50%;
}
.auth-left h2 { color: var(--branco); margin-bottom: 1rem; }
.auth-left p  { color: var(--verde-menta); }
.auth-left-logo { margin-bottom: 2.5rem; }
.auth-left-logo span { color: var(--ambar); font-size: 3rem; }
.auth-right { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: var(--bege); }
.auth-form-box { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-form-box h1 { margin-bottom: .4rem; }
.auth-form-box > p { color: var(--texto-claro); margin-bottom: 2rem; font-size: .92rem; }

/* ── PROGRESS STEPS ─────────────────────────────────────────── */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 60%; width: 80%; height: 2px; background: #e8ede9; }
.step.ativo:not(:last-child)::after { background: var(--verde); }
.step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #dce8df; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--texto-claro); background: var(--branco); position: relative; z-index: 1; }
.step.ativo .step-num   { background: var(--verde); color: var(--branco); border-color: var(--verde); }
.step.concluido .step-num { background: var(--verde-claro); color: var(--verde-escuro); border-color: var(--verde-claro); }
.step-label { font-size: .72rem; font-weight: 600; color: var(--texto-claro); margin-top: .35rem; text-align: center; }
.step.ativo .step-label { color: var(--verde); }

/* ── RESPONSIVIDADE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; z-index: 150; left: 0; top: 0; height: 100vh; width: 260px; }
  .sidebar.aberta { display: flex; }
  .dash-topbar .btn-menu { display: flex; }
}

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1rem; }
  .planos-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .planos-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr; }
  .hero-btns   { flex-direction: column; }
}

/* ── ANIMAÇÕES ──────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .4s ease both; }
.fade-in-2 { animation: fadeIn .4s .1s ease both; }
.fade-in-3 { animation: fadeIn .4s .2s ease both; }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .sidebar, .dash-topbar, .btn { display: none !important; }
  .dash-main { padding: 0; }
}

/* ── Modal backdrop (novo padrão — não conflita com sidebar) ── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 200;
  align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(3px);
}
.modal-backdrop.show { display: flex; }

/* ── Sidebar mobile (classe .open) ────────────────────────── */
@media (max-width: 1024px) {
  .dash-layout .sidebar {
    display: none;
    position: fixed; top: 0; left: 0;
    height: 100vh; z-index: 150; overflow-y: auto;
  }
  .dash-layout .sidebar.open { display: flex !important; }
}

/* Nav links mobile */
@media (max-width: 768px) {
  .nav-links.aberto {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--verde-escuro); padding: 1rem;
    z-index: 99; gap: .5rem;
  }
}

/* Unifica classes de sidebar aberta (aberta = legado, open = novo) */
@media (max-width: 1024px) {
  .dash-layout .sidebar.aberta { display: flex !important; }
}
