.offline-event-page {
}

.offline-event-hero {
  --offline-event-hero-text-color: #fff;
  --offline-event-hero-eyebrow-bg: rgba(255, 255, 255, 0.18);
  --offline-event-hero-overlay-start: rgba(255, 79, 139, 0.92);
  --offline-event-hero-overlay-end: rgba(124, 58, 237, 0.88);
  --offline-event-hero-primary-bg: #fff;
  --offline-event-hero-primary-color: #70203e;
  --offline-event-hero-secondary-bg: rgba(255, 255, 255, 0.13);
  --offline-event-hero-secondary-color: #fff;
  --offline-event-hero-image: none;
  position: relative;
  overflow: hidden;
  padding: 112px 0 92px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, var(--offline-event-hero-overlay-start) 0%, rgba(255, 122, 69, 0.82) 52%, var(--offline-event-hero-overlay-end) 100%),
    var(--offline-event-hero-image);
  background-size: auto, auto, cover;
  background-position: center;
  color: var(--offline-event-hero-text-color);
}

.offline-event-hero::after {
  content: '';
  position: absolute;
  inset: auto -8% -48% 48%;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-8deg);
}

.offline-event-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.offline-event-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--offline-event-hero-eyebrow-bg);
  color: var(--offline-event-hero-text-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offline-event-hero h1 {
  margin: 0;
  color: var(--offline-event-hero-text-color);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
}

.offline-event-hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--offline-event-hero-text-color);
  opacity: 0.92;
  font-size: 18px;
  line-height: 1.8;
}

.offline-event-hero__actions,
.offline-event-card__actions,
.offline-event-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;justify-self: end;
}

.offline-event-hero__actions {
  margin-top: 30px;
}

.offline-event-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #70203e;
  background: #fff;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.offline-event-button:hover,
.offline-event-button:focus {
  color: #70203e;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(126, 34, 83, 0.18);
}

.offline-event-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.offline-event-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.offline-event-button--primary:hover,
.offline-event-button--primary:focus {
  color: #fff;
}

.offline-event-button--secondary {
  color: #be123c;
  background: #fff1f2;
}

.offline-event-button--danger {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f43f5e);
}

.offline-event-button--danger:hover,
.offline-event-button--danger:focus {
  color: #fff;
}

.offline-event-button--ghost {
  color: var(--offline-event-hero-secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--offline-event-hero-secondary-bg);
}

.offline-event-button--ghost:hover,
.offline-event-button--ghost:focus {
  color: var(--offline-event-hero-secondary-color);
}

.offline-event-hero .offline-event-button--primary {
  color: var(--offline-event-hero-primary-color);
  background: var(--offline-event-hero-primary-bg);
}

.offline-event-hero .offline-event-button--primary:hover,
.offline-event-hero .offline-event-button--primary:focus {
  color: var(--offline-event-hero-primary-color);
}

.offline-event-shell {
  padding-top: 42px;
  padding-bottom: 72px;
}

.offline-event-filter {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(190, 18, 60, 0.08);
}

.offline-event-filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.offline-event-filter__group > span {
  color: #9f1239;
  font-weight: 800;
}

.offline-event-filter__chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5f2438;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.1);
}

.offline-event-filter__chip:hover,
.offline-event-filter__chip.is-active {
  color: #fff;
  text-decoration: none;
  background: #be123c;
}

.offline-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.offline-event-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(126, 34, 83, 0.12);
}

.offline-event-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffe4e6;
}

.offline-event-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offline-event-card:hover .offline-event-card__cover img {
  transform: scale(1.04);
}

.offline-event-card__badge,
.offline-event-card__status {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.offline-event-card__badge {
  top: 14px;
  left: 14px;
  background: #ff0000;
}

.offline-event-card__status {
  right: 14px;
  bottom: 14px;
  background:#be123c;
}

.offline-event-card__status--closed {
  background: rgba(180, 83, 9, 0.95);
}

.offline-event-card__status--ended {
  background: #bbbbbb;
}

.offline-event-card__body {
  padding: 22px;
}

.offline-event-card__category {
  margin-bottom: 0px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
}

.offline-event-card h2 {
  margin: 0;
  color: #24111a;
  font-size: 22px;
  line-height: 2;
}

.offline-event-card__summary {
  margin:0;
  color: #6b4a59;
  line-height: 1.65;
}

.offline-event-card__meta {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
}

.offline-event-card__meta div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.offline-event-card__meta dt {
  color: #9f1239;
  font-weight: 800;
}

.offline-event-card__meta dd {
  margin: 0;
  color: #3f2631;
}

.offline-event-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #be123c;
  font-weight: 800;
}

