@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:       #22C99B;
  --primary-dark:  #1AAB80;
  --primary-light: #E8FAF4;
  --accent:        #22C99B;
  --accent-light:  #E8FAF4;
  --energy:        #EA580C;
  --energy-light:  #FFF7ED;
  --bg:            #F5F7FA;
  --surface:       #FFFFFF;
  --fg:            #1A2535;
  --muted:         #64748B;
  --border:        #E2E8F0;
  --danger:        #DC2626;
  --danger-light:  #FEF2F2;
  --warning:       #D97706;
  --warning-light: #FFFBEB;

  /* CTA diferenciado — laranja energia para ações principais */
  --cta:        #EA580C;
  --cta-dark:   #C2450A;
  --cta-light:  #FFF7ED;

  /* Azul para login */
  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #EFF6FF;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.10);

  --r:    12px;
  --r-sm:  8px;
  --r-lg: 20px;
  --r-xl: 28px;

  --nav-h: 72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, .display {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: .04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: .75rem; }
h3 { font-size: 1.4rem; margin-bottom: .5rem; }
p  { line-height: 1.65; color: var(--muted); }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--fg);
  display: flex; align-items: center;
  padding: 0 2rem;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.navbar .brand {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo {
  height: 60px;
  background: #fff;
  border-radius: 10px;
  padding: 5px 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform .15s;
}
.navbar .brand:hover .brand-logo { transform: scale(1.03); }
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
}
.nav-links a {
  color: #94A3B8;
  font-size: .9rem; font-weight: 500;
  padding: .4rem .85rem; border-radius: 6px;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.nav-cta {
  background: var(--cta); color: #fff; margin-left: .5rem; border: 1px solid var(--cta);
}
.nav-links a.nav-cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.nav-links a.nav-accent {
  background: var(--accent); color: #fff; margin-left: .25rem;
}
.nav-links a.nav-accent:hover { background: #c2410c; color: #fff; }
.nav-links a.nav-outline {
  border: 1px solid rgba(255,255,255,.2); color: #CBD5E1;
}
.nav-links a.nav-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); color: #fff; }
.nav-links a.nav-blue { background: var(--blue); color: #fff; margin-left: .25rem; border: 1px solid var(--blue); }
.nav-links a.nav-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.nav-links a.nav-ghost-primary { color: #6EE7B7; }
.nav-links a.nav-ghost-primary:hover { color: #fff; background: rgba(110,231,183,.12); }
.nav-links a.nav-danger { color: #FDA4AF; }
.nav-links a.nav-danger:hover { color: #fff; background: rgba(239,68,68,.15); }
.nav-user {
  color: #CBD5E1; font-size: .85rem;
  background: rgba(255,255,255,.07);
  padding: .35rem .85rem; border-radius: 6px;
  font-weight: 500;
}

/* ── Layout ─────────────────────────────────────────────── */
.container  { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }
.container-sm { max-width: 620px; margin: 0 auto; padding: 2rem 1.25rem; }

/* ── Flash Messages ─────────────────────────────────────── */
.flash-stack { max-width: 1100px; margin: 1rem auto 0; padding: 0 1.25rem; }
.alert {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500;
  margin-bottom: .5rem;
  border-left: 4px solid transparent;
}
.alert-success { background: var(--accent-light); color: #065F46; border-color: var(--accent); }
.alert-danger  { background: var(--danger-light); color: #991B1B; border-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: var(--warning); }
.alert-info    { background: var(--primary-light); color: #0D6E52; border-color: var(--primary); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.3rem;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 14px rgba(34,201,155,.35); text-decoration: none; color: #fff; }
.btn-accent  { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-accent:hover { background: var(--cta-dark); border-color: var(--cta-dark); box-shadow: 0 4px 14px rgba(234,88,12,.35); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--muted); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--fg); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #B91C1C; text-decoration: none; color: #fff; }
.btn-blue  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover  { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 4px 14px rgba(37,99,235,.4); text-decoration: none; color: #fff; }
.btn-lg { padding: .75rem 1.8rem; font-size: 1rem; border-radius: var(--r); }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.4rem; }
.card-header {
  padding: 1.1rem 1.4rem;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.card-footer {
  padding: 1rem 1.4rem;
  background: var(--bg); border-top: 1px solid var(--border);
}

/* ── Event Cards (Index) ────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.event-card {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #1A2535);
}
.event-card-accent.active { background: linear-gradient(90deg, var(--primary), #1AAB80); }
.event-card-accent.soon   { background: linear-gradient(90deg, var(--energy), #F59E0B); }
.event-card-accent.closed { background: #CBD5E1; }
.event-card-body { padding: 1.4rem; }
.event-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem; letter-spacing: .04em;
  color: var(--fg); margin-bottom: .5rem;
}
.event-card h3 a { color: inherit; text-decoration: none; }
.event-card h3 a:hover { color: var(--primary); }
.event-meta { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.event-meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .875rem; color: var(--muted);
}
.event-meta-item svg { flex-shrink: 0; color: var(--primary); opacity: .7; }
.price-badge {
  display: inline-flex; align-items: center;
  background: var(--accent-light); color: var(--accent);
  font-weight: 700; font-size: 1rem;
  padding: .35rem .75rem; border-radius: 6px;
  margin-bottom: 1rem;
}
.price-badge.closed { background: #F1F5F9; color: var(--muted); font-weight: 500; font-size: .85rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--fg) 0%, #1E3A5F 50%, #0F172A 100%);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(34,201,155,.25) 0%, transparent 60%);
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.hero-split {
  display: flex; align-items: center; gap: 3rem;
  text-align: left;
}
.hero-logo-col { flex-shrink: 0; }
.hero-logo-img {
  width: 240px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  display: block;
  object-fit: contain;
}
.hero-text-col { flex: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: .75rem;
}
.hero .hero-sub {
  color: #94A3B8; font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.5;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero-split { flex-direction: column; text-align: center; gap: 1.75rem; }
  .hero-logo-img { width: 180px; }
  .hero-actions { justify-content: center; }
}

/* ── Event Card as <a> ──────────────────────────────────── */
a.event-card {
  display: block; text-decoration: none; color: inherit;
}
a.event-card:hover { text-decoration: none; color: inherit; }
a.event-card h3 { color: var(--fg); }
a.event-card:hover h3 { color: var(--primary); }

/* ── Event Card Banner (1:1 square) ─────────────────────── */
.event-card-banner {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--fg);
}
.event-card-banner img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

/* ── Sidebar Banner ─────────────────────────────────────── */
.event-banner-sidebar {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--border);
  margin-bottom: 1rem; background: var(--fg);
}
.event-banner-sidebar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

/* ── Nav User Link ──────────────────────────────────────── */
.nav-user-link {
  text-decoration: none !important;
  color: #CBD5E1 !important;
  transition: color .15s;
}
.nav-user-link:hover { color: #fff !important; background: rgba(255,255,255,.08); border-radius: 6px; }

/* ── Event Detail Hero ──────────────────────────────────── */
.event-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, var(--fg) 100%);
  padding: 3rem 1.25rem 2.5rem;
  position: relative; overflow: hidden;
}
.event-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(34,201,155,.2) 0%, transparent 60%);
}
.event-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.event-hero h1 { color: #fff; margin-bottom: .5rem; }
.event-hero-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.12); color: #E2E8F0;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-chip-local { background: rgba(234,88,12,.25); color: #FED7AA; border-color: rgba(234,88,12,.4); }
.hero-chip-date  { background: rgba(34,201,155,.35); color: #BFDBFE; border-color: rgba(34,201,155,.5); }

/* ── Two-column Layout ──────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
}
.sticky-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }

/* ── Sidebar CTA Card ───────────────────────────────────── */
.cta-card {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  overflow: hidden;
}
.cta-card-top {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), #EEF2FF);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.cta-card-body { padding: 1.4rem; }
.cta-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem; color: var(--accent);
  letter-spacing: .04em; line-height: 1;
}
.cta-price-label { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.lote-info {
  background: var(--energy-light); border: 1px solid #FED7AA;
  border-radius: var(--r-sm); padding: .75rem 1rem;
  margin-bottom: 1rem;
}
.lote-info .lote-name { font-weight: 700; color: var(--energy); font-size: .9rem; }
.lote-info .lote-deadline { font-size: .8rem; color: #92400E; margin-top: .2rem; }
.no-lote-info {
  background: #F1F5F9; border-radius: var(--r-sm);
  padding: .75rem 1rem; margin-bottom: 1rem;
  color: var(--muted); font-size: .9rem; text-align: center;
}

/* ── Kits Section ───────────────────────────────────────── */
.kits-grid {
  display: grid; gap: .75rem; margin-top: .75rem;
}
.kit-card {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  transition: border-color .15s, box-shadow .15s;
}
.kit-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); }
.kit-card-header { display: flex; justify-content: space-between; align-items: center; }
.kit-card h4 { font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .95rem; }
.kit-price { font-weight: 700; color: var(--accent); font-size: .95rem; }
.kit-items { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* ── Lotes Timeline ─────────────────────────────────────── */
.lotes-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.lote-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .9rem 1.2rem;
}
.lote-row.active-lote { border-color: var(--accent); background: var(--accent-light); }
.lote-label { font-weight: 600; font-size: .9rem; }
.lote-dates { font-size: .8rem; color: var(--muted); }
.lote-val { font-weight: 700; color: var(--fg); font-size: 1rem; }

/* ── Forms ──────────────────────────────────────────────── */
.form-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: flex-start;
  background: linear-gradient(135deg, #F0F4FF 0%, var(--bg) 60%);
  padding: 3rem 1.25rem;
}
.form-box {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 2.5rem; width: 100%; max-width: 480px; margin: 0 auto;
}
.form-box-wide { max-width: 640px; }
.form-logo { text-align: center; margin-bottom: 2rem; }
.form-logo .logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; color: var(--primary); letter-spacing: .06em;
}
.form-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; margin-bottom: .25rem; }
.form-sub { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-weight: 600; font-size: .85rem;
  color: var(--fg); margin-bottom: .35rem;
}
.input {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: 'Source Sans 3', sans-serif; font-size: .95rem; color: var(--fg);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,201,155,.12);
}
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; }
.field .error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.field-check { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.field-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.field-check label { font-weight: 500; font-size: .9rem; cursor: pointer; margin: 0; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.form-footer { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }
.form-footer a { color: var(--primary); font-weight: 600; }

/* ── Kit Card Photo ─────────────────────────────────────── */
.kit-card-photo {
  width: 100%; height: 160px; overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--bg);
  margin: -1px -1px 0;
}
.kit-card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

/* ── Location Card ──────────────────────────────────────── */
.location-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-xs);
}
.location-info { flex: 1; }
.maps-btn { flex-shrink: 0; }

