/* ============================================================
   Pulse Day — Design System
   Cores: #9dc41a (lime), #1a5c3a (forest), #123d27 (deep)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --lime:         #9dc41a;
  --lime-dark:    #7a9a15;
  --lime-soft:    #eef6c4;
  --lime-mid:     #c5dc6a;
  --forest:       #1a5c3a;
  --forest-deep:  #123d27;
  --forest-mid:   #2d7a50;
  --forest-light: #3d9460;
  --canvas:       #ffffff;
  --surface:      #f7faf2;
  --surface-dark: #f0f5e8;
  --hairline:     #e2ebd4;
  --hairline-dark:#1e4a30;
  --ink:          #142a1e;
  --slate:        #3a5444;
  --steel:        #5a7060;
  --stone:        #8a9e90;
  --muted:        #b0bfb5;
  --on-dark:      #ffffff;
  --on-dark-muted:#a8c8b4;
  --on-lime:      #123d27;
  --accent-orange:      #fa6e39;
  --accent-orange-dark: #d9501f;

  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --sp-xs:   8px;
  --sp-sm:   12px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   32px;
  --sp-xxl:  48px;
  --sp-xxxl: 64px;
  --sp-hero: 100px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-card: 0 2px 12px rgba(18,61,39,.08);
  --shadow-hover: 0 8px 28px rgba(18,61,39,.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--canvas); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xl); }

/* ---------- Nav ---------- */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest-deep);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.top-nav.scrolled {
  background: rgba(18, 61, 39, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.08);
}
.top-nav.scrolled .nav-links a { color: #fff; }
.top-nav.scrolled .nav-links a:hover { color: var(--lime); }
.top-nav.scrolled .nav-links a.active { color: var(--lime); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xl);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xl);
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-logo-text { font-size: 20px; font-weight: 800; color: var(--on-dark); letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-lg); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--on-dark-muted); transition: color .15s; }
.nav-links a:hover { color: var(--on-dark); text-decoration: none; }
.nav-links a.active { color: var(--lime); }
.btn-nav {
  background: var(--lime); color: var(--on-lime) !important;
  font-size: 14px; font-weight: 700;
  padding: 9px 20px; border-radius: var(--radius-full);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--lime-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--on-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 26px; border-radius: var(--radius-full);
  border: none; cursor: pointer; transition: all .15s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: var(--lime-dark); text-decoration: none; color: var(--on-lime); }
.btn-outline-dark {
  background: transparent; color: var(--on-dark);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline-dark:hover { background: rgba(255,255,255,.08); text-decoration: none; border-color: rgba(255,255,255,.6); }
.btn-secondary {
  background: var(--canvas); color: var(--forest);
  border: 1.5px solid var(--hairline);
}
.btn-secondary:hover { background: var(--surface); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--forest); padding: 10px 20px; }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-sm { font-size: 13px; font-weight: 600; padding: 7px 16px; }
.btn-danger { background: #d32f2f; color: #fff; border-radius: var(--radius-md); }
.btn-danger:hover { background: #b71c1c; text-decoration: none; }
.btn-accent { background: var(--accent-orange); color: #fff; }
.btn-accent:hover { background: var(--accent-orange-dark); text-decoration: none; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--forest-deep);
  padding: var(--sp-hero) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(157,196,26,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxxl); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--lime); margin-bottom: var(--sp-lg);
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--lime); border-radius: 2px; }
.hero-title {
  font-size: 52px; font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px;
  color: var(--on-dark); margin-bottom: var(--sp-lg);
}
.hero-title em { font-style: normal; color: var(--lime); }
.hero-sub {
  font-size: 18px; font-weight: 400; color: var(--on-dark-muted);
  line-height: 1.6; margin-bottom: var(--sp-xl);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.hero-right { display: flex; flex-direction: column; gap: var(--sp-lg); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl); overflow: hidden;
}
.hero-stat {
  background: rgba(255,255,255,.04);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
}
.hero-stat-value { font-size: 32px; font-weight: 800; color: var(--lime); letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-size: 12px; color: var(--on-dark-muted); font-weight: 500; letter-spacing: .5px; }
.hero-next-badge {
  background: rgba(157,196,26,.1);
  border: 1px solid rgba(157,196,26,.25);
  border-radius: var(--radius-xl);
  padding: var(--sp-lg);
}
.hero-next-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lime); margin-bottom: var(--sp-sm); }
.hero-next-city { font-size: 22px; font-weight: 700; color: var(--on-dark); margin-bottom: 4px; }
.hero-next-date { font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Section ---------- */
.section { padding: var(--sp-hero) 0; }
.section-sm { padding: var(--sp-xxxl) 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--forest-deep); color: var(--on-dark); }
.section-header { margin-bottom: var(--sp-xxl); }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--forest); margin-bottom: var(--sp-sm);
}
.section-dark .eyebrow { color: var(--lime); }
.eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title {
  font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  color: var(--ink);
}
.section-dark .section-title { color: var(--on-dark); }
.section-sub {
  font-size: 17px; color: var(--steel); line-height: 1.65;
  max-width: 520px; margin-top: var(--sp-md);
}
.section-dark .section-sub { color: var(--on-dark-muted); }

