/* ============================================================
   RONIN TEAM — Estilos Principais
   Campeonato Português de Mini Velocidade
   ============================================================ */

/* --- Reset & Variáveis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #c0392b;
  --primary-d: #922b21;
  --dark:      #0d0d0d;
  --dark2:     #161616;
  --dark3:     #1e1e1e;
  --card:      #242424;
  --border:    #333;
  --text:      #e8e8e8;
  --muted:     #888;
  --white:     #fff;
  --success:   #27ae60;
  --warning:   #f39c12;
  --danger:    #e74c3c;
  --info:      #2980b9;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--white); }

img { max-width: 100%; border-radius: var(--radius); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary-d); border-radius: 4px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 100%);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(192,57,43,.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo / Brand — logótipo + texto */
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(192,57,43,.6));
  transition: filter var(--transition), transform var(--transition);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 14px rgba(192,57,43,1));
  transform: scale(1.07);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: .62rem;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links li a {
  color: var(--text);
  padding: .45rem .85rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(192,57,43,.2);
  color: var(--white);
}

/* User area */
.nav-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.user-badge {
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.4);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.user-badge .role-tag {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: .1rem .5rem;
  font-size: .7rem;
  font-weight: 700;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .4rem;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Page sections */
.page-section { display: none; }
.page-section.active { display: block; }

/* ============================================================
   HERO / INÍCIO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 60%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,57,43,.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero-title span { color: var(--primary); }

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-desc {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: #bbb;
  line-height: 1.8;
}

.hero-desc h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Stats bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ============================================================
   CARDS GENÉRICOS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(192,57,43,.5);
}

.card-header {
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.card-body { padding: 1.25rem 1.5rem; }

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-outline   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--white); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.8rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .87rem;
  font-weight: 600;
  color: #bbb;
}

.form-control {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: .65rem 1rem;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}

.form-control::placeholder { color: var(--muted); }

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: slideUp .25s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .2rem;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }

.modal-body { padding: 1.5rem; }

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* ============================================================
   TOASTS / ALERTAS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow);
  animation: slideLeft .25s ease;
  font-size: .88rem;
}

.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-primary  { background: rgba(192,57,43,.25); color: #e74c3c; border: 1px solid rgba(192,57,43,.4); }
.badge-success  { background: rgba(39,174,96,.2);  color: #2ecc71; border: 1px solid rgba(39,174,96,.4); }
.badge-warning  { background: rgba(243,156,18,.2); color: #f39c12; border: 1px solid rgba(243,156,18,.4); }
.badge-danger   { background: rgba(231,76,60,.2);  color: #e74c3c; border: 1px solid rgba(231,76,60,.4); }
.badge-info     { background: rgba(41,128,185,.2); color: #3498db; border: 1px solid rgba(41,128,185,.4); }
.badge-muted    { background: rgba(136,136,136,.15); color: var(--muted); border: 1px solid rgba(136,136,136,.3); }

/* ============================================================
   TABELAS
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

thead th {
  background: var(--dark3);
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(51,51,51,.5);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: rgba(255,255,255,.03); }

/* ============================================================
   PILOTOS — Perfil
   ============================================================ */
.piloto-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}

