/* Events dashboard — MatchFighterX mockup */

.dash-main--events {
  padding: 0;
  background: #ececec;
}

.events-page-wrap {
  padding: 0;
}

.ev-page {
  padding: 1.25rem 1.5rem 2.5rem;
  max-width: 1400px;
}

.ev-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.ev-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ev-cal {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 2px solid #e30613;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.ev-cal-month {
  font-size: 0.65rem;
  font-weight: 800;
  color: #e30613;
}

.ev-cal-day {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111;
}

.ev-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111;
}

.ev-breadcrumb {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #888;
}

.ev-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  background: #e30613;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.ev-btn-primary:hover {
  background: #c40511;
  color: #fff;
}

.ev-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1.25rem;
}

.ev-tab {
  padding: 0.75rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.ev-tab:hover {
  color: #111;
}

.ev-tab.is-active {
  color: #e30613;
  border-bottom-color: #e30613;
}

.ev-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1200px) {
  .ev-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ev-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ev-stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ev-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  mask-size: 55%;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 55%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.ev-stat-icon--red { background: #e30613; }
.ev-stat-icon--yellow { background: #f9a825; }
.ev-stat-icon--green { background: #2e7d32; }
.ev-stat-icon--grey { background: #9e9e9e; }
.ev-stat-icon--purple { background: #7b1fa2; }
.ev-stat-icon--blue { background: #1565c0; }

.ev-stat-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #666;
}

.ev-stat-value {
  margin: 0.15rem 0 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #111;
  line-height: 1.1;
}

.ev-stat-desc {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: #aaa;
}

.ev-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
}

.ev-card-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111;
}

.ev-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ev-card-head .ev-card-title {
  margin: 0;
}

.ev-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.ev-events-table-card .ev-table-wrap {
  overflow: visible;
}

.ev-events-table-card {
  overflow: visible;
}

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

.ev-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #eee;
}

.ev-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.ev-event-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.ev-event-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ev-event-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.ev-event-discipline {
  font-size: 0.78rem;
  font-weight: 500;
  color: #777;
  line-height: 1.2;
}

.ev-event-thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4a4a4a, #1a1a1a);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid #e8e8ec;
}

.ev-event-thumb--photo {
  background-color: #eee;
}

.ev-cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ev-cell-primary {
  font-size: 0.88rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.ev-cell-secondary {
  font-size: 0.78rem;
  font-weight: 500;
  color: #777;
  line-height: 1.2;
}

.ev-cell-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}

.ev-cell-actions {
  min-width: 120px;
  width: 1%;
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
  position: relative;
  overflow: visible;
}

.ev-events-row:has(.ev-actions[open]) {
  position: relative;
  z-index: 30;
}

.ev-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.ev-badge--outline {
  background: transparent;
  border: 1.5px solid currentColor;
  padding: 0.18rem 0.65rem;
}

.ev-badge--upcoming {
  background: #fff8e1;
  color: #e65100;
}

.ev-badge--outline.ev-badge--upcoming {
  background: #fff;
  color: #e65100;
  border-color: #e65100;
}

.ev-badge--published {
  background: #e8f5e9;
  color: #2e7d32;
}

.ev-badge--outline.ev-badge--published {
  background: #fff;
  color: #2e7d32;
  border-color: #2e7d32;
}

.ev-badge--completed {
  background: #e3f2fd;
  color: #1565c0;
}

.ev-badge--cancelled {
  background: #f5f5f5;
  color: #757575;
}

.ev-actions {
  position: relative;
}

.ev-actions summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.2rem;
  padding: 0.2rem 0.4rem;
}

.ev-actions-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 96px;
  height: 36px;
  margin: 0;
  padding: 0 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.ev-actions-trigger:hover {
  border-color: #999;
  background: #f7f7f7;
}

.ev-actions-trigger__icon {
  font-size: 1.1rem;
  line-height: 1;
}

.ev-actions--menu {
  display: inline-block;
  position: relative;
}

.ev-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.ev-row-action {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ev-row-action:hover {
  background: #f5f5f5;
  border-color: #999;
}

.ev-row-action--primary {
  background: #e30613;
  border-color: #e30613;
  color: #fff;
}

.ev-row-action--primary:hover {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}

.ev-events-table-card .ev-card-title {
  margin-bottom: 0.85rem;
}

.ev-events-table tbody tr:hover {
  background: #fafafa;
}

.ev-page--browse {
  max-width: 1200px;
}

.ev-events-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.ev-event-detail {
  scroll-margin-top: 5rem;
}

.ev-event-detail--highlight {
  border-color: #e30613;
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.15);
}

.ev-event-detail-head {
  margin-bottom: 0.75rem;
}

.ev-event-detail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.ev-event-detail-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #666;
}

