/* ===== DIJJ — CSS Principal ===== */
:root {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #263548;
  --bg-input: #0F172A;
  --border: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --green: #16A34A;
  --red: #DC2626;
  --orange: #EA580C;
  --purple: #7C3AED;
  --sidebar-w: 240px;
  --topbar-h: 60px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-card: #F1F5F9;
  --bg-card-hover: #E2E8F0;
  --bg-input: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
}

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

/* Override Bootstrap .text-muted (cor fixa) para respeitar o tema */
.text-muted { color: var(--text-muted) !important; }
small { color: var(--text-muted); }
label { color: var(--text); }
p { color: var(--text); }
code { background: var(--bg-input); color: var(--text); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border); font-size: 0.85em; }
pre { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.bg-light { background: var(--bg-card) !important; color: var(--text) !important; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  transition: background .2s, color .2s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s ease;
}
[data-theme="light"] .sidebar { background: #F1F5F9; }
[data-theme="light"] .topbar { background: #FFFFFF; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.brand-logo { font-size: 1.5rem; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -.5px; }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all .15s;
  font-size: 13.5px;
}

.nav-item:hover { background: var(--bg-card-hover); color: var(--text); }
.nav-item.active { background: rgba(37,99,235,.15); color: var(--blue); }
.nav-item i { font-size: 1rem; width: 18px; text-align: center; }
.sidebar-nav .nav-label { display: inline-block; white-space: nowrap; overflow: visible; width: auto; min-width: max-content; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.text-danger-soft { color: #f87171 !important; }
.text-danger-soft:hover { background: rgba(220,38,38,.1) !important; color: var(--red) !important; }

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s;
  font-size: 1rem;
}
.btn-icon:hover { background: var(--bg-card-hover); color: var(--text); }

.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.user-btn:hover { background: var(--bg-card-hover); }
.user-btn::after { display: none; }

.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-avatar-placeholder {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.user-name { font-size: 13px; font-weight: 500; }

/* Notificações */
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: #ef4444;
  border-radius: 8px;
  border: 1.5px solid var(--bg-card);
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.notif-dropdown { width: 340px; max-height: 400px; overflow-y: auto; color: var(--text); }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); }
.btn-link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 12px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-dismiss {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  padding: 2px 4px; border-radius: 4px; font-size: 14px; flex-shrink: 0;
  transition: all .15s; line-height: 1;
}
.notif-dismiss:hover { background: var(--bg-card-hover); color: var(--text); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notif-dot.bg-warning { background: var(--orange); }
.notif-dot.bg-success { background: var(--green); }
.notif-dot.bg-primary { background: var(--blue); }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.notif-msg { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.notif-time {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 4px;
  opacity: .75;
  text-align: right;
}
.notif-empty { color: var(--text-muted); padding: 16px; margin: 0; font-size: 13px; text-align: center; }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 24px; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.page-subtitle { color: var(--text-muted); margin: 2px 0 0; font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-link { text-decoration: none; color: inherit; display: block; }
.stat-card-link:hover { color: inherit; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }
.bg-cyan { background: #0891B2; }
.btn-outline-cyan { color: var(--text-muted); border-color: var(--border); }
.btn-outline-cyan:hover { background: #0891B2; color: #fff; border-color: #0891B2; }
[data-theme="dark"] .btn-outline-cyan { color: #67e8f9; border-color: #67e8f9; }
[data-theme="dark"] .btn-outline-cyan:hover { background: #0891B2; color: #fff; border-color: #0891B2; }
[data-theme="light"] .btn-outline-cyan { color: #0891B2; border-color: #0891B2; }
[data-theme="light"] .btn-outline-cyan:hover { background: #0891B2; color: #fff; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

/* ===== FORMS ===== */
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="light"] .form-control,
[data-theme="light"] .form-select { border-color: #CBD5E1; }
[data-theme="light"] .input-group-text { background: #F8FAFC; }
.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--text-muted); }

[data-theme="light"] .form-check-input {
  background-color: #FFFFFF;
  border: 1px solid #94A3B8;
}

[data-theme="light"] .form-check-input:hover {
  border-color: #64748B;
}

[data-theme="light"] .form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

[data-theme="light"] .form-check-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(201, 146, 18, .14);
}
[data-theme="dark"] .form-text {
  color: var(--text-muted) !important;
}
/* Ícone do calendário nos campos de data */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.form-label { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group { margin-bottom: 16px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon .form-control { padding-left: 36px; }
.input-group-text { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn { border-radius: 8px; font-weight: 500; font-size: 14px; transition: all .15s; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-danger { background: var(--red); border-color: var(--red); }

/* ===== TABLES ===== */
.table { color: var(--text); }
.table > :not(caption) > * > * { background: transparent; color: var(--text); border-color: var(--border); padding: 12px 16px; }
.table-hover > tbody > tr:hover > * { background: var(--bg-card-hover); }
thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }

/* ===== BADGES ===== */
.badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.belt-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.belt-badge.sm { padding: 2px 8px; font-size: 11px; }
.belt-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===== DROPDOWN ===== */
.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.dropdown-item { color: var(--text); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text); }
.dropdown-divider { border-color: var(--border); }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius); border: none; font-size: 14px; }
.alert-success { background: rgba(22,163,74,.15); color: #16a34a; }
.alert-danger { background: rgba(220,38,38,.15); color: #dc2626; }
.alert-warning { background: rgba(234,88,12,.15); color: #c2410c; }
.alert-info { background: rgba(37,99,235,.15); color: #2563eb; }

[data-theme="dark"] .alert-success { color: #4ade80; }
[data-theme="dark"] .alert-danger { color: #f87171; }
[data-theme="dark"] .alert-warning { color: #fb923c; }
[data-theme="dark"] .alert-info { color: #60a5fa; }

/* ===== AUTH PAGES ===== */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.auth-container { width: 100%; max-width: 440px; padding: 20px; }
.auth-card-wide { max-width: 700px; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo { font-size: 2.5rem; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin: 8px 0 4px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13px; }
.auth-footer a { color: var(--blue); text-decoration: none; }
.auth-theme-toggle { text-align: center; margin-top: 16px; }

/* ===== PUBLIC LAYOUT ===== */
.public-body { background: var(--bg); }
.public-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.public-nav .brand { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; }
.public-content { min-height: calc(100vh - 120px); }
.public-footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); }

/* ===== EVENT HERO ===== */
.event-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  overflow: hidden;
}
.event-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.3);
}
.event-hero-content { position: relative; z-index: 1; padding: 40px 24px; }
.event-hero-title { font-size: 2rem; font-weight: 800; color: #fff; margin: 8px 0; }
.event-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.7); font-size: 14px; }
.event-hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ===== EVENT CARDS ===== */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-banner { height: 160px; background-size: cover; background-position: center; }
.event-banner-placeholder { background: linear-gradient(135deg, #1e3a5f, #0f172a); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-muted); }
.event-card-body { padding: 16px; }
.event-name { font-size: 15px; font-weight: 600; margin: 8px 0; }
.event-meta { display: flex; flex-direction: column; gap: 4px; color: var(--text-muted); font-size: 12px; }
.event-meta span { display: flex; align-items: center; gap: 6px; }
.event-card-footer { display: flex; gap: 8px; margin-top: 12px; }

/* ===== CHALLENGER CARDS ===== */
.challenger-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .15s;
}
.challenger-card:hover { border-color: var(--blue); }
.challenger-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.challenger-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.challenger-avatar img { width: 100%; height: 100%; object-fit: cover; }
.challenger-name { font-weight: 600; margin: 0; font-size: 14px; }
.challenger-ig { font-size: 12px; color: var(--blue); text-decoration: none; }
.challenger-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.challenger-msg { font-size: 12px; color: var(--text-muted); font-style: italic; margin: 8px 0 0; }

/* ===== ATHLETE CARDS ===== */
.athlete-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.athlete-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.athlete-avatar img { width: 100%; height: 100%; object-fit: cover; }
.athlete-name { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.athlete-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.athlete-avatar-sm { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.athlete-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ===== AVATAR PLACEHOLDER ===== */
.avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.avatar-placeholder.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-placeholder.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-placeholder.xl { width: 80px; height: 80px; font-size: 30px; }

/* ===== FIGHT VIEWS ===== */
.fight-status-banner {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 500;
}
.status-open { background: rgba(22,163,74,.15); color: #4ade80; }
.status-pending_acceptance { background: rgba(234,88,12,.15); color: #fb923c; }
.status-pending_payment { background: rgba(234,88,12,.15); color: #fb923c; }
.status-confirmed { background: rgba(22,163,74,.15); color: #4ade80; }
.status-cancelled { background: rgba(220,38,38,.15); color: #f87171; }
.status-finished { background: rgba(100,116,139,.15); color: #94a3b8; }

.fighter-card { transition: transform .15s; }
.fighter-card:hover { transform: translateY(-2px); }
.fighter-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; }
.fighter-avatar img { width: 100%; height: 100%; object-fit: cover; }

.vs-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

.fight-vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fight-name { font-weight: 600; font-size: 13px; }
.fight-vs-badge { font-size: 11px; font-weight: 700; color: var(--red); }
.fight-list-card { transition: transform .15s; }
.fight-list-card:hover { transform: translateY(-2px); }

/* ===== PAYMENT ===== */
.payment-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-method-option input { display: none; }
.payment-method-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s;
  min-width: 100px;
}
.payment-method-card i { font-size: 1.5rem; }
.payment-method-card span { font-weight: 600; font-size: 13px; }
.payment-method-card small { color: var(--text-muted); font-size: 11px; }
.payment-method-option input:checked + .payment-method-card { border-color: var(--blue); background: rgba(37,99,235,.1); }
.payment-method-card:hover { border-color: var(--blue); }

.price-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.price-label { display: block; font-size: 12px; color: var(--text-muted); }
.price-value { font-size: 1.25rem; font-weight: 700; }

.pix-qrcode { max-width: 200px; border-radius: 8px; }
.pix-key-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; word-break: break-all; }

.payment-success-icon { font-size: 3rem; }
.payment-details { text-align: left; }
.payment-detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.payment-detail-row:last-child { border-bottom: none; }

/* ===== INFO LIST ===== */
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-item:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }

/* ===== REGISTRATION LIST ===== */
.registration-list { max-height: 320px; overflow-y: auto; }
.reg-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.reg-item:last-child { border-bottom: none; }
.reg-name { font-size: 13px; font-weight: 500; }
.reg-meta { font-size: 11px; color: var(--text-muted); }

/* ===== FINANCE ===== */
.finance-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }

/* ===== SECTION TITLE ===== */
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

/* ===== PROFILE ===== */
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.btn-remove-avatar {
  background: none;
  border: none;
  color: #ff4d4f;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  display: block;
  margin-top: 6px;
}
.btn-remove-avatar:hover { text-decoration: underline; opacity: .8; }
.btn-remove-avatar:disabled { color: var(--text-muted); text-decoration: none; cursor: default; opacity: .7; }

.profile-type-options { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-type-option input { display: none; }
.profile-type-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .15s; min-width: 140px; text-align: center;
}
.profile-type-card i { font-size: 1.5rem; color: var(--text-muted); }
.profile-type-card strong { font-size: 13px; color: var(--text); }
.profile-type-card small { color: var(--text-muted); font-size: 11px; }
.profile-type-option input:checked + .profile-type-card { border-color: var(--blue); background: rgba(37,99,235,.1); }
.profile-type-card:hover { border-color: var(--blue); }

/* ===== TEAM ===== */
.team-logo { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.team-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-card { min-height: 130px; display: flex; flex-direction: column; }
.team-card .card-body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state h4 { color: var(--text); }

/* ===== SIDEBAR TOGGLE (mobile) ===== */
.sidebar-toggle { display: none; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.admin-cards-row { flex-wrap: nowrap; overflow-x: auto; }
.admin-cards-row > .col { min-width: 0; }

/* =========================================================
   HOME PÚBLICA — REFERÊNCIA OFICIAL
========================================================= */

.home-reference-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.home-reference-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #070b0e;
}

.home-reference-hero-photo {
  position: absolute;
  inset: 0;

  background-image: url('../img/header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.home-reference-hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(4,8,11,.98) 0%,
      rgba(4,8,11,.93) 35%,
      rgba(4,8,11,.58) 60%,
      rgba(4,8,11,.20) 100%
    );
}

.home-reference-hero-inner {
  position: relative;
  z-index: 2;

  min-height: 500px;

  display: flex;
  align-items: center;

  padding-top: 38px;
  padding-bottom: 38px;
}

.home-reference-hero-copy {
  width: 52%;
  max-width: 560px;
}

.home-reference-kicker {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #b8934b;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-reference-kicker::before {
  content: "";

  display: block;

  width: 28px;
  height: 1px;

  background: #b8934b;
}

.home-reference-hero h1 {
  margin: 12px 0 14px;

  color: #fff;

  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
  font-weight: 900;

  line-height: .91;

  letter-spacing: -.045em;
}

.home-reference-hero h1 strong {
  color: #c7a45d;
  font-weight: 900;
}

.home-reference-hero-copy > p {
  max-width: 470px;

  margin: 0;

  color: rgba(255,255,255,.78);

  font-size: 14px;
  line-height: 1.55;
}

.home-reference-actions {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 20px;
}

.home-reference-btn {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 20px;

  text-decoration: none;

  border-radius: 6px;

  font-size: 12px;
  font-weight: 700;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.home-reference-btn:hover {
  transform: translateY(-2px);
}

.home-reference-btn-gold {
  background: #d0aa5b;
  border: 1px solid #d0aa5b;

  color: #0b0d0e;
}

.home-reference-btn-gold:hover {
  background: #dfbe78;
  color: #0b0d0e;
}

.home-reference-btn-outline {
  background: rgba(0,0,0,.14);

  border: 1px solid rgba(255,255,255,.45);

  color: #fff;
}

.home-reference-btn-outline:hover {
  border-color: #d0aa5b;

  color: #fff;
}

.home-reference-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 25px;

  margin-top: 25px;
}

.home-reference-trust > div {
  display: flex;
  align-items: center;

  gap: 7px;

  color: rgba(255,255,255,.82);

  font-size: 11px;
}

.home-reference-trust i {
  color: #d0aa5b;
}

.home-reference-hero-values {
  position: absolute;

  top: 55px;
  right: 0;

  display: flex;
  flex-direction: column;

  color: rgba(255,255,255,.82);

  text-align: right;

  font-size: 10px;
  line-height: 1.7;

  letter-spacing: .18em;
}

.home-reference-hero-values i {
  display: block;

  width: 28px;
  height: 1px;

  margin: 8px 0 0 auto;

  background: #c7a45d;
}


/* =========================================================
   EVENTOS
========================================================= */

.home-reference-events {
  padding: 48px 0 42px;

  background: #faf9f6;
}

.home-reference-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 24px;
}

.home-reference-section-header h2,
.home-reference-how h2 {
  margin: 6px 0 3px;

  color: #111417;

  font-size: clamp(1.8rem, 3vw, 2.45rem);

  font-weight: 800;

  line-height: 1.1;

  letter-spacing: -.03em;
}

.home-reference-section-header p,
.home-reference-how-subtitle {
  margin: 0;

  color: #5f6670;

  font-size: 13px;
}

.home-reference-all-events {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 8px 14px;

  border: 1px solid #aeb1b4;
  border-radius: 6px;

  color: #131619;

  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
}

.home-reference-event-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.home-reference-event-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid #dfdfdf;
  border-radius: 5px;

  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.home-reference-event-banner {
  position: relative;

  height: 155px;

  display: block;

  background-position: center;
  background-size: cover;

  background-color: #11161a;

  text-decoration: none;
}

.home-reference-event-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      #282e34,
      #0b0f12 75%
    );
}

.home-reference-event-placeholder span {
  color: #d0aa5b;

  font-size: 25px;
  font-weight: 900;

  letter-spacing: .12em;
}

.home-reference-event-placeholder small {
  margin-top: 3px;

  color: rgba(255,255,255,.45);

  font-size: 7px;

  letter-spacing: .15em;
}

.home-reference-event-date {
  position: absolute;

  top: 8px;
  right: 8px;

  min-width: 43px;

  padding: 7px 5px;

  display: flex;
  flex-direction: column;

  align-items: center;

  background: rgba(5,8,10,.86);

  color: #fff;

  line-height: 1;
}

.home-reference-event-date strong {
  font-size: 20px;
}

.home-reference-event-date span {
  margin-top: 2px;

  font-size: 9px;
  font-weight: 800;
}

.home-reference-event-date small {
  margin-top: 2px;

  color: #fff;

  font-size: 7px;
}

.home-reference-event-body {
  padding: 12px;
}

.home-reference-event-body h3 {
  margin: 0 0 10px;

  color: #101316;

  font-size: 14px;
  font-weight: 700;
}

.home-reference-event-info {
  display: flex;
  align-items: center;

  gap: 6px;

  margin-bottom: 4px;

  color: #60666d;

  font-size: 10px;
}

.home-reference-event-info i {
  color: #b8934b;
}

.home-reference-event-button {
  min-height: 32px;

  margin-top: 10px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 4px;

  background: #d0aa5b;

  color: #111417;

  text-decoration: none;

  font-size: 10px;
  font-weight: 700;
}

.home-reference-empty {
  padding: 40px 20px;

  text-align: center;

  border: 1px solid #ddd;

  background: #fff;
}

.home-reference-empty i {
  color: #b8934b;

  font-size: 28px;
}

.home-reference-empty h3 {
  margin: 8px 0 3px;

  color: #111417;

  font-size: 16px;
}

.home-reference-empty p {
  margin: 0;

  color: #70767d;

  font-size: 12px;
}


/* =========================================================
   COMO FUNCIONA
========================================================= */

.home-reference-how {
  padding: 34px 0 36px;

  background: #fff;
}

.home-reference-how-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 30px;

  margin-top: 25px;
}

.home-reference-step {
  text-align: center;
}

.home-reference-step-icon {
  width: 48px;
  height: 48px;

  margin: 0 auto 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #11161a;

  color: #fff;

  font-size: 19px;
}

.home-reference-step h3 {
  margin: 0 0 7px;

  color: #101316;

  font-size: 12px;
  font-weight: 700;
}

.home-reference-step p {
  max-width: 200px;

  margin: 0 auto;

  color: #5e646a;

  font-size: 11px;
  line-height: 1.45;
}


/* =========================================================
   INDICADORES
========================================================= */

.home-reference-stats {
  position: relative;

  padding: 26px 0;

  background:
    linear-gradient(
      rgba(5,9,12,.78),
      rgba(5,9,12,.78)
    ),
    url('../img/backgrounddados.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-reference-stats-inner {
  display: grid;

  grid-template-columns:
    repeat(5, 1fr) 1.2fr;

  align-items: center;
}

.home-reference-stat {
  text-align: center;

  color: #fff;
}

.home-reference-stat i {
  display: block;

  margin-bottom: 4px;

  color: #d0aa5b;

  font-size: 22px;
}

.home-reference-stat strong {
  display: block;

  font-size: 22px;
  line-height: 1;
}

.home-reference-stat span {
  display: block;

  margin-top: 5px;

  color: rgba(255,255,255,.75);

  font-size: 9px;
}

.home-reference-stats-message {
  min-height: 74px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  padding-left: 40px;

  border-left: 1px solid rgba(255,255,255,.35);

  color: #fff;

  font-size: 11px;

  letter-spacing: .16em;
  line-height: 1.45;
}

.home-reference-stats-message i {
  display: block;

  width: 30px;
  height: 2px;

  margin-top: 10px;

  background: #d0aa5b;
}


/* =========================================================
   FAÇA PARTE
========================================================= */

.home-reference-join {
  position: relative;

  min-height: 220px;

  overflow: hidden;

  background: #e9dfcc;
}

.home-reference-join-photo {
  position: absolute;
  inset: 0;

  background-image: url('../img/rodape.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-reference-join-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(247,241,231,.97) 0%,
      rgba(247,241,231,.72) 33%,
      rgba(247,241,231,.15) 55%,
      rgba(247,241,231,.68) 75%,
      rgba(247,241,231,.95) 100%
    );
}

.home-reference-join-inner {
  position: relative;
  z-index: 2;

  min-height: 220px;

  display: grid;

  grid-template-columns:
    1fr .9fr 1fr;

  align-items: center;

  gap: 30px;
}

.home-reference-join-copy h2 {
  margin: 8px 0 8px;

  color: #111417;

  font-size: 30px;

  font-weight: 900;

  line-height: .95;
}

.home-reference-join-copy p {
  max-width: 360px;

  margin: 0;

  color: #2e3338;

  font-size: 12px;
  line-height: 1.45;
}

.home-reference-join-center {
  display: flex;

  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
}

.home-reference-person-placeholder {
  display: none;
}

.home-reference-join-action {
  text-align: center;
}

.home-reference-join-button {
  width: 100%;

  max-width: 280px;
}

.home-reference-join-action p {
  max-width: 270px;

  margin: 10px auto 0;

  color: #2c3135;

  font-size: 10px;

  line-height: 1.5;
}

.home-reference-join-action strong {
  display: block;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

  .home-reference-hero-values {
    display: none;
  }

  .home-reference-hero-copy {
    width: 65%;
  }

  .home-reference-event-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .home-reference-stats-inner {
    grid-template-columns:
      repeat(4, 1fr);
  }

  .home-reference-stats-message {
    grid-column: 1 / -1;

    margin-top: 22px;
    padding: 20px 0 0;

    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.25);

    text-align: center;
  }

  .home-reference-stats-message i {
    margin-left: auto;
    margin-right: auto;
  }

}


/* =========================================================
   MOBILE PRINCIPAL
========================================================= */

@media (max-width: 767px) {

  .home-reference-container {
    width: calc(100% - 32px);
  }


  /* HERO */

  .home-reference-hero {
    min-height: auto;
  }

  .home-reference-hero-photo {
  opacity: 1;
  background-position: 62% center;
}



  .home-reference-hero-overlay {
    background:
      linear-gradient(
        rgba(4,8,11,.84),
        rgba(4,8,11,.96)
      );
  }

  .home-reference-hero-inner {
    min-height: auto;

    padding-top: 52px;
    padding-bottom: 40px;
  }

  .home-reference-hero-copy {
    width: 100%;
    max-width: none;
  }

  .home-reference-kicker {
    font-size: 8px;
  }

  /*
   * IMPORTANTE:
   * título propositalmente menor no mobile.
   */
  .home-reference-hero h1 {
    margin-top: 12px;

    font-size: 2.35rem;

    line-height: .96;

    letter-spacing: -.035em;
  }

  .home-reference-hero-copy > p {
    font-size: 12px;

    line-height: 1.55;
  }

  .home-reference-actions {
    display: grid;

    grid-template-columns: 1fr;

    gap: 9px;

    margin-top: 20px;
  }

  .home-reference-btn {
    width: 100%;

    min-height: 44px;

    font-size: 11px;
  }

  .home-reference-trust {
    gap: 12px;

    margin-top: 22px;
  }

  .home-reference-trust > div {
    font-size: 9px;
  }


  /* EVENTOS */

  .home-reference-events {
    padding: 36px 0;
  }

  .home-reference-section-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;

    margin-bottom: 20px;
  }

  .home-reference-section-header h2,
  .home-reference-how h2 {
    font-size: 1.75rem;
  }

  .home-reference-section-header p,
  .home-reference-how-subtitle {
    font-size: 11px;
  }

  .home-reference-event-grid {
    grid-template-columns: 1fr;
  }

  .home-reference-event-banner {
    height: 170px;
  }


  /* COMO FUNCIONA */

  .home-reference-how {
    padding: 34px 0;
  }

  .home-reference-how-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 15px;
  }

  .home-reference-step-icon {
    width: 44px;
    height: 44px;

    font-size: 17px;
  }

  .home-reference-step p {
    font-size: 10px;
  }


  /* INDICADORES */

  .home-reference-stats {
    padding: 30px 0;
  }

  .home-reference-stats-inner {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 25px 10px;
  }

  .home-reference-stat strong {
    font-size: 19px;
  }

  .home-reference-stats-message {
    grid-column: 1 / -1;
  }


  /* FAÇA PARTE */

/* FAÇA PARTE */

.home-reference-join {
  min-height: auto;
}

.home-reference-join-photo {
  background-size: cover;
  background-position: center 72%;
}

.home-reference-join-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(247,241,231,.97) 0%,
      rgba(247,241,231,.90) 38%,
      rgba(247,241,231,.68) 65%,
      rgba(247,241,231,.88) 100%
    );
}

.home-reference-join-inner {
  min-height: 330px;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 28px;
  text-align: center;
}

.home-reference-join-copy h2 {
  font-size: 1.75rem;
  line-height: .95;
}

.home-reference-join-copy p {
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
}

.home-reference-join-center {
  display: none;
}

.home-reference-join-action {
  width: 100%;
  margin-top: auto;
}

.home-reference-join-button {
  max-width: 280px;
}

.home-reference-join-action p {
  max-width: 280px;
}

}


/* CELULARES PEQUENOS */

@media (max-width: 420px) {

  .home-reference-hero h1 {
    font-size: 2.05rem;
  }

  .home-reference-how-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   HEADER HOME PÚBLICA
========================================================= */

.home-reference-nav {
  position: relative;

  z-index: 100;

  height: 62px;

  display: flex;
  align-items: center;

  background: #060a0d;

  border-bottom:
    1px solid rgba(255,255,255,.08);
}

.home-reference-nav-inner {
  width: min(1180px, calc(100% - 48px));

  height: 100%;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 32px;
}

.home-reference-brand {
  display: flex;
  align-items: center;

  gap: 8px;

  text-decoration: none;
}

.home-reference-brand-icon {
  font-size: 25px;
}

.home-reference-brand-name {
  color: #fff;

  font-size: 24px;

  font-weight: 900;

  letter-spacing: -.04em;
}

.home-reference-brand-desc {
  padding-left: 8px;

  border-left:
    1px solid rgba(255,255,255,.16);

  color: rgba(255,255,255,.46);

  font-size: 6px;

  line-height: 1.5;

  letter-spacing: .08em;
}

.home-reference-menu {
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 28px;
}

.home-reference-menu a {
  position: relative;

  height: 100%;

  display: flex;
  align-items: center;

  color: rgba(255,255,255,.82);

  text-decoration: none;

  font-size: 11px;
}

.home-reference-menu a:hover {
  color: #fff;
}

.home-reference-menu a.active {
  color: #d0aa5b;
}

.home-reference-menu a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 11px;

  height: 1px;

  background: #d0aa5b;
}

.home-reference-nav-actions {
  display: flex;
  align-items: center;

  gap: 10px;
}

.home-reference-user {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.home-reference-user-name {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.home-reference-user-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.28);
}

.home-reference-user-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d0aa5b;
  color: #0c0e10;
  font-size: 11px;
  font-weight: 800;
}

.home-reference-theme-btn {
  width: 34px;
  height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(255,255,255,.20);

  border-radius: 7px;

  background: transparent;

  color: #fff;
}

.home-reference-nav-login,
.home-reference-nav-register {
  min-height: 34px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0 15px;

  border-radius: 6px;

  text-decoration: none;

  font-size: 11px;
}

.home-reference-nav-login {
  color: #fff;

  border:
    1px solid rgba(255,255,255,.55);
}

.home-reference-nav-register {
  background: #d0aa5b;

  border: 1px solid #d0aa5b;

  color: #0c0e10;

  font-weight: 700;
}


/* HEADER MOBILE */

@media (max-width: 850px) {

  .home-reference-nav-inner {
    width: calc(100% - 28px);

    grid-template-columns:
      1fr auto;

    gap: 12px;
  }

  .home-reference-menu,
  .home-reference-brand-desc {
    display: none;
  }

  .home-reference-brand-name {
    font-size: 20px;
  }

  .home-reference-brand-icon {
    font-size: 21px;
  }

}


@media (max-width: 420px) {

  .home-reference-nav {
    height: 58px;
  }

  .home-reference-nav-actions {
    gap: 6px;
  }

  .home-reference-theme-btn {
    width: 31px;
    height: 31px;
  }

  .home-reference-user-name {
    font-size: 10px;
  }

  .home-reference-user-avatar {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .home-reference-nav-login,
  .home-reference-nav-register {
    min-height: 31px;

    padding: 0 9px;

    font-size: 9px;
  }

}

/* =========================================================
   AJUSTES FINOS — HOME PÚBLICA
========================================================= */

/* HERO MAIS PRÓXIMO DA REFERÊNCIA */
.home-reference-hero {
  min-height: 460px;
}

.home-reference-hero-inner {
  min-height: 460px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.home-reference-hero-copy {
  max-width: 520px;
}

.home-reference-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: .93;
}

.home-reference-hero-copy > p {
  max-width: 445px;
}


/* EVENTOS — EVITAR CARD ISOLADO DEMAIS */
.home-reference-event-grid {
  justify-content: start;
}

.home-reference-event-card {
  width: 100%;
}

@media (min-width: 992px) {
  .home-reference-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-reference-event-card {
    max-width: none;
  }

  .home-reference-event-grid > .home-reference-event-card:only-child {
    max-width: 360px;
  }

  .home-reference-event-grid > .home-reference-event-card:nth-last-child(2):first-child,
  .home-reference-event-grid > .home-reference-event-card:nth-last-child(2):first-child ~ .home-reference-event-card {
    max-width: 360px;
  }
}


/* SEÇÃO FINAL MAIS COMPACTA */
.home-reference-join {
  min-height: 190px;
}

.home-reference-join-inner {
  min-height: 190px;
  gap: 22px;
}

.home-reference-join-copy h2 {
  font-size: 27px;
}

.home-reference-person-placeholder {
  height: 165px;
  font-size: 95px;
}

.home-reference-join-button {
  max-width: 250px;
}


/* RODAPÉ DA ÁREA PÚBLICA */
.public-footer {
  background: #05080a;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.08);
}

.public-footer p {
  color: rgba(255,255,255,.72);
  margin: 0;
}


/* MOBILE */
@media (max-width: 767px) {

  .home-reference-hero,
  .home-reference-hero-inner {
    min-height: auto;
  }

  .home-reference-hero h1 {
    font-size: 2.2rem;
  }

  .home-reference-join,
  .home-reference-join-inner {
    min-height: auto;
  }

}


/* ===== FLEX UTIL ===== */
.flex-1 { flex: 1; min-width: 0; }
.fw-600 { font-weight: 600; }

/* ===== AUTOCOMPLETE ===== */
.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: var(--bg-card); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 8px 8px; max-height: 200px; overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.autocomplete-list:empty { display: none; }
.autocomplete-item {
  padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--text);
}
.autocomplete-item:hover { background: var(--bg-card-hover); }

/* ===== CUSTOM SELECT ===== */
.cs-wrap { position: relative; }
.cs-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-input); color: var(--text); cursor: pointer;
  font-size: 14px; transition: border-color .15s; min-height: 38px;
}
.cs-trigger::after { content: '\F282'; font-family: 'bootstrap-icons'; font-size: 11px; color: var(--text-muted); margin-left: auto; padding-left: 8px; flex-shrink: 0; }
.cs-trigger:hover { border-color: var(--blue); }
.cs-trigger.cs-placeholder { color: var(--text-muted); }
.cs-drop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.cs-drop.open { display: block; }
.cs-input {
  width: 100%; padding: 8px 12px; border: none; border-bottom: 1px solid var(--border);
  background: var(--bg-input); color: var(--text); font-size: 13px; outline: none;
}
.cs-input::placeholder { color: var(--text-muted); }
.cs-list { max-height: 180px; overflow-y: auto; }
.cs-item {
  padding: 8px 12px; font-size: 13px; color: var(--text); cursor: pointer;
  transition: background .1s;
}
.cs-item:hover { background: var(--bg-card-hover); }
.cs-item.active { background: rgba(37,99,235,.12); color: var(--blue); font-weight: 600; }
.cs-empty { padding: 12px; text-align: center; color: var(--text-muted); font-size: 13px; }
.cs-disabled { opacity: .6; cursor: default; pointer-events: none; }

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md);
}

/* ===== BOOTSTRAP MODAL OVERRIDE ===== */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.modal-header .modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-header .btn-close { filter: var(--btn-close-filter); }
[data-theme="dark"] .modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.modal-body { padding: 20px; }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.modal-backdrop { background: rgba(0,0,0,.6); }
.modal-backdrop.show { opacity: 1; }

/* Toast */
.toast { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; }


/* ===== PROFILE ALERT ===== */
.profile-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(234, 88, 12, .08);
  border: 1px solid rgba(234, 88, 12, .2);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.profile-alert-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(234, 88, 12, .15);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.profile-alert-body { flex: 1; min-width: 0; }
.profile-alert-title { font-size: 14px; font-weight: 600; margin: 0 0 2px; color: var(--text); }
.profile-alert-desc { font-size: 13px; color: var(--text-muted); margin: 0; }
.profile-alert-btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 576px) {
  .profile-alert { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-alert-btn { width: 100%; text-align: center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open + .sidebar-overlay { display: block; }
  .main-wrapper { margin-left: 0; width: 100%; max-width: 100vw; overflow-x: hidden; }
  .sidebar-toggle { display: flex; }
  .content { padding: 16px; width: 100%; }
  .topbar { padding: 0 12px; }
  .event-hero-title { font-size: 1.4rem; }
  .auth-card { padding: 24px; }
  .stat-value { font-size: 1.2rem; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .notif-dropdown { width: min(340px, calc(100vw - 32px)); }
  .card-header.d-flex { flex-direction: column !important; align-items: stretch !important; gap: 10px; }
  .card-header .form-control { max-width: 100% !important; width: 100% !important; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .admin-cards-row { flex-wrap: wrap !important; overflow-x: visible; }
  .admin-cards-row > .col { min-width: 50% !important; flex: 0 0 50%; }
}

@media (max-width: 480px) {
  .payment-methods { flex-direction: column; }
  .payment-method-card { flex-direction: row; min-width: unset; }
  .stat-card { padding: 10px; gap: 8px; }
  .stat-icon { width: 34px; height: 34px; font-size: .9rem; border-radius: 8px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 1rem; }
  .table > :not(caption) > * > * { padding: 8px 10px; font-size: 13px; }
  .btn-sm { padding: 4px 6px; font-size: 12px; }
}

/* =====================================================
   PÁGINA PÚBLICA - TODOS OS EVENTOS
===================================================== */

.public-events-page {
    padding: 72px 0 90px;
    background: #ffffff;
    min-height: 70vh;
}

.public-events-header {
    max-width: 720px;
    margin-bottom: 42px;
}

.public-events-header h1 {
    margin: 8px 0 10px;
    font-size: 2.7rem;
    line-height: 1;
    font-weight: 800;
    color: #111;
}

.public-events-header p {
    margin: 0;
    max-width: 620px;
    color: #6b6b6b;
    font-size: 1rem;
    line-height: 1.6;
}


/* Botão "Ver Todos os Eventos" da Home */
.home-reference-all-events {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 18px;

    background: #d4a72c;
    border: 1px solid #d4a72c;
    border-radius: 6px;

    color: #111;
    font-weight: 700;
    text-decoration: none;

    transition: all .2s ease;
}

.home-reference-all-events:hover {
    background: #c69a24;
    border-color: #c69a24;
    color: #111;
}


/* MOBILE */
@media (max-width: 767px) {

    .public-events-page {
        padding: 44px 0 64px;
    }

    .public-events-header {
        margin-bottom: 30px;
    }

    .public-events-header h1 {
        font-size: 2rem;
    }

    .public-events-header p {
        font-size: .95rem;
    }

}

/* =========================================================
   CONTATO PÚBLICO
========================================================= */

.public-contact-page {
    min-height: 70vh;
    padding: 72px 0 90px;
    background: #ffffff;
}

.public-contact-header {
    max-width: 720px;
    margin-bottom: 45px;
}

.public-contact-header h1 {
    margin: 8px 0 12px;
    color: #111;
    font-size: 2.7rem;
    line-height: 1;
    font-weight: 800;
}

.public-contact-header p {
    max-width: 620px;
    margin: 0;
    color: #6b6b6b;
    font-size: 1rem;
    line-height: 1.65;
}


/* Cards */

.public-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.public-contact-card {
    display: flex;
    gap: 22px;
    min-height: 230px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.public-contact-card:hover {
    transform: translateY(-3px);
    border-color: #d4a72c;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .07);
    color: inherit;
}

.public-contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #111;
    color: #d4a72c;
    font-size: 1.4rem;
}

.public-contact-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.public-contact-card-content > span {
    margin-bottom: 7px;
    color: #b88c1f;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.public-contact-card-content h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 1.25rem;
    font-weight: 800;
}

.public-contact-card-content p {
    margin: 0 0 22px;
    color: #747474;
    font-size: .94rem;
    line-height: 1.6;
}

.public-contact-card-content strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #111;
    font-size: .92rem;
}

.public-contact-card-content strong i {
    color: #d4a72c;
}


/* Aviso evento */

.public-contact-event-notice {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 35px;
    padding: 30px;
    background: #111;
    border-radius: 10px;
}

.public-contact-event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #d4a72c;
    color: #111;
    font-size: 1.3rem;
}

.public-contact-event-notice span {
    display: block;
    margin-bottom: 6px;
    color: #d4a72c;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.public-contact-event-notice h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.public-contact-event-notice p {
    max-width: 780px;
    margin: 0;
    color: #b9b9b9;
    font-size: .94rem;
    line-height: 1.65;
}


/* Responsivo */

@media (max-width: 767px) {

    .public-contact-page {
        padding: 44px 0 64px;
    }

    .public-contact-header {
        margin-bottom: 30px;
    }

    .public-contact-header h1 {
        font-size: 2rem;
    }

    .public-contact-grid {
        grid-template-columns: 1fr;
    }

    .public-contact-card {
        padding: 24px;
    }

    .public-contact-event-notice {
        padding: 24px;
    }
}

/* =========================================================
   PÁGINA PÚBLICA — PRÓXIMOS EVENTOS
   Ajuste final
========================================================= */

.public-events-page {
    padding: 72px 0 90px;
    background: #faf9f6;
    min-height: 70vh;
}

/* Cabeçalho */
.public-events-page > .d-flex {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    align-items: flex-end !important;
}

.public-events-page h1 {
    margin: 8px 0 7px;
    color: #111417 !important;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.public-events-page > .d-flex p {
    margin: 0;
    color: #5f6670 !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Grid dos eventos */
.public-events-page > .home-reference-event-grid {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

/* Botão voltar */
.public-events-page .home-reference-all-events {
    background: #d0aa5b;
    border-color: #d0aa5b;
    color: #111417;
}

.public-events-page .home-reference-all-events:hover {
    background: #dfbe78;
    border-color: #dfbe78;
    color: #111417;
}

/* Mobile */
@media (max-width: 767px) {

    .public-events-page {
        padding: 42px 0 64px;
    }

    .public-events-page > .d-flex,
    .public-events-page > .home-reference-event-grid {
        width: calc(100% - 32px);
    }

    .public-events-page > .d-flex {
        align-items: flex-start !important;
    }

    .public-events-page h1 {
        font-size: 2rem;
    }

    .public-events-page .home-reference-all-events {
        width: auto;
    }
}


/* =========================================================
   TEMA CLARO — REFINAMENTO VISUAL DIJJ
   Objetivo:
   - preservar integralmente o tema escuro;
   - criar mais profundidade e contraste no tema claro;
   - usar dourado como destaque principal do Light;
   - manter semântica de sucesso/erro/alerta onde já existe.
   ========================================================= */

[data-theme="light"] {
  --bg: #E8EDF3;
  --bg-card: #F5F7FA;
  --bg-card-hover: #E4EAF1;
  --bg-input: #FFFFFF;
  --border: #C9D2DE;
  --text: #0F172A;
  --text-muted: #64748B;
  --blue: #C99212;
  --blue-hover: #AA7810;
  --shadow:
    0 1px 2px rgba(15, 23, 42, .05),
    0 4px 10px rgba(15, 23, 42, .05);
  --shadow-md:
    0 4px 8px rgba(15, 23, 42, .06),
    0 12px 24px rgba(15, 23, 42, .07);
}

[data-theme="light"] body,
[data-theme="light"] .main-wrapper,
[data-theme="light"] .content {
  background: var(--bg);
}

[data-theme="light"] .sidebar {
  background: #DDE4EC;
  border-right-color: #C6D0DC;
}

[data-theme="light"] .sidebar-brand,
[data-theme="light"] .sidebar-footer {
  border-color: #C6D0DC;
}

[data-theme="light"] .nav-divider {
  background: #C6D0DC;
}

[data-theme="light"] .nav-item {
  color: #526174;
}

[data-theme="light"] .nav-item:hover {
  background: #CFD8E3;
  color: #0F172A;
}

[data-theme="light"] .nav-item.active {
  background: rgba(201, 146, 18, .13);
  color: #8D650B;
}

[data-theme="light"] .nav-item.active i {
  color: #A9770E;
}

[data-theme="light"] .topbar {
  background: #F8FAFC;
  border-bottom-color: #CBD5E1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

[data-theme="light"] .btn-icon,
[data-theme="light"] .user-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

[data-theme="light"] .btn-icon:hover,
[data-theme="light"] .user-btn:hover {
  background: #EEF2F6;
}

[data-theme="light"] .card {
  background: #F3F6F9;
  border-color: #C9D2DE;
  box-shadow: var(--shadow);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .event-card,
[data-theme="light"] .challenger-card,
[data-theme="light"] .athlete-card,
[data-theme="light"] .team-card,
[data-theme="light"] .profile-type-card,
[data-theme="light"] .payment-method-card {
  background: #FFFFFF;
  border-color: #D3DAE4;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .05);
}

[data-theme="light"] .card .card {
  background: #FFFFFF;
  border-color: #D3DAE4;
}

[data-theme="light"] .card-header {
  border-bottom-color: #D1D9E3;
}

[data-theme="light"] .page-title,
[data-theme="light"] .card-title,
[data-theme="light"] .section-title {
  color: #0F172A;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-theme="light"] .cs-trigger,
[data-theme="light"] .cs-input {
  background: #FFFFFF;
  border-color: #C5CFDB;
  color: #0F172A;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
  border-color: #C99212;
  box-shadow: 0 0 0 3px rgba(201, 146, 18, .14);
}

[data-theme="light"] .input-group-text {
  background: #EDF2F6;
  border-color: #C5CFDB;
}

[data-theme="light"] .btn-primary {
  background: #C99212;
  border-color: #C99212;
  color: #FFFFFF;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:focus,
[data-theme="light"] .btn-primary:active {
  background: #AA7810 !important;
  border-color: #AA7810 !important;
  color: #FFFFFF !important;
}

[data-theme="light"] .btn-outline-secondary {
  color: #334155;
  border-color: #B7C2CF;
  background: #F8FAFC;
}

[data-theme="light"] .btn-outline-secondary:hover,
[data-theme="light"] .btn-outline-secondary:focus {
  color: #0F172A;
  background: #E3E9F0;
  border-color: #9EADBD;
}

[data-theme="light"] .stat-card .bg-orange,
[data-theme="light"] .stat-card .bg-green {
  background: #D19A1B;
}

[data-theme="light"] .stat-card .bg-purple,
[data-theme="light"] .stat-card .bg-blue,
[data-theme="light"] .stat-card .bg-cyan {
  background: #3159B8;
}

[data-theme="light"] .dropdown-menu,
[data-theme="light"] .cs-drop,
[data-theme="light"] .autocomplete-list {
  background: #FFFFFF;
  border-color: #C9D2DE;
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .cs-item:hover,
[data-theme="light"] .autocomplete-item:hover {
  background: #EDF2F6;
}

[data-theme="light"] .table > :not(caption) > * > * {
  border-color: #D2DAE4;
}

[data-theme="light"] .table-hover > tbody > tr:hover > * {
  background: #E9EEF4;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal-box,
[data-theme="light"] .toast {
  background: #F8FAFC;
  border-color: #C9D2DE;
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .auth-card {
  background: #F8FAFC;
  border-color: #C9D2DE;
}

[data-theme="light"] .public-nav {
  background: #F8FAFC;
  border-bottom-color: #CBD5E1;
}

[data-theme="light"] .stat-card:hover,
[data-theme="light"] .event-card:hover,
[data-theme="light"] .challenger-card:hover {
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .price-box,
[data-theme="light"] .pix-key-box {
  background: #EDF2F6;
  border-color: #C9D2DE;
}

[data-theme="light"] .page-subtitle,
[data-theme="light"] .stat-label,
[data-theme="light"] .event-meta,
[data-theme="light"] .reg-meta,
[data-theme="light"] .info-label,
[data-theme="light"] .auth-subtitle,
[data-theme="light"] .auth-footer {
  color: #5F6F82;
}

[data-theme="light"] .btn-success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

[data-theme="light"] .btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 768px) {
  [data-theme="light"] .sidebar {
    background: #DDE4EC;
  }

  [data-theme="light"] .content {
    background: var(--bg);
  }
}

/* PATCH 56 — identificação do usuário no topbar mobile */
@media (max-width: 767px) {
  .topbar-right { gap: 6px; }
  .user-btn { max-width: 132px; padding-right: 7px; gap: 6px; }
  .user-btn .user-name { display: inline-block; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ===== Dashboard do professor v1 ===== */
.professor-dashboard-v1 { color: var(--text); }
.professor-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.prof-kpi,.prof-status,.prof-payment-row,.prof-quick-grid a { color:var(--text); text-decoration:none; }
.prof-kpi { min-height:126px; position:relative; display:flex; align-items:center; gap:14px; padding:18px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.prof-kpi:hover,.prof-status:hover,.prof-quick-grid a:hover { background:var(--bg-card-hover); color:var(--text); }
.prof-kpi>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.prof-kpi small,.prof-status small{color:var(--text);font-size:13px}.prof-kpi strong{font-size:28px;line-height:1.15}.prof-kpi em,.prof-status em{font-style:normal;color:var(--text-muted);font-size:12px;margin-top:5px}.prof-kpi-arrow{margin-left:auto;color:var(--text-muted)}
.prof-kpi-icon,.prof-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#fff;border-radius:10px}.prof-kpi-icon{width:48px;height:48px;font-size:22px}.prof-status-icon{width:42px;height:42px;font-size:19px}.is-blue{background:#2563eb}.is-purple{background:#7c3aed}.is-green{background:#16a34a}.is-gold{background:#d6a315}.is-red{background:#dc2626}.is-orange{background:#ea580c}.is-slate{background:#64748b}
.prof-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.9fr);gap:14px}.prof-dashboard-grid.lower{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr)}
.prof-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);color:var(--text)}.prof-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.prof-panel-head h5{margin:0;color:var(--text);font-size:17px}.prof-panel-head p{margin:2px 0 0;color:var(--text-muted);font-size:12px}.payment-head{justify-content:flex-start}.prof-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 7px;margin-left:6px;border-radius:12px;background:#dc2626;color:#fff;font-size:12px}
.prof-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.prof-status{min-height:112px;display:flex;gap:10px;padding:13px;background:var(--bg-card-hover);border:1px solid var(--border);border-radius:10px}.prof-status>span:last-child{display:flex;flex-direction:column;min-width:0}.prof-status strong{font-size:23px;line-height:1.2}.prof-status em{color:#3b82f6;margin-top:auto}
.prof-payment-list{border-top:1px solid var(--border)}.prof-payment-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;align-items:center;gap:9px;padding:10px 2px;border-bottom:1px solid var(--border)}.prof-payment-row:hover{color:var(--text)}.prof-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--bg-card-hover);color:var(--text-muted);font-size:11px;font-weight:700}.prof-payment-name{display:flex;flex-direction:column;min-width:0}.prof-payment-name strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.prof-payment-name small{font-size:11px;color:var(--text-muted)}
.prof-outline-action,.prof-mini-btn{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--text);border:1px solid var(--border);border-radius:8px}.prof-outline-action{padding:9px 12px;margin-top:12px}.prof-outline-action:hover,.prof-mini-btn:hover{background:var(--bg-card-hover);color:var(--text)}.prof-mini-btn{padding:6px 11px;font-size:12px;white-space:nowrap}
.prof-event-card,.prof-own-event{border:1px solid var(--border);border-radius:10px;padding:13px}.prof-event-title,.prof-own-event{display:flex;align-items:center;gap:12px}.prof-event-title h4,.prof-own-event h4{font-size:16px;margin:0;color:var(--text)}.prof-event-title p,.prof-own-event p{font-size:12px;color:var(--text-muted);margin:3px 0 0}.prof-event-icon{width:48px;height:48px;border-radius:9px;background:rgba(214,163,21,.16);color:#d6a315;display:flex;align-items:center;justify-content:center;font-size:21px}.prof-event-metrics{display:grid;grid-template-columns:repeat(5,1fr);margin-top:13px;border:1px solid var(--border);border-radius:9px;overflow:hidden}.prof-event-metrics>div{padding:9px;text-align:center;border-right:1px solid var(--border)}.prof-event-metrics>div:last-child{border-right:0}.prof-event-metrics strong{display:block;font-size:18px;color:var(--text)}.prof-event-metrics small{display:block;font-size:10px;color:var(--text-muted)}.prof-event-metrics .is-enabled strong{color:#16a34a}.prof-event-metrics .is-disabled{opacity:.55}.prof-event-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.prof-event-actions .prof-outline-action{margin:0}
.prof-empty{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text-muted);font-size:13px}.prof-quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.prof-quick-grid a{min-height:86px;border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.prof-quick-grid i{font-size:21px}.prof-quick-grid span{font-size:12px;text-align:center}
[data-theme="light"] .prof-kpi,[data-theme="light"] .prof-panel{background:#f8fafc}[data-theme="light"] .prof-status{background:#fff}
@media(max-width:1200px){.professor-kpis{grid-template-columns:repeat(2,1fr)}.prof-dashboard-grid,.prof-dashboard-grid.lower{grid-template-columns:1fr}.prof-status-grid{grid-template-columns:repeat(4,1fr)}.prof-quick-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){.professor-kpis{grid-template-columns:1fr 1fr}.prof-status-grid{grid-template-columns:1fr 1fr}.prof-quick-grid{grid-template-columns:1fr 1fr}.prof-event-metrics{grid-template-columns:repeat(2,1fr)}.prof-event-metrics>div{border-bottom:1px solid var(--border)}.prof-event-actions{grid-template-columns:1fr}}
@media(max-width:480px){.professor-kpis{grid-template-columns:1fr}}

/* Professor Dashboard V1.2 - multiple events + mobile containment */
.professor-dashboard-v1,
.professor-dashboard-v1 .prof-dashboard-grid,
.professor-dashboard-v1 .prof-panel,
.professor-dashboard-v1 .prof-status-grid,
.professor-dashboard-v1 .prof-payment-panel { min-width:0; max-width:100%; }
.professor-dashboard-v1 { width:100%; overflow-x:hidden; }
.prof-events-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.prof-events-list .prof-event-card { min-width:0; }
@media(max-width:1200px){ .prof-events-list{grid-template-columns:1fr 1fr;} }
@media(max-width:768px){
  .professor-dashboard-v1 .prof-dashboard-grid, .professor-dashboard-v1 .prof-dashboard-grid.lower { width:100%; min-width:0; grid-template-columns:minmax(0,1fr); }
  .professor-dashboard-v1 .prof-panel { width:100%; overflow:hidden; }
  .professor-dashboard-v1 .prof-status-grid { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .professor-dashboard-v1 .prof-status { min-width:0; padding:11px; gap:8px; }
  .professor-dashboard-v1 .prof-status-icon { width:40px; height:40px; }
  .professor-dashboard-v1 .prof-payment-row { grid-template-columns:32px minmax(0,1fr) auto 14px; }
  .professor-dashboard-v1 .payment-head { min-width:0; }
  .professor-dashboard-v1 .payment-head > div { min-width:0; }
  .professor-dashboard-v1 .payment-head h5 { overflow-wrap:anywhere; }
  .prof-events-list { grid-template-columns:1fr; }
}
@media(max-width:400px){
  .professor-dashboard-v1 .prof-panel { padding:14px; }
  .professor-dashboard-v1 .prof-status { min-height:112px; }
  .professor-dashboard-v1 .prof-status small { font-size:12px; overflow-wrap:anywhere; }
  .professor-dashboard-v1 .prof-status em { font-size:11px; }
}

/* Dashboard professor V1.4 - textos longos dentro dos cards */
.prof-status,
.prof-status > span:not(.prof-status-icon) {
    min-width: 0;
}
.prof-status small,
.prof-status em {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Dashboard professor V1.5 - limpeza de informação */
.prof-status-group-title{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin:2px 0 9px}
.prof-status-group-secondary{margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}
.prof-status-grid-fights{grid-template-columns:repeat(4,minmax(0,1fr))}
.prof-status-grid-modalities{grid-template-columns:repeat(3,minmax(0,1fr))}
.prof-status{min-width:0;align-items:flex-start}
.prof-status-content{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.prof-status-content small{width:100%;min-height:34px;line-height:1.25;overflow-wrap:normal;word-break:normal;hyphens:none}
.prof-status-content strong{line-height:1.1;margin-top:2px}
.prof-status-content em{margin-top:7px}
.prof-event-poster,.prof-event-poster-fallback{width:48px;height:64px;flex:0 0 48px;border-radius:7px;border:1px solid var(--border);object-fit:cover;background:var(--bg-card)}
.prof-event-poster-fallback{display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:20px}
.prof-event-title{align-items:center}
.prof-event-title>div{min-width:0}
@media(max-width:1200px){.prof-status-grid-fights{grid-template-columns:repeat(2,minmax(0,1fr))}.prof-status-grid-modalities{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.prof-status-grid-fights,.prof-status-grid-modalities{grid-template-columns:repeat(2,minmax(0,1fr))}.prof-status-content small{min-height:34px}.prof-event-poster,.prof-event-poster-fallback{width:44px;height:58px;flex-basis:44px}}
@media(max-width:380px){.prof-status-grid-fights,.prof-status-grid-modalities{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.prof-status{padding:10px}.prof-status-icon{flex:0 0 40px;width:40px;height:40px}.prof-status-content small{font-size:12px}}


/* Dashboard professor V1.6 - cards compactos e links discretos */
.professor-dashboard-v1 .prof-status {
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
    padding: 13px;
}
.professor-dashboard-v1 .prof-status-icon {
    grid-column: 1;
    grid-row: 1;
}
.professor-dashboard-v1 .prof-status-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
.professor-dashboard-v1 .prof-status-content small {
    min-height: 0;
    line-height: 1.25;
}
.professor-dashboard-v1 .prof-status-content strong {
    margin-top: 2px;
}
.professor-dashboard-v1 .prof-status-content em {
    grid-column: 1 / -1;
    color: var(--text-muted);
    margin-top: 0;
}
.professor-dashboard-v1 .prof-status:hover .prof-status-content em {
    color: var(--text);
}
@media (max-width: 768px) {
    .professor-dashboard-v1 .prof-status {
        grid-template-columns: 40px minmax(0,1fr);
        padding: 10px;
        column-gap: 8px;
    }
}

/* Dashboard professor V1.7 - compactação visual */
.professor-dashboard-v1 .prof-kpi{
    min-height:96px;
    padding:15px 18px;
}
.professor-dashboard-v1 .prof-kpi > span:nth-child(2){
    justify-content:center;
}
.professor-dashboard-v1 .prof-kpi small{
    white-space:nowrap;
    font-size:12px;
}
.professor-dashboard-v1 .prof-kpi strong{
    font-size:27px;
}
.professor-dashboard-v1 .prof-kpi-arrow,
.professor-dashboard-v1 .prof-kpi em{
    display:none;
}
.professor-dashboard-v1 .prof-status-grid-fights{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.professor-dashboard-v1 .prof-status-grid-modalities{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.professor-dashboard-v1 .prof-status{
    min-height:64px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
}
.professor-dashboard-v1 .prof-status-icon{
    width:36px;
    height:36px;
    flex:0 0 36px;
    font-size:16px;
}
.professor-dashboard-v1 .prof-status-content{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    width:100%;
}
.professor-dashboard-v1 .prof-status-content small{
    width:auto;
    min-height:0;
    white-space:nowrap;
    font-size:12px;
}
.professor-dashboard-v1 .prof-status-content strong{
    margin:0 0 0 auto;
    font-size:21px;
    flex:0 0 auto;
}
.professor-dashboard-v1 .prof-status-content em{
    display:none;
}
.professor-dashboard-v1 .prof-payment-summary{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    min-height:96px;
    text-decoration:none;
    color:var(--text);
}
.professor-dashboard-v1 .prof-payment-summary:hover{
    background:var(--bg-card-hover);
    color:var(--text);
}
.professor-dashboard-v1 .prof-payment-summary-content{
    display:flex;
    flex-direction:column;
    min-width:0;
}
.professor-dashboard-v1 .prof-payment-summary-content small{
    color:var(--text);
    font-size:13px;
    font-weight:600;
}
.professor-dashboard-v1 .prof-payment-summary-content strong{
    font-size:27px;
    line-height:1.1;
}
@media(max-width:768px){
    .professor-dashboard-v1 .prof-kpi small{white-space:normal;}
    .professor-dashboard-v1 .prof-status-grid-fights,
    .professor-dashboard-v1 .prof-status-grid-modalities{grid-template-columns:1fr;}
    .professor-dashboard-v1 .prof-status-content small{white-space:normal;}
}

/* Dashboard professor V1.8 - hierarquia em linhas completas */
.professor-dashboard-v1 .prof-status-panel,
.professor-dashboard-v1 .prof-team-events-panel{width:100%;}
.professor-dashboard-v1 .prof-status-grid-fights{grid-template-columns:repeat(4,minmax(0,1fr));}
.professor-dashboard-v1 .prof-status-grid-modalities{grid-template-columns:repeat(3,minmax(0,1fr));}
.professor-dashboard-v1 .prof-events-list{grid-template-columns:repeat(3,minmax(0,1fr));}
.professor-dashboard-v1 .prof-event-card{min-width:0;}
.professor-dashboard-v1 .prof-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.professor-dashboard-v1 .prof-payment-summary{min-height:150px;}
.professor-dashboard-v1 .prof-bottom-description{display:block;color:var(--text-muted);font-size:12px;font-weight:400;margin-top:3px;}
.professor-dashboard-v1 .prof-own-participation{min-width:0;}
@media(max-width:1200px){
  .professor-dashboard-v1 .prof-events-list{grid-template-columns:repeat(2,minmax(0,1fr));}
  .professor-dashboard-v1 .prof-status-grid-fights{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(max-width:900px){
  .professor-dashboard-v1 .prof-status-grid-fights{grid-template-columns:repeat(2,minmax(0,1fr));}
  .professor-dashboard-v1 .prof-bottom-grid{grid-template-columns:1fr;}
}
@media(max-width:768px){
  .professor-dashboard-v1 .prof-events-list{grid-template-columns:1fr;}
  .professor-dashboard-v1 .prof-status-grid-modalities{grid-template-columns:1fr;}
}
@media(max-width:480px){
  .professor-dashboard-v1 .prof-status-grid-fights{grid-template-columns:1fr;}
}

/* Dashboard professor V1.9 - mobile 2 cards por linha */
@media(max-width:768px){
  .professor-dashboard-v1 .prof-status-grid-fights,
  .professor-dashboard-v1 .prof-status-grid-modalities{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .professor-dashboard-v1 .prof-status{
    min-width:0;
  }
  .professor-dashboard-v1 .prof-status-content{
    min-width:0;
  }
  .professor-dashboard-v1 .prof-status-content small{
    white-space:normal;
    overflow-wrap:anywhere;
  }
}
@media(max-width:480px){
  .professor-dashboard-v1 .prof-status-grid-fights,
  .professor-dashboard-v1 .prof-status-grid-modalities{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Dashboard professor V1.10 - mobile: KPIs superiores 2 por linha */
@media(max-width:768px){
  .professor-dashboard-v1 .professor-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .professor-dashboard-v1 .prof-kpi{
    min-width:0;
    min-height:86px;
    padding:12px;
    gap:10px;
  }
  .professor-dashboard-v1 .prof-kpi-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
    font-size:18px;
  }
  .professor-dashboard-v1 .prof-kpi small{
    white-space:normal;
    line-height:1.2;
    overflow-wrap:normal;
    word-break:normal;
  }
  .professor-dashboard-v1 .prof-kpi strong{
    font-size:24px;
  }
}
@media(max-width:480px){
  .professor-dashboard-v1 .professor-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Activity timeline — professor and athlete dashboards */
.activity-timeline-panel{width:100%}.activity-timeline-list{display:flex;flex-direction:column}.activity-timeline-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 4px;border-top:1px solid var(--border);color:var(--text);text-decoration:none}.activity-timeline-row:first-child{border-top:0}.activity-timeline-row:hover{background:rgba(148,163,184,.06)}.activity-timeline-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(148,163,184,.14)}.activity-timeline-icon.is-blue{color:#3b82f6;background:rgba(59,130,246,.14)}.activity-timeline-icon.is-green{color:#22c55e;background:rgba(34,197,94,.14)}.activity-timeline-icon.is-orange{color:#f59e0b;background:rgba(245,158,11,.14)}.activity-timeline-icon.is-red{color:#ef4444;background:rgba(239,68,68,.14)}.activity-timeline-icon.is-purple{color:#a855f7;background:rgba(168,85,247,.14)}.activity-timeline-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.activity-timeline-copy strong{font-size:13px;color:var(--text)}.activity-timeline-copy strong small{font-size:12px;font-weight:600;color:var(--text-muted)}.activity-timeline-copy span{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-timeline-copy em{font-size:11px;color:var(--text-muted);font-style:normal}.activity-timeline-row time{font-size:11px;color:var(--text-muted);white-space:nowrap}.activity-filter-bar{display:grid;grid-template-columns:minmax(240px,1fr) 240px;gap:10px;margin-bottom:12px}.activity-no-results{text-align:center;padding:36px 12px;color:var(--text-muted)}
@media(max-width:700px){.activity-timeline-row{grid-template-columns:38px minmax(0,1fr)}.activity-timeline-row time{grid-column:2}.activity-filter-bar{grid-template-columns:1fr}}
