@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #070707;
  --bg-2: #0d0d0f;
  --panel: rgba(18, 18, 22, 0.88);
  --panel-2: rgba(24, 24, 30, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #babac7;
  --yellow: #f7d600;
  --cyan: #23d5ff;
  --magenta: #ff2d7a;
  --lime: #8df700;
  --orange: #ff7a00;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 26px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 214, 0, 0.12), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(35, 213, 255, 0.13), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 45, 122, 0.14), transparent 30%),
    linear-gradient(180deg, #050505 0%, #09090b 45%, #101015 100%);
  overflow-x: hidden;
  isolation: isolate;
}

main {
  position: relative;
  z-index: 2;
  padding-top: 82px;
  /* Compensa la altura exacta del menú para que no tape el título */
}

.footer {
  position: relative;
  z-index: 2;
}

.fp-3d-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  opacity: 0.42;
  filter: saturate(0.88) brightness(0.78);
  mix-blend-mode: screen;
}

.fp-3d-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 0 18px rgba(35, 213, 255, 0.22))
    drop-shadow(0 0 24px rgba(255, 45, 122, 0.18))
    drop-shadow(0 0 30px rgba(247, 214, 0, 0.16));
}

.fp-3d-stage.is-unavailable {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  mask-image: radial-gradient(circle at center, black 42%, transparent 92%);
  pointer-events: none;
}

body::after {
  content: "RAP · HIP HOP · PLAZAS · FREESTYLE";
  position: fixed;
  bottom: 18px;
  left: -90px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  /* Cambiado de sticky a fixed */
  top: 0;
  left: 0;
  width: 100%;
  /* Obligamos a que ocupe toda la pantalla de lado a lado */
  z-index: 50;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 18px;
  font-weight: 1000;
  background: #050505 url("../assets/icon-512.png") center / cover no-repeat;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(247, 214, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: none;
  position: absolute;
  inset: auto -10px -10px auto;
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.18);
  transform: rotate(30deg);
}

.brand-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-bottom: 2px;
}