.ev-event-tickets-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.ev-actions summary::-webkit-details-marker {
  display: none;
}

.ev-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1px solid #d8d8de;
  border-radius: 10px;
  min-width: 240px;
  max-width: min(280px, 90vw);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 0.5rem 0;
}

.ev-actions-group {
  padding: 0.35rem 0.65rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.ev-actions-group:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.ev-actions-group--danger {
  padding-top: 0.5rem;
}

.ev-actions-group__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.ev-actions-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #222;
  text-decoration: none;
  box-sizing: border-box;
}

.ev-actions-item:hover {
  background: #f3f3f5;
}

.ev-actions-item--danger {
  color: #c62828;
  font-weight: 700;
}

.ev-actions-item--danger:hover {
  background: #ffebee;
}

.ev-actions-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.ev-actions-status-form {
  margin: 0;
}

.ev-actions-status-btn {
  display: block;
  width: 100%;
  padding: 0.42rem 0.35rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
  color: #444;
}

.ev-actions-status-btn:hover {
  background: #f5f5f5;
}

.ev-actions-status-btn--upcoming {
  color: #e65100;
  border-color: #e65100;
}

.ev-actions-status-btn--published {
  color: #2e7d32;
  border-color: #2e7d32;
}

.ev-actions-status-btn--completed {
  color: #1565c0;
  border-color: #1565c0;
}

.ev-actions-status-btn--cancelled {
  color: #757575;
  border-color: #9e9e9e;
}

.ev-actions-muted {
  color: #aaa;
  font-size: 0.85rem;
}

.ev-link-footer,
.ev-link-sm {
  color: #e30613;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.ev-link-footer {
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.ev-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .ev-widgets {
    grid-template-columns: 1fr;
  }
}

.ev-poster-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}

.ev-poster-slide {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.ev-poster-slide__media,
.ev-poster-item__media,
.ev-images-slide__media,
.ev-event-thumb-slide,
.ev-event-thumb-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
}

.ev-poster-slide__media {
  border-radius: 6px;
}

.ev-poster-slide__media img,
.ev-poster-item__media img {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.ev-images-slide__media img,
.ev-images-carousel--new .ev-images-slide img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ev-images-eye {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.ev-images-eye svg {
  opacity: 0.92;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
}

.ev-images-eye:hover {
  background: rgba(0, 0, 0, 0.22);
}

.ev-images-eye:hover svg {
  opacity: 1;
}

.ev-images-eye--sm svg {
  width: 16px;
  height: 16px;
}

.ev-event-thumb-wrap,
.ev-event-thumb-carousel {
  position: relative;
  flex-shrink: 0;
}

.ev-event-thumb-carousel {
  display: flex;
  gap: 0.35rem;
  max-width: 168px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.ev-event-thumb-slide {
  flex: 0 0 52px;
  scroll-snap-align: start;
  border-radius: 6px;
}

.ev-event-thumb-slide .ev-event-thumb,
.ev-event-thumb-wrap .ev-event-thumb {
  display: block;
  width: 52px;
  height: 40px;
  border-radius: 6px;
}

.ev-event-thumb-slide .ev-images-eye,
.ev-event-thumb-wrap .ev-images-eye {
  border-radius: 6px;
}

.ev-images-field {
  margin: 0.5rem 0 1rem;
}

.ev-images-existing,
.ev-images-new {
  margin-bottom: 0.85rem;
}

.ev-images-existing__title,
.ev-images-new__title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.ev-images-carousel {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 0.35rem;
}

.ev-images-slide {
  flex: 0 0 120px;
  scroll-snap-align: start;
}

.ev-images-remove {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #666;
}

.ev-images-dots {
  margin-top: 0.35rem;
}

.ev-images-empty-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #888;
}

.ev-images-new__hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #888;
}

.ev-gala-field {
  display: grid;
  gap: 0.35rem;
}

.ev-gala-field__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.ev-field-hint--warn {
  color: #b45309;
}

.ev-gala-select {
  max-width: 100%;
}

.ev-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-lightbox[hidden] {
  display: none !important;
}

.ev-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.ev-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 920px);
  max-height: 90vh;
  padding: 0 2.5rem;
}

