@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --background: #f5f8fd;
  --foreground: #0f172a;
  --muted: #526174;
  --muted-strong: #334155;
  --brand: #0f5ea8;
  --brand-strong: #0b4a84;
  --brand-soft: #dcecff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-dark: rgba(8, 21, 51, 0.98);
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(148, 163, 184, 0.34);
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow: 0 26px 70px rgba(15, 23, 42, 0.1);
  --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.18);
  --radius: 28px;
  --radius-sm: 20px;
  --radius-xs: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--foreground);
  background:
    radial-gradient(circle at top left, rgba(15, 94, 168, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fc 48%, #f6f8fc 100%);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.site-shell.narrow {
  width: min(920px, calc(100% - 2rem));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a3d6f 0%, #0f5ea8 58%, #4aa0f5 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(15, 94, 168, 0.22);
  flex: 0 0 auto;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand);
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.96rem;
}

.header-actions,
.action-row,
.hero-actions,
.card-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.42rem 0.32rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.lang-switch-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.lang-pill:hover {
  transform: translateY(-1px);
  color: var(--brand);
}

.lang-pill.is-active {
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 94, 168, 0.18);
}

.button,
.button-secondary,
.button-ghost,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button,
.button-link {
  color: #ffffff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  box-shadow: 0 14px 30px rgba(15, 94, 168, 0.22);
}

.button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 94, 168, 0.28);
}

.button-secondary {
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 94, 168, 0.3);
}

.button-ghost {
  color: var(--muted-strong);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.45);
}

.hero-card {
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(8, 21, 51, 0.98) 0%, rgba(15, 94, 168, 0.96) 54%, rgba(104, 170, 243, 0.92) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 340px;
  height: 340px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
}

.hero-card::after {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(220, 236, 255, 0.2), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card.split .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.hero-card.compact .page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.eyebrow,
.pill,
.status-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-title {
  margin: 0.9rem 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-copy {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.8;
}

.meta-grid,
.stats-grid,
.cards-grid,
.ticket-grid,
.form-grid,
.detail-grid,
.split-grid {
  display: grid;
  gap: 1rem;
}

.meta-grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.meta-item {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.meta-label,
.stat-label {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta-value,
.stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.hero-visual {
  min-height: 280px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(7, 14, 29, 0.34)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 40%),
    linear-gradient(135deg, #11345f 0%, #0f5ea8 42%, #8bc5ff 100%);
}

.poster-fallback::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.poster-note {
  position: relative;
  z-index: 1;
  max-width: 14rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.content-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
}

.content-grid,
.split-grid {
  margin-top: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2vw, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.surface.strong {
  background: var(--surface-strong);
}

.surface.dark {
  background: linear-gradient(180deg, rgba(10, 24, 55, 0.96), rgba(15, 94, 168, 0.92));
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.surface.dark .section-copy,
.surface.dark .muted-copy,
.surface.dark .small-note,
.surface.dark .helper-text {
  color: rgba(255, 255, 255, 0.76);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 1rem 0 0.8rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2vw + 0.85rem, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-copy,
.muted-copy,
.small-note,
.helper-text,
.table-note {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.small-note,
.helper-text,
.table-note {
  font-size: 0.94rem;
  color: var(--muted);
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.event-card,
.option-card,
.ticket-card,
.info-card,
.summary-card,
.status-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.08);
}

.event-card-media {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #123764 0%, #0f5ea8 48%, #8dc7ff 100%);
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body,
.option-card-body,
.ticket-card-body,
.info-card-body,
.summary-card-body,
.status-card-body {
  padding: 1.45rem;
}

.card-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.card-copy {
  margin: 0.8rem 0 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.inline-meta,
.bullet-list,
.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.inline-meta strong {
  color: var(--foreground);
}

.bullet-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.bullet-list li,
.summary-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.7;
  color: var(--muted-strong);
}

.bullet-list li::before,
.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.summary-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.summary-list strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--foreground);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

label {
  font-weight: 700;
  color: var(--foreground);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  color: var(--foreground);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 94, 168, 0.42);
  box-shadow: 0 0 0 4px rgba(99, 168, 232, 0.18);
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
  margin: 0.18rem 0 0;
  flex: 0 0 auto;
}

.ticket-grid {
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}

.ticket-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.ticket-type strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.ticket-qty input {
  text-align: center;
  font-size: 1.06rem;
  font-weight: 700;
}

.notice {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
}

.notice.error {
  color: #991b1b;
  background: rgba(254, 242, 242, 0.88);
  border-color: rgba(248, 113, 113, 0.3);
}

.notice.success {
  color: #166534;
  background: rgba(240, 253, 244, 0.9);
  border-color: rgba(74, 222, 128, 0.24);
}

.notice.warning {
  color: #92400e;
  background: rgba(255, 251, 235, 0.94);
  border-color: rgba(251, 191, 36, 0.26);
}

.status-badge {
  color: var(--foreground);
  background: rgba(220, 236, 255, 0.76);
}

.status-badge.success {
  color: var(--success);
  background: rgba(220, 252, 231, 0.92);
}

.status-badge.warning {
  color: var(--warning);
  background: rgba(255, 237, 213, 0.94);
}

.status-badge.danger {
  color: var(--danger);
  background: rgba(254, 226, 226, 0.94);
}

.status-panel {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.status-panel.success {
  color: #166534;
  background: rgba(240, 253, 244, 0.92);
}

.status-panel.warning {
  color: #92400e;
  background: rgba(255, 247, 237, 0.94);
}

.status-panel.danger {
  color: #991b1b;
  background: rgba(254, 242, 242, 0.92);
}

.status-panel.neutral {
  color: var(--muted-strong);
}

.qr-frame,
.camera-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(220, 236, 255, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.qr-frame {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.camera-frame {
  min-height: 320px;
  padding: 1rem;
}

video {
  width: 100%;
  max-height: 60vh;
  border-radius: 20px;
  background: #071322;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.76);
}

th,
td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

code {
  padding: 0.16rem 0.45rem;
  border-radius: 8px;
  background: rgba(15, 94, 168, 0.08);
  color: var(--brand-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 1rem auto 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.spinner.dark {
  border-color: rgba(148, 163, 184, 0.24);
  border-top-color: var(--brand);
}

.footer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.center {
  text-align: center;
}

.hero-actions.center,
.card-actions.center,
.toolbar-actions.center,
.header-actions.center {
  justify-content: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

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

@media (max-width: 980px) {
  .hero-card.split .hero-grid,
  .content-grid,
  .split-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }
}

@media (max-width: 720px) {
  .site-shell,
  .site-shell.narrow {
    width: min(100%, calc(100% - 1rem));
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    letter-spacing: 0.26em;
    font-size: 0.92rem;
  }

  .hero-card {
    padding: 1.4rem;
    border-radius: 28px;
  }

  .page-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .ticket-type {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: 240px;
    height: 240px;
  }
}
