/* WODTECHX — Painel alunos/profissionais */
:root {
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c6370;
  --color-accent: #ff6b2c;
  --color-accent-dark: #e85a1f;
  --color-dark: #0d0d0d;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-danger: #dc2626;
  --color-success: #059669;
  --color-warning: #d97706;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --sidebar-w: 250px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.painel-body {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0 0 1rem; }
.muted { color: var(--color-muted); }

.painel-shell { display: flex; min-height: 100vh; }
.painel-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
}
.painel-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
}
.painel-brand:hover { text-decoration: none; opacity: 0.95; }
.painel-brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.painel-brand span { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.painel-nav { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.painel-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}
.painel-nav a:hover,
.painel-nav a.is-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}
.painel-sidebar-foot {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
}
.painel-logout { color: #ffb39a; display: inline-block; margin-top: 0.5rem; }
.painel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.painel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.painel-topbar h1 { margin: 0; font-size: 1.35rem; }
.painel-site-link { font-size: 0.85rem; color: var(--color-muted); }
.painel-content { padding: 1.5rem 1.75rem 2.5rem; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-error { background: #fef2f2; color: #991b1b; }
.alert-info { background: #eff6ff; color: #1e40af; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, #ff8a3d, #ff4d4d); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: 0.95; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.card h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.table-wrap { overflow-x: auto; }
table.painel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.painel-table th,
.painel-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.painel-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #e5e7eb; color: #374151; }
.badge-info { background: #dbeafe; color: #1e40af; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.88rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-group--wide { grid-column: 1 / -1; }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat-card strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.stat-card span { color: var(--color-muted); font-size: 0.85rem; }

.affiliate-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.affiliate-copy__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  background: #f8fafc;
  color: var(--color-text);
}
.affiliate-copy__btn {
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.28);
}
.affiliate-copy__btn.is-copied {
  filter: brightness(1.05);
}
.affiliate-meta {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}
@media (min-width: 640px) {
  .affiliate-copy {
    flex-direction: row;
    align-items: stretch;
  }
  .affiliate-copy__input { flex: 1; min-width: 0; }
  .affiliate-copy__btn { flex-shrink: 0; align-self: stretch; }
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
}
.chat-bubble {
  max-width: min(92%, 520px);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #f3f4f6;
}
.chat-bubble.is-mine {
  align-self: flex-end;
  background: #fff1e8;
  border: 1px solid rgba(255, 107, 44, 0.2);
}
.chat-meta { font-size: 0.75rem; color: var(--color-muted); margin-bottom: 0.25rem; }
.chat-compose textarea { min-height: 90px; }

.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.aulas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.aula-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.aula-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aula-card__video-flag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
}

.aula-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.aula-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  flex: 1;
}

.aula-player {
  margin: 0 0 1.25rem;
}

.aula-player video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  background: #0d0d0d;
}

.aula-player__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0d;
}

.aula-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.aula-corpo {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.aula-corpo h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

body.painel-login-page {
  display: none;
}

/* Login WODTECHX — full-bleed + painel (acima do concorrente Wiki4Fit) */
body.painel-login-screen {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Outfit', var(--font);
  color: #121212;
  background: #0d0d0d;
  -webkit-font-smoothing: antialiased;
}

.login-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    1.25rem
    max(1.25rem, env(safe-area-inset-bottom));
  overflow: hidden;
}

.login-stage__media {
  position: absolute;
  inset: 0;
  background-image: var(--login-bg);
  background-size: cover;
  background-position: 62% 20%;
  transform: scale(1.04);
  animation: login-kenburns 18s ease-out forwards;
}

.login-stage__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(13, 13, 13, 0.82) 0%, rgba(196, 40, 20, 0.55) 42%, rgba(255, 107, 44, 0.72) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.35) 0%, transparent 30%, rgba(13, 13, 13, 0.55) 100%);
}

.login-stage__x {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: min(58vw, 520px);
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  animation: login-x-in 1.1s ease-out both;
}

.login-stage__x-svg {
  width: 100%;
  height: auto;
  display: block;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.35rem);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: login-panel-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel__brand {
  text-align: center;
  margin-bottom: 1.15rem;
}