.ev-lightbox__img {
  display: block;
  max-width: min(92vw, 920px);
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.ev-lightbox__close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.ev-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.ev-lightbox__nav--prev { left: 0; }
.ev-lightbox__nav--next { right: 0; }

.ev-lightbox__counter {
  margin: 0.65rem 0 0;
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.ev-poster-item__media img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.ev-poster-placeholder {
  width: 140px;
  height: 200px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.5rem;
  text-align: center;
  border-radius: 6px;
}

.ev-poster-cap {
  font-size: 0.72rem;
  margin: 0.35rem 0 0;
  color: #666;
}

.ev-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ev-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  padding: 0;
  cursor: pointer;
}

.ev-carousel-dots button.is-active {
  background: #e30613;
}

.ev-match-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ev-match-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.ev-match-row--full {
  grid-template-columns: 1fr auto auto auto;
  margin-bottom: 0.5rem;
}

.ev-match-fighters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.ev-fighter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ev-fighter-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #555, #222);
  flex-shrink: 0;
}

.ev-fighter em {
  font-style: normal;
  color: #888;
  font-weight: 500;
  font-size: 0.72rem;
}

.ev-vs {
  font-weight: 900;
  color: #e30613;
  font-size: 0.75rem;
}

.ev-match-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: #888;
}

.ev-donut-wrap {
  position: relative;
  width: 200px;
  margin: 0 auto 1rem;
}

.ev-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.ev-donut-center strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.ev-donut-center span {
  font-size: 0.62rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.03em;
}

.ev-ticket-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.ev-ticket-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.ev-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ev-ticket-legend li span:last-child {
  margin-left: auto;
  color: #666;
}

.ev-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.ev-form--grid {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .ev-form--grid {
    grid-template-columns: 1fr;
  }
}

.ev-form--event {
  max-width: 640px;
}

.ev-poster-field {
  margin: 0.5rem 0 1rem;
}

.ev-poster-field__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.ev-poster-field__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
}

.ev-poster-field__hint {
  font-size: 0.75rem;
  color: #777;
  font-weight: 500;
}

.ev-poster-preview {
  margin-bottom: 0.65rem;
  min-height: 140px;
}

.ev-poster-field__input {
  width: 100%;
}

.ev-field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
}

.ev-form label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
}

.ev-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: none;
  font-weight: 400;
}

.ev-check {
  text-transform: none;
  font-weight: 500;
}

.ev-empty,
.ev-empty-cell {
  color: #999;
  font-size: 0.88rem;
}

.ev-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.ev-poster-item img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.ev-btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.ev-btn-sm.ev-danger {
  color: #c62828;
  border-color: #ffcdd2;
}

.ev-edit-panel {
  border: 2px solid #e30613;
}

.ev-inline {
  display: inline;
}

/* Organizer events hub */
.org-events-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.org-events-nav-link {
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  color: #666;
  letter-spacing: 0.04em;
}

.org-events-nav-link.is-active {
  color: #e30613;
  border-bottom: 2px solid #e30613;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.org-subtabs {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.org-subtab {
  padding: 0.5rem 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #888;
  text-decoration: none;
}

.org-subtab.is-active {
  color: #e30613;
  border-bottom: 2px solid #e30613;
}

.org-event-picker {
  margin-bottom: 1rem;
}

