/* ==========================================================================
   LagartIA studio — styles.css
   Paleta: verde-limão vibrante sobre fundo escuro "noite de galpão"
   ========================================================================== */

:root {
  --bg: #0b0f0d;
  --bg-2: #111713;
  --surface: #161d19;
  --surface-2: #1c251f;
  --border: #263229;
  --text: #e8f0e9;
  --text-2: #a8b8ac;
  --muted: #7d8f83;
  --accent: #b6f34c;
  --accent-2: #7fd12e;
  --accent-ink: #0b0f0d;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

em { font-style: normal; color: var(--accent); }

.section { padding: clamp(72px, 9vw, 120px) 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-2); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 6px 20px rgba(182, 243, 76, .25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(182, 243, 76, .4); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light {
  background: var(--text);
  color: var(--accent-ink);
}
.btn-light:hover { background: #fff; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-whatsapp {
  background: #25d366;
  color: #06301a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .25);
}
.btn-whatsapp:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, .4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 13, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  font-size: 1.25rem;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand-name strong { color: var(--accent); font-weight: 800; }
.brand-studio { color: var(--muted); font-weight: 400; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(182, 243, 76, .12), transparent 60%),
    linear-gradient(rgba(182, 243, 76, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 243, 76, .04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: .95rem;
  margin-bottom: 16px;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-sub {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags li {
  font-size: .82rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-art-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 60px rgba(182, 243, 76, .12);
  transform: rotate(1.5deg);
  transition: transform .3s ease;
}
.hero-art-frame:hover { transform: rotate(0deg) scale(1.01); }
.hero-art-frame img { width: 100%; height: auto; }
.hero-art-caption {
  margin-top: 14px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Cards de serviços ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 243, 76, .45);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card p { color: var(--text-2); font-size: .95rem; margin: 10px 0 16px; }
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.card-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .6rem;
  top: 7px;
}
.card-highlight {
  background: linear-gradient(160deg, rgba(182, 243, 76, .1), var(--surface) 55%);
  border-color: rgba(182, 243, 76, .4);
}

/* ---------- Por que a gente ---------- */
.why { background: var(--bg-2); border-block: 1px solid var(--border); }
.why-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.why-copy > p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 14px 0 32px;
  max-width: 58ch;
}
.why-points { display: grid; gap: 18px; }
.why-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.why-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(182, 243, 76, .14);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  margin-top: 2px;
}
.why-point p { color: var(--text-2); font-size: .92rem; margin-top: 4px; }

.why-quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.why-quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}
.why-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .85rem;
  font-style: normal;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
}
.stat-label { font-size: .74rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  padding: clamp(48px, 6vw, 80px) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--accent-ink); }
.cta-inner p { color: rgba(11, 15, 13, .75); margin-top: 8px; }

/* ---------- Contato ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy > p { color: var(--text-2); margin: 14px 0 28px; max-width: 46ch; }
.contact-channels { display: grid; gap: 14px; }
.contact-channels li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}
.contact-channels a { color: var(--text); font-weight: 500; }
.contact-channels a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 16px;
}
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form ::placeholder { color: var(--muted); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-note { font-size: .75rem; color: var(--muted); }
.form-success {
  background: rgba(182, 243, 76, .12);
  border: 1px solid rgba(182, 243, 76, .4);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
}
.form-error {
  background: rgba(255, 99, 99, .1);
  border: 1px solid rgba(255, 99, 99, .4);
  color: #ff9a9a;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer-name strong { color: var(--accent); }
.footer-tagline { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer-nav a { font-size: .85rem; color: var(--text-2); }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { text-align: right; font-size: .8rem; color: var(--muted); }
.footer-made { margin-top: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 6vw; }
  .nav-toggle { display: flex; }
  .nav-cta, .nav-login { display: none; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .header-actions { gap: 8px; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .hero-art-frame { transition: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Área de login / portal do cliente ---------- */
.auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 80px) 0;
  background-image:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(182, 243, 76, .08), transparent 60%),
    linear-gradient(rgba(182, 243, 76, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 243, 76, .03) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.auth-wrap { width: min(440px, 92%); }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px);
  box-shadow: var(--shadow);
}

.auth-brand { margin-bottom: 20px; }
.auth-brand .brand-mark { width: 48px; height: 48px; font-size: 1.5rem; }

.auth-title { font-size: 1.5rem; margin-bottom: 24px; }

.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label > span { font-size: .82rem; font-weight: 600; color: var(--text-2); }