/* ── Upload Area ────────────────────────────────────────── */
.upload-area {
  position: relative; border: 2px dashed var(--border);
  border-radius: var(--r); overflow: hidden;
  cursor: pointer; transition: border-color .15s;
  background: var(--bg);
}
.upload-area:hover { border-color: var(--primary); }
.upload-area-sm { max-height: 140px; }
.upload-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; text-align: center; pointer-events: none;
}
.upload-area-sm .upload-placeholder { padding: 1.25rem 1rem; }
.upload-preview {
  width: 100%; max-height: 240px; object-fit: cover;
  display: block; border-radius: var(--r-sm);
}
.upload-preview-sm { max-height: 120px; }
.current-banner {
  margin-bottom: .75rem; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.current-banner img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.current-banner-label {
  padding: .5rem .75rem; font-size: .78rem; color: var(--muted);
  background: var(--bg); text-align: center;
}

/* ── Field Hint ─────────────────────────────────────────── */
.field-hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; display: block; }

/* ── Kit Radio Options ──────────────────────────────────── */
.kit-option {
  display: flex; align-items: flex-start; gap: .75rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: .9rem 1.1rem; margin-bottom: .5rem;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.kit-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.kit-option:hover { border-color: #93C5FD; }
.kit-option input[type=radio] { margin-top: .2rem; accent-color: var(--primary); flex-shrink: 0; }
.kit-option-thumb {
  width: 52px; height: 52px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; border: 1px solid var(--border);
}
.kit-option-label { flex: 1; }
.kit-option-name { font-weight: 600; font-size: .95rem; }
.kit-option-items { font-size: .82rem; color: var(--muted); }
.kit-option-price { font-weight: 700; color: var(--accent); font-size: .95rem; white-space: nowrap; text-align: right; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrapper {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; margin-top: 1rem;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--fg); color: #fff;
  padding: .75rem 1rem; text-align: left;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.badge-pending  { background: var(--warning-light); color: #92400E; }
.badge-approved { background: var(--accent-light); color: #065F46; }
.badge-rejected { background: var(--danger-light);  color: #991B1B; }
.badge-blue     { background: var(--primary-light); color: #0D6E52; }
.badge-neutral  { background: #F1F5F9; color: #475569; }

/* ── Filter Pills ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .85rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600;
  background: #F1F5F9; color: var(--text);
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.pill:hover { background: var(--primary-light); color: var(--primary-dark); }
.pill-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Dashboard ──────────────────────────────────────────── */
.dashboard-header { margin-bottom: 2rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--border); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xs);
}
.stat-card-link {
  text-decoration: none; color: inherit; display: block;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.stat-card-link:hover {
  border-color: var(--primary); box-shadow: 0 4px 14px rgba(16,85,73,.12);
  transform: translateY(-2px);
}
.stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase;
              letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 2rem;
              color: var(--fg); letter-spacing: .04em; }
.stat-value.primary { color: var(--primary); }
.stat-value.accent  { color: var(--accent); }

.dashboard-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

/* ── Section Titles ─────────────────────────────────────── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: .04em;
  margin-bottom: 1rem; color: var(--fg);
  display: flex; align-items: center; gap: .5rem;
}
.section-title::after {
  content: '';
  flex: 1; height: 2px;
  background: var(--border); border-radius: 1px;
}

/* ── Empty States ───────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 2rem;
  background: var(--surface); border-radius: var(--r);
  border: 1px dashed var(--border);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { color: var(--fg); margin-bottom: .5rem; font-family: 'Source Sans 3', sans-serif; font-size: 1.1rem; }
.empty-state p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ── List items ─────────────────────────────────────────── */
.item-list { display: flex; flex-direction: column; gap: .5rem; }
.item-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1rem 1.25rem;
  gap: 1rem;
}
.item-row:hover { border-color: #C7D2FE; box-shadow: var(--shadow-xs); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: .35rem;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb-sep { opacity: .4; }

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.page-header h2 { margin-bottom: .25rem; }

/* ── Percurso Badge ─────────────────────────────────────── */
.percurso-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--fg); color: #E2E8F0;
  font-size: .82rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 99px;
}
.percurso-badge svg { color: var(--primary); }

/* ── Past Lote row ──────────────────────────────────────── */
.lote-row.past-lote { opacity: .45; }

/* ── Member Row (Team Batch Registration) ───────────────── */
.member-row {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
}
.member-row:last-child { border-bottom: none; }
.member-row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.member-row-num {
  font-weight: 700; font-size: .95rem; color: var(--primary);
}
.member-row-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem;
}
@media (max-width: 600px) {
  .member-row-body { grid-template-columns: 1fr; }
}

/* ── Lote Banner (Inscription flow) ────────────────────── */
.lote-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-light), #EEF2FF);
  border: 1.5px solid #BFDBFE; border-radius: var(--r);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}

/* ── Inscription Type Options ───────────────────────────── */
.inscription-option {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  border: 2px solid var(--border); border-radius: var(--r);
  padding: 2rem 1.5rem; text-align: center; text-decoration: none;
  background: var(--surface); color: var(--fg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.inscription-option:hover {
  border-color: var(--primary); box-shadow: var(--shadow-md);
  transform: translateY(-2px); text-decoration: none; color: var(--fg);
}
.inscription-option-icon { color: var(--primary); }
.inscription-option-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; letter-spacing: .04em;
}
.inscription-option-desc { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* ── Kit Option Body ────────────────────────────────────── */
.kit-option-body { flex: 1; }

/* ── Pending Team Cards ─────────────────────────────────── */
.team-pending-card:hover { box-shadow: var(--shadow-sm); transform: none; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-xs);
}
.team-card-info { flex: 1; }
.team-card-name { font-weight: 700; font-size: 1rem; color: var(--fg); margin-bottom: .2rem; }
.team-card-meta { font-size: .85rem; color: var(--muted); }
.team-card-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Event Description ──────────────────────────────────── */
.event-descricao {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  color: var(--fg); line-height: 1.7; font-size: .95rem;
  white-space: pre-line;
  margin-bottom: 1.75rem;
}

/* ── Kit Card Clickable ─────────────────────────────────── */
.kit-card-clickable { cursor: pointer; }
.kit-card-clickable:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

/* ── Kit Modal ──────────────────────────────────────────── */
.kit-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.kit-modal-overlay.open { display: flex; }
.kit-modal-box {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.kit-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: background .15s, color .15s;
}
.kit-modal-close:hover { background: var(--danger-light); color: var(--danger); }
.kit-modal-foto {
  width: 100%; max-height: 260px; object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0; display: block;
}
.kit-modal-content { padding: 1.5rem; }
.kit-modal-nome {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
  letter-spacing: .04em; margin-bottom: .3rem;
}
.kit-modal-preco {
  font-weight: 700; color: var(--accent); font-size: 1rem; margin-bottom: .75rem;
}
.kit-modal-itens { color: var(--muted); line-height: 1.6; font-size: .9rem; margin: 0; }

/* ── Profile Info Grid ──────────────────────────────────── */
.perfil-info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem; margin-bottom: 1.5rem;
}
.perfil-info-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .75rem 1rem;
}
.perfil-info-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem;
}
.perfil-info-value { font-weight: 600; font-size: .95rem; color: var(--fg); }