.login-panel__logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto 1rem;
  filter: none;
}

.login-panel__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6b2c;
}

.login-panel__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0d0d0d;
}

.login-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.login-roles li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6370;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.login-panel__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.login-panel__alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.88rem;
  text-align: center;
}

.login-panel__alert--ok {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.login-panel__hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
}

.login-panel .login-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c6370;
  margin-bottom: 0.35rem;
}

.login-panel .login-field input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  color: #0d0d0d;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-panel .login-field input:focus {
  border-color: #ff6b2c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
}

.login-panel .login-field__row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding-right: 0.35rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-panel .login-field--password .login-field__row input {
  border: none;
  background: transparent;
  border-radius: 12px;
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  box-shadow: none;
}

.login-panel .login-field--password .login-field__row input:focus {
  box-shadow: none;
  background: transparent;
}

.login-panel .login-field--password:focus-within .login-field__row {
  border-color: #ff6b2c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.15);
}

.login-panel .login-field__toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #8b919a;
  padding: 0.35rem;
  cursor: pointer;
  line-height: 0;
}

.login-panel .login-field__toggle:hover {
  color: #ff6b2c;
}

.login-eye {
  width: 22px;
  height: 22px;
  display: block;
}

.login-eye--closed { display: none; }
.login-field__toggle.is-revealed .login-eye--open { display: none; }
.login-field__toggle.is-revealed .login-eye--closed { display: block; }

.login-panel__submit {
  margin-top: 0.35rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff4d4d 100%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.35rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 77, 77, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-panel__submit svg {
  width: 18px;
  height: 18px;
}

.login-panel__submit:hover,
.login-panel__submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 77, 77, 0.45);
}

.login-panel__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.login-panel__links a {
  color: #5c6370;
  text-decoration: none;
}

.login-panel__links a:hover {
  color: #ff6b2c;
  text-decoration: underline;
}

.login-panel__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  color: #8b919a;
}

.login-panel__foot a {
  color: #8b919a;
  text-decoration: none;
}

.login-panel__foot a:hover {
  color: #ff6b2c;
}