.offline-event-card__price del {
  color: #9ca3af;
  font-weight: 500;
}

.offline-event-card__actions {
  margin-top: 20px;
}

.offline-event-empty {
  padding: 58px 20px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(126, 34, 83, 0.1);
}

.offline-event-pagination {
  margin-top: 32px;
}

.offline-event-modal[hidden] {
  display: none;
}

.offline-event-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.offline-event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}

.offline-event-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.offline-event-modal__close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 12px 12px 0 0;
  border: 0;
  border-radius: 999px;
  color: #881337;
  background: #fff1f2;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.offline-event-modal__content {
  clear: both;
  padding: 8px 28px 30px;
}

.offline-event-detail {
  display: grid;
  gap: 22px;
}

.offline-event-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.offline-event-detail__cover {
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  object-fit: cover;
  background: #ffe4e6;
}

.offline-event-detail h2 {
  margin: 0 0 12px;
  color: #24111a;
  font-size: 30px;
}

.offline-event-detail__params {
  display: grid;
  gap: 12px;
  margin: 0;
}

.offline-event-detail__params div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.offline-event-detail__params dt {
  color: #9f1239;
  font-weight: 800;
}

.offline-event-detail__params dd {
  margin: 0;
}

.offline-event-detail__section {
  padding: 18px;
  border-radius: 20px;
  background: #fff7f9;
}

.offline-event-detail__section h3,
.offline-event-signup h2 {
  margin: 0 0 12px;
  color: #881337;
}

.offline-event-signup {
  display: grid;
  gap: 16px;
}

.offline-event-field {
  display: grid;
  gap: 6px;
}

.offline-event-field label {
  color: #4a1d2d;
  font-weight: 800;
}

.offline-event-field input,
.offline-event-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff;
}

.offline-event-field textarea {
  min-height: 96px;
  resize: vertical;
}

.offline-event-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.offline-event-alert--success {
  background: #ecfdf5;
  color: #047857;
}

.offline-event-loading {
  padding: 32px;
  color: #6b4a59;
  text-align: center;
}

.offline-event-page--detail {
  padding: 24px 0 72px;
}

.offline-event-detail-page {
  display: grid;
  gap: 20px;
}

.offline-event-detail-page__title {
  margin: 0;
  color: #24111a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.offline-event-detail-page__section {
  padding: 20px;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: #fff;
}

.offline-event-detail-page__hero-row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 20px;
}

.offline-event-detail-page__cover-card {
  align-self: start;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.14);
  background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
  padding: 0;
  overflow: hidden;
}

.offline-event-detail-page__meta,
.offline-event-detail-page__service-card {
  height: 100%;
  border-radius: 24px;
  /* border: 1px solid rgba(244, 114, 182, 0.14);
  background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%); */
}

.offline-event-detail-page__cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  border-radius: 12px;
}

.offline-event-detail-page__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offline-event-detail-page__meta {
  display: grid;
  gap: 18px;
  padding: 0px;
  align-content: start;
  justify-items: start;
}

.offline-event-detail-page__facts {
  display: grid;
  gap: 5px;
}

.offline-event-detail-page__fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5f2438;
  line-height: 1.8;
  font-size: 15px;
}

.offline-event-detail-page__fact > span {
  flex: 0 0 72px;
  color: #9f1239;
  font-weight: 800;
}

.offline-event-detail-page__fact > strong {
  flex: 1 1 auto;
  color: #24111a;
  font-weight: 600;
}

.offline-event-detail-page__fact--fees {
  align-items: start;
}

.offline-event-detail-page__fee-lines {
  display: grid;
  gap: 10px;
}

.offline-event-detail-page__fee-lines div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.offline-event-detail-page__fee-lines strong {
  color: #24111a;
  font-weight: 700;
}

.offline-event-detail-page__fee-lines em {
  color: #e11d48;
  font-style: normal;
  font-weight: 800;
}

