/* ============================================================
   Ação CSC — Global Stylesheet
   ============================================================ */

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

:root {
  --primary:       #166534;
  --primary-dark:  #14532d;
  --primary-light: #4ade80;
  --accent:        #22c55e;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --bg-dark:       #011a0c;
  --bg-card:       rgba(255,255,255,.07);
  --border-card:   rgba(255,255,255,.12);
  --text-main:     #f1f5f9;
  --text-muted:    #94a3b8;
  --font:          'Poppins', sans-serif;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 25px 60px rgba(0,0,0,.5);
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Animated Gradient Background ─────────────────────────── */
.quiz-bg {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(22,101,52,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(74,222,128,.15) 0%, transparent 60%),
    linear-gradient(135deg, #011a0c 0%, #042311 55%, #011a0c 100%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* ─── Floating Particles ────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(22,101,52,.18);
  animation: float 12s infinite ease-in-out;
}
.particles span:nth-child(1) { width:80px;  height:80px;  top:10%;  left:10%;  animation-delay:0s; }
.particles span:nth-child(2) { width:60px;  height:60px;  top:20%;  right:15%; animation-delay:2s; }
.particles span:nth-child(3) { width:100px; height:100px; bottom:20%; left:5%;  animation-delay:4s; background:rgba(74,222,128,.1); }
.particles span:nth-child(4) { width:40px;  height:40px;  top:60%;  right:10%; animation-delay:1s; }
.particles span:nth-child(5) { width:120px; height:120px; bottom:5%; right:20%; animation-delay:3s; background:rgba(22,101,52,.1); }
.particles span:nth-child(6) { width:50px;  height:50px;  top:40%;  left:30%;  animation-delay:5s; }
.particles span:nth-child(7) { width:70px;  height:70px;  top:5%;   right:40%; animation-delay:6s; background:rgba(74,222,128,.08); }
.particles span:nth-child(8) { width:90px;  height:90px;  bottom:30%; left:40%; animation-delay:7s;}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity:.6; }
  50%       { transform: translateY(-30px) scale(1.1); opacity:1; }
}

/* ─── Brand Elements ────────────────────────────────────────── */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 40px rgba(22,101,52,.5);
  font-size: 1.8rem;
  color: #fff;
  animation: pulse-glow 3s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(22,101,52,.4); }
  50%       { box-shadow: 0 0 60px rgba(74,222,128,.7); }
}

/* Logo CSC nos headers das páginas */
.brand-logo-wrap {
  display: inline-block;
  margin-bottom: .75rem;
}
.brand-logo-wrap img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(22,101,52,.5));
  animation: pulse-glow 3s infinite ease-in-out;
}

/* Logo CSC pequena — telas intermediárias */
.brand-logo-sm {
  display: inline-block;
  margin-bottom: .5rem;
}
.brand-logo-sm img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: .9;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f1f5f9, var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.brand-title-lg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-top: .25rem;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 400;
  margin-top: .25rem;
}

/* ─── Glass Card ────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.1);
}

.card-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.card-desc {
  color: var(--text-muted);
  font-size: .9rem;
}

/* ─── Form Controls ─────────────────────────────────────────── */
.form-label-custom {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  font-size: .95rem;
  padding: .7rem 1rem;
  outline: none;
  transition: var(--transition);
  appearance: none;
}
.form-control-custom::placeholder { color: rgba(148,163,184,.5); }
.form-control-custom:focus {
  border-color: var(--primary);
  background: rgba(22,101,52,.08);
  box-shadow: 0 0 0 3px rgba(22,101,52,.25);
}
.form-control-custom.is-invalid-custom {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.2);
}

option { background: #1e293b; color: var(--text-main); }

.invalid-feedback-custom {
  color: var(--danger);
  font-size: .8rem;
  margin-top: .3rem;
  display: none;
}

.input-password-wrapper { position: relative; }
.input-password-wrapper .form-control-custom { padding-right: 3rem; }
.btn-toggle-pwd {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 .2rem;
  transition: color .2s;
}
.btn-toggle-pwd:hover { color: var(--primary-light); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(22,101,52,.4);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22,101,52,.6);
  color: #fff;
}
.btn-primary-custom:active { transform: translateY(0); }
.btn-primary-custom:disabled { opacity:.5; cursor:not-allowed; transform:none; }

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary-custom:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: var(--text-main);
}