/* ---------- Editions grid ---------- */
.editions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.edition-card {
  background: var(--canvas); border: 1.5px solid var(--hairline);
  border-radius: var(--radius-xl); padding: var(--sp-lg) var(--sp-xl);
  transition: box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.edition-card:hover { box-shadow: var(--shadow-hover); border-color: var(--lime); }
.edition-card.next { border-color: var(--lime); background: var(--lime-soft); }
.edition-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--lime); color: var(--on-lime);
  padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: var(--sp-md);
}
.edition-tag.past { background: var(--surface-dark); color: var(--steel); }
.edition-city { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 4px; letter-spacing: -.5px; }
.edition-state { font-size: 13px; font-weight: 600; color: var(--forest); margin-bottom: var(--sp-sm); text-transform: uppercase; letter-spacing: 1px; }
.edition-date { font-size: 15px; color: var(--slate); margin-bottom: 6px; }
.edition-time { font-size: 14px; color: var(--steel); margin-bottom: var(--sp-md); }
.edition-address { font-size: 13px; color: var(--stone); line-height: 1.5; }
.edition-card .edition-number {
  position: absolute; top: var(--sp-lg); right: var(--sp-lg);
  font-size: 56px; font-weight: 900; color: var(--lime); opacity: .12; line-height: 1; letter-spacing: -2px;
}

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xxxl); align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-visual {
  background: var(--surface-dark); border-radius: var(--radius-xl);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--hairline);
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-visual-placeholder {
  text-align: center; color: var(--muted); font-size: 14px;
}
.split-visual-placeholder svg { width: 48px; height: 48px; margin: 0 auto var(--sp-sm); opacity: .4; }
.split-content { display: flex; flex-direction: column; gap: var(--sp-lg); }
.split-list { display: flex; flex-direction: column; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.split-list li {
  display: flex; align-items: flex-start; gap: var(--sp-sm);
  font-size: 15px; color: var(--slate);
}
.split-list li::before { content: '✓'; color: var(--lime); font-weight: 800; flex-shrink: 0; margin-top: 2px; }

/* ---------- Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); }
.feature-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: var(--sp-xl) var(--sp-lg);
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: var(--lime-soft); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--sp-lg);
}
.feature-card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-xs); }
.feature-card-body { font-size: 14px; color: var(--steel); line-height: 1.6; }

/* ---------- IBRAFE section ---------- */
.ibrafe-band {
  background: var(--forest);
  padding: var(--sp-xxxl) 0;
}
.ibrafe-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-xxxl); align-items: center;
}
.ibrafe-logo-area {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); padding: var(--sp-xl);
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16/7;
  color: var(--on-dark-muted); font-size: 14px; text-align: center;
}
.ibrafe-content { color: var(--on-dark); }
.ibrafe-content h2 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: var(--sp-md); }
.ibrafe-content p { font-size: 16px; color: var(--on-dark-muted); line-height: 1.7; margin-bottom: var(--sp-lg); }
.ibrafe-badge {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  background: rgba(157,196,26,.15); border: 1px solid rgba(157,196,26,.3);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--lime);
}

/* ---------- Sponsors ---------- */
.sponsors-title {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--stone); margin-bottom: var(--sp-xxl);
}
.sponsors-tier { margin-bottom: var(--sp-xxl); }
.sponsors-tier-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: var(--sp-lg);
}
.sponsors-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-xl);
}
/* Grade uniforme: todas as logos no mesmo tamanho, 4 colunas */
.sponsors-logos--uniform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl) var(--sp-xxl);
  align-items: center;
}
.sponsor-logo-item {
  transition: opacity .2s;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-md);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--hairline);
}
.sponsor-logo-item:hover { opacity: .75; }
/* Altura fixa uniforme para todos os logos */
.sponsors-logos--uniform .sponsor-logo-item img {
  height: 100px; width: 100%; max-width: 220px; object-fit: contain;
}
/* Altura padrão quando em modo por nível */
.sponsors-logos:not(.sponsors-logos--uniform) .sponsor-logo-item img {
  height: 56px; width: auto; object-fit: contain;
}
.sponsor-name-only {
  font-size: 16px; font-weight: 700; color: var(--steel); padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
}

