/* ==========================================================================
   ImpactU · "Bảng Tin Bách Khoa" (Campus Zine & Neo-Editorial Design System)
   ========================================================================== */

:root {
  --paper: #f7f4ec;
  --surface: #fffdf7;
  --surface-muted: #efece1;
  --ink: #1b201e;
  --muted: #525954;
  --line: #d8d4c5;
  --border-ink: #1b201e;
  --cobalt: #2447e5;
  --cobalt-dark: #1a37bc;
  --green: #2447e5;
  --green-dark: #1a37bc;
  --lime: #e3f574;
  --lime-soft: #eef8a8;
  --coral: #f97352;
  --coral-soft: #ffe8e0;
  --sage: #d7ebd0;
  --sage-ink: #184e30;
  --lilac: #dfd8fa;
  --peach: #fbd6b8;
  --sky: #c9dbfe;
  --butter: #f2f4ac;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-hard: 4px 4px 0 #1b201e;
  --shadow-hard-sm: 3px 3px 0 #1b201e;
  --shadow-soft: 4px 4px 0 #dcd8c8;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(36, 71, 229, 0.065) 1px, transparent 1px),
    radial-gradient(rgba(249, 115, 82, 0.075) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border-ink);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.4px;
  color: var(--ink);
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.brand-word span {
  color: var(--cobalt);
  font-weight: 900;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header nav a {
  position: relative;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.header nav a:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.header nav a.active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--border-ink);
  box-shadow: 2px 2px 0 var(--border-ink);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border-ink);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 #dcd8c8;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.notification-bell:hover {
  background: var(--lime);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-ink);
}
.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  padding: 1px 5px;
  border: 1.5px solid var(--border-ink);
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-ink);
  background: var(--cobalt);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.header-action:hover {
  background: var(--cobalt-dark);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border-ink);
}
.header-action .avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* ---------- CONNECTION BANNER ---------- */
.connection-banner {
  max-width: 1184px;
  margin: 16px auto 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  box-shadow: var(--shadow-soft);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
}
.connection-banner strong { display: block; color: var(--ink); font-size: 13.5px; }
.connection-banner span { color: var(--muted); }
.connection-banner button { flex-shrink: 0; }
.connection-error { background: var(--coral-soft); border-color: #b43e22; }
.connection-error strong { color: #8c2a12; }

/* ---------- BUTTONS & LINKS ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1.5px solid var(--border-ink);
  border-radius: 10px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover:not(:disabled) {
  background: var(--cobalt-dark);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--border-ink);
}
.button:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-ink);
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-ink);
  box-shadow: 3px 3px 0 #dcd8c8;
}
.button.secondary:hover:not(:disabled) {
  background: var(--lime);
  box-shadow: var(--shadow-hard-sm);
}
.button.danger {
  background: #ffe9e2;
  color: #9e2d14;
  border-color: #9e2d14;
  box-shadow: 3px 3px 0 rgba(158, 45, 20, 0.25);
}
.button.danger:hover:not(:disabled) {
  background: #ffd6c9;
  box-shadow: 4px 4px 0 #9e2d14;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover { color: var(--cobalt-dark); }

/* ---------- BADGES / STATUS / NOTICE / EMPTY ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-ink);
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.status.waiting {
  background: #fff1b8;
  color: #7c4d08;
  border-color: #b5851f;
}
.status.cancelled {
  background: #f3e6dd;
  color: #844123;
  border-color: #c28e76;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-muted);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--border-ink);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0 36px;
  font-size: 13px;
  color: var(--muted);
}
.notice strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 3px;
}
.empty {
  position: relative;
  overflow: hidden;
  padding: 44px 24px;
  text-align: center;
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1.5px dashed var(--border-ink);
  border-radius: 16px;
}
.empty-symbol {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--lime);
  border: 1.5px solid var(--border-ink);
  box-shadow: 3px 3px 0 var(--border-ink);
  font-size: 22px;
  font-weight: 900;
}
.empty h1, .empty h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 480px; margin: 0 auto 18px; font-size: 14px; }

.page-top { padding: 36px 0 22px; }
.page-top h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.page-top p { color: var(--muted); font-size: 15px; max-width: 680px; margin-bottom: 0; }
.heading-dot { color: var(--cobalt); }
.small { font-size: 13px; color: var(--muted); }
.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- TICKET ACTIVITY CARDS ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border-ink);
}
.cover {
  height: 196px;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border-ink);
}
.cover svg { width: 100%; height: 100%; display: block; }
.theme-green { background: #cbe4be; color: #1b3c27; }
.theme-peach { background: var(--peach); color: #5b2e18; }
.theme-blue { background: var(--sky); color: #1a337a; }
.theme-yellow { background: var(--butter); color: #3d4717; }
.theme-lilac { background: var(--lilac); color: #402c60; }

.cover > .poster-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.poster-words {
  position: absolute;
  z-index: 1;
  top: 52px;
  left: 16px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  pointer-events: none;
}
.poster-words span { display: block; }
.poster-illustration {
  position: absolute;
  right: -18px;
  bottom: -10px;
  width: 78%;
  height: 145px;
}
.poster-index {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 24px;
  font-weight: 900;
}
.activity-media { position: absolute; inset: 0; overflow: hidden; }
.activity-media-fallback { position: absolute; inset: 0; z-index: 0; }
.activity-media > .activity-cover-photo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.activity-media.photo-failed > .activity-cover-photo { display: none; }
.card-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--border-ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(27, 32, 30, 0.25);
}
.save-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border-ink);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 rgba(27, 32, 30, 0.25);
  transition: background 150ms ease, transform 150ms ease;
}
.save-button:hover { background: var(--lime); transform: scale(1.04); }
.save-button.saved { background: var(--cobalt); color: #fff; }
.save-button svg { width: 16px; height: 16px; }

.card-body {
  padding: 16px 18px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.card-heading > div:last-child { min-width: 0; flex: 1; }
.date-stub {
  width: 52px;
  min-width: 52px;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-ink);
  border-radius: 9px;
  text-align: center;
  padding: 6px 4px;
  color: var(--ink);
}
.date-stub strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.date-stub span {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 4px;
  border-top: 1px dashed #8d9184;
  padding-top: 4px;
}
.org {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.org .verified { color: var(--cobalt); display: inline-flex; }
.card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
.card h3 a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.card-details { margin-top: 14px; }
.card .meta { font-size: 13px; margin-bottom: 6px; }
.hours-tag {
  margin-left: auto;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}
.seat-meter {
  margin-top: 10px;
}
.seat-bar {
  height: 7px;
  border-radius: 999px;
  background: #e7e3d4;
  border: 1px solid rgba(27, 32, 30, 0.28);
  overflow: hidden;
}
.seat-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--cobalt);
  transition: width 250ms ease;
}
.seat-fill.is-full { background: var(--coral); }
.card-state {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #c9c5b5;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-bottom {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.seats { color: var(--sage-ink); font-weight: 800; }
.full { color: #9c4a12; font-weight: 800; }
.card-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cobalt);
}
.card-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- DETAIL PAGE & BOOKING TICKET ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 26px 0 20px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border-ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 2px 2px 0 #dcd8c8;
  transition: background 150ms ease;
}
.back:hover { background: var(--lime); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  margin-bottom: 52px;
  align-items: start;
}
.detail-cover {
  height: 340px;
  border-radius: 18px;
  border: 1.5px solid var(--border-ink);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  position: relative;
}
.detail-cover svg { width: 100%; height: 100%; }
.detail-cover > .cover-label {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-ink);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(27, 32, 30, 0.2);
}
.detail-heading { padding: 26px 0 14px; }
.detail-heading .org { font-size: 13.5px; color: var(--cobalt); font-weight: 700; margin-bottom: 8px; }
.detail-heading h1 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-meta .meta {
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0;
}
.content-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 16px;
  box-shadow: 3px 3px 0 #e0dccf;
}
.content-panel h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.content-panel p, .content-panel li { color: #39403b; font-size: 15px; line-height: 1.68; }
.content-panel .activity-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline li {
  counter-increment: step;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: counter(step);
  border: 1.5px solid var(--border-ink);
  background: var(--lime);
  color: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.booking {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 18px;
  padding: 24px;
  position: sticky;
  top: 94px;
  box-shadow: var(--shadow-hard);
}
.booking::before {
  content: 'VÉ HẸN VIỆC TỐT · IMPACTU';
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: var(--cobalt);
  border-bottom: 1.5px dashed #b9b5a6;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.booking h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.booking .big-hours {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.booking .big-hours .small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.booking .seat-meter { margin: 12px 0 14px; }
.booking-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding: 12px 0;
  font-size: 13.5px;
  gap: 14px;
}
.booking-row span { color: var(--muted); }
.booking-row strong { text-align: right; }
.booking .button { width: 100%; margin: 8px 0 0; }
.booking .status { margin: 8px 0 6px; }
.booking .notice { margin: 16px 0 0; padding: 12px 14px; font-size: 12.5px; display: block; }
.booking-conflict {
  margin: 12px 0;
  padding: 12px 14px;
  color: #7c3512;
  background: var(--coral-soft);
  border: 1.5px solid #c95838;
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.booking-conflict p { margin: 4px 0 6px; }
.booking-conflict a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- MY ACTIVITIES / JOURNEY ---------- */
.journey-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.journey-summary > div {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}
.journey-summary > div:nth-child(1) { background: var(--lime); }
.journey-summary > div:nth-child(2) { background: #fff3d6; }
.journey-summary > div:nth-child(3) { background: var(--sage); }
.journey-summary span { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.journey-summary strong { font-size: 32px; font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: -0.04em; white-space: nowrap; }
.journey-summary small { font-size: 12px; font-weight: 700; color: var(--muted); }

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-ink);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.tab.active {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
}

.my-list { display: grid; gap: 16px; margin-bottom: 36px; }
.my-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.my-thumb {
  width: 165px;
  min-width: 165px;
  height: 122px;
  border-radius: 12px;
  border: 1.5px solid var(--border-ink);
  overflow: hidden;
  position: relative;
}
.my-thumb svg { width: 100%; height: 100%; }
.my-card-content { flex: 1; min-width: 0; }
.my-card h3 { font-size: 18px; font-weight: 800; margin: 8px 0 8px; }
.my-card h3 a:hover { color: var(--cobalt); text-decoration: underline; }
.my-actions { display: flex; flex-direction: column; gap: 8px; min-width: 175px; }
.registration-code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--surface-muted);
  border: 1px dashed #8d9184;
  font-size: 12px;
  color: var(--muted);
}
.registration-code strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.03em; }
.deadline-note { color: #9c3818 !important; font-weight: 600; }
.my-card-content .small { margin: 8px 0 0; line-height: 1.5; }

/* ---------- FORMS & CONTRIBUTION ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-bottom: 48px;
  align-items: start;
}
.form-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-hard);
}
.form-intro {
  border-bottom: 1.5px dashed var(--line);
  margin: -4px 0 22px;
  padding-bottom: 16px;
}
.form-intro h2 { font-size: 22px; font-weight: 900; margin: 0 0 6px; letter-spacing: -0.02em; }
.form-intro p { font-size: 14px; color: var(--muted); margin: 0; }
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 14px;
}
.field label { font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1.5px solid #b8b5a6;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(36, 71, 229, 0.14);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field small { font-size: 12px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #3d443f;
  margin-top: 4px;
}
.check-label input[type=checkbox] {
  accent-color: var(--cobalt);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-error {
  color: #9e2d14 !important;
  background: var(--coral-soft);
  border: 1.5px solid #d46547;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13.5px !important;
  font-weight: 600;
  line-height: 1.45;
  margin: 12px 0;
}
.form-aside {
  background: var(--surface-muted);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.form-aside > h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.form-aside ol { padding-left: 20px; margin: 0 0 18px; display: grid; gap: 8px; }
.form-aside li, .form-aside p { font-size: 13.5px; color: #3c433e; }
.form-aside .notice { display: block; margin: 14px 0; }
.draft {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0 #dcd8c8;
}
.draft.editing { border-color: var(--cobalt); box-shadow: 4px 4px 0 var(--lime); }
.draft h3 { font-size: 16px; font-weight: 800; margin: 8px 0 4px; }
.draft p { font-size: 13px; margin: 4px 0; color: var(--muted); }
.draft-source { font-size: 13px; font-weight: 700; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.draft-actions { display: flex; gap: 14px; margin-top: 10px; }
.source-warning { font-size: 12.5px; font-weight: 700; color: #9c4a12; }

/* ---------- ACCOUNT PAGE ---------- */
.account-page { padding-bottom: 64px; }
.account-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}
.account-story {
  position: relative;
  padding: 34px;
  background: var(--lime);
  border: 1.5px solid var(--border-ink);
  border-radius: 20px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.account-story::after {
  content: '✦';
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 38px;
  color: var(--coral);
}
.account-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.account-story h2 {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 22px 0 26px;
}
.account-story em { font-style: normal; color: var(--cobalt); }
.account-story ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.account-story li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.78);
  border: 1.5px solid var(--border-ink);
  font-size: 14px;
  font-weight: 600;
}
.account-story li b {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--cobalt);
  padding: 4px 8px;
  border-radius: 6px;
}
.account-story > p { font-size: 12.5px; color: #3d4726; margin: 22px 0 0; font-weight: 600; }
.account-panel {
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 20px;
  padding: 32px;
  min-width: 0;
  box-shadow: var(--shadow-hard);
}
.account-panel h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; margin: 14px 0 16px; }
.account-panel > p { font-size: 14px; color: var(--muted); }
.account-panel .button { width: 100%; margin: 8px 0 4px; }
.account-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-ink);
  border-radius: 11px;
  margin-bottom: 22px;
}
.account-tabs button {
  flex: 1;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px;
  color: var(--muted);
}
.account-tabs [aria-pressed="true"] {
  background: var(--ink);
  color: var(--lime);
}
.password-field { display: flex; position: relative; }
.password-field input { padding-right: 68px; }
.password-field button {
  position: absolute;
  right: 7px;
  top: 7px;
  bottom: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 0 11px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.account-email { overflow-wrap: anywhere; font-weight: 700; color: var(--cobalt) !important; }
.account-links {
  display: grid;
  gap: 12px;
  border-top: 1.5px dashed var(--line);
  padding-top: 20px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cobalt);
}
.account-links a {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.account-links a:hover { background: var(--lime); border-color: var(--border-ink); }
.account-links button { text-align: left; padding: 6px 0; }
.auth-success {
  font-size: 13.5px;
  font-weight: 600;
  background: var(--sage);
  border: 1.5px solid var(--sage-ink);
  color: var(--sage-ink);
  padding: 13px 15px;
  border-radius: 10px;
  margin: 12px 0;
}

/* ---------- ADMIN & CONTRIBUTOR WORKSPACE ---------- */
.admin-page { padding-bottom: 56px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.admin-heading .page-top { flex: 1; }
.admin-heading > .button { flex-shrink: 0; margin-bottom: 22px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 24px 0 18px; flex-wrap: wrap; }
.admin-toolbar h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 4px; }
.admin-toolbar p { font-size: 13.5px; color: var(--muted); margin: 0; }
.admin-activity-list { display: grid; gap: 14px; }
.admin-activity {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.admin-activity-mark {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 78px;
  height: 88px;
  border-radius: 12px;
  border: 1.5px solid var(--border-ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.admin-activity-mark small { font-size: 9px; letter-spacing: 0.06em; font-weight: 800; margin-top: 5px; }
.admin-activity-copy { flex: 1; min-width: 0; }
.admin-activity-copy h3 { font-size: 18px; font-weight: 800; line-height: 1.35; margin: 8px 0 6px; }
.admin-activity-copy p { font-size: 13px; color: var(--muted); margin: 4px 0; }
.admin-access-note {
  border: 1.5px solid var(--border-ink);
  background: var(--lime-soft);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.admin-access-note h3 { font-size: 18px; margin-bottom: 6px; }
.admin-access-note p { font-size: 13.5px; color: var(--muted); max-width: 640px; }
.admin-search { max-width: 480px; margin-bottom: 20px; }
.admin-editor { max-width: 880px; margin: 0 auto 30px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.admin-inbox { display: grid; gap: 16px; }
.admin-announcement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border-ink);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.admin-announcement h3 { font-size: 19px; font-weight: 800; margin: 10px 0 6px; }
.admin-description { font-size: 14px; color: #3b423d; line-height: 1.7; white-space: pre-wrap; margin: 12px 0 0; overflow-wrap: anywhere; }
.admin-review-actions { display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: stretch; }
.admin-review-note {
  font-size: 13px;
  padding: 11px 14px;
  background: var(--surface-muted);
  border-left: 3.5px solid var(--cobalt);
  border-radius: 0 8px 8px 0;
  margin: 12px 0 0;
  white-space: pre-wrap;
}
.admin-limit { margin-top: 24px; }
.admin-roster { max-height: 45vh; overflow: auto; display: grid; gap: 9px; margin-bottom: 16px; }
.admin-roster > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
}
.admin-roster strong { font-size: 14px; overflow-wrap: anywhere; }
.admin-roster small { grid-column: 1 / -1; font-size: 12px; font-family: ui-monospace, monospace; color: var(--muted); overflow-wrap: anywhere; }

/* Cover Uploader */
.cover-editor {
  border: 1.5px solid var(--border-ink);
  background: var(--surface-muted);
  padding: 22px;
  border-radius: 14px;
  margin: 22px 0 26px;
}
.cover-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cover-editor-heading h3 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.cover-optional {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-ink);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.cover-editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.cover-preview {
  aspect-ratio: 16 / 9;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--sage);
  border: 1.5px dashed var(--border-ink);
  border-radius: 12px;
  overflow: hidden;
  padding: 18px;
}
.cover-preview p { font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 8px; max-width: 220px; color: var(--ink); }
.cover-preview small { font-size: 12px; color: var(--sage-ink); font-weight: 600; }
.cover-preview.has-image { padding: 0; border-style: solid; background: #fff; }
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-controls input[type=file] { width: 100%; padding: 9px; font-size: 13px; background: #fff; }
.cover-controls input[type=file]::file-selector-button {
  border: 1px solid var(--border-ink);
  background: var(--lime);
  color: var(--ink);
  padding: 7px 11px;
  margin-right: 10px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}
.cover-alt-field { margin-top: 18px !important; margin-bottom: 8px !important; }
#cover-status { overflow-wrap: anywhere; margin: 10px 0; font-size: 13px; font-weight: 600; }
#cover-status.is-error { color: #a13218; }
#cover-public-note { font-size: 12px; line-height: 1.55; margin-bottom: 0; }

/* Contributor Gate & Admin Widgets */
.contributor-gate { align-self: start; }
#contributor-application-form { margin-top: 18px; }
.contributor-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1.5px solid var(--border-ink);
  border-radius: 12px;
  background: var(--surface-muted);
}
.contributor-note { flex-basis: 100%; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.contributor-admin-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.contributor-admin-filter select {
  border: 1.5px solid var(--border-ink);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
}
.contributor-card { min-width: 0; }
.contributor-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; font-size: 14px; font-weight: 600; }
.announcement-org {
  margin: 0 0 18px;
  padding: 14px 16px 4px;
  border: 1.5px dashed var(--border-ink);
  border-radius: 12px;
  background: var(--surface-muted);
}
.announcement-org legend { padding: 0 8px; font-weight: 800; font-size: 13px; }
.announcement-activities { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.announcement-activities li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 9px;
  font-size: 13px;
}
.publishing-extras {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.publishing-extras summary { cursor: pointer; font-weight: 800; font-size: 14px; }
.publishing-extras[open] summary { margin-bottom: 16px; }

/* ---------- DIALOGS, NOTIFICATIONS & TOAST ---------- */
dialog {
  border: 1.5px solid var(--border-ink);
  border-radius: 18px;
  padding: 28px;
  width: min(500px, calc(100% - 28px));
  max-height: 86vh;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 7px 7px 0 rgba(27, 32, 30, 0.38);
}
dialog::backdrop { background: rgba(20, 26, 23, 0.62); backdrop-filter: blur(3px); }
dialog h2 { font-size: 22px; font-weight: 900; margin-right: 36px; letter-spacing: -0.02em; }
dialog p { color: var(--muted); font-size: 14px; }
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1.5px solid var(--border-ink);
  background: var(--surface-muted);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.dialog-close:hover { background: var(--lime); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

#notification-dialog {
  width: min(490px, calc(100% - 24px));
  max-height: min(720px, calc(100dvh - 32px));
  padding: 0;
  background: var(--paper);
}
.notification-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 24px 14px;
  border-bottom: 1.5px solid var(--border-ink);
  background: var(--surface);
}
.notification-heading h2 { margin: 0 42px 6px 0; font-size: 22px; }
#read-all-notifications { padding: 4px 0; text-align: left; font-size: 12.5px; }
#notification-body { padding: 16px 24px 24px; }
.notification-summary { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.notification-empty { margin: 0; padding: 20px 0; color: var(--muted); }
.notification-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.notification-item {
  border: 1.5px solid var(--border-ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 2px 2px 0 #dcd8c8;
  overflow: hidden;
}
.notification-item.unread {
  background: #f2f4ff;
  border-left: 5px solid var(--cobalt);
}
.notification-item a { display: block; padding: 13px 15px; }
.notification-item a:hover { background: var(--lime-soft); }
.notification-item-top, .notification-item-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.notification-item-top strong { font-size: 14px; font-weight: 800; }
.notification-item p { margin: 4px 0 8px; overflow-wrap: anywhere; font-size: 13.5px; color: var(--ink); }
.notification-item .notification-note { white-space: pre-wrap; color: var(--muted); font-size: 12.5px; }
.notification-unread {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.notification-item-bottom { color: var(--muted); font-size: 12px; }
.notification-item-bottom span { color: var(--cobalt); font-weight: 800; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--lime);
  border: 1.5px solid var(--lime);
  padding: 12px 22px;
  border-radius: 12px;
  max-width: min(480px, 90vw);
  font-size: 13.5px;
  font-weight: 700;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- FOOTER (FIXED ALIGNMENT & PADDING) ---------- */
footer {
  position: relative;
  margin-top: 68px;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}
footer::before {
  content: '✦  ✦  ✦';
  position: absolute;
  right: 36px;
  top: 26px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 8px;
  opacity: 0.78;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 28px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-inner .brand { color: var(--paper); font-size: 25px; }
.footer-inner .brand-logo { width: 32px; height: 32px; }
.footer-inner .brand-word span { color: var(--lime); }
.footer-brand-block p {
  font-size: 13px;
  line-height: 1.7;
  color: #c2c8bc;
  margin: 12px 0 0;
  max-width: 340px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-links > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
  font-weight: 800;
  margin-bottom: 4px;
}
.footer-links a, .footer-links .text-button {
  margin-left: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  border: 0;
  background: none;
  padding: 2px 0;
}
.footer-links a:hover, .footer-links .text-button:hover {
  color: var(--lime);
  text-decoration: underline;
}
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(247, 244, 236, 0.18);
  padding: 16px 28px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #aeb5a8;
  font-size: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
  .form-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container, .header-inner { padding-left: 18px; padding-right: 18px; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .header nav { width: 100%; order: 3; justify-content: space-between; gap: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
  .header nav a { flex: 1; text-align: center; padding: 7px 6px; font-size: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .booking { position: static; }
  .detail-cover { height: 230px; }
  .journey-summary { grid-template-columns: 1fr; }
  .my-card { flex-wrap: wrap; gap: 14px; padding: 15px; }
  .my-thumb { width: 100%; min-width: 0; height: 150px; }
  .my-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .my-actions > * { flex: 1; min-width: 130px; }
  .admin-heading { display: block; }
  .admin-activity { flex-wrap: wrap; }
  .admin-announcement { grid-template-columns: 1fr; }
  .admin-review-actions { flex-direction: row; flex-wrap: wrap; }
  .admin-review-actions > * { flex: 1; }
  .cover-editor-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 34px 18px 26px; gap: 24px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 18px 20px; }
  footer::before { right: 18px; top: 18px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .form-panel, .account-panel, .account-story { padding: 20px; }
}