/* ─── Alert ─────────────────────────────────────────────────── */
.alert-custom {
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .88rem;
}
.alert-danger-custom {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}

/* ─── Instructions List ─────────────────────────────────────── */
.instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.instruction-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: .92rem;
  color: var(--text-main);
  line-height: 1.5;
}
.instr-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: .85rem;
}

/* ─── Quiz ──────────────────────────────────────────────────── */
.quiz-progress-header {
  color: var(--text-main);
}
.progress-label {
  font-size: .9rem;
  color: var(--text-muted);
}

/* Timer SVG */
.timer-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}
.timer-svg { transform: rotate(-90deg); }
.timer-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; }
.timer-fill {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear, stroke .5s;
}
.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-main);
}
.timer-fill.urgent { stroke: var(--danger); }

.progress-bar-track {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  transition: width .5s ease;
}

/* Question */
.quiz-card { transition: opacity .3s ease, transform .3s ease; }
.quiz-card.leaving { opacity: 0; transform: translateX(-30px); }
.quiz-card.entering { opacity: 0; transform: translateX(30px); }

.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: .9rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.option-btn:hover:not(:disabled) {
  background: rgba(22,101,52,.15);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(22,101,52,.2);
}
.option-btn .letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(22,101,52,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--primary-light);
  border: 1px solid rgba(22,101,52,.3);
}
.option-btn.selected {
  background: linear-gradient(135deg, rgba(22,101,52,.3), rgba(74,222,128,.15));
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(22,101,52,.35);
}
.option-btn.selected .letter {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.option-btn:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }

/* Skeleton */
.skeleton-loader { display: flex; flex-direction: column; gap: .75rem; }
.skeleton-line {
  height: 16px;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-option {
  height: 56px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%, 100% { opacity:.6; }
  50%       { opacity:1; }
}

/* Thank you */
.thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #16a34a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(34,197,94,.5);
  animation: pop-in .5s cubic-bezier(.34,1.56,.64,1);
}
.already-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 40px rgba(22,101,52,.5);
}
@keyframes pop-in {
  from { transform: scale(0); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}

.confetti-row { font-size: 1.5rem; letter-spacing: .5rem; }

.text-muted-light { color: var(--text-muted); }

/* ─── Animations ────────────────────────────────────────────── */
.animate-fadein  { animation: fadeIn .5s ease forwards; }
.animate-slidein { animation: slideIn .5s cubic-bezier(.21,1.02,.73,1) forwards; }

@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }
@keyframes slideIn { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:none;} }

/* ─── Admin Layout ──────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #011a0c;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(22,101,52,.1);
  border-right: 1px solid rgba(74,222,128,.12);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(74,222,128,.12);
}
.sidebar-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.nav-item:hover, .nav-item.active {
  color: var(--primary-light);
  background: rgba(22,101,52,.08);
  border-left-color: var(--primary);
}
.nav-logout:hover {
  color: #fca5a5;
  background: rgba(239,68,68,.06);
  border-left-color: var(--danger);
}
.sidebar-user {
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .82rem;
  color: var(--text-muted);
}

.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-total {
  background: rgba(22,101,52,.15);
  border: 1px solid rgba(22,101,52,.3);
  color: var(--primary-light);
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-blue   { background: rgba(22,101,52,.2);  color: var(--primary-light); }
.stat-green  { background: rgba(34,197,94,.15);  color: #4ade80; }
.stat-yellow { background: rgba(245,158,11,.15); color: #fbbf24; }
.stat-value  { font-size: 1.6rem; font-weight: 800; color: var(--text-main); line-height:1; }
.stat-label  { font-size: .75rem; color: var(--text-muted); margin-top:.2rem; }

/* Table Toolbar */
.table-toolbar { display: flex; justify-content: flex-end; }
.search-input {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font);
  font-size: .88rem;
  padding: .5rem 1rem;
  outline: none;
  width: 250px;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,101,52,.2);
}