/* ---------- Banner Carrossel ---------- */
.banner-carousel-section { padding: 32px 0 0; background: var(--canvas); }
.banner-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(18,61,39,.10);
  background: #000;
}
.banner-carousel-slide {
  display: none;
  width: 100%;
}
.banner-carousel-slide.active { display: block; }
.banner-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1520 / 611;
  object-fit: contain;
  display: block;
}
.banner-carousel-slide a { display: block; }

/* Setas */
.banner-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(18,61,39,.65); color: #fff;
  border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 10;
}
.banner-carousel-btn:hover { background: var(--forest); }
.banner-carousel-btn.prev { left: 14px; }
.banner-carousel-btn.next { right: 14px; }

/* Dots */
.banner-carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer;
  transition: background .2s, transform .2s; padding: 0;
}
.banner-dot.active { background: #fff; transform: scale(1.3); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest-deep); padding: var(--sp-xxxl) 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(157,196,26,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: 40px; font-weight: 800; color: var(--on-dark); letter-spacing: -1px; margin-bottom: var(--sp-md); }
.cta-band p { font-size: 17px; color: var(--on-dark-muted); margin-bottom: var(--sp-xl); }
.cta-band-actions { display: flex; gap: var(--sp-md); justify-content: center; }

/* ---------- Schedule ---------- */
.schedule-tabs { display: flex; gap: var(--sp-sm); margin-bottom: var(--sp-xl); flex-wrap: wrap; }
.tab-pill {
  font-size: 14px; font-weight: 600; color: var(--steel);
  border: 1.5px solid var(--hairline); border-radius: var(--radius-full);
  padding: 8px 18px; background: transparent; cursor: pointer; transition: all .15s;
}
.tab-pill.active { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.talk-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: var(--sp-lg) var(--sp-xl);
  display: flex; gap: var(--sp-xl); align-items: flex-start;
  margin-bottom: var(--sp-md); transition: box-shadow .2s;
}
.talk-card:hover { box-shadow: var(--shadow-card); }
.talk-time { font-size: 13px; font-weight: 700; color: var(--lime-dark); min-width: 52px; padding-top: 3px; }
.talk-body { flex: 1; }
.talk-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.talk-speaker { font-size: 14px; color: var(--slate); margin-bottom: 6px; }
.talk-desc { font-size: 14px; color: var(--steel); line-height: 1.55; }
.talk-photo { width: 52px; height: 52px; border-radius: var(--radius-full); object-fit: cover; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--sp-lg); }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md); padding: 11px var(--sp-md);
  height: 46px; outline: none; transition: border-color .15s;
}
.form-textarea { height: auto; min-height: 100px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(157,196,26,.15); }
.form-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: var(--sp-xxl);
  max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow-card);
}

/* ---------- Alerts ---------- */
.alert { padding: var(--sp-md) var(--sp-lg); border-radius: var(--radius-md); font-size: 14px; margin-bottom: var(--sp-lg); }
.alert-success { background: var(--lime-soft); color: var(--forest); border: 1px solid var(--lime-mid); }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.footer-region { background: var(--forest-deep); color: var(--on-dark); padding: var(--sp-xxxl) 0 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-xl) var(--sp-xxxl);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-xxxl);
}
.footer-brand-logo { height: 42px; width: auto; margin-bottom: var(--sp-lg); }
.footer-tagline { font-size: 14px; color: var(--on-dark-muted); line-height: 1.7; max-width: 280px; margin-bottom: var(--sp-lg); }
.footer-social { display: flex; gap: var(--sp-md); }
.footer-social a {
  font-size: 13px; font-weight: 600; color: var(--on-dark-muted);
  border: 1px solid var(--hairline-dark); border-radius: var(--radius-full);
  padding: 6px 14px; transition: all .15s;
}
.footer-social a:hover { color: var(--on-dark); border-color: rgba(255,255,255,.3); text-decoration: none; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--on-dark); margin-bottom: var(--sp-md); letter-spacing: .5px; }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer-col a { font-size: 14px; color: var(--on-dark-muted); }
.footer-col a:hover { color: var(--on-dark); text-decoration: none; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark-muted); }