/* ── Sport Tag ──────────────────────────────────────────── */
.sport-tag {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .65rem 1rem;
  font-weight: 600; font-size: .9rem; color: var(--fg);
  box-shadow: var(--shadow-xs);
}
.sport-tag svg { color: var(--primary); flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .nav-links a span { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .lote-row { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .team-card { flex-direction: column; align-items: flex-start; }
  .page-header { flex-direction: column; }
}

/* ── Utilities ──────────────────────────────────────────── */
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Status Badges ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.status-pendente {
  background: var(--warning-light); color: var(--warning);
  border: 1px solid #FCD34D;
}
.status-pago {
  background: var(--accent-light); color: var(--accent);
  border: 1px solid #6EE7B7;
}
.status-cancelado {
  background: var(--danger-light); color: var(--danger);
  border: 1px solid #FCA5A5;
}

/* ── Pagamento Card ─────────────────────────────────────── */
.pagamento-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--shadow-md); margin-bottom: 2rem;
}

/* ── Ingresso Card ──────────────────────────────────────── */
.ingresso-card {
  background: var(--surface); border: 2px solid var(--primary);
  border-radius: var(--r-lg); padding: 2rem;
  box-shadow: var(--shadow-lg); margin-bottom: 2rem;
}

/* ── QR Container ───────────────────────────────────────── */
.qr-container { display: inline-block; }
.qr-img {
  width: 160px; height: 160px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: block;
}
.qr-img-lg {
  width: 220px; height: 220px;
  margin: 0 auto;
}