@keyframes login-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-x-in {
  from {
    opacity: 0;
    transform: translate(24px, 24px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes login-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .login-panel,
  .login-stage__x,
  .login-stage__media {
    animation: none;
  }
}

@media (max-width: 480px) {
  .login-panel {
    border-radius: 22px;
    padding: 1.5rem 1.25rem 1.35rem;
  }

  .login-panel__title {
    font-size: 1.28rem;
  }
}

@media (max-width: 820px) {
  .painel-shell { flex-direction: column; }
  .painel-sidebar { width: 100%; }
  .painel-nav { flex-direction: row; flex-wrap: wrap; }
  .painel-content, .painel-topbar { padding-inline: 1rem; }
}

/* ========== Área do aluno (tema escuro — referência app) ========== */
body.painel-aluno {
  --aluno-bg: #0a0a0a;
  --aluno-surface: #141414;
  --aluno-surface-2: #1b1b1b;
  --aluno-border: rgba(255, 255, 255, 0.08);
  --aluno-text: #f5f5f5;
  --aluno-muted: #9ca3af;
  --aluno-accent: #ff6b2c;
  --aluno-accent-2: #ff4d4d;
  --aluno-accent-dark: #e85a1f;
  --aluno-gradient: linear-gradient(135deg, #ff8a3d 0%, #ff4d4d 100%);
  --aluno-accent-soft: rgba(255, 107, 44, 0.14);
  --aluno-accent-soft-border: rgba(255, 107, 44, 0.28);
  --sidebar-w: 220px;
  font-family: 'Outfit', var(--font);
  color: var(--aluno-text);
  background: var(--aluno-bg);
  overflow-x: hidden;
}

.aluno-shell {
  display: flex;
  min-height: 100vh;
  background: var(--aluno-bg);
}

.aluno-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #050505;
  border-right: 1px solid var(--aluno-border);
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem;
}

.aluno-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.75rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
}

.aluno-brand:hover { text-decoration: none; opacity: 0.95; }
.aluno-brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.aluno-brand span { font-size: 0.72rem; color: var(--aluno-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.aluno-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.aluno-side-nav a {
  color: rgba(255, 255, 255, 0.72);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}

.aluno-side-nav a:hover,
.aluno-side-nav a.is-active {
  background: rgba(255, 107, 44, 0.12);
  color: var(--aluno-accent);
  text-decoration: none;
}

.aluno-side-nav__cta {
  margin: 0.35rem 0 0.5rem;
  background: var(--aluno-gradient);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(255, 77, 77, 0.28);
}
.aluno-side-nav__cta:hover,
.aluno-side-nav__cta.is-active {
  background: var(--aluno-gradient);
  color: #fff !important;
  filter: brightness(1.06);
  text-decoration: none;
}

.aluno-franq-hero {
  background: var(--aluno-surface);
  border: 1px solid var(--aluno-border);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.15rem;
}
.aluno-franq-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aluno-accent);
  background: rgba(255, 107, 44, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}
.aluno-franq-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  color: #fff;
  line-height: 1.2;
}
.aluno-franq-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 1.25rem 0 1.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 107, 44, 0.08);
  border: 1px solid rgba(255, 107, 44, 0.25);
}
.aluno-franq-price__from {
  font-size: 0.88rem;
  color: var(--aluno-muted);
}
.aluno-franq-price__from s { opacity: 0.85; }
.aluno-franq-price__to {
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  font-weight: 800;
  color: var(--aluno-accent);
  line-height: 1.1;
}
.aluno-franq-price__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
}
.aluno-franq-price__save {
  font-size: 0.82rem;
  font-weight: 700;
  color: #86efac;
  margin-top: 0.35rem;
}
.aluno-franq-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.aluno-franq-benefits li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--aluno-border);
}
.aluno-franq-benefits li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.aluno-franq-benefits strong {
  color: #fff;
  font-size: 0.95rem;
}
.aluno-franq-benefits span {
  font-size: 0.88rem;
  color: var(--aluno-muted);
  line-height: 1.45;
}
.aluno-franq-cta .aluno-actions,
.aluno-franq-cta .btn-aluno { margin-top: 0.5rem; }

.aluno-sidebar-foot {
  border-top: 1px solid var(--aluno-border);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.aluno-logout {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--aluno-accent);
  text-decoration: none;
  font-weight: 600;
}

.aluno-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.aluno-hero {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--aluno-border);
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}

.aluno-hero__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.aluno-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--aluno-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aluno-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--aluno-border);
  color: var(--aluno-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--aluno-surface);
}