/* ---------- Admin Layout ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--forest-deep); color: var(--on-dark);
  display: flex; flex-direction: column; padding: var(--sp-xl) 0; flex-shrink: 0;
}
.admin-sidebar-logo { padding: 0 var(--sp-lg) var(--sp-xl); }
.admin-sidebar-logo img { height: 34px; }
.admin-sidebar-logo-text { font-size: 18px; font-weight: 800; color: var(--on-dark); }
.admin-nav { display: flex; flex-direction: column; flex: 1; }
.admin-nav a {
  font-size: 14px; font-weight: 500; color: var(--on-dark-muted);
  padding: 11px var(--sp-lg); display: flex; align-items: center; gap: var(--sp-sm);
  transition: all .1s; border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,.05); color: var(--on-dark); text-decoration: none; }
.admin-nav a.active { background: rgba(157,196,26,.1); color: var(--lime); border-left-color: var(--lime); }
.admin-main { flex: 1; background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xl); display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.admin-content { padding: var(--sp-xl); flex: 1; }
.admin-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: var(--sp-xl); margin-bottom: var(--sp-xl);
}
.admin-card-title { font-size: 16px; font-weight: 700; margin-bottom: var(--sp-lg); color: var(--ink); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 700; font-size: 12px; color: var(--stone); text-transform: uppercase; letter-spacing: .5px; padding: var(--sp-sm) var(--sp-md); border-bottom: 2px solid var(--hairline); }
td { padding: var(--sp-md); border-bottom: 1px solid var(--hairline); color: var(--ink); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.badge-green { background: var(--lime); color: var(--on-lime); }
.badge-green-soft { background: var(--lime-soft); color: var(--forest); }

/* ---------- Stats (admin) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-lg); margin-bottom: var(--sp-xl); }
.stat-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--sp-lg); }
.stat-label { font-size: 12px; font-weight: 700; color: var(--stone); text-transform: uppercase; letter-spacing: .5px; margin-bottom: var(--sp-sm); }
.stat-value { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.stat-value.green { color: var(--forest); }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; background: var(--forest-deep);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-xl);
  background-image: radial-gradient(ellipse at 60% 40%, rgba(157,196,26,.12) 0%, transparent 60%);
}
.login-card { background: var(--canvas); border-radius: var(--radius-xl); padding: var(--sp-xxl); width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-logo { margin-bottom: var(--sp-xl); display: flex; justify-content: center; }
.login-logo img { height: 48px; }
.login-sub { text-align: center; font-size: 14px; color: var(--steel); margin-bottom: var(--sp-xl); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; margin-top: var(--sp-lg); }
.page-btn { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-md); border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink); cursor: pointer; }
.page-btn.active { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }

/* ---------- Floating Buttons ---------- */
.floating-btns {
  position: fixed; bottom: 28px; right: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 200;
}
.fab {
  width: 52px; height: 52px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none; border: none;
}
.fab:hover { transform: translateY(-3px) scale(1.07); box-shadow: 0 8px 28px rgba(0,0,0,.28); text-decoration: none; }
.fab-whatsapp { background: #25d366; }
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-top {
  background: var(--forest-deep); border: 1.5px solid rgba(255,255,255,.15);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s, box-shadow .2s;
}
.fab-top.visible { opacity: 1; pointer-events: auto; }
.fab-top svg { width: 20px; height: 20px; color: var(--on-dark); }

/* ---------- Photo Gallery ---------- */
.gallery-grid {
  columns: 3; column-gap: var(--sp-lg);
}
.gallery-item {
  break-inside: avoid; margin-bottom: var(--sp-lg);
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,61,39,.75) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: var(--sp-md);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { font-size: 13px; font-weight: 600; color: #fff; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-lg); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 28px; color: #fff; cursor: pointer;
  background: none; border: none; line-height: 1; opacity: .7;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Scroll Reveal ---------- */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms cubic-bezier(.25,.46,.45,.94),
              transform 560ms cubic-bezier(.25,.46,.45,.94);
}
.sr.sr-in {
  opacity: 1;
  transform: none;
}
/* Slide from left for split-content */
.sr-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 560ms cubic-bezier(.25,.46,.45,.94),
              transform 560ms cubic-bezier(.25,.46,.45,.94);
}
.sr-left.sr-in { opacity: 1; transform: none; }
/* Slide from right for split-visual */
.sr-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 560ms cubic-bezier(.25,.46,.45,.94),
              transform 560ms cubic-bezier(.25,.46,.45,.94);
}
.sr-right.sr-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sr, .sr-left, .sr-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-title { font-size: 42px; }
  .editions-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .ibrafe-inner { grid-template-columns: 1fr; }
  .ibrafe-logo-area { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  .gallery-grid { columns: 2; column-gap: var(--sp-md); }
  .gallery-item { margin-bottom: var(--sp-md); }
  .floating-btns { bottom: 20px; right: 16px; }
  .hero { padding: 60px 0 56px; }
  .hero-title { font-size: 34px; letter-spacing: -.5px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 30px; }
  .editions-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .banners-grid { grid-template-columns: 1fr; }
  .sponsors-logos--uniform { grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }
  .container { padding: 0 var(--sp-lg); }
  .cta-band h2 { font-size: 28px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--forest-deep); flex-direction: column; align-items: flex-start;
    padding: var(--sp-lg) var(--sp-xl); gap: var(--sp-md);
    border-bottom: 1px solid var(--hairline-dark);
  }
  .nav-links.open { display: flex; }
  .admin-sidebar { width: 100%; flex-direction: row; padding: 0; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-nav a { padding: var(--sp-md); font-size: 13px; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar-logo { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