.piloto-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.piloto-num {
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   PEÇAS / MATERIAIS
   ============================================================ */
.stock-bar {
  height: 6px;
  background: var(--dark3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: .4rem;
}

.stock-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

.stock-ok    { background: var(--success); }
.stock-low   { background: var(--warning); }
.stock-empty { background: var(--danger); }

/* ============================================================
   TUTORIAIS
   ============================================================ */
.tutorial-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================================
   UPLOAD / DRAG & DROP
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(192,57,43,.05);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { font-size: 2rem; color: var(--muted); margin-bottom: .5rem; }
.upload-text { font-size: .88rem; color: var(--muted); }

.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.attachment-item {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .8rem;
  font-size: .8rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.attachment-item:hover { border-color: var(--primary); }

.attachment-remove {
  color: var(--danger);
  cursor: pointer;
  font-size .9rem;
  padding: 0 .15rem;
}

/* ============================================================
   FILTROS / SEARCH
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--muted);
  padding: .75rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}

.admin-tab:hover { color: var(--white); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================================
   IMPORTAÇÃO EXCEL
   ============================================================ */
.import-excel-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.import-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.import-format-info {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.import-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--dark2);
}

.import-dropzone:hover,
.import-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(192,57,43,.07);
}

.import-dropzone.dragover {
  border-style: solid;
  transform: scale(1.01);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container {
  max-width: 480px;
  margin: 3rem auto;
}

.auth-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.auth-logo-sub {
  font-size: .72rem;
  color: var(--primary);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  margin-top: .3rem;
}

.auth-body { padding: 2rem; }

.auth-divider {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin: 1rem 0;
}

/* ============================================================
   PENDING NOTICE
   ============================================================ */
.pending-notice {
  background: rgba(243,156,18,.1);
  border: 1px solid rgba(243,156,18,.4);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.pending-notice .icon { font-size: 1.4rem; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--text); margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; }

/* ============================================================
   LOADING
   ============================================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: .75rem;
  color: var(--muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(192,57,43,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   DETAIL VIEW
   ============================================================ */
.detail-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.detail-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.detail-info p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .25rem;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  .hero { padding: 2rem 1.25rem; }
  .main-wrapper { padding: 1.5rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-input { max-width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .modal { border-radius: 12px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.1rem; }
  .hero-title  { font-size: 1.6rem; }
  .stats-bar   { gap: 1.25rem; }
}

/* ============================================================
   MOTA SELECTOR
   ============================================================ */
.mota-selector-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mota-selector-bar label {
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  white-space: nowrap;
}

.mota-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.mota-stat { text-align: center; }
.mota-stat-num { font-size: 1.5rem; font-weight: 800; display: block; }
.mota-stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   NOTÍCIAS
   ============================================================ */

/* Grid de notícias — 2 cols desktop, 1 col mobile */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card de notícia */
.noticia-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(192,57,43,.5);
}

.noticia-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #0d0d0d;
  display: block;
  border-radius: 0;
}

.noticia-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}

.noticia-card-body {
  padding: 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.noticia-card-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
  font-size: .78rem;
  color: var(--muted);
}

.noticia-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  line-height: 1.35;
}

.noticia-card-resumo {
  font-size: .86rem;
  color: #aaa;
  line-height: 1.6;
  flex: 1;
}

.noticia-card-footer {
  padding: .9rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.noticia-card-autor {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Card destaque (hero) */
.noticia-destaque-card {
  background: linear-gradient(135deg, #1a0505 0%, var(--dark3) 100%);
  border: 1px solid rgba(192,57,43,.5);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.noticia-destaque-card:hover {
  box-shadow: 0 8px 40px rgba(192,57,43,.25);
  border-color: rgba(192,57,43,.8);
}

.noticia-destaque-img-wrap {
  overflow: hidden;
  max-height: 340px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.noticia-destaque-img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
}

.noticia-destaque-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.noticia-destaque-flag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  width: fit-content;
}

.noticia-destaque-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .75rem;
}

.noticia-destaque-resumo {
  font-size: .92rem;
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.noticia-destaque-meta {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── View modal ── */
.noticia-view-cover {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #0d0d0d;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: block;
}

.noticia-view-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: .82rem;
  color: var(--muted);
}

.noticia-view-content {
  line-height: 1.85;
  color: #ccc;
  font-size: .95rem;
}

.noticia-view-content p   { margin-bottom: .75rem; }
.noticia-view-content ul,
.noticia-view-content ol  { padding-left: 1.5rem; margin-bottom: .75rem; }
.noticia-view-content li  { margin-bottom: .3rem; }
.noticia-view-content strong { color: var(--white); }
.noticia-view-content a   { color: var(--primary); }
.noticia-view-content img { max-width: 100%; border-radius: var(--radius); margin: .75rem 0; }
.noticia-view-content h2,
.noticia-view-content h3  { color: var(--white); margin: 1.25rem 0 .5rem; }

/* Galeria */
.noticia-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}

.noticia-gallery img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #0d0d0d;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.noticia-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  border-color: var(--primary);
}

/* ── Editor toolbar ── */
.noticia-editor-toolbar {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: .4rem .55rem;
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
  row-gap: .35rem;
}

.editor-select {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  padding: .25rem .45rem;
  font-size: .78rem;
  cursor: pointer;
  font-family: inherit;
  height: 28px;
  transition: border-color var(--transition);
}
.editor-select:focus { outline: none; border-color: var(--primary); }

.editor-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text);
  padding: .25rem .44rem;
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  line-height: 1;
  height: 28px;
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.editor-btn:hover {
  background: rgba(192,57,43,.2);
  border-color: rgba(192,57,43,.4);
  color: var(--white);
}