.auth-form input {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form ::placeholder { color: var(--muted); }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  line-height: 1;
  opacity: .7;
}
.password-toggle:hover { opacity: 1; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-form .auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-2);
  cursor: pointer;
}
.auth-form .auth-check input { width: auto; }
.auth-link { color: var(--accent); font-size: .85rem; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-error {
  background: rgba(255, 99, 99, .1);
  border: 1px solid rgba(255, 99, 99, .4);
  color: #ff9a9a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .85rem;
}

.auth-hint {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(182, 243, 76, .08);
  border: 1px dashed rgba(182, 243, 76, .35);
  border-radius: 12px;
  font-size: .82rem;
  color: var(--text-2);
  text-align: center;
  display: grid;
  gap: 2px;
}
.auth-hint strong { color: var(--text); }

/* ---------- Portal do cliente ---------- */
.portal-hero { padding: clamp(32px, 5vw, 56px) 0 8px; }
.portal-hero p { color: var(--text-2); margin-top: 10px; max-width: 56ch; }

.portal-section { padding: clamp(28px, 4vw, 48px) 0; }
.portal-section h2 { margin-bottom: 22px; font-size: 1.3rem; }

.portal-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: start;
}

.portal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.portal-box h2 { margin-bottom: 18px; }

.timeline { display: grid; gap: 18px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline-date {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  color: var(--accent);
  background: rgba(182, 243, 76, .12);
  border: 1px solid rgba(182, 243, 76, .3);
  border-radius: 8px;
  padding: 4px 10px;
  margin-top: 2px;
  white-space: nowrap;
}
.timeline p { color: var(--text-2); font-size: .88rem; margin-top: 2px; }

.portal-support-text { color: var(--text-2); font-size: .92rem; margin-bottom: 18px; }
.portal-box .contact-channels { margin-bottom: 22px; }
.portal-cta { margin-top: 4px; }

.project-status {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.status-dev { color: #ffd166; border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .08); }
.status-qa { color: #7ec8ff; border-color: rgba(126, 200, 255, .45); background: rgba(126, 200, 255, .08); }
.status-done { color: var(--accent); border-color: rgba(182, 243, 76, .45); background: rgba(182, 243, 76, .1); }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* ---------- Login com a arte do lagarto ao fundo ---------- */
body[data-auth-page="login"] .auth-main,
body[data-auth-page="admin"] .auth-main {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body[data-auth-page="login"] .auth-main {
  background-image:
    linear-gradient(180deg, rgba(11, 15, 13, .66) 0%, rgba(11, 15, 13, .86) 55%, rgba(11, 15, 13, .95) 100%),
    url("img/lagarto.jpeg");
  background-position: center, 30% 38%;
}

body[data-auth-page="login"] .auth-card {
  background: rgba(22, 29, 25, .05);
  box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, .35);
}

body[data-auth-page="admin"] .auth-main {
  background-image:
    linear-gradient(180deg, rgba(11, 15, 13, .88) 0%, rgba(11, 15, 13, .94) 60%, rgba(11, 15, 13, .97) 100%),
    url("img/lagarto.jpeg");
}

body[data-auth-page="admin"] .portal-box {
  background: rgba(22, 29, 25, .92);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  body[data-auth-page="login"] .auth-main,
  body[data-auth-page="admin"] .auth-main { background-attachment: scroll; }
}

/* ---------- Papéis e estados ---------- */
.role-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: .88rem;
  color: var(--text-2);
}

.role-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface-2);
}
.role-badge.role-admin { color: var(--accent); border-color: rgba(182, 243, 76, .45); background: rgba(182, 243, 76, .1); }
.role-badge.role-subadmin { color: #7ec8ff; border-color: rgba(126, 200, 255, .45); background: rgba(126, 200, 255, .08); }
.role-badge.role-viewer { color: var(--text-2); }

.portal-readonly {
  margin-top: 12px;
  max-width: 56ch;
  font-size: .86rem;
  color: #ffd166;
  background: rgba(255, 209, 102, .08);
  border: 1px solid rgba(255, 209, 102, .35);
  border-radius: 10px;
  padding: 10px 14px;
}

.portal-empty {
  color: var(--text-2);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  font-size: .92rem;
}

.auth-ok {
  background: rgba(182, 243, 76, .1);
  border: 1px solid rgba(182, 243, 76, .35);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .85rem;
}

.btn-danger {
  background: rgba(255, 99, 99, .12);
  color: #ff9a9a;
  border: 1px solid rgba(255, 99, 99, .4);
}
.btn-danger:hover { border-color: #ff9a9a; color: #ffd0d0; }

/* ---------- Gestão de usuários ---------- */
.admin-main { align-items: start; }

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

.auth-form select {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.auth-form select:focus { outline: none; border-color: var(--accent); }
.auth-form select:disabled { opacity: .7; }

.admin-projects {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-projects legend {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0 6px;
}

.project-picker { display: grid; gap: 8px; margin-top: 8px; }
.project-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .87rem;
  color: var(--text-2);
  cursor: pointer;
}
.project-option input { accent-color: var(--accent); }

.user-list { display: grid; gap: 12px; }

.user-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.user-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.user-name { font-family: var(--font-display); font-size: .95rem; }
.user-meta { font-size: .82rem; color: var(--muted); }

.user-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-role-select {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
}

.user-empty { color: var(--muted); font-size: .88rem; text-align: center; padding: 18px; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