/* Table */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.admin-table thead tr {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-table th {
  padding: .85rem 1rem;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(22,101,52,.06); }
.admin-table td { padding: .85rem 1rem; color: var(--text-main); vertical-align: middle; }
.cpf-cell { font-family: 'Courier New', monospace; letter-spacing: .05em; }

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-complete {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
}
.badge-pending {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  color: #fbbf24;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  background: rgba(22,101,52,.12);
  border: 1px solid rgba(22,101,52,.3);
  border-radius: 8px;
  color: var(--primary-light);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-action:hover {
  background: rgba(22,101,52,.25);
  color: #fff;
  transform: translateY(-1px);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* ─── Detail View (view_response) ───────────────────────────── */
.btn-back {
  color: var(--text-muted);
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
}
.btn-back:hover { color: var(--primary-light); }

.detail-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-size: .82rem; font-weight: 600; min-width: 180px; }
.detail-value { color: var(--text-main); font-size: .92rem; }

.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }

.answers-list { display: flex; flex-direction: column; gap: .75rem; }

.answer-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: background .2s;
}
.answer-card:hover { background: rgba(22,101,52,.07); }
.answer-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22,101,52,.2);
  border: 1px solid rgba(22,101,52,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  color: var(--primary-light);
}
.answer-content { flex: 1; }
.answer-question {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.answer-chosen { display: flex; align-items: center; gap: .75rem; }
.option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.option-a { background: rgba(22,101,52,.2);   color: var(--primary-light); border:1px solid rgba(22,101,52,.4); }
.option-b { background: rgba(34,197,94,.15);  color: #4ade80;              border:1px solid rgba(34,197,94,.3);  }
.option-c { background: rgba(245,158,11,.15); color: #fbbf24;              border:1px solid rgba(245,158,11,.3); }
.option-d { background: rgba(6,182,212,.15);  color: #67e8f9;              border:1px solid rgba(6,182,212,.3);  }

.answer-text-chosen { color: var(--text-main); font-size: .9rem; font-weight: 500; }
.answer-timeout {
  color: var(--text-muted);
  font-size: .85rem;
  font-style: italic;
}

/* ─── Pódio / Ranking ───────────────────────────────────────── */
.podium-section {
  margin-bottom: 2.5rem;
}
.podium-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.podium-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Card base */
.podium-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
  position: relative;
}
.podium-card:hover { transform: translateY(-4px); }

/* 1º lugar — maior, dourado */
.podium-gold {
  background: linear-gradient(160deg, rgba(234,179,8,.18) 0%, rgba(255,255,255,.05) 100%);
  border-color: rgba(234,179,8,.45);
  padding: 2rem 1.5rem;
  max-width: 290px;
  box-shadow: 0 8px 32px rgba(234,179,8,.18);
}

/* 2º lugar — prateado */
.podium-silver {
  background: linear-gradient(160deg, rgba(148,163,184,.18) 0%, rgba(255,255,255,.04) 100%);
  border-color: rgba(148,163,184,.4);
  box-shadow: 0 4px 20px rgba(148,163,184,.1);
}

/* 3º lugar — bronzeado */
.podium-bronze {
  background: linear-gradient(160deg, rgba(180,120,60,.18) 0%, rgba(255,255,255,.04) 100%);
  border-color: rgba(180,120,60,.4);
  box-shadow: 0 4px 20px rgba(180,120,60,.1);
}

.podium-medal {
  font-size: 2.2rem;
  line-height: 1;
}
.podium-gold .podium-medal { font-size: 2.8rem; }

.podium-pos-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.podium-gold   .podium-pos-label { color: rgba(234,179,8,.9); }
.podium-silver .podium-pos-label { color: rgba(148,163,184,.9); }
.podium-bronze .podium-pos-label { color: rgba(180,120,60,.9); }

.podium-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.podium-gold .podium-name { font-size: 1.15rem; }

.podium-company {
  font-size: .78rem;
  color: var(--text-muted);
}

.podium-score {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 700;
  margin-top: .25rem;
}
.podium-gold   .podium-score { font-size: 1rem; }
.score-num {
  color: var(--text-main);
}
.score-total { color: var(--text-muted); font-weight: 400; font-size: .8em; }

.podium-time {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.podium-time i { font-size: .75rem; }

/* Tabela de classificados (4º em diante) */
.ranking-table-section { margin-top: 2rem; }
.ranking-table-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rank-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  font-weight: 700;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    padding: 1rem;
  }
  .detail-row { flex-direction: column; gap: .25rem; }
  .detail-label { min-width: unset; }
}