.org-ticket-cards,
.ticket-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.ticket-card,
.org-ticket-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  padding: 1.35rem 1.15rem 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ticket-card--vip_table { --ticket-accent: #7b1fa2; }
.ticket-card--ringside { --ticket-accent: #1565c0; }
.ticket-card--regular { --ticket-accent: #e30613; }
.ticket-card--kamp { --ticket-accent: #757575; }

.ticket-card__head {
  margin: 0 0 0.85rem;
  width: 100%;
}

.ticket-card__capacity,
.ticket-card__sport {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.25;
}

.ticket-card__tier {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.2;
}

.ticket-card__visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0.15rem 0 0.9rem;
}

.ticket-card__stub {
  position: relative;
  width: min(168px, 88%);
  height: 78px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ticket-card__stub::before,
.ticket-card__stub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8e8ec;
  box-shadow: inset 0 0 0 1px #f5f5f5;
  z-index: 2;
}

.ticket-card__stub::before { left: -8px; }
.ticket-card__stub::after { right: -8px; }

/* VIP table — black stub, gold VIP label */
.ticket-card__stub--vip_table {
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 55%, #000 100%);
  border-color: #2a2a2a;
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.15);
}

.ticket-card__stub-vip {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #d4af37;
  text-shadow:
    0 0 18px rgba(212, 175, 55, 0.55),
    0 1px 0 #8b6914,
    0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Ringside — yellow stub, gym jacket logo */
.ticket-card__stub--ringside {
  background: linear-gradient(180deg, #ffe566 0%, #f4c430 45%, #e6b800 100%);
  border-color: #c9a227;
}

.ticket-card__stub--ringside .ticket-card__jacket-icon {
  width: 52px;
  height: 52px;
  color: #1a1a1a;
}

/* Regular — light grey stub, gym jacket logo */
.ticket-card__stub--regular {
  background: linear-gradient(180deg, #f0f0f0 0%, #e5e5e5 55%, #dcdcdc 100%);
  border-color: #cfcfcf;
}

.ticket-card__stub--regular .ticket-card__jacket-icon {
  width: 50px;
  height: 50px;
  color: #2d2d2d;
}

/* Kamp — blue stub, camp graphic */
.ticket-card__stub--kamp {
  background: linear-gradient(180deg, #2b7cd6 0%, #1a5fb4 50%, #134a8f 100%);
  border-color: #0f3d73;
}

.ticket-card__kamp-icon {
  width: min(140px, 92%);
  height: auto;
  max-height: 62px;
}

.ticket-card__jacket-icon {
  display: block;
  flex-shrink: 0;
}

.ticket-card__price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: #111;
}

.ticket-card__avail {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b6b6b;
}

.ticket-card__manage-meta {
  width: 100%;
  margin-top: 0.65rem;
}

.ticket-card__sold {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 0.35rem;
}

.ticket-card__progress {
  margin-top: 0;
}

.ticket-card__actions {
  width: 100%;
  margin-top: 0.85rem;
}

.ticket-card__buy-form {
  width: 100%;
  margin-top: 1rem;
}

.ticket-card__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}

.ticket-card__btn--buy {
  background: #e30613;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.28);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.ticket-card__btn--buy:hover {
  background: #c41e3a;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.32);
}

.ticket-card__btn--buy:active {
  transform: translateY(1px);
}

.ticket-card__btn--outline {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  text-decoration: none;
}

.ticket-card__sold-out {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
}

.ticket-card__edit summary {
  list-style: none;
}

.ticket-card__edit summary::-webkit-details-marker {
  display: none;
}

.feat-event .ticket-cards-grid {
  margin-top: 0.5rem;
}

.ev-events-row.is-selected {
  background: #fff8f0;
  box-shadow: inset 3px 0 0 #e30613;
}

.ev-tickets-shop-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ev-tickets-event-card {
  scroll-margin-top: 5rem;
  padding: 0;
  overflow: hidden;
}

.ev-tickets-event-card--highlight {
  border-color: #e30613;
  box-shadow: 0 0 0 1px rgba(227, 6, 19, 0.12);
}

.ev-tickets-event-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #eee;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.ev-tickets-event-card__thumb {
  flex-shrink: 0;
}

.ev-tickets-event-card__info {
  flex: 1;
  min-width: 12rem;
}

.ev-tickets-event-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.ev-tickets-event-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
}

.ev-tickets-event-card__sep {
  margin: 0 0.25rem;
  color: #bbb;
}

.ev-tickets-event-card__discipline {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.ev-tickets-event-card__tickets {
  padding: 1.15rem 1.25rem 1.25rem;
}

.ev-tickets-event-card .feat-sub {
  display: none;
}

.ev-events-table-hint {
  margin: 0 0 0.85rem;
}

.ev-tickets-event-hint {
  margin: 0 0 1rem;
}

.org-progress {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.org-progress span {
  display: block;
  height: 100%;
  background: #e30613;
}

.org-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-kpi {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;
}

.org-kpi strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.35rem;
}

.org-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.org-copy-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.org-copy-input {
  flex: 1;
  min-width: 200px;
}

.org-btn-outline {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.org-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.org-poster-tile {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.75rem;
  position: relative;
}

.org-poster-tile img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
}

.org-poster-num {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #e30613;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.org-muted {
  color: #888;
  font-size: 0.82rem;
}

.dash-nav-icon--tickets { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c1.1 0 2 .9 2 2s-.9 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c1.1 0 2 .9 2 2s-.9 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2z'/%3E%3C/svg%3E"); }
.dash-nav-icon--sponsors { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E"); }