.editor-btn:active { background: rgba(192,57,43,.35); }

.editor-btn-clear { color: var(--muted); font-size: .72rem; }
.editor-btn-clear:hover { color: var(--danger); }

.editor-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 .2rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Colour picker label buttons */
.editor-color-btn {
  position: relative;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text);
  padding: .25rem .44rem;
  cursor: pointer;
  height: 28px;
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.editor-color-btn:hover {
  background: rgba(192,57,43,.2);
  border-color: rgba(192,57,43,.4);
}
.editor-color-btn input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  left: 50%; top: 100%;
}
.editor-color-btn:focus-within input[type="color"] { pointer-events: auto; }
/* click label → open picker */
.editor-color-btn input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

.noticia-editor {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text);
  padding: .9rem 1rem;
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  font-size: .93rem;
  line-height: 1.75;
  outline: none;
  transition: border-color var(--transition);
}

.noticia-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* Placeholder via data attribute */
.noticia-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

/* Rich content styles inside editor */
.noticia-editor h2  { font-size:1.35rem; font-weight:800; color:var(--white); margin:.9rem 0 .4rem; }
.noticia-editor h3  { font-size:1.1rem;  font-weight:700; color:var(--white); margin:.75rem 0 .35rem; }
.noticia-editor h4  { font-size:.95rem;  font-weight:700; color:#ddd;         margin:.6rem 0 .3rem; }
.noticia-editor blockquote {
  border-left: 3px solid var(--primary);
  padding: .5rem 1rem;
  margin: .75rem 0;
  color: #bbb;
  font-style: italic;
  background: rgba(192,57,43,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.noticia-editor ul,
.noticia-editor ol { padding-left: 1.5rem; margin: .4rem 0; }
.noticia-editor li { margin-bottom: .25rem; }
.noticia-editor a  { color: var(--primary); }
.noticia-editor img { max-width:100%; border-radius:var(--radius); margin:.5rem 0; }
.noticia-editor hr  { border:none; border-top:1px solid var(--border); margin:1rem 0; }
.noticia-editor p  { margin-bottom:.5rem; }

/* Char count */
.editor-char-count {
  text-align: right;
  font-size: .73rem;
  color: var(--muted);
  margin-top: .3rem;
}

/* ── Tabs imagem (URL / Upload) ── */
.noticia-img-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: .25rem;
}

.noticia-img-tab {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: .35rem .85rem;
  font-size: .8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.noticia-img-tab.active,
.noticia-img-tab:hover {
  background: rgba(192,57,43,.2);
  border-color: rgba(192,57,43,.5);
  color: var(--white);
}

/* ── Gallery preview (editor) ── */
.noticia-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .75rem;
}

.gallery-preview-item {
  position: relative;
  width: 90px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}

.gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.gallery-preview-remove {
  position: absolute;
  top: 2px;
  right: 3px;
  background: rgba(0,0,0,.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .7rem;
  line-height: 1;
}

/* Cover preview */
#noticia-cover-preview img {
  max-height: 160px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: cover;
}

/* Responsive destaque */
@media (max-width: 768px) {
  .noticia-destaque-card {
    grid-template-columns: 1fr;
  }
  .noticia-destaque-img-wrap {
    max-height: 200px;
  }
  .noticia-destaque-body {
    padding: 1.25rem;
  }
  .noticia-destaque-title {
    font-size: 1.2rem;
  }
  .noticias-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PILOTO MOTAS CHECKBOXES
   ============================================================ */
#piloto-motas-check label {
  transition: border-color var(--transition), background var(--transition);
}
#piloto-motas-check label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(192,57,43,.08);
}

/* ============================================================
   PILOTO UPLOADS — Foto + Logo
   ============================================================ */
.piloto-uploads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .piloto-uploads-grid { grid-template-columns: 1fr; }
}

.piloto-upload-block { display: flex; flex-direction: column; gap: .5rem; }

.piloto-upload-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.piloto-upload-preview-wrap {
  display: flex;
  gap: .75rem;
  align-items: center;
}

/* Foto — círculo */
.piloto-foto-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark3);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.piloto-foto-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.piloto-foto-preview.has-img { border-color: var(--primary); }

/* Logo — quadrado arredondado */
.piloto-logo-preview {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--dark3);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.piloto-logo-preview img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}
.piloto-logo-preview.has-img { border-color: var(--primary); }

