:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #fdfdfd;
  --ink: #07112f;
  --muted: #667085;
  --line: #dbe5f2;
  --line-strong: #c8d6ea;
  --primary: #000066;
  --primary-2: #002284;
  --brand: #0082d8;
  --brand-2: #0094f6;
  --danger: #b42318;
  --warning: #b7791f;
  --success: #067647;
  --soft: #edf6ff;
  --shadow: 0 18px 48px rgba(0, 34, 132, .10);
  --shadow-hover: 0 24px 70px rgba(0, 34, 132, .16);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 148, 246, .16), transparent 34vw),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef4fb 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection {
  background: rgba(0, 148, 246, .22);
  color: var(--primary);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #edf3fb;
}
::-webkit-scrollbar-thumb {
  background: #b8c7dc;
  border: 2px solid #edf3fb;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ea7c7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: rgba(253, 253, 253, .94);
  border-right: 1px solid rgba(219, 229, 242, .9);
  box-shadow: 14px 0 36px rgba(7, 17, 47, .06);
  backdrop-filter: blur(16px);
  z-index: 5;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px;
  border-bottom: 1px solid #e6edf7;
}
.sidebar-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 34, 132, .26);
}
.sidebar-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.sidebar-brand span:not(.sidebar-logo) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.side-nav { padding: 14px 10px 28px; }
.sidebar-footer {
  margin: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}
.sidebar-footer strong {
  display: block;
  color: var(--primary-2);
  font-size: 13px;
}
.sidebar-footer span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.side-section {
  margin: 18px 10px 8px;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-section:first-child { margin-top: 6px; }
.side-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 8px 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.side-link:hover,
.side-link.active {
  background: linear-gradient(135deg, rgba(0, 34, 132, .08), rgba(0, 148, 246, .10));
  color: var(--primary-2);
  transform: translateX(2px);
}
.side-link.active {
  box-shadow: inset 3px 0 0 var(--brand-2);
}
.side-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4fb;
  color: var(--primary-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side-link:hover .side-icon,
.side-link.active .side-icon {
  background: linear-gradient(135deg, var(--primary-2), var(--brand-2));
  color: #fff;
}

.app-main { min-width: 0; }
.app-topbar {
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 54%, #004cad 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 34, 132, .22);
}
.app-topbar strong { font-size: 14px; font-weight: 900; }
.app-topbar span {
  margin-left: 10px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-logout {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.top-logout:hover {
  background: rgba(255,255,255,.20);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.top-login {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 32px 48px;
  animation: fadeUp .36s ease both;
}

.panel {
  background: rgba(253, 253, 253, .96);
  border: 1px solid rgba(219, 229, 242, .96);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.panel.hero-panel,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 0, 102, .97), rgba(0, 34, 132, .92) 56%, rgba(0, 130, 216, .88)),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.24), transparent 28%);
  color: #fff;
  border: 0;
}
.panel.hero-panel p,
.page-hero p { color: rgba(255,255,255,.82); }
.page-hero:after,
.panel.hero-panel:after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid.metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.space { justify-content: space-between; }
.stack { display: grid; gap: 14px; }

h1, h2, h3 { margin: 0 0 10px; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
h2 { font-size: 23px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.28; }
p { color: var(--muted); line-height: 1.58; }
.muted { color: var(--muted); }
.section-kicker {
  margin-top: -4px;
  margin-bottom: 16px;
  color: #667085;
  font-size: 13px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #344054;
  margin: 12px 0 6px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(0, 148, 246, .14);
}
input:disabled {
  background: #f4f7fb;
  color: #667085;
}
textarea { min-height: 104px; resize: vertical; }
label > input,
label > textarea,
label > select {
  display: block;
  margin-top: 6px;
}
.money-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.money-field:focus-within {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(0, 148, 246, .14);
}
.money-field > span {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--primary-2);
  background: #f5faff;
  font-size: 13px;
  font-weight: 900;
}
.money-field input {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.money-field input:focus {
  box-shadow: none;
}
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid-two label {
  margin-top: 12px;
}

button, .button {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-2), var(--brand));
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  box-shadow: 0 10px 22px rgba(0, 34, 132, .14);
  -webkit-tap-highlight-color: transparent;
}
button:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 34, 132, .22);
}
button.secondary, .button.secondary {
  background: #fff;
  color: var(--primary-2);
  border-color: var(--line);
  box-shadow: none;
}
button.secondary:hover, .button.secondary:hover {
  border-color: rgba(0, 130, 216, .42);
  background: #f7fbff;
}
button.danger { border-color: var(--danger); background: var(--danger); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 148, 246, .28);
  outline-offset: 2px;
}