.top-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  padding: 64px 0 32px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.92), rgba(12, 12, 15, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 42px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -56px;
  right: -56px;
  width: 180px;
  height: 180px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 45, 122, 0.22), rgba(35, 213, 255, 0.08));
  transform: rotate(18deg);
  filter: blur(4px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto auto 20px 20px;
  width: 84px;
  height: 84px;
  border: 2px dashed rgba(247, 214, 0, 0.18);
  border-radius: 18px;
  transform: rotate(-9deg);
  pointer-events: none;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow.live {
  background: rgba(35, 213, 255, 0.10);
  color: #cbf7ff;
}

.eyebrow.stage {
  background: rgba(247, 214, 0, 0.12);
  color: #fff2a6;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  max-width: 820px;
}

.headline-accent {
  color: var(--yellow);
  text-shadow: 0 6px 26px rgba(247, 214, 0, 0.12);
}

.headline-sub {
  color: #ffffff;
  display: block;
}

.lead {
  margin: 22px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 16px 30px rgba(247, 214, 0, 0.18);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.micro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.micro-item {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dfdfeb;
}

.hero-visual {
  padding: 22px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-stage {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #101117 0%, #09090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.tag-float {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

.tag-float.one {
  top: 24px;
  left: 24px;
  color: #d0fbff;
}

.tag-float.two {
  top: 24px;
  right: 24px;
  color: #fff2a0;
}

.tag-float.three {
  bottom: 24px;
  left: 24px;
  color: #ffd3e3;
}

.spray {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.6px);
  opacity: 0.95;
}

.spray.yellow {
  width: 160px;
  height: 160px;
  right: 32px;
  top: 90px;
  background: radial-gradient(circle, rgba(247, 214, 0, 0.95) 0%, rgba(247, 214, 0, 0.18) 52%, transparent 72%);
}

.spray.cyan {
  width: 180px;
  height: 180px;
  left: 46px;
  bottom: 58px;
  background: radial-gradient(circle, rgba(35, 213, 255, 0.82) 0%, rgba(35, 213, 255, 0.14) 56%, transparent 72%);
}

.spray.magenta {
  width: 120px;
  height: 120px;
  left: 48%;
  top: 40%;
  background: radial-gradient(circle, rgba(255, 45, 122, 0.78) 0%, rgba(255, 45, 122, 0.10) 60%, transparent 72%);
}

.card-stack {
  position: relative;
  display: grid;
  gap: 14px;
  z-index: 3;
  margin-top: 62px;
}

.event-box {
  background: rgba(10, 10, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(12px);
}

.event-box.featured {
  transform: rotate(-2deg);
  border-left: 4px solid var(--yellow);
}

.event-box.alt {
  transform: rotate(2deg);
  width: 88%;
  margin-left: auto;
  border-left: 4px solid var(--cyan);
}

.event-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.event-title {
  margin: 0;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.event-badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-badge.live {
  background: rgba(247, 214, 0, 0.12);
  color: #fff2a0;
}

.event-badge.build {
  background: rgba(35, 213, 255, 0.12);
  color: #c8f8ff;
}

.event-meta,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ececf5;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease;
}

a.pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 22px 0 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* =========================
   EVENTOS: VISTA CALENDARIO
   ========================= */

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.events-toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.events-view-tabs {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.events-view-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.events-view-tab:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.events-view-tab.active {
  color: #080808;
  background: linear-gradient(90deg, rgba(247, 214, 0, 0.95), rgba(255, 122, 0, 0.92));
  box-shadow: 0 18px 40px rgba(247, 214, 0, 0.18);
}

.btn-download-today {
  min-height: 48px;
  min-width: 74px;
  padding-inline: 18px;
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-shadow:
    0 18px 38px rgba(247, 214, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.download-today-icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.download-today-count {
  min-width: 1.4em;
  text-align: left;
  font-size: 15px;
  font-weight: 1000;
}

.btn-download-today:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.events-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.events-calendar-month {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.events-calendar-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.events-calendar {
  min-width: 860px;
}

.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow);
}

.events-calendar-weekday {
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.events-calendar-day {
  min-height: 132px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.62), rgba(10, 10, 12, 0.28));
  position: relative;
}

.events-calendar-grid > :nth-child(7n) {
  border-right: none;
}

.events-calendar-day.is-outside {
  background: rgba(255, 255, 255, 0.018);
}

.events-calendar-day.has-events {
  background:
    radial-gradient(circle at 18% 22%, rgba(247, 214, 0, 0.12), transparent 58%),
    radial-gradient(circle at 85% 30%, rgba(255, 45, 122, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.7), rgba(10, 10, 12, 0.26));
}

.events-calendar-day.is-past .events-calendar-day-num {
  color: rgba(255, 255, 255, 0.48);
}

.events-calendar-day.is-past.has-events {
  background:
    radial-gradient(circle at 18% 22%, rgba(247, 214, 0, 0.08), transparent 62%),
    radial-gradient(circle at 85% 30%, rgba(255, 45, 122, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.58), rgba(10, 10, 12, 0.2));
}

.events-calendar-day.is-today {
  box-shadow: 0 0 0 2px rgba(35, 213, 255, 0.25) inset;
}

.events-calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.events-calendar-day-num {
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.events-calendar-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(247, 214, 0, 0.14);
  border: 1px solid rgba(247, 214, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 900;
}

.events-calendar-day-events {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.events-calendar-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 9px 10px 9px 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.events-calendar-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  opacity: 0.9;
}

.events-calendar-item:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 214, 0, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.events-calendar-item.is-past {
  opacity: 0.78;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.events-calendar-item.is-past:hover {
  opacity: 1;
}

.events-calendar-item:focus-visible {
  outline: 2px solid rgba(35, 213, 255, 0.48);
  outline-offset: 2px;
}

.events-calendar-item-title {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.events-calendar-item-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.62);
}

.events-calendar-more {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  padding-left: 4px;
}

.events-calendar-empty {
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.events-calendar-empty strong {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.events-calendar-empty span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .events-toolbar {
    margin: 14px 0 14px;
  }

  .events-toolbar-main {
    width: 100%;
  }

  .events-view-tabs {
    width: 100%;
  }

  .events-view-tab {
    flex: 1;
    text-align: center;
  }

  .events-calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .btn-download-today {
    width: 100%;
  }

  .events-calendar-month {
    flex: 1;
    text-align: center;
  }
}

.feature-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(24, 24, 28, 0.96), rgba(14, 14, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  transform: rotate(22deg);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon.yellow {
  background: rgba(247, 214, 0, 0.10);
}

.icon.cyan {
  background: rgba(35, 213, 255, 0.10);
}

.icon.magenta {
  background: rgba(255, 45, 122, 0.10);
}

.feature-card h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 0.96rem;
}

.feature-card-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.public-loading-dot {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--yellow);
  border-radius: 999px;
  animation: public-loading-spin 0.8s linear infinite;
}

.events-calendar-loading {
  display: grid;
  gap: 8px;
}

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

/* --- ESTILOS DIRECTORIO PLAZAS --- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Estilo del buscador por nombre */
.filter-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  flex: 2;
  /* Más ancho que los selectores */
  min-width: 250px;
  transition: all 0.3s ease;
}

.filter-input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(247, 214, 0, 0.1);
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23babac7%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 10px auto;
  padding-right: 36px;
  min-width: 180px;
  flex: 1;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-select option {
  background: var(--bg-2);
  color: var(--text);
}

.plazas-table {
  background: rgba(18, 18, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.plazas-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.plazas-toggle-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.plazas-toggle-btn:hover {
  border-color: rgba(247, 214, 0, 0.32);
  background: rgba(247, 214, 0, 0.08);
  transform: translateY(-1px);
}

.plazas-header {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
}

.plaza-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}

.plaza-row:last-child {
  border-bottom: none;
}

.plaza-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.plaza-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plaza-location {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plaza-networks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

/* --- FIN ESTILOS DIRECTORIO PLAZAS --- */

.cta {
  padding: 14px 0 50px;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(247, 214, 0, 0.08), rgba(255, 45, 122, 0.08) 55%, rgba(35, 213, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

.cta-box h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 740px;
}

.footer {
  padding: 0 0 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-admin-link {
  display: inline-flex;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-admin-link:hover {
  color: rgba(247, 214, 0, 0.7);
}

@media (max-width: 1020px) {

  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .visual-stage {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy,
  .hero-visual,
  .feature-card,
  .cta-box {
    padding: 22px;
  }

  .visual-stage {
    min-height: 430px;
  }

  .btn {
    width: 100%;
  }

  body::after {
    display: none;
  }

  /* Tabla responsiva para móviles */
  .plazas-header {
    display: none;
  }

  .plaza-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .filter-select,
  .filter-input {
    min-width: 100%;
    flex: none;
  }
}

.feature-card {
  position: relative;
  /* Espacio en la izquierda para el badge */
  padding-left: 85px !important;
  min-height: 100px;
}

.calendar-date-badge {
  position: absolute;
  top: 20px;
  /* Posición a la izquierda */
  left: 15px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  width: 45px;
  height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.day-num {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
}

.month-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #444;
}

/* Ajuste opcional para el título */
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.story-container {
  width: 360px;
  height: 640px;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border: 2px solid #ff0055;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  /* CAMBIO: Usamos flex-start para controlar mejor los espacios internos */
  justify-content: flex-start; 
  /* CAMBIO: Reducimos el padding superior/inferior de 40px a 25px */
  padding: 25px 20px; 
  position: relative;
  overflow: hidden;
  color: white;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box; /* Asegura que el padding no sume al tamaño */
}

/* Branding superior */
.brand-logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.brand-logo span {
  color: #ff0055;
}

.brand-sub {
  display: block;
  font-size: 0.6rem;
  opacity: 0.6;
  letter-spacing: 4px;
}

/* Contenido Central */
.story-content {
  text-align: center;
  /* NUEVO: Esto permite que la sección crezca y ocupe el centro */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* NUEVO: Evita que el contenido toque el header o footer */
  margin: 15px 0; 
  min-height: 0; 
}

.story-date-badge {
  background: white;
  color: black;
  width: 80px;
  margin: 0 auto 5px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 98px;
  padding: 14px 10px;
  border-radius: 22px;
  background: rgba(8, 15, 24, 0.88);
  border: 1px solid rgba(255, 214, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(214, 172, 172, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}
 .date-badge {
     margin: 0 auto 5px;
      width: 116px;
      height: 108px;
      border-radius: 24px;
      background:
        radial-gradient(circle at 18% 12%, rgba(255, 201, 41, 0.18), transparent 42%),
        radial-gradient(circle at 85% 82%, rgba(34, 199, 255, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(9, 13, 24, 0.96), rgba(6, 11, 20, 0.92));
      border: 1px solid rgba(255,255,255,0.10);

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .date-badge::before {
      content: "";
      position: absolute;
      top: -1px;
      left: 18px;
      right: 18px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, #ffd54f, transparent);
      filter: blur(0.4px);
    }

    .date-badge::after {
      content: "";
      position: absolute;
      bottom: -1px;
      left: 26px;
      right: 26px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, #ffaf3c, transparent);
      filter: blur(0.6px);
    }
#story-dia {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

#story-mes {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}


.story-info-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  border-left: 4px solid #ff0055;
   padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-info-box p {
  margin: 10px 0;
  font-size: 0.9rem;
}

.info-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  /* CAMBIO: Reducimos el gap de 16px a 10px para ganar espacio */
  gap: 10px; 
  position: relative;
  border-radius: 20px; /* Un poco menos agresivo que 28px */
  /* CAMBIO: Padding más equilibrado */
  padding: 15px; 
  background:
    radial-gradient(circle at 18% 78%, rgba(34, 199, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 60, 158, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.34), rgba(10, 14, 24, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1); /* Simplificado para evitar errores */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-bottom: 30px; /* Espacio extra para los efectos decorativos */
}

.info-card p {
  margin: 10px 0;
  font-size: 0.9rem;
}


.info-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffd54f, transparent);
  opacity: 0.85;
}

.info-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 70px;
  right: 70px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffae38, transparent);
  opacity: 0.8;
}

/* Footer */
.story-footer {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.8;
}

.url-badge {
  background: #ff0055;
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.8rem;

}

/* Botones del Modal */
.modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn-download {
  background: #00ff88;
  color: black;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.btn-close {
  background: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}


/* =========================
   STORY INSTAGRAM ALINEADA A MARCA
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.84);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

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

.story-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.story-container {
  position: relative;
  width: min(380px, 92vw);
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  padding: 24px;
  background: black;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  border: 1px solid rgba(255, 214, 0, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: block;
}

.story-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 92%);
  pointer-events: none;
}

.story-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
  opacity: 0.45;
}

.story-glow-yellow {
  width: 180px;
  height: 180px;
  top: -40px;
  left: -20px;
  background: rgba(255, 214, 0, 0.18);
}

.story-glow-magenta {
  width: 140px;
  height: 140px;
  top: 180px;
  right: -30px;
  background: rgba(255, 45, 143, 0.16);
}

.story-glow-cyan {
  width: 120px;
  height: 120px;
  bottom: 130px;
  left: -20px;
  background: rgba(0, 214, 255, 0.14);
}

.story-layout,
.story-brand-shell,
.story-hero-shell,
.story-stage-shell,
.story-footer-shell,
.story-branding-top,
.story-footer {
  position: relative;
  z-index: 2;
}

.story-layout {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.story-brand-shell,
.story-hero-shell,
.story-stage-shell,
.story-footer-shell {
  width: 100%;
  min-width: 0;
}

.story-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.82rem;
  color: transparent;
  background: #050505 url("../assets/icon-512.png") center / cover no-repeat;
  /* box-shadow: 0 10px 24px rgba(255, 214, 0, 0.2); */
}

.story-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-brand-copy span {
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.story-brand-copy span span {
  color: #ff2d8f;
}

.story-brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-branding-top {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.story-hero-shell {
  display: grid;
  gap: 10px;
  min-height: 118px;
}

.story-hero-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 104px;
}

.story-title-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  align-content: center;
  min-height: 104px;
  min-width: 0;
  overflow: visible;
}

.story-title-box {
  min-width: 0;
}

.story-event-slot {
  min-height: 0;
  display: none;
  align-items: flex-start;
  overflow: hidden;
}

.story-event-slot.story-event-slot-visible {
  display: flex;
  min-height: calc(var(--story-event-size, 0.9rem) * 2.35);
}

.date-badge {
  margin: 0;
  width: 104px;
  height: 96px;
}



#story-dia {
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.05em;
  color: #fff8ec;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.10);
}

#story-mes {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 0.28em;
}

#story-nombre {
  width: 100%;
  max-width: 320px; /* Evita que toque los bordes del canvas */
  margin: 0 auto 15px auto; /* Reducimos el margen inferior de 30px a 15px */
  margin-bottom: 0px;
  
  /* Uso de clamp inteligente: 
     Mínimo: 1.2rem (para nombres muy largos)
     Ideal: 7vw 
     Máximo: 2.2rem (para que no se vea gigante) */
  font-size: clamp(1.2rem, 7vw, 1.5rem); 
  
  line-height: 1.1; 
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em; /* Letras más juntas para estilo urbano */
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
  
  /* Balance de texto para que las líneas se corten de forma estética */
  text-wrap: balance; 
  word-wrap: break-word;
  overflow: hidden;
  

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5em; /* Asegura espacio para al menos 2 líneas sin saltos bruscos */
}



.story-accent-line {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  margin: 10px 0 6px;
  background: linear-gradient(90deg, rgba(34, 199, 255, 0) 0%, rgba(34, 199, 255, 0.9) 14%, rgba(255, 204, 94, 0.95) 49%, rgba(255, 60, 158, 0.95) 83%, rgba(255, 60, 158, 0) 100%);
  box-shadow: 0 0 14px rgba(34, 199, 255, 0.16), 0 0 20px rgba(255, 60, 158, 0.18);
  opacity: 0.95;
}

.story-title-stack #story-nombre {
  max-width: none;
  margin: 0;
  font-size: var(--story-title-size, 2.35rem);
  line-height: var(--story-title-line-height, 0.98);
  letter-spacing: 0;
  text-align: left;
  display: block;
  min-height: 0;
  max-height: 4.2em;
  overflow: hidden;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  hyphens: none;
  padding-right: 0.08em;
}

.story-title-stack #story-nombre.story-title-compact {
  font-size: var(--story-title-size, 1.9rem);
  line-height: 1;
}

.story-hero-head.story-hero-head-stacked {
  grid-template-columns: 104px minmax(0, 1fr);
  justify-items: stretch;
  gap: 16px;
}

.story-hero-head.story-hero-head-stacked .story-title-stack {
  width: 100%;
  justify-items: stretch;
}

.story-hero-head.story-hero-head-stacked .story-event-slot {
  justify-content: flex-start;
}

.story-hero-head.story-hero-head-stacked .story-title-stack #story-nombre {
  text-align: left;
  font-size: var(--story-title-size, 2.35rem);
}

.story-hero-head.story-hero-head-stacked #story-evento {
  text-align: left;
}

#story-evento {
  margin: 0;
  font-size: var(--story-event-size, 0.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: var(--story-event-letter-spacing, 0.08em);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  display: -webkit-box;
  max-height: 2.25em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#story-evento[hidden] {
  display: block;
  visibility: hidden;
}

.story-stage-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.story-accent-shell,
.story-details-shell {
  min-width: 0;
}

.story-stage-spacer {
  min-height: 0;
}

.story-accent-line {
  margin: 4px 0 4px;
}



.story-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding-bottom: 22px;
}

.story-info-icon {
  width: 20px;
  height: 20px;
  color: #23d5ff;
  flex-shrink: 0;
  margin-top: 2px;
}
.story-info-icon-location {
  width: 20px;
  height: 20px;
  color: #ff1010;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-info-icon-money {
  color: #ffd54f;
}

.story-info-icon-prize {
  color: #8df700;
}


.story-info-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.story-label {
  font-size: 0.62rem;
  font-weight: 800;
  
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.story-value {
  /* CAMBIO: Un poco más pequeño para asegurar que quepa todo */
  font-size: var(--story-value-size, 0.9rem);
  line-height: var(--story-value-line-height, 1.26);
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  white-space: pre-wrap;
  font-family: Inter, sans-serif;
}

.story-footer {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Reducido de 10px a 5px */
  align-items: center;
  text-align: center;
  width: 100%;
}

.story-footer p {
  margin: 0;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.url-badge {
  width: 100%;
  padding: 0px 12px;
  border-radius: 12px;
  background: rgba(7, 12, 19, 0.92);
  border: 1px solid rgba(255, 214, 0, 0.14);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-download,
.btn-close {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-download {
  background: linear-gradient(90deg, #1e90ff 0%, #56c2ff 100%);
  color: #03111f;
}

.btn-close {
  background: rgba(255, 255, 255, 0.08);
  color: #edf4fa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-download:hover,
.btn-close:hover {
  transform: translateY(-2px);
}

.btn-download:disabled,
.btn-close:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.feature-card-event {
  cursor: pointer;
}

@media (max-width: 480px) {
  .story-layout {
    gap: 14px;
  }

  .story-hero-head {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .date-badge {
    width: 90px;
    height: 84px;
  }

  .story-container {
    padding: 20px 18px;
    border-radius: 26px;
  }

 #story-nombre {
    font-size: clamp(1.1rem, 6vw, 1.8rem); /* Un poco más pequeño en móviles */
    max-width: 100%;
    margin-bottom: 1px;
  }

  .story-title-stack #story-nombre {
    font-size: clamp(1.35rem, 7vw, 2rem);
    margin-bottom: 0;
  }

  .story-title-stack #story-nombre.story-title-compact {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .story-hero-head.story-hero-head-stacked .date-badge {
    width: 84px;
    height: 78px;
  }

  .story-hero-head.story-hero-head-stacked .story-title-stack #story-nombre {
    font-size: clamp(1.3rem, 6.3vw, 1.85rem);
  }

  .story-stage-shell {
    gap: 10px;
  }

  #story-evento {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .btn-download,
  .btn-close {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #story-nombre,
  .story-title-stack #story-nombre,
  .story-title-stack #story-nombre.story-title-compact,
  .story-hero-head.story-hero-head-stacked .story-title-stack #story-nombre {
    font-size: var(--story-title-size, 2rem);
  }

  .story-hero-head.story-hero-head-stacked .date-badge {
    width: 90px;
    height: 84px;
  }

  #story-evento {
    font-size: var(--story-event-size, 0.78rem);
  }
}

/* =========================
   ADMIN FORMS
   ========================= */

.admin-page {
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 214, 0, 0.12), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 0, 0.14), transparent 22%),
    linear-gradient(180deg, #050505 0%, #09090b 45%, #101015 100%);
}

.admin-page main {
  padding-top: 110px;
  padding-bottom: 44px;
}

.admin-page .hero {
  padding: 32px 0 18px;
}

.admin-page .container {
  width: min(calc(100% - 32px), 920px);
}

.admin-page .form-panel {
  padding: 34px;
}

.admin-page .form-panel::before {
  content: "";
  position: absolute;
  top: -56px;
  right: -56px;
  width: 180px;
  height: 180px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(247, 214, 0, 0.14));
  transform: rotate(18deg);
  filter: blur(4px);
  pointer-events: none;
}

.admin-page .section-head {
  display: block;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.admin-page .section-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: none;
  line-height: 1.05;
}

.admin-page .section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: none;
}

.admin-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.admin-page .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-page .field.full {
  grid-column: 1 / -1;
}

.admin-page .field label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
}