/* Upload zone compacta dentro do bloco */
.piloto-upload-zone {
  flex: 1;
  padding: .6rem .5rem !important;
  min-height: 72px;
}
.piloto-upload-zone .upload-text { font-size: .75rem !important; }

/* Piloto detail — exibir logo no perfil */
.piloto-detail-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--dark3);
  border: 2px solid var(--border);
  padding: 3px;
}

/* Card piloto — logo pequeño sobreposto */
.piloto-card-logo {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--dark2);
  border: 2px solid var(--border);
  padding: 2px;
}

/* ============================================================
   RICHTEXT DISPLAY
   ============================================================ */
.rich-content { line-height: 1.8; color: #ccc; }
.rich-content p { margin-bottom: .75rem; }
.rich-content ul, .rich-content ol { padding-left: 1.5rem; margin-bottom: .75rem; }
.rich-content li { margin-bottom: .3rem; }
.rich-content strong { color: var(--white); }
.rich-content h3, .rich-content h4 { color: var(--white); margin: 1rem 0 .5rem; }

/* ============================================================
   CALENDÁRIO
   ============================================================ */

/* Navegação de mês */
.cal-month-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cal-month-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  min-width: 200px;
  text-align: center;
  text-transform: capitalize;
}

/* Grelha do calendário */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2rem;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cal-cell {
  background: var(--dark2);
  min-height: 72px;
  padding: .35rem .45rem;
  position: relative;
  cursor: default;
}
.cal-header {
  min-height: unset;
  padding: .5rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--dark3);
}
.cal-empty { background: var(--dark); opacity: .4; }
.cal-day { cursor: pointer; transition: background var(--transition); }
.cal-day:hover { background: var(--dark3); }
.cal-day-num {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
.cal-hoje {
  background: rgba(192,57,43,.12) !important;
  border: 1px solid var(--primary) !important;
}
.cal-hoje .cal-day-num { color: var(--primary); font-weight: 800; }
.cal-past .cal-day-num { opacity: .45; }
.cal-has-events { background: var(--dark3); }

/* Dots de eventos */
.cal-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: .25rem;
}
.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Evento multi-dia: início arredondado só à esquerda, fim só à direita, meio retângulo */
.cal-dot.cal-dot-start {
  border-radius: 50% 0 0 50%;
  width: 10px;
}
.cal-dot.cal-dot-middle {
  border-radius: 0;
  width: 10px;
  opacity: .7;
}
.cal-dot.cal-dot-end {
  border-radius: 0 50% 50% 0;
  width: 10px;
}
.cal-dot-more {
  font-size: .6rem;
  color: var(--muted);
  line-height: 7px;
}