.card {
  border: 1px solid rgba(219, 229, 242, .96);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 47, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 148, 246, .26);
}
.feature-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.quick-action {
  color: inherit;
  text-decoration: none;
}
.quick-action strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}
.quick-action small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}
.feature-icon,
.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 34, 132, .10), rgba(0, 148, 246, .16));
  color: var(--primary-2);
  font-weight: 900;
}
.event-card { padding: 0; overflow: hidden; }
.event-admin-card {
  margin-top: 14px;
  border-left: 4px solid var(--brand-2);
}
.event-admin-card b {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 16px;
}
.admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.admin-card-footer strong {
  color: var(--primary-2);
}
.event-cover {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 102, .92), rgba(0, 130, 216, .78)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 28%);
}
.event-cover:after {
  content: "";
  position: absolute;
  inset: auto -42px -54px auto;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 26px solid rgba(255,255,255,.10);
}
.event-cover h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 92%;
}
.event-body { padding: 18px; }
.empty-state.compact {
  padding: 18px;
}
.public-event-shell {
  min-height: 100vh;
  background: #f4f6f8;
}
.public-event-shell .event-public-top,
.public-event-shell .sympla-event-hero,
.public-event-shell .sympla-event-body,
.public-event-shell .sympla-page-footer {
  margin-left: 0;
  margin-right: 0;
}
.public-event-shell .event-public-top {
  margin-top: 0;
}
.public-event-shell .sympla-page-footer {
  margin-bottom: 0;
}
.event-public-top {
  min-height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: -30px -32px 0;
  padding: 0 52px;
  background: linear-gradient(90deg, #07112f, var(--primary), var(--primary-2));
  color: #cbd5e1;
  font-size: 12px;
}
.event-public-top > strong {
  justify-self: center;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}
.event-public-top span strong {
  color: #fff;
}
.sympla-event-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .82fr);
  gap: 46px;
  align-items: center;
  margin: 0 -32px;
  padding: 46px 52px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 92%, rgba(0, 148, 246, .30), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(120deg, #07112f, var(--primary) 42%, var(--primary-2) 78%, #003b9f);
}
.sympla-event-copy h1 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
}
.sympla-event-copy p {
  margin: 8px 0;
  color: #eef2f7;
  font-size: 14px;
}
.sympla-installment {
  width: fit-content;
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(0, 148, 246, .32);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.sympla-event-poster {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.36), transparent 25%),
    linear-gradient(135deg, rgba(0,0,102,.92), rgba(0,130,216,.72)),
    linear-gradient(45deg, #d9e7ff, #ffffff);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.sympla-event-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 13px);
}
.sympla-event-poster > * {
  position: relative;
  z-index: 1;
}
.sympla-event-poster span {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.sympla-event-poster h2 {
  max-width: 420px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
}
.sympla-event-poster p {
  margin: 0;
  color: rgba(255,255,255,.86);
}
.sympla-event-poster button {
  min-height: 40px;
  border-radius: 999px;
  color: var(--primary-2);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.sympla-event-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  margin: 0 -32px;
  padding: 30px 52px 42px;
  background: #f4f6f8;
}
.sympla-event-content {
  min-width: 0;
  max-width: 760px;
}
.sympla-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d8dee8;
}
.sympla-section h2,
.sympla-producer h2 {
  margin-bottom: 24px;
  font-size: 22px;
}
.sympla-section h3 {
  margin-top: 18px;
  font-size: 18px;
  text-transform: none;
}
.sympla-section p,
.sympla-section li {
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
}
.sympla-section ul {
  padding-left: 22px;
}
.sympla-ticket-panel {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(219, 229, 242, .95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(0, 34, 132, .14);
}
.sympla-ticket-panel > h3 {
  padding: 2px 4px 10px;
  color: #667085;
  font-size: 12px;
}
.sympla-ticket-panel label {
  margin-top: 0;
}
.sympla-ticket-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.sympla-ticket-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.sympla-ticket-option:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 130, 216, .42);
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(7,17,47,.06);
}
.sympla-ticket-option:has(input:checked) {
  border-color: var(--brand);
  background: #f2f9ff;
  box-shadow: 0 0 0 3px rgba(0, 148, 246, .12);
}
.sympla-ticket-option input {
  width: auto;
  accent-color: var(--brand-2);
}
.sympla-ticket-option span {
  min-width: 0;
}
.sympla-ticket-option strong,
.sympla-ticket-option b,
.sympla-ticket-option small {
  display: block;
}
.sympla-ticket-option strong {
  color: #111827;
  font-size: 13px;
}
.sympla-ticket-option b {
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
}
.sympla-ticket-option small {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-2);
  font-size: 10px;
  font-weight: 900;
}
.sympla-ticket-option em {
  color: #667085;
  font-size: 12px;
}
.sympla-ticket-option.is-soldout {
  opacity: .68;
  cursor: not-allowed;
}
.sympla-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-2), var(--brand-2));
  color: #fff;
}
.sympla-ticket-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f5faff;
}
.sympla-ticket-note strong {
  color: var(--primary-2);
  font-size: 13px;
}
.sympla-ticket-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.sympla-fee-note {
  justify-self: center;
  color: #667085;
  font-size: 11px;
}
.sympla-producer {
  padding: 28px 0;
}
.sympla-producer > div {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.producer-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--brand-2));
  font-weight: 950;
}
.sympla-security,
.sympla-page-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid #d8dee8;
}
.sympla-security h3 {
  font-size: 16px;
}
.sympla-security p {
  font-size: 13px;
}
.sympla-page-footer {
  margin: 0 -32px -48px;
  padding: 28px 52px;
  background: #fff;
}
.sympla-page-footer span {
  color: #344054;
  font-weight: 850;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.metric-card:after {
  content: "";
  position: absolute;
  top: -46px;
  right: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(0, 148, 246, .10);
}
.stat-number {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 950;
  margin-top: 8px;
  letter-spacing: -.03em;
}
.stat-text {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--primary-2);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.action-metric {
  display: grid;
  align-content: start;
  gap: 4px;
}
.action-metric .button {
  width: fit-content;
  margin-top: 8px;
}
.payment-readiness {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.readiness-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.readiness-card h3 {
  margin-bottom: 4px;
}
.readiness-card strong {
  display: inline-flex;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 950;
}
.readiness-card p {
  margin: 0;
  font-size: 12px;
}
.readiness-card.is-ready {
  border-color: #abefc6;
}
.readiness-card.is-ready strong {
  color: var(--success);
}
.readiness-card.is-pending {
  border-color: #fedf89;
}
.readiness-card.is-pending strong {
  color: #93370d;
}
.payment-config-panel .detail-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  background: #fff;
  white-space: nowrap;
}
.status-pending { border-color: #fedf89; color: #93370d; background: #fffaeb; }
.status-paid { border-color: #abefc6; color: #067647; background: #ecfdf3; }
.status-cancelled { border-color: #fecdca; color: var(--danger); background: #fff1f0; }
.status-badge:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}
.ok {
  min-height: 18px;
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}
.error:not(:empty),
.ok:not(:empty) {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 12px 0;
}
.error:not(:empty) {
  border: 1px solid #fecdca;
  background: #fff1f0;
}
.ok:not(:empty) {
  border: 1px solid #abefc6;
  background: #ecfdf3;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.table-panel-head h2 {
  margin-bottom: 4px;
}
.table-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.table th, .table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table td:first-child,
.table th:first-child {
  padding-left: 18px;
}
.table td:last-child,
.table th:last-child {
  padding-right: 18px;
}
.table th {
  background: #f7faff;
  font-size: 11px;
  color: #475467;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: #f8fbff; }
.empty-table {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px;
  text-align: center;
}
.empty-table strong {
  color: var(--primary-2);
  font-size: 14px;
}
.empty-table span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.money-cell {
  font-weight: 900;
  color: var(--primary-2);
  white-space: nowrap;
}
.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 180px;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 17, 47, .05);
}
.registration-card h3 { margin-top: 12px; }
.registration-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.registration-meta span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}
.detail-list {
  display: grid;
  gap: 10px;
}
.detail-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.detail-list strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.registration-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 180px;
}
.registration-side strong { font-size: 24px; letter-spacing: -.02em; }
.empty-state {
  border: 1px dashed #b8c7dc;
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(135deg, #fbfdff, #f3f8ff);
  text-align: center;
}
.empty-state h3:before {
  content: "i";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  color: var(--primary-2);
  background: #eaf5ff;
}
.success-panel {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ecfdf3;
  color: var(--success);
  font-size: 34px;
  font-weight: 900;
  margin: 0 auto 18px;
}
.success-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.success-steps span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) auto auto auto;
  gap: 12px;
  align-items: end;
}
.filter-panel {
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.filter-panel label {
  margin-top: 0;
}
.export-button:before {
  content: "↓";
  font-weight: 950;
}
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 10px 12px;
  margin: 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: #344054;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.package-edit,
.student-edit {
  display: grid;
  gap: 2px;
}
.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.record-card-head span:first-child {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.record-card-head h3 {
  margin-bottom: 0;
}
.package-edit .row.space {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.mark-paid,
.cancel-registration {
  min-height: 34px;
  padding: 8px 10px;
  margin: 2px;
  font-size: 12px;
  border-radius: 10px;
}
.cancel-registration {
  box-shadow: none;
}
.panel > .table-wrap {
  margin-top: 8px;
}
.page-hero .button.secondary,
.hero-panel .button.secondary,
.page-hero button.secondary,
.hero-panel button.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.34);
}
.page-hero .button.secondary:hover,
.hero-panel .button.secondary:hover,
.page-hero button.secondary:hover,
.hero-panel button.secondary:hover {
  background: rgba(255,255,255,.20);
}
.page-hero .pill,
.hero-panel .pill {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 148, 246, .18), transparent 28%),
    radial-gradient(circle at 88% 80%, rgba(0, 34, 132, .18), transparent 32%),
    linear-gradient(135deg, #f6faff, #eef5ff);
}
.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 148, 246, .18), transparent 30%),
    linear-gradient(135deg, #f7fbff, #eef5ff);
}
.loading-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(253,253,253,.96);
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeUp .32s ease both;
}
.loading-card p {
  margin: 0;
}
.loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--brand-2);
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: rgba(253,253,253,.96);
  box-shadow: 0 30px 90px rgba(0, 34, 132, .18);
  animation: fadeUp .42s ease both;
}
.auth-brand {
  min-height: 620px;
  padding: 46px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 102, .96), rgba(0, 34, 132, .90) 58%, rgba(0, 130, 216, .84)),
    url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,.18)' stroke-width='1'%3E%3Cpath d='M20 44h180M20 88h180M20 132h180M20 176h180M44 20v180M88 20v180M132 20v180M176 20v180'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 950;
}
.auth-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-2);
  background: #fff;
  font-weight: 950;
}
.auth-brand h1 {
  color: #fff;
  max-width: 430px;
  margin-top: 52px;
}
.auth-brand p { color: rgba(255,255,255,.84); max-width: 440px; }
.auth-points { display: grid; gap: 10px; margin-top: 26px; }
.auth-point {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
.auth-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.auth-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  font-size: 11px;
  font-weight: 850;
}
.auth-form {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h2 { font-size: 32px; margin-bottom: 6px; }
.auth-form .muted { margin-top: 0; }
.auth-actions { display: grid; gap: 10px; margin-top: 18px; }
.auth-primary { width: 100%; min-height: 48px; }
.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
}
.auth-link a { color: var(--primary-2); font-weight: 900; text-decoration: none; }
.auth-link-small {
  margin-top: 10px;
  font-size: 13px;
}
.auth-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}
.panel form {
  position: relative;
}
.panel form button {
  margin-top: 10px;
}
.panel h1 + form,
.panel h2 + form {
  margin-top: 14px;
}
.panel h1 + form:before,
.panel h2 + form:before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--line), transparent);
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d6dee8;
  }
  .sidebar-brand { min-height: 62px; }
  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
    scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-section { display: none; }
  .sidebar-footer { display: none; }
  .side-link {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding-right: 12px;
    background: #fff;
  }
  .app-topbar {
    position: static;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .app-topbar span {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
  .layout { padding: 16px; }
  .event-public-top {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: -16px -16px 0;
    padding: 12px 16px;
  }
  .event-public-top > strong {
    justify-self: start;
  }
  .sympla-event-hero,
  .sympla-event-body {
    grid-template-columns: 1fr;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .sympla-event-hero {
    gap: 22px;
    padding-top: 28px;
  }
  .sympla-event-poster {
    min-height: 220px;
  }
  .sympla-ticket-panel {
    position: static;
    order: -1;
  }
  .sympla-security,
  .sympla-page-footer {
    grid-template-columns: 1fr;
  }
  .sympla-page-footer {
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -48px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .filters { grid-template-columns: 1fr; }
  .filters button,
  .filters .button {
    width: 100%;
  }
  .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .table-panel-head {
    align-items: stretch;
  }
  .registration-card { grid-template-columns: 1fr; }
  .registration-side { justify-items: start; min-width: 0; }
  .success-steps { grid-template-columns: 1fr; }
  .auth-page { padding: 14px; align-items: start; }
  .auth-card { grid-template-columns: 1fr; border-radius: 20px; }
  .auth-brand { min-height: auto; padding: 30px; }
  .auth-brand h1 { margin-top: 28px; }
  .auth-form { padding: 30px; }
  .auth-trust { gap: 6px; }
}

@media (max-width: 520px) {
  .row.space { align-items: stretch; }
  .row.space > .button,
  .row.space > button { width: 100%; }
  .panel { padding: 18px; border-radius: 14px; }
  h1 { font-size: 29px; }
  .auth-form h2 { font-size: 27px; }
  .table { min-width: 680px; }
  .quick-actions,
  .grid.metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .app-topbar,
  .button,
  button,
  .filter-panel {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .layout {
    max-width: none;
    padding: 0;
  }
  .panel,
  .card {
    box-shadow: none;
    border-color: #d0d5dd;
  }
  .page-hero {
    color: var(--ink);
    background: #fff;
    border: 1px solid #d0d5dd;
  }
  .page-hero p {
    color: var(--muted);
  }
}