/* ── Cupom Row ──────────────────────────────────────────── */
.cupom-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

/* ── Org Inscricoes Table ───────────────────────────────── */
.org-inscricoes-table th, .org-inscricoes-table td {
  padding: .6rem .75rem;
  font-size: .875rem;
}

/* ── Accordion (Termos de Participação) ─────────────────── */
.accordion {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; cursor: pointer; user-select: none;
  background: var(--bg); transition: background .15s;
  border: none; width: 100%; text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem; font-weight: 600; color: var(--fg);
}
.accordion-header:hover { background: #EEF2FF; }
.accordion-chevron {
  transition: transform .25s ease;
  flex-shrink: 0; color: var(--muted);
}
.accordion.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.accordion.open .accordion-body { max-height: 600px; }
.accordion-content {
  padding: 1rem;
  font-size: .875rem; line-height: 1.75; color: var(--fg);
  white-space: pre-wrap; word-wrap: break-word;
  background: var(--surface); border-top: 1px solid var(--border);
  max-height: 320px; overflow-y: auto;
}

/* ── Termos Block (inscrição) ───────────────────────────── */
.termos-block {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; margin-top: 1.25rem;
}
.termos-block-header {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem;
  background: var(--bg);
  font-weight: 700; font-size: .875rem; color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.termos-block-header svg { color: var(--primary); flex-shrink: 0; }
.termos-aceite {
  padding: .9rem 1rem; background: var(--surface);
  border-top: 1px solid var(--border);
}
.termos-aceite label {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; font-size: .875rem; line-height: 1.5; color: var(--fg);
}
.termos-aceite input[type=checkbox] {
  width: 18px; height: 18px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0; margin-top: 1px;
}

/* ── Termos Toggle (form evento) ────────────────────────── */
.termos-toggle {
  display: flex; gap: 0;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; margin-bottom: .75rem;
}
.termos-toggle-btn {
  flex: 1; padding: .6rem .9rem;
  border: none; background: var(--bg); cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.termos-toggle-btn:first-child { border-right: 1px solid var(--border); }
.termos-toggle-btn.active {
  background: var(--primary-light); color: var(--primary-dark);
}

/* ── Mobile Hamburger ───────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: .5rem; cursor: pointer; margin-left: auto;
  background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #CBD5E1; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--fg); flex-direction: column; align-items: stretch;
    padding: .75rem 1rem 1rem; gap: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem .85rem; border-radius: 8px; }
  .nav-links a span { display: inline !important; }
  .nav-user { display: none; }
}

/* ── Flash Dismiss ──────────────────────────────────────── */
.alert { position: relative; padding-right: 2.5rem; }
.alert-close {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: .25rem;
  color: inherit; opacity: .55; line-height: 1;
  font-size: 1.2rem; font-weight: 700;
  transition: opacity .15s;
}
.alert-close:hover { opacity: 1; }

/* ── Utilitário grid 2 colunas (colapsa para 1 em mobile) ────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .grid-2col { grid-template-columns: 1fr; }
}

/* ── Tablet ≤768px ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lote-row {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .table-wrapper {
    overflow-x: auto;
  }
}

/* ── Mobile ≤640px (expansão do bloco existente) ─────────────────── */
@media (max-width: 640px) {
  .form-page {
    padding: 1rem .75rem;
    align-items: flex-start;
  }
  .form-box,
  .form-box-wide {
    padding: 1.5rem 1.1rem;
    border-radius: var(--r);
  }
  .lote-banner {
    flex-direction: column;
    gap: .75rem;
  }
  .location-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .stat-card {
    padding: 1rem 1.1rem;
  }
  .dashboard-actions {
    gap: .5rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lote-row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
  .inscription-option {
    padding: 1.25rem 1rem;
  }
  .kit-option {
    flex-wrap: wrap;
  }
  .kit-option-price {
    width: 100%;
    text-align: left;
    margin-top: .25rem;
  }
  .page-header {
    flex-direction: column;
    gap: .75rem;
  }
  .breadcrumb {
    font-size: .8rem;
    flex-wrap: wrap;
  }
  .btn-lg {
    padding: .65rem 1.4rem;
    font-size: .95rem;
  }
  .pagamento-card,
  .ingresso-card {
    padding: 1.25rem;
  }
  .qr-img-lg {
    width: 180px;
    height: 180px;
  }
  .perfil-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .accordion-content {
    max-height: 240px;
  }
}