.aluno-tutorial svg { width: 14px; height: 14px; color: var(--aluno-accent); }
.aluno-tutorial:hover { border-color: var(--aluno-accent); text-decoration: none; color: #fff; }

.aluno-hero__name {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.aluno-creds { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.aluno-cred {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--aluno-surface);
  border: 1px solid var(--aluno-border);
  border-radius: 999px;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  max-width: 100%;
}

.aluno-cred__ico { color: var(--aluno-accent); font-weight: 700; }
.aluno-cred__val {
  font-size: 0.88rem;
  color: var(--aluno-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 280px);
}

.aluno-cred__copy {
  border: none;
  background: rgba(255, 107, 44, 0.15);
  color: var(--aluno-accent);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.aluno-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--aluno-border);
  background: #0c0c0c;
}

.aluno-tab {
  flex: 0 1 auto;
  padding: 0.85rem 0.85rem;
  color: var(--aluno-muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.aluno-tab:hover {
  color: #fff;
  text-decoration: none;
}

.aluno-tab.is-active {
  color: var(--aluno-accent);
  border-bottom-color: var(--aluno-accent);
}

.aluno-content {
  padding: 1.5rem 1.75rem 2.5rem;
}

.aluno-muted { color: var(--aluno-muted); }

.aluno-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.aluno-stat {
  background: var(--aluno-surface);
  border: 1px solid var(--aluno-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.aluno-stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--aluno-accent);
  line-height: 1.15;
}

.aluno-stat span {
  font-size: 0.8rem;
  color: var(--aluno-muted);
}

.aluno-panel {
  background: var(--aluno-surface);
  border: 1px solid var(--aluno-border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.15rem;
}

.aluno-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: #fff;
}

.aluno-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.aluno-panel__head h2 { margin: 0; }

.aluno-link {
  color: var(--aluno-accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.aluno-link:hover { text-decoration: underline; }

.aluno-empty {
  border: 1.5px dashed rgba(255, 107, 44, 0.45);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
}

.aluno-empty p { margin: 0 0 0.65rem; }

.aluno-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-aluno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-aluno--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

.btn-aluno--primary {
  background: var(--aluno-gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 77, 77, 0.28);
}

.btn-aluno--primary:hover {
  background: var(--aluno-gradient);
  filter: brightness(1.05);
  color: #fff;
  text-decoration: none;
}

.btn-aluno--ghost {
  background: transparent;
  border: 1px solid var(--aluno-border);
  color: #fff;
}

.btn-aluno--ghost:hover {
  border-color: var(--aluno-accent);
  color: var(--aluno-accent);
  text-decoration: none;
}

.aluno-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aluno-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--aluno-border);
  color: var(--aluno-muted);
}

.aluno-list a {
  color: var(--aluno-accent);
  font-weight: 600;
  text-decoration: none;
}

body.painel-aluno .alert-success { background: rgba(255, 107, 44, 0.12); color: var(--aluno-accent); border: 1px solid rgba(255, 107, 44, 0.28); }
body.painel-aluno .alert-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
body.painel-aluno .alert-info { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }

body.painel-aluno .painel-table th,
body.painel-aluno .painel-table td {
  border-bottom-color: var(--aluno-border);
  color: var(--aluno-text);
}

body.painel-aluno .painel-table th { color: var(--aluno-muted); }

body.painel-aluno .form-group label { color: var(--aluno-muted); }
body.painel-aluno .form-group input,
body.painel-aluno .form-group select,
body.painel-aluno .form-group textarea {
  background: var(--aluno-surface-2);
  border-color: var(--aluno-border);
  color: #fff;
}

body.painel-aluno .file-list li { border-bottom-color: var(--aluno-border); color: var(--aluno-text); }
body.painel-aluno .file-list a { color: var(--aluno-accent); }

body.painel-aluno .chat-bubble {
  background: var(--aluno-surface-2);
  color: var(--aluno-text);
}

body.painel-aluno .chat-bubble.is-mine {
  background: rgba(255, 107, 44, 0.12);
  border: 1px solid rgba(255, 107, 44, 0.28);
}

body.painel-aluno .chat-meta { color: var(--aluno-muted); }

body.painel-aluno .badge-info {
  background: rgba(255, 107, 44, 0.15);
  color: var(--aluno-accent);
}

.badge-brand {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 107, 44, 0.18);
  color: var(--aluno-accent);
}

.aula-card--dark {
  background: var(--aluno-surface-2);
  border-color: var(--aluno-border);
}

.aula-card--dark .aula-card__title { color: #fff; }
.aula-card--dark .aula-card__desc { color: var(--aluno-muted); }

body.painel-aluno .btn,
body.painel-aluno .btn-outline,
body.painel-aluno .btn-primary {
  /* fallback em páginas ainda com classes antigas */
}

body.painel-aluno a.btn-outline,
body.painel-aluno .btn.btn-outline {
  border: 1px solid var(--aluno-border);
  color: #fff;
  background: transparent;
}

body.painel-aluno a.btn-primary,
body.painel-aluno .btn.btn-primary,
body.painel-aluno button.btn-primary {
  background: var(--aluno-gradient);
  color: #fff;
  border: none;
}

@media (max-width: 900px) {
  .aluno-shell { flex-direction: column; }
  .aluno-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--aluno-border);
  }
  .aluno-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aluno-hero,
  .aluno-content,
  .aluno-tabs {
    padding-inline: 1rem;
  }
}