/* Cores por tipo */
.cal-tipo-prova      { background: #e74c3c; }
.cal-tipo-treino     { background: #3498db; }
.cal-tipo-equipa     { background: #2ecc71; }
.cal-tipo-patrocinio { background: #f39c12; }
.cal-tipo-outro      { background: #9b59b6; }

/* Badge tipo no card/detalhe */
.cal-badge-tipo { font-size: .75rem; border-radius: 20px; padding: .25rem .7rem; font-weight: 700; }
.cal-badge-tipo.cal-tipo-prova      { background: rgba(231,76,60,.2);  color: #e74c3c; border: 1px solid #e74c3c; }
.cal-badge-tipo.cal-tipo-treino     { background: rgba(52,152,219,.2); color: #3498db; border: 1px solid #3498db; }
.cal-badge-tipo.cal-tipo-equipa     { background: rgba(46,204,113,.2); color: #2ecc71; border: 1px solid #2ecc71; }
.cal-badge-tipo.cal-tipo-patrocinio { background: rgba(243,156,18,.2); color: #f39c12; border: 1px solid #f39c12; }
.cal-badge-tipo.cal-tipo-outro      { background: rgba(155,89,182,.2); color: #9b59b6; border: 1px solid #9b59b6; }

/* Grupo de mês na lista */
.cal-grupo { margin-bottom: 2rem; }
.cal-grupo-titulo {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

/* Eventos na lista */
.cal-eventos-lista { display: flex; flex-direction: column; gap: .65rem; }

.cal-evento-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
}
.cal-evento-card:hover {
  border-color: var(--primary);
  background: var(--dark3);
  transform: translateX(3px);
}
.cal-evento-past { opacity: .55; }
.cal-evento-past:hover { opacity: 1; }

.cal-evento-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
  flex-shrink: 0;
}
.cal-evento-dia-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.cal-evento-dia-sem {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cal-evento-linha {
  width: 3px;
  height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cal-evento-linha.cal-tipo-prova      { background: #e74c3c; }
.cal-evento-linha.cal-tipo-treino     { background: #3498db; }
.cal-evento-linha.cal-tipo-equipa     { background: #2ecc71; }
.cal-evento-linha.cal-tipo-patrocinio { background: #f39c12; }
.cal-evento-linha.cal-tipo-outro      { background: #9b59b6; }

.cal-evento-info { flex: 1; min-width: 0; }
.cal-evento-tipo-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .15rem .55rem;
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-evento-tipo-badge.cal-tipo-prova      { background: rgba(231,76,60,.15);  color: #e74c3c; }
.cal-evento-tipo-badge.cal-tipo-treino     { background: rgba(52,152,219,.15); color: #3498db; }
.cal-evento-tipo-badge.cal-tipo-equipa     { background: rgba(46,204,113,.15); color: #2ecc71; }
.cal-evento-tipo-badge.cal-tipo-patrocinio { background: rgba(243,156,18,.15); color: #f39c12; }
.cal-evento-tipo-badge.cal-tipo-outro      { background: rgba(155,89,182,.15); color: #9b59b6; }

.cal-evento-titulo {
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-evento-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}

.cal-evento-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--dark2);
}
.cal-evento-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cal-evento-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}

/* Mini-lista eventos do dia */
.cal-evento-mini {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  background: var(--dark3);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: .5rem;
  transition: background var(--transition);
}
.cal-evento-mini:hover { background: var(--border); }
.cal-evento-mini-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cal-evento-mini-icon.cal-tipo-prova      { background: rgba(231,76,60,.2); }
.cal-evento-mini-icon.cal-tipo-treino     { background: rgba(52,152,219,.2); }
.cal-evento-mini-icon.cal-tipo-equipa     { background: rgba(46,204,113,.2); }
.cal-evento-mini-icon.cal-tipo-patrocinio { background: rgba(243,156,18,.2); }
.cal-evento-mini-icon.cal-tipo-outro      { background: rgba(155,89,182,.2); }

/* Responsivo */
@media (max-width: 600px) {
  .cal-grid { grid-template-columns: repeat(7, 1fr); gap: 1px; }
  .cal-cell { min-height: 48px; padding: .2rem; }
  .cal-day-num { font-size: .7rem; }
  .cal-evento-card { flex-wrap: wrap; }
  .cal-evento-thumb { display: none; }
  .cal-month-label { min-width: 140px; font-size: 1rem; }
}

/* ============================================================
   BANNERS PATROCINADORES
   ============================================================ */

.sponsor-banner {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  z-index: 900;
  padding: .75rem .5rem;
  background: linear-gradient(180deg, rgba(10,10,10,.92) 0%, rgba(26,5,5,.92) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.sponsor-banner::-webkit-scrollbar { display: none; }
.sponsor-banner-left  { left: calc(50% - 640px - 140px); }
.sponsor-banner-right { right: calc(50% - 640px - 140px); }

.sponsor-label {
  font-size: .58rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
  width: 100%;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 77px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.sponsor-item:hover {
  border-color: var(--primary);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(192,57,43,.3);
}
.sponsor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  border-radius: 0;
}
.sponsor-name {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: .25rem;
  line-height: 1.3;
  word-break: break-word;
}

@media (min-width: 1300px) {
  body.has-banner-left  .nav-inner,
  body.has-banner-left  .main-wrapper  { padding-left: 150px; }
  body.has-banner-right .nav-inner,
  body.has-banner-right .main-wrapper  { padding-right: 150px; }
}
@media (max-width: 1100px) {
  .sponsor-banner { display: none !important; }
}

/* ── Cards Admin Patrocinadores ── */
.pat-admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.pat-admin-card:hover { border-color: var(--primary); }
.pat-admin-card.pat-inativo { opacity: .55; }

.pat-admin-logo {
  height: 110px;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pat-admin-logo img {
  max-width: 90%;
  max-height: 90px;
  object-fit: contain;
  border-radius: 0;
}
.pat-admin-info { padding: .75rem 1rem; flex: 1; }
.pat-admin-nome { font-weight: 700; color: var(--white); font-size: .95rem; margin-bottom: .3rem; }
.pat-admin-actions {
  display: flex;
  gap: .4rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.btn-warning { background: var(--warning); color: #000; border: none; }
.btn-warning:hover { background: #e08e0b; }