.offline-event-detail-page__fee-lines del {
  color: #9ca3af;
  font-size: 14px;
}

.offline-event-detail-page__countdown {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  justify-self: start;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8b5e34, #6f431d);
}

.offline-event-detail-page__countdown-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.offline-event-detail-page__countdown strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.offline-event-detail-page__actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.offline-event-detail-page__deadline {
  color: #6b4a59;
  font-size: 15px;
  font-weight: 600;
}

.offline-event-detail-page__actions .offline-event-button {
  min-width: 150px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.offline-event-detail-page__actions .offline-event-button--primary {
  background: linear-gradient(135deg, #e11d48, #f97316);
  color: #fff;
}

.offline-event-detail-page__actions .offline-event-button--primary:hover,
.offline-event-detail-page__actions .offline-event-button--primary:focus {
  color: #fff;
}

.offline-event-detail-page__content,
.offline-event-detail-page__sidebar {
  min-width: 0;
}

.offline-event-detail-page__content {
  padding-right: 24px;
  border-right: 1px solid #dddddd;
}

.offline-event-detail-page__sidebar {
  padding-left: 6px;
}

.offline-event-detail-page__panel {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.offline-event-detail-page__panel h2,
.offline-event-detail-page__panel h3 {
  margin: 0 0 18px;
  color: #24111a;
  font-size: 18px;
  font-weight: 700;
}

.offline-event-detail-page__article {
  color: #444;
  line-height: 1.8;
}

.offline-event-detail-page__article img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.offline-event-detail-page__article p:last-child,
.offline-event-detail-page__panel-copy p:last-child {
  margin-bottom: 0;
}

.offline-event-detail-page__panel-copy + .offline-event-detail-page__panel-copy {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.offline-event-detail-page__panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.offline-event-detail-page__panel-head span {
  color: #6b4a59;
  font-weight: 600;
}

.offline-event-detail-page__service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0px 20px;
  text-align: center;
}

.offline-event-detail-page__service-head h2 {
  margin: 0;
  color: #24111a;
  font-size: 20px;
  font-weight: 700;
}

.offline-event-detail-page__service-head p {
  margin: 8px 0 0;
  color: #6b4a59;
  line-height: 1.7;
}

.offline-event-detail-page__service-qr {
  display: flex;
  justify-content: center;
}

.offline-event-detail-page__service-qr img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
}

.offline-event-detail-page__service-empty {
  padding: 28px 14px;
  border-radius: 20px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.offline-event-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
}

.offline-event-member-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 6px;

  text-align: center;
  color: #666;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.offline-event-member-card:hover,
.offline-event-member-card:focus {
  color: #444444;
  text-decoration: none;
  transform: translateY(-2px);

}

.offline-event-member-card__avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid #dddddd;
}

.offline-event-member-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offline-event-member-card__avatar > span {
  color: #888;
  font-size: 28px;
  font-weight: 600;
}

.offline-event-member-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #24111a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.offline-event-empty--compact {
  padding: 22px 16px;
  border-radius: 18px;
  box-shadow: none;
  background: #fff8fb;
}

@media (max-width: 1199px) {
  .offline-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .offline-event-hero {
    padding: 84px 0 64px;
  }

  .offline-event-grid,
  .offline-event-detail__top {
    grid-template-columns: 1fr;
  }

  .offline-event-card__body,
  .offline-event-modal__content {
    padding: 18px;
  }

  .offline-event-detail-page {
    gap: 20px;
  }

  .offline-event-detail-page__section {
    padding: 14px;
  }

  .offline-event-detail-page__fact {
    flex-direction: column;
    gap: 4px;
  }

  .offline-event-detail-page__fact > span {
    flex: none;
  }

  .offline-event-detail-page__content {
    padding-right: 0;
    border-right: 0;
  }

  .offline-event-detail-page__sidebar {
    padding-left: 0;
  }

  .offline-event-detail-page__countdown strong {
    font-size: 14px;
    white-space: normal;
  }

  .offline-event-member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .offline-event-member-card__avatar {
    width: 72px;
    height: 72px;
  }

  .offline-event-detail-page__meta,
  .offline-event-detail-page__service-card {
    padding: 18px;
  }
}