.admin-page .input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.admin-page .input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.admin-page .input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(247, 214, 0, 0.08);
}

.admin-page .admin-textarea {
  min-height: 104px;
  resize: vertical;
}

.admin-page .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.admin-page .status-box {
  margin-top: 18px;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
  display: none;
  line-height: 1.7;
  font-size: 14px;
}

.admin-page .status-box.show {
  display: block;
}

.admin-page .status-box.success {
  border-color: rgba(141, 247, 0, 0.2);
  background: rgba(141, 247, 0, 0.06);
  color: #eaffc9;
}

.admin-page .status-box.error {
  border-color: rgba(255, 102, 102, 0.22);
  background: rgba(255, 102, 102, 0.08);
  color: #ffd7d7;
}

.admin-page .footer {
  padding: 0 0 30px;
}

@media (max-width: 640px) {
  .admin-page .form-panel {
    padding: 22px;
  }

  .admin-page .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ADMIN DASHBOARD */

.admin-page [hidden] {
  display: none !important;
}

.btn-danger {
  background: rgba(255, 102, 102, 0.12);
  border: 1px solid rgba(255, 102, 102, 0.28);
  color: #ffd7d7;
}

.btn-danger:hover {
  background: rgba(255, 102, 102, 0.2);
  border-color: rgba(255, 102, 102, 0.42);
}

.btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

.admin-dashboard-page .hero {
  padding-bottom: 34px;
}

.admin-dashboard-shell,
.admin-shell,
.admin-column {
  display: grid;
  gap: 16px;
}

.admin-login-card {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 28px;
}

.admin-code-input {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.32em;
}

.admin-summary-card,
.admin-sidebar-card,
.admin-detail-card,
.admin-form-card,
.admin-events-card,
.admin-empty-card {
  padding: 24px;
}

.admin-form-card {
  overflow: visible;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-column-main {
  align-content: start;
}

.admin-toolbar {
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.admin-search-input {
  width: 100%;
}

.admin-upload-input {
  padding: 12px;
}

.admin-upload-input::file-selector-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #050505;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.admin-upload-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.6;
  font-size: 14px;
}

.admin-paste-area {
  min-height: 92px;
  resize: vertical;
  border-style: dashed;
  border-color: rgba(255, 214, 0, 0.24);
}

.admin-paste-area:focus {
  border-color: rgba(255, 214, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.08);
}

.admin-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-flyer-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-flyer-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-flyer-preview-copy {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.admin-flyer-preview-copy strong {
  font-size: 0.96rem;
  color: #ffffff;
  word-break: break-word;
}

.admin-flyer-preview-copy span {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-size: 0.9rem;
}

.admin-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-custom-select {
  position: relative;
  display: grid;
  gap: 8px;
}

.admin-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.admin-custom-select-trigger::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(255, 255, 255, 0.76);
  border-bottom: 2px solid rgba(255, 255, 255, 0.76);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.admin-custom-select.is-open .admin-custom-select-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}

.admin-custom-select.is-disabled .admin-custom-select-trigger {
  opacity: 0.52;
  cursor: not-allowed;
}

.admin-custom-select-menu {
  position: static;
  width: 100%;
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.admin-custom-select-search {
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
}

.admin-custom-select-search::-webkit-search-cancel-button {
  filter: invert(1);
}

.admin-custom-select-options {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.admin-custom-select-empty {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.5;
}

.admin-custom-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-custom-select-option.active {
  background: rgba(247, 214, 0, 0.12);
  color: #fff0a6;
}

.admin-custom-select-option:disabled {
  opacity: 0.38;
  cursor: default;
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.admin-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.admin-section-title h2,
.admin-empty-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.admin-empty-card p:last-child {
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-stat {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.admin-stat-value {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 214, 0, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.admin-list-item.active {
  border-color: rgba(247, 214, 0, 0.38);
  background: rgba(247, 214, 0, 0.08);
  box-shadow: 0 10px 24px rgba(247, 214, 0, 0.08);
}

.admin-list-title {
  font-size: 16px;
  font-weight: 800;
}

.admin-list-meta,
.admin-muted,
.admin-list-placeholder span,
.admin-event-copy span {
  color: rgba(255, 255, 255, 0.66);
}

.admin-redes-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-redes-separator {
  color: rgba(255, 255, 255, 0.28);
}

.admin-link {
  color: #fff0a6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-link:hover {
  color: var(--yellow);
  border-color: rgba(247, 214, 0, 0.46);
}

.admin-list-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.admin-list-loading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.04);
}

.admin-loading-dot {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--yellow);
  border-radius: 999px;
  animation: admin-loading-spin 0.8s linear infinite;
}

.admin-loading-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.admin-badge,
.admin-context-chip,
.admin-detail-count {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-badge,
.admin-context-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-detail-count {
  background: rgba(247, 214, 0, 0.12);
  border: 1px solid rgba(247, 214, 0, 0.22);
  color: #fff0a6;
}

.admin-context-chip {
  display: inline-flex;
  margin-bottom: 16px;
}

.public-event-shell {
  width: min(100%, 920px);
}

.public-event-card {
  margin-inline: auto;
}

.public-event-context {
  margin-bottom: 0;
  max-width: 100%;
}

.admin-event-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 14px;
}

.admin-event-copy {
  display: grid;
  gap: 6px;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-payment-card {
  overflow: hidden;
}

.admin-payment-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-review-card {
  overflow: hidden;
}

.admin-review-flyer-trigger {
  width: 120px;
}

.admin-review-flyer-empty {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  text-align: center;
}

.admin-payment-proof-link {
  display: block;
}

.admin-payment-proof-trigger {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.admin-payment-proof {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-proof-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-proof-viewer[hidden] {
  display: none;
}

.admin-proof-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(10px);
}

.admin-proof-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  padding: 22px;
  background: #111217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  display: grid;
  gap: 16px;
}

.admin-proof-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.admin-proof-viewer-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.admin-proof-viewer-meta {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.admin-proof-viewer-image {
  width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-stats-shell {
  display: grid;
  gap: 18px;
}

.admin-stats-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
}

.admin-stats-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(247, 214, 0, 0.12), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 74, 178, 0.12), transparent 36%);
  pointer-events: none;
}

.admin-stats-hero-card > * {
  position: relative;
  z-index: 1;
}

.admin-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-stats-band-copy {
  display: grid;
  gap: 10px;
}

.admin-stats-band-copy h2,
.admin-ranking-head h2,
.admin-spotlight-card h2 {
  margin: 0;
}

.admin-stats-band-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.admin-stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-mini-stat {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.admin-mini-stat span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.admin-mini-stat strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.admin-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.admin-spotlight-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  min-height: 170px;
  align-content: start;
}

.admin-spotlight-card-empty {
  min-height: auto;
}

.admin-spotlight-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.admin-spotlight-value {
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  line-height: 1.02;
  text-wrap: balance;
}

.admin-spotlight-meta {
  margin: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.admin-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-ranking-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.admin-ranking-card-wide {
  grid-column: 1 / -1;
}

.admin-ranking-head {
  display: grid;
  gap: 6px;
}

.admin-ranking-head h2 {
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
}

.admin-ranking-list,
.admin-month-bars {
  display: grid;
  gap: 12px;
}

.admin-ranking-item {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.admin-ranking-rank {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff0a6;
  background: rgba(247, 214, 0, 0.1);
  border: 1px solid rgba(247, 214, 0, 0.18);
}

.admin-ranking-copy {
  display: grid;
  gap: 4px;
}

.admin-ranking-copy strong {
  font-size: 15px;
}

.admin-ranking-copy span,
.admin-ranking-copy small,
.admin-month-bar small,
.admin-month-bar-head span {
  color: rgba(255, 255, 255, 0.68);
}

.admin-month-bar {
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.admin-month-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-month-bar-head strong {
  font-size: 15px;
}

.admin-month-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.admin-month-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 214, 0, 0.9), rgba(255, 74, 178, 0.88));
  box-shadow: 0 0 18px rgba(255, 74, 178, 0.24);
}

.admin-story-cards-shell {
  display: grid;
  gap: 18px;
}

.admin-story-cards-head {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.admin-story-cards-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-story-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-story-month-picker {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.admin-story-month-picker label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.admin-story-month-select {
  min-height: 46px;
  padding-right: 44px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.admin-story-month-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-story-format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-story-format .btn {
  min-height: 42px;
  border-radius: 999px;
}

.admin-story-format .btn.active {
  border-color: rgba(247, 214, 0, 0.32);
  background: rgba(247, 214, 0, 0.14);
  color: #fff0a6;
  box-shadow: 0 10px 26px rgba(247, 214, 0, 0.12);
}

.admin-story-counter {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-story-downloads {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-story-cards-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-story-sidebar {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.admin-story-list {
  display: grid;
  gap: 10px;
}

.admin-story-item {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-story-item:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 214, 0, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.admin-story-item.active {
  border-color: rgba(247, 214, 0, 0.36);
  background: rgba(247, 214, 0, 0.09);
  box-shadow: 0 10px 26px rgba(247, 214, 0, 0.08);
}

.admin-story-item-rank {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  color: #fff0a6;
  background: rgba(247, 214, 0, 0.1);
  border: 1px solid rgba(247, 214, 0, 0.18);
}

.admin-story-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-story-item-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.admin-story-item-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-story-preview-card {
  padding: 18px;
}

.admin-story-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.admin-story-preview-scale {
  --story-preview-scale: 1.06;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 12px 0;
}

.admin-story-preview-scale > * {
  transform: scale(var(--story-preview-scale));
  transform-origin: top center;
}

.admin-story-preview-meta {
  display: grid;
  gap: 6px;
  text-align: center;
  padding-top: 6px;
}

.admin-story-preview-meta strong {
  font-size: 16px;
  font-weight: 900;
}

.admin-story-preview-meta span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.admin-story-thumbs-card {
  padding: 18px;
}

.admin-story-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.admin-story-thumb {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  width: 90px;
  height: 160px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-story-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 214, 0, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.admin-story-thumb.active {
  border-color: rgba(247, 214, 0, 0.36);
  background: rgba(247, 214, 0, 0.08);
}

.admin-story-thumb-inner {
  width: 360px;
  height: 640px;
  transform: scale(0.25);
  transform-origin: top left;
}

.admin-story-cards-page[data-story-format="post"] .admin-story-thumb {
  height: 125px;
}

.admin-story-cards-page[data-story-format="post"] .admin-story-thumb-inner {
  height: 450px;
}

.wrapped-card.wrapped-card--post {
  height: 450px;
}

.wrapped-card--post .wrapped-inner {
  padding: 16px 16px 12px;
  gap: 9px;
}

.wrapped-card--post .wrapped-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

.wrapped-card--post .wrapped-brand {
  gap: 10px;
}

.wrapped-card--post .wrapped-brand-name {
  font-size: 12px;
}

.wrapped-card--post .wrapped-brand-copy small {
  font-size: 9px;
  letter-spacing: 0.18em;
}

.wrapped-card--post .wrapped-hero {
  gap: 6px;
}

.wrapped-card--post .wrapped-kicker {
  font-size: 10px;
}

.wrapped-card--post .wrapped-title {
  font-size: 22px;
  line-height: 0.98;
}

.wrapped-card--post .wrapped-hero-value {
  font-size: 28px;
}

.wrapped-card--post .wrapped-subtitle {
  font-size: 12px;
}

.wrapped-card--post .wrapped-meta {
  font-size: 11px;
}

.wrapped-card--post .wrapped-accent-line {
  height: 3px;
}

.wrapped-card--post .wrapped-body {
  gap: 8px;
}

.wrapped-card--post .wrapped-metric {
  padding: 12px 10px;
  border-radius: 18px;
}

.wrapped-card--post .wrapped-metric span {
  font-size: 9px;
}

.wrapped-card--post .wrapped-metric strong {
  font-size: 18px;
}

.wrapped-card--post .wrapped-rank-pill {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.wrapped-card--post .wrapped-rank-copy strong {
  font-size: 13px;
}

.wrapped-card--post .wrapped-rank-copy span {
  font-size: 11px;
}

.wrapped-card--post .wrapped-bar-head strong {
  font-size: 12px;
}

.wrapped-card--post .wrapped-bar-head span {
  font-size: 10px;
}

.wrapped-card--post .wrapped-bar-kicker {
  font-size: 8px;
}

.wrapped-card--post .wrapped-footer {
  gap: 6px;
}

.wrapped-card--post .wrapped-footer p {
  font-size: 9px;
  letter-spacing: 0.18em;
}

.wrapped-card--post .wrapped-url {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 10px;
}

.wrapped-card--post .wrapped-rank-list,
.wrapped-card--post .wrapped-bars {
  gap: 8px;
}

.wrapped-card--post .wrapped-rank-item,
.wrapped-card--post .wrapped-bar {
  padding: 10px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-inner,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-inner {
  padding: 12px;
  gap: 6px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-footer,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-footer {
  display: none;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-title,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-title {
  font-size: 20px;
  line-height: 1;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-subtitle,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-subtitle {
  font-size: 11px;
  line-height: 1.22;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-meta,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-meta {
  font-size: 10px;
  line-height: 1.2;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-accent-line,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-accent-line {
  height: 2px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-body,
.wrapped-card--post[data-story-id="top-liga"] .wrapped-body {
  gap: 6px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-bar {
  padding: 8px;
  border-radius: 16px;
  gap: 5px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-bar-head {
  gap: 8px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-bar-copy {
  gap: 2px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-bar-track {
  height: 7px;
}

.wrapped-card--post[data-story-id="ritmo"] .wrapped-insight {
  font-size: 9.5px;
  line-height: 1.25;
}

.admin-story-export-mount {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wrapped-card {
  width: 360px;
  height: 640px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid rgba(247, 214, 0, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrapped-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 92%);
  pointer-events: none;
  opacity: 0.9;
}

.wrapped-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  pointer-events: none;
  opacity: 0.42;
}

.wrapped-glow-yellow {
  width: 180px;
  height: 180px;
  top: -46px;
  left: -22px;
  background: rgba(255, 214, 0, 0.18);
}

.wrapped-glow-magenta {
  width: 140px;
  height: 140px;
  top: 210px;
  right: -40px;
  background: rgba(255, 45, 122, 0.16);
}

.wrapped-glow-cyan {
  width: 180px;
  height: 180px;
  bottom: -68px;
  left: 30px;
  background: rgba(35, 213, 255, 0.14);
}

.wrapped-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px 22px 18px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
}

.wrapped-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wrapped-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wrapped-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 18px;
  color: transparent;
  background: #050505 url("../assets/icon-512.png") center / cover no-repeat;
}

.wrapped-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wrapped-brand-name {
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wrapped-brand-name span {
  color: rgba(255, 45, 122, 0.95);
}

.wrapped-brand-copy small {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.wrapped-hero {
  display: grid;
  gap: 8px;
}

.wrapped-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.wrapped-title {
  margin: 0;
  font-size: 28px;
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
}

.wrapped-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.35;
}

.wrapped-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrapped-accent-line {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 199, 255, 0) 0%, rgba(34, 199, 255, 0.9) 14%, rgba(255, 204, 94, 0.95) 49%, rgba(255, 60, 158, 0.95) 83%, rgba(255, 60, 158, 0) 100%);
  box-shadow: 0 0 14px rgba(34, 199, 255, 0.16), 0 0 20px rgba(255, 60, 158, 0.18);
  opacity: 0.95;
}

.wrapped-body {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.wrapped-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wrapped-metric {
  border-radius: 20px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.wrapped-metric span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 900;
}

.wrapped-metric strong {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.wrapped-metric-wide {
  grid-column: 1 / -1;
}

.wrapped-insight {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.wrapped-insight-stack {
  display: grid;
  gap: 8px;
}

.wrapped-card--post .wrapped-insight-stack {
  gap: 6px;
}

.wrapped-card--post .wrapped-insight-stack .wrapped-insight {
  font-size: 11px;
  line-height: 1.34;
}

.wrapped-card--post[data-story-id="top-liga"] .wrapped-insight-stack {
  gap: 4px;
}

.wrapped-card--post[data-story-id="top-liga"] .wrapped-insight {
  font-size: 9.5px;
  line-height: 1.24;
}

.wrapped-top-liga-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 8px;
}

.wrapped-top-liga-compact-head,
.wrapped-top-liga-compact-stat {
  border-radius: 16px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.wrapped-top-liga-compact-head {
  display: grid;
  gap: 3px;
}

.wrapped-top-liga-compact-head span,
.wrapped-top-liga-compact-stat span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.wrapped-top-liga-compact-head strong {
  font-size: 15px;
  line-height: 1.05;
  font-weight: 1000;
}

.wrapped-top-liga-compact-head small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  line-height: 1.2;
}

.wrapped-top-liga-compact-stat {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
}

.wrapped-top-liga-compact-stat strong {
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
  color: #fff0a6;
}

.wrapped-card[data-story-id="month-intro"] .wrapped-inner {
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.wrapped-card[data-story-id="month-intro"] .wrapped-accent-line,
.wrapped-card[data-story-id="month-intro"] .wrapped-body {
  display: none;
}

.wrapped-card[data-story-id="month-intro"] .wrapped-hero {
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.wrapped-card[data-story-id="month-intro"] .wrapped-title {
  font-size: 56px;
  letter-spacing: -0.09em;
  line-height: 0.88;
  white-space: pre-line;
}

.wrapped-card[data-story-id="month-intro"] .wrapped-footer {
  display: none;
}

.wrapped-card--post[data-story-id="month-intro"] .wrapped-title {
  font-size: 40px;
}

.wrapped-empty {
  border-radius: 20px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.wrapped-empty strong {
  font-size: 14px;
  color: #fff0a6;
}

.wrapped-empty span {
  font-size: 12px;
  line-height: 1.35;
}

.wrapped-hero-number {
  display: grid;
  gap: 12px;
}

.wrapped-hero-value {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}

.wrapped-hero-value-tight {
  font-size: 30px;
}

.wrapped-hero-meta {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  width: fit-content;
}

.wrapped-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wrapped-hero-stats-single {
  grid-template-columns: 1fr;
}

.wrapped-hero-stats div {
  border-radius: 18px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
}

.wrapped-hero-stats span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 900;
}

.wrapped-hero-stats strong {
  font-size: 22px;
  font-weight: 1000;
}

.wrapped-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.wrapped-rank-item {
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.wrapped-rank-pill {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  background: rgba(247, 214, 0, 0.1);
  border: 1px solid rgba(247, 214, 0, 0.18);
  color: #fff0a6;
}

.wrapped-rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wrapped-rank-copy strong {
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.1;
}

.wrapped-rank-copy span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.25;
}

.wrapped-bars {
  display: grid;
  gap: 10px;
}

.wrapped-bar {
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.wrapped-bar-leader {
  border-color: rgba(247, 214, 0, 0.24);
  background:
    linear-gradient(135deg, rgba(247, 214, 0, 0.1), rgba(255, 45, 122, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.wrapped-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wrapped-bar-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wrapped-bar-kicker {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 166, 0.86);
  font-weight: 900;
}

.wrapped-bar-head strong {
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.18;
}

.wrapped-bar-total {
  white-space: nowrap;
}

.wrapped-bar-head span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
}

.wrapped-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.wrapped-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247, 214, 0, 0.9), rgba(255, 45, 122, 0.86));
  box-shadow: 0 0 18px rgba(255, 45, 122, 0.22);
}

.wrapped-bars-top-days {
  gap: 8px;
}

.wrapped-bar-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wrapped-bar-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.wrapped-bar-city strong {
  font-size: 11px;
  font-weight: 1000;
  color: #fff0a6;
}

.wrapped-bar-city-muted {
  color: rgba(255, 255, 255, 0.58);
}

.wrapped-bar-city span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

.wrapped-bar-city-line {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.wrapped-card--post .wrapped-bar-cities {
  gap: 5px;
}

.wrapped-card--post .wrapped-bar-city {
  padding: 5px 8px;
}

.wrapped-card--post .wrapped-bar-city strong,
.wrapped-card--post .wrapped-bar-city span {
  font-size: 10px;
}

.wrapped-close-stack {
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.wrapped-close-title {
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.wrapped-close-stack span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.wrapped-close-highlight {
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(247, 214, 0, 0.18);
  background: rgba(247, 214, 0, 0.08);
  display: grid;
  gap: 8px;
}

.wrapped-close-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.4;
}

.wrapped-close-highlight p + p {
  color: rgba(255, 255, 255, 0.74);
}

.wrapped-close-cta {
  display: grid;
  gap: 4px;
  align-items: center;
  justify-items: center;
  padding-top: 6px;
  text-align: center;
}

.wrapped-close-cta span {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.wrapped-close-cta strong {
  font-size: 18px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wrapped-footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.wrapped-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wrapped-url {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 12, 19, 0.92);
  border: 1px solid rgba(255, 214, 0, 0.14);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .admin-stats-summary,
  .admin-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats-band {
    grid-template-columns: 1fr;
  }

  .admin-story-preview-scale {
    --story-preview-scale: 1;
  }
}

@media (max-width: 860px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-stats-summary,
  .admin-ranking-grid,
  .admin-stats-mini-grid {
    grid-template-columns: 1fr;
  }

  .admin-story-cards-layout {
    grid-template-columns: 1fr;
  }

  .admin-story-preview-scale {
    --story-preview-scale: 1;
  }
}

@media (max-width: 640px) {
  .admin-login-card,
  .admin-summary-card,
  .admin-sidebar-card,
  .admin-detail-card,
  .admin-form-card,
  .admin-events-card,
  .admin-empty-card,
  .admin-stats-hero-card,
  .admin-ranking-card,
  .admin-spotlight-card {
    padding: 20px;
  }

  .admin-stats,
  .admin-stats-summary {
    grid-template-columns: 1fr;
  }

  .admin-code-input {
    letter-spacing: 0.2em;
    font-size: 28px;
  }

  .admin-inline-actions,
  .admin-section-title,
  .admin-page .actions {
    flex-direction: column;
  }

  .admin-inline-actions .btn,
  .admin-page .actions .btn {
    width: 100%;
  }

  .admin-story-month-picker {
    width: 100%;
    min-width: 0;
  }

  .admin-flyer-preview {
    grid-template-columns: 1fr;
  }

  .admin-payment-grid {
    grid-template-columns: 1fr;
  }

  .admin-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-flyer-preview img {
    width: 100%;
    height: 160px;
  }

  .admin-payment-proof {
    width: 100%;
    height: 180px;
  }

  .admin-review-flyer-trigger,
  .admin-review-flyer-empty {
    width: 100%;
  }

  .admin-review-flyer-empty {
    height: 180px;
  }
}

.admin-dashboard-admin-v2 .container {
  width: min(calc(100% - 48px), 1680px);
}

.admin-dashboard-admin-v2 .hero {
  padding: 22px 0 24px;
}

.admin-dashboard-admin-v2 .admin-dashboard-shell {
  gap: 22px;
}

.admin-dashboard-admin-v2 .admin-login-card {
  width: min(100%, 520px);
}

.admin-dashboard-admin-v2 .admin-v2-shell {
  gap: 22px;
}

.admin-dashboard-admin-v2 .admin-v2-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.admin-dashboard-admin-v2 .admin-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(247, 214, 0, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.admin-dashboard-admin-v2 .admin-v2-hero > * {
  position: relative;
  z-index: 1;
}

.admin-dashboard-admin-v2 .admin-v2-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) auto;
  gap: 24px;
  align-items: end;
}

.admin-dashboard-admin-v2 .admin-v2-hero-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  max-width: 12ch;
}

.admin-dashboard-admin-v2 .admin-v2-hero-copy {
  max-width: 72ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.78;
}

.admin-dashboard-admin-v2 .admin-v2-hero-actions {
  justify-content: flex-end;
  align-items: center;
}

.admin-dashboard-admin-v2 .admin-v2-hero-actions .btn {
  min-height: 48px;
  border-radius: 999px;
}

.admin-dashboard-admin-v2 .admin-v2-hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.admin-dashboard-admin-v2 #dashboardStatus {
  margin-top: 18px;
}

.admin-dashboard-admin-v2 .admin-v2-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.admin-dashboard-admin-v2 .admin-v2-main-stack,
.admin-dashboard-admin-v2 .admin-v2-support-column,
.admin-dashboard-admin-v2 .admin-v2-inspector-stack {
  display: grid;
  gap: 22px;
  align-content: start;
  min-width: 0;
}

.admin-dashboard-admin-v2 .admin-v2-directory-card,
.admin-dashboard-admin-v2 .admin-v2-selected-card,
.admin-dashboard-admin-v2 .admin-sidebar-card,
.admin-dashboard-admin-v2 .admin-detail-card,
.admin-dashboard-admin-v2 .admin-form-card,
.admin-dashboard-admin-v2 .admin-events-card,
.admin-dashboard-admin-v2 .admin-empty-card {
  padding: 26px;
}

.admin-dashboard-admin-v2 .admin-v2-directory-card {
  min-width: 0;
}

.admin-dashboard-admin-v2 .admin-v2-directory-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}

.admin-dashboard-admin-v2 .admin-v2-card-copy {
  max-width: 58ch;
  line-height: 1.72;
}

.admin-dashboard-admin-v2 #ligasList {
  gap: 14px;
}

.admin-dashboard-admin-v2 #ligasList .admin-list-item {
  grid-template-columns: minmax(260px, 1.35fr) minmax(140px, 0.88fr) minmax(130px, 0.78fr) minmax(200px, 0.98fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-dashboard-admin-v2 #ligasList .admin-list-title {
  font-size: 1.32rem;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.admin-dashboard-admin-v2 #ligasList .admin-list-meta {
  line-height: 1.55;
}

.admin-dashboard-admin-v2 #ligasList .admin-list-meta:last-child {
  justify-self: end;
  text-align: right;
}

.admin-dashboard-admin-v2 .admin-v2-support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}

.admin-dashboard-admin-v2 #employeesList {
  gap: 12px;
}

.admin-dashboard-admin-v2 #employeesList .admin-list-item {
  padding: 18px;
  gap: 8px;
}

.admin-dashboard-admin-v2 #employeesList .admin-list-title {
  font-size: 1.08rem;
}

.admin-dashboard-admin-v2 .admin-v2-employee-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-dashboard-admin-v2 .admin-v2-inspector-stack {
  position: sticky;
  top: 118px;
}

.admin-dashboard-admin-v2 .admin-v2-selected-card {
  position: relative;
  overflow: hidden;
}

.admin-dashboard-admin-v2 .admin-v2-selected-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(247, 214, 0, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
}

.admin-dashboard-admin-v2 .admin-v2-selected-card > * {
  position: relative;
  z-index: 1;
}

.admin-dashboard-admin-v2 #selectedLigaRedes {
  margin: 0;
  line-height: 1.75;
}

.admin-dashboard-admin-v2 .admin-v2-inspector-actions {
  align-items: center;
}

.admin-dashboard-admin-v2 .admin-v2-inspector-actions .btn {
  flex: 1 1 180px;
}

.admin-dashboard-admin-v2 #eventosList,
.admin-dashboard-admin-v2 #paymentsList,
.admin-dashboard-admin-v2 #pendingEventsList {
  gap: 14px;
}

.admin-dashboard-admin-v2 #eventosList .admin-event-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.admin-dashboard-admin-v2 #eventosList .admin-inline-actions {
  justify-content: flex-end;
}

.admin-dashboard-admin-v2 .admin-payment-grid {
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 18px;
}

.admin-dashboard-admin-v2 .admin-review-grid {
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 18px;
}

.admin-dashboard-admin-v2 .admin-payment-proof {
  width: 144px;
  height: 144px;
  border-radius: 18px;
}

.admin-dashboard-admin-v2 .admin-review-flyer-trigger,
.admin-dashboard-admin-v2 .admin-review-flyer-empty {
  width: 144px;
}

.admin-dashboard-admin-v2 .admin-review-flyer-empty {
  height: 144px;
}

.admin-dashboard-admin-v2 .admin-empty-card p,
.admin-dashboard-admin-v2 .admin-detail-card p,
.admin-dashboard-admin-v2 .admin-form-card p {
  max-width: 62ch;
}

@media (max-width: 1480px) {
  .admin-dashboard-admin-v2 .container {
    width: min(calc(100% - 40px), 1360px);
  }

  .admin-dashboard-admin-v2 .admin-v2-hero-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-dashboard-admin-v2 .admin-v2-hero-actions {
    justify-content: flex-start;
  }

  .admin-dashboard-admin-v2 .admin-v2-support-grid {
    grid-template-columns: minmax(250px, 0.88fr) minmax(0, 1.12fr);
  }

  .admin-dashboard-admin-v2 .admin-v2-employee-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .admin-dashboard-admin-v2 .container {
    width: min(calc(100% - 32px), 1180px);
  }

  .admin-dashboard-admin-v2 .admin-v2-workspace,
  .admin-dashboard-admin-v2 .admin-v2-support-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-admin-v2 .admin-v2-inspector-stack {
    position: static;
  }
}

@media (max-width: 980px) {
  .admin-dashboard-admin-v2 .admin-v2-directory-toolbar,
  .admin-dashboard-admin-v2 #eventosList .admin-event-card,
  .admin-dashboard-admin-v2 .admin-v2-hero-head {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-admin-v2 .admin-v2-hero-stats,
  .admin-dashboard-admin-v2 .admin-v2-employee-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-admin-v2 #ligasList .admin-list-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-admin-v2 #ligasList .admin-list-meta:last-child {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .admin-dashboard-admin-v2 .container {
    width: min(calc(100% - 20px), 100%);
  }

  .admin-dashboard-admin-v2 .admin-v2-hero,
  .admin-dashboard-admin-v2 .admin-v2-directory-card,
  .admin-dashboard-admin-v2 .admin-v2-selected-card,
  .admin-dashboard-admin-v2 .admin-sidebar-card,
  .admin-dashboard-admin-v2 .admin-detail-card,
  .admin-dashboard-admin-v2 .admin-form-card,
  .admin-dashboard-admin-v2 .admin-events-card,
  .admin-dashboard-admin-v2 .admin-empty-card {
    padding: 20px;
  }

  .admin-dashboard-admin-v2 .admin-v2-hero-stats,
  .admin-dashboard-admin-v2 .admin-v2-employee-stats,
  .admin-dashboard-admin-v2 #ligasList .admin-list-item {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-admin-v2 .admin-v2-hero-actions .btn,
  .admin-dashboard-admin-v2 .admin-v2-inspector-actions .btn {
    width: 100%;
  }

  .admin-dashboard-admin-v2 .admin-payment-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-admin-v2 .admin-review-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-admin-v2 .admin-payment-proof {
    width: 100%;
    height: 180px;
  }

  .admin-dashboard-admin-v2 .admin-review-flyer-trigger,
  .admin-dashboard-admin-v2 .admin-review-flyer-empty {
    width: 100%;
  }

  .admin-dashboard-admin-v2 .admin-review-flyer-empty {
    height: 180px;
  }
}
