:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: #f6f7f9;
  --surface-strong: #1d1d1f;
  --line: rgba(60, 60, 67, 0.14);
  --line-strong: rgba(60, 60, 67, 0.28);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-strong: #424245;
  --primary: #007aff;
  --primary-dark: #0057d9;
  --amber: #b87516;
  --rose: #b42318;
  --blue: #2563eb;
  --green: #15834f;
  --violet: #6941c6;
  --shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-ring: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  --body-top: #fbfbfd;
  --body-bottom: #eef1f5;
  --topbar-bg: rgba(251, 251, 253, 0.78);
  --panel-soft: rgba(246, 247, 249, 0.82);
  --field-bg: rgba(255, 255, 255, 0.92);
  --table-head: rgba(246, 247, 249, 0.86);
  --hover-bg: rgba(0, 122, 255, 0.07);
  --cover-bg: #e5e7eb;
  --description: #303034;
  --sticky-bg: rgba(251, 251, 253, 0.86);
  --admin-profile-bg: #1d1d1f;
  --brand-start: #007aff;
  --brand-end: #5856d6;
  --glass-bg: rgba(255, 255, 255, 0.76);
  --elevated-bg: rgba(255, 255, 255, 0.88);
  --control-bg: rgba(255, 255, 255, 0.94);
  --control-border: rgba(60, 60, 67, 0.16);
  --control-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --active-bg: rgba(0, 122, 255, 0.1);
  --active-border: rgba(0, 122, 255, 0.24);
  --focus-ring: rgba(0, 122, 255, 0.18);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: rgba(28, 30, 36, 0.88);
  --surface-soft: #1f222a;
  --surface-strong: #f8fafc;
  --line: rgba(235, 245, 255, 0.13);
  --line-strong: rgba(235, 245, 255, 0.26);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --muted-strong: #d4d4dc;
  --primary: #0a84ff;
  --primary-dark: #8ec5ff;
  --amber: #f2b84b;
  --rose: #fb7185;
  --blue: #60a5fa;
  --green: #4ade80;
  --violet: #a78bfa;
  --shadow: 0 32px 72px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-ring: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --body-top: #171a21;
  --body-bottom: #0a0b0f;
  --topbar-bg: rgba(15, 17, 21, 0.76);
  --panel-soft: rgba(33, 36, 45, 0.82);
  --field-bg: rgba(17, 20, 27, 0.9);
  --table-head: rgba(33, 36, 45, 0.82);
  --hover-bg: rgba(10, 132, 255, 0.13);
  --cover-bg: #242832;
  --description: #d8e1ec;
  --sticky-bg: rgba(15, 17, 21, 0.84);
  --admin-profile-bg: #050509;
  --brand-start: #0a84ff;
  --brand-end: #64d2ff;
  --glass-bg: rgba(28, 30, 36, 0.76);
  --elevated-bg: rgba(32, 35, 43, 0.9);
  --control-bg: rgba(38, 41, 50, 0.9);
  --control-border: rgba(235, 245, 255, 0.15);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --active-bg: rgba(10, 132, 255, 0.16);
  --active-border: rgba(10, 132, 255, 0.34);
  --focus-ring: rgba(10, 132, 255, 0.28);
}

html[data-theme="forest"] {
  --bg: #eef5ef;
  --surface: rgba(255, 255, 251, 0.9);
  --surface-soft: #edf5ef;
  --surface-strong: #10251c;
  --line: rgba(34, 76, 52, 0.17);
  --line-strong: rgba(34, 76, 52, 0.31);
  --text: #13231b;
  --muted: #5f7368;
  --muted-strong: #41594a;
  --primary: #1f7a4d;
  --primary-dark: #145a39;
  --amber: #a66c16;
  --green: #167244;
  --violet: #5f4bb6;
  --body-top: #fbfdf9;
  --body-bottom: #dfece2;
  --topbar-bg: rgba(255, 255, 251, 0.8);
  --panel-soft: rgba(244, 249, 244, 0.84);
  --field-bg: rgba(255, 255, 251, 0.92);
  --table-head: rgba(241, 248, 242, 0.86);
  --hover-bg: rgba(31, 122, 77, 0.1);
  --cover-bg: #d3e2d7;
  --description: #253a2d;
  --sticky-bg: rgba(255, 255, 251, 0.96);
  --admin-profile-bg: #10251c;
  --brand-start: #1f7a4d;
  --brand-end: #10251c;
  --glass-bg: rgba(255, 255, 251, 0.76);
  --elevated-bg: rgba(255, 255, 251, 0.88);
  --control-bg: rgba(255, 255, 251, 0.94);
  --control-border: rgba(34, 76, 52, 0.17);
  --control-shadow: 0 1px 2px rgba(16, 42, 25, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --active-bg: rgba(31, 122, 77, 0.12);
  --active-border: rgba(31, 122, 77, 0.28);
  --focus-ring: rgba(31, 122, 77, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 38%, var(--body-bottom) 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 232, 0.86);
  background: var(--topbar-bg);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.topbar-inner.brand-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.topbar-inner.brand-center .brand {
  grid-column: 2;
  justify-self: center;
  max-width: min(360px, 48vw);
  justify-content: center;
}

.topbar-inner.brand-center .nav-actions {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--surface-strong);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 124, 117, 0.24);
}

.brand-logo {
  width: auto;
  max-width: 180px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions,
.row-actions,
.inline-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button-row {
  margin-top: 18px;
}

.button-row.compact {
  margin-top: 0;
}

.btn {
  --btn-bg: #fff;
  --btn-text: var(--text);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn.primary {
  --btn-bg: linear-gradient(135deg, #0e7c75, #0b6b66);
  --btn-border: var(--primary);
  --btn-text: #fff;
  box-shadow: 0 12px 24px rgba(14, 124, 117, 0.18);
}

.btn.dark {
  --btn-bg: var(--surface-strong);
  --btn-border: var(--surface-strong);
  --btn-text: #fff;
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: var(--muted-strong);
}

.btn.danger {
  --btn-bg: #fff7f5;
  --btn-border: #ffd7d1;
  --btn-text: var(--rose);
}

.btn.whatsapp {
  --btn-bg: linear-gradient(180deg, #25d366 0%, #16a34a 100%);
  --btn-border: rgba(22, 163, 74, 0.72);
  --btn-text: #fff;
}

.btn.small {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 13px;
}

.btn.icon {
  width: 40px;
  padding: 0;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

html[data-theme="dark"] .btn {
  --btn-bg: #182435;
  --btn-border: #3a4a60;
  --btn-text: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .btn:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .btn.primary {
  --btn-bg: linear-gradient(135deg, #2dd4bf, #14b8a6);
  --btn-border: #5eead4;
  --btn-text: #06201d;
}

html[data-theme="dark"] .btn.dark {
  --btn-bg: #e6edf5;
  --btn-border: #e6edf5;
  --btn-text: #0b1117;
}

html[data-theme="dark"] .btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: #d8e1ec;
}

html[data-theme="dark"] .btn.ghost:hover {
  --btn-bg: #162131;
  --btn-border: #273549;
  --btn-text: #f8fafc;
}

html[data-theme="dark"] .btn.danger {
  --btn-bg: #301820;
  --btn-border: #7f1d2d;
  --btn-text: #fecdd3;
}

html[data-theme="dark"] .btn.whatsapp {
  --btn-bg: linear-gradient(180deg, #25d366 0%, #16a34a 100%);
  --btn-border: rgba(37, 211, 102, 0.52);
  --btn-text: #fff;
}

html[data-theme="dark"] .btn[disabled] {
  --btn-bg: #101925;
  --btn-border: #263447;
  --btn-text: #9aa7b7;
  opacity: 1;
  box-shadow: none;
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.admin-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius);
  background: var(--admin-profile-bg);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-profile-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  color: #9df2df;
}

.admin-profile-mark svg {
  width: 21px;
  height: 21px;
}

.admin-profile-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.admin-profile strong,
.admin-profile span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile strong {
  font-size: 14px;
  font-weight: 900;
}

.admin-profile span {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-section {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.sidebar-title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted-strong);
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.event-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.event-list button > span {
  display: block;
  min-width: 0;
}

.event-list button:hover,
.event-list button.active {
  border-color: #cdd8e2;
  background: #f5f8fa;
}

html[data-theme="dark"] .event-list button:hover,
html[data-theme="dark"] .event-list button.active {
  border-color: #3a4a60;
  background: #162131;
  color: #f8fafc;
}

.event-list button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.event-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #d9e2ec;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}

.event-list-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list-sub {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tabs {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.admin-tabs button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  font-weight: 900;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  border-color: #cdd8e2;
  background: #f5f8fa;
  color: var(--surface-strong);
}

html[data-theme="dark"] .admin-tabs button:hover,
html[data-theme="dark"] .admin-tabs button.active {
  border-color: #3a4a60;
  background: #162131;
  color: #f8fafc;
}

.admin-tabs button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.admin-tabs svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.content-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.admin-tab-panel[hidden],
.sidebar-section[hidden] {
  display: none !important;
}

.page-heading {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 225, 232, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.page-heading-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-heading h1 {
  max-width: 760px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  display: grid;
  align-content: space-between;
  min-height: 126px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-icon.green {
  background: #eaf8ef;
  color: var(--green);
}

.stat-icon.blue {
  background: #edf4ff;
  color: var(--blue);
}

.stat-icon.amber {
  background: #fff5e5;
  color: var(--amber);
}

.stat-icon.violet {
  background: #f2edff;
  color: var(--violet);
}

.stat-value {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.stat-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(217, 225, 232, 0.94);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.panel-title {
  display: grid;
  gap: 4px;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.panel-body {
  padding: 20px;
}

.auth-page {
  display: grid;
  place-items: start center;
}

.auth-panel {
  width: min(520px, 100%);
}

.auth-message {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
}

.auth-message {
  border: 1px solid #f3d6a3;
  background: #fff8eb;
  color: var(--amber);
  font-weight: 800;
}

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

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field.disabled input {
  opacity: 0.62;
}

label,
.label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d3dd;
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebdcc;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--field-bg);
  box-shadow: 0 0 0 3px rgba(14, 124, 117, 0.14);
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.participant-wizard {
  gap: 18px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wizard-progress.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.step-pill strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--field-bg);
  color: var(--muted-strong);
  font-size: 12px;
}

.step-pill.active {
  border-color: color-mix(in srgb, var(--primary) 42%, white);
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary-dark);
}

.step-pill.active strong {
  background: var(--primary);
  color: #fff;
}

.form-step {
  display: grid;
  gap: 14px;
}

.form-step[hidden] {
  display: none;
}

.guest-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guest-step-copy {
  display: grid;
  gap: 4px;
}

.guest-step-copy h3,
.guest-step-copy p {
  margin: 0;
}

.guest-step-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.choice-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.choice-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 42%, white);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.choice-card input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.choice-card span {
  display: grid;
  gap: 4px;
}

.choice-card strong {
  font-size: 14px;
}

.choice-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.field-error {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.review-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.review-box div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-box strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-fields {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.session-editor {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 108px 124px 40px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-label input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}

.preview-strip {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.preview-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--cover-bg);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
}

.preview-meta {
  display: grid;
  gap: 8px;
}

.preview-title {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d4dee7;
  border-radius: var(--radius);
  background: var(--table-head);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.badge.success {
  border-color: #badfcb;
  background: #effaf3;
  color: var(--green);
}

.badge.warn {
  border-color: #f3d6a3;
  background: #fff8eb;
  color: var(--amber);
}

.badge.danger {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 170px;
  gap: 12px;
}

.file-tool {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.file-tool h3,
.file-tool p {
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.settings-preview,
.settings-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.brand-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--surface-strong);
  font-weight: 900;
}

.brand-preview.brand-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.logo-preview img {
  max-width: min(320px, 100%);
  max-height: 96px;
  object-fit: contain;
}

.logo-preview-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.logo-preview-empty svg {
  width: 20px;
  height: 20px;
}

.theme-options {
  display: grid;
  gap: 10px;
}

.position-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.position-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  cursor: pointer;
}

.position-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.position-option svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.position-option.active,
.position-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.position-option strong,
.position-option small {
  display: block;
}

.position-option strong {
  font-size: 13px;
  font-weight: 900;
}

.position-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-option.active,
.theme-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.theme-option strong,
.theme-option small {
  display: block;
}

.theme-option strong {
  font-size: 13px;
  font-weight: 900;
}

.theme-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.44);
}

.theme-swatch.light {
  background: linear-gradient(135deg, #ffffff 0 45%, #0e7c75 45% 70%, #172033 70%);
}

.theme-swatch.dark {
  background: linear-gradient(135deg, #0b1117 0 48%, #2dd4bf 48% 72%, #e6edf5 72%);
}

.theme-swatch.forest {
  background: linear-gradient(135deg, #fffffb 0 45%, #1f7a4d 45% 72%, #10251c 72%);
}

.update-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.update-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.update-status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.update-status.success {
  border-color: #badfcb;
  background: #effaf3;
  color: var(--green);
}

.update-status.danger {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  background: var(--table-head);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: var(--panel-soft);
}

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

.participant-name {
  font-weight: 900;
  color: var(--surface-strong);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.public-page {
  min-height: 100vh;
  padding-bottom: 92px;
  background: var(--bg);
}

.public-hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 0;
}

.cover-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cover-bg);
  box-shadow: var(--shadow);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 16 / 6.5;
  object-fit: cover;
}

.public-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  width: min(980px, calc(100% - 32px));
  margin: 22px auto 0;
  align-items: start;
}

.event-main,
.event-side,
.ticket-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.event-main {
  padding: 24px;
}

.event-main h1 {
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.08;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--primary);
}

.meta-icon svg {
  width: 19px;
  height: 19px;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 3px;
  font-weight: 900;
}

.meta-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.event-description {
  color: var(--description);
  line-height: 1.65;
}

.event-description p {
  margin: 0 0 14px;
}

.event-description strong {
  color: var(--surface-strong);
}

.event-side {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.side-block {
  display: grid;
  gap: 12px;
}

.organizer {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.organizer img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--cover-bg);
}

.session-list {
  display: grid;
  gap: 8px;
}

.session-pill {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.session-pill strong {
  font-size: 13px;
}

.session-pill span {
  color: var(--muted);
  font-size: 12px;
}

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 18;
  border-top: 1px solid var(--line);
  background: var(--sticky-bg);
  box-shadow: 0 -12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.sticky-cta-title {
  font-weight: 900;
}

.sticky-cta-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.58);
}

.modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 20px;
}

.ticket-page {
  min-height: 100vh;
  padding: 32px 16px 52px;
  background: var(--bg);
}

.ticket-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.ticket-sheet {
  overflow: hidden;
}

.ticket-cover {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  background: var(--cover-bg);
}

.ticket-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  padding: 24px;
}

.ticket-details {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ticket-code {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 900;
}

.qr-box {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

.qr-box canvas,
.qr-box img,
.qr-target {
  width: 220px;
  height: 220px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid #badfcb;
  border-radius: var(--radius);
  background: #effaf3;
  color: #14532d;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.error {
  border-color: #ffd7d1;
  background: #fff5f3;
  color: var(--rose);
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Premium interface layer */
html {
  background: var(--body-bottom);
  text-rendering: geometricPrecision;
}

body {
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 46%, var(--body-bottom) 100%);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(24px);
}

.topbar-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 68px;
}

.brand {
  font-weight: 700;
}

.brand-mark,
.admin-profile-mark,
.event-thumb,
.meta-icon,
.organizer img {
  border-radius: var(--radius);
}

.brand-mark {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 28%, transparent);
}

.brand-logo {
  height: 34px;
  max-width: 210px;
}

.nav-actions,
.row-actions,
.inline-actions,
.button-row {
  gap: 10px;
}

.btn {
  --btn-bg: var(--control-bg);
  --btn-border: var(--control-border);
  --btn-text: var(--text);
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  box-shadow: var(--control-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  border-color: color-mix(in srgb, var(--primary) 26%, var(--btn-border));
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  --btn-bg: linear-gradient(180deg, #188cff 0%, #007aff 100%);
  --btn-border: rgba(0, 122, 255, 0.72);
  --btn-text: #fff;
  box-shadow: 0 14px 32px rgba(0, 122, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn.dark {
  --btn-bg: linear-gradient(180deg, #2c2c2e 0%, #1d1d1f 100%);
  --btn-border: rgba(29, 29, 31, 0.72);
  --btn-text: #fff;
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-text: var(--muted-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  --btn-bg: var(--hover-bg);
  --btn-border: var(--line);
  --btn-text: var(--text);
  box-shadow: none;
}

.btn.danger {
  --btn-bg: color-mix(in srgb, var(--rose) 8%, var(--elevated-bg));
  --btn-border: color-mix(in srgb, var(--rose) 24%, var(--line));
  --btn-text: var(--rose);
}

.btn[disabled] {
  opacity: 0.62;
}

html[data-theme="dark"] .btn {
  --btn-bg: var(--control-bg);
  --btn-border: var(--control-border);
  --btn-text: var(--text);
  box-shadow: var(--control-shadow);
}

html[data-theme="dark"] .btn.primary {
  --btn-bg: linear-gradient(180deg, #2997ff 0%, #0a84ff 100%);
  --btn-border: rgba(10, 132, 255, 0.7);
  --btn-text: #fff;
}

html[data-theme="dark"] .btn.dark {
  --btn-bg: linear-gradient(180deg, #f5f5f7 0%, #dfe4ea 100%);
  --btn-border: rgba(245, 245, 247, 0.7);
  --btn-text: #0f1115;
}

html[data-theme="dark"] .btn.danger {
  --btn-bg: rgba(251, 113, 133, 0.13);
  --btn-border: rgba(251, 113, 133, 0.28);
  --btn-text: #fecdd3;
}

html[data-theme="dark"] .btn.whatsapp {
  --btn-bg: linear-gradient(180deg, #25d366 0%, #16a34a 100%);
  --btn-border: rgba(37, 211, 102, 0.52);
  --btn-text: #fff;
}

.page {
  width: min(1240px, calc(100% - 40px));
  padding: 32px 0 64px;
}

.admin-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.sidebar {
  top: 88px;
  gap: 14px;
}

.admin-profile,
.sidebar-section,
.page-heading,
.panel,
.event-main,
.event-side,
.ticket-sheet,
.modal,
.table-wrap,
.file-tool,
.preview-strip,
.review-box,
.choice-card,
.session-row,
.brand-preview,
.logo-preview,
.update-status,
.qr-box {
  border-color: var(--line);
  background: var(--glass-bg);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
  backdrop-filter: saturate(160%) blur(18px);
}

.admin-profile {
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--admin-profile-bg) 88%, var(--primary)) 0%, var(--admin-profile-bg) 100%);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-profile strong {
  font-weight: 750;
}

.admin-profile span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.admin-profile-mark {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sidebar-section {
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px;
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.sidebar-title,
.stat-label,
label,
.label,
th,
.review-box span,
.meta-label {
  letter-spacing: 0;
}

.sidebar-title,
.stat-label,
.meta-label,
th {
  font-weight: 800;
}

.event-list,
.admin-tabs {
  gap: 6px;
  padding: 8px;
}

.event-list button,
.admin-tabs button {
  border-color: transparent;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-weight: 700;
}

.event-list button:hover,
.event-list button.active,
.admin-tabs button:hover,
.admin-tabs button.active,
html[data-theme="dark"] .event-list button:hover,
html[data-theme="dark"] .event-list button.active,
html[data-theme="dark"] .admin-tabs button:hover,
html[data-theme="dark"] .admin-tabs button.active {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--text);
}

.event-list button.active,
.admin-tabs button.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.event-thumb {
  background: var(--cover-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.event-list-title,
.participant-name,
.preview-title,
.sticky-cta-title,
.meta-value {
  font-weight: 750;
}

.content-stack {
  gap: 24px;
}

.page-heading {
  gap: 20px;
  padding: 26px;
}

.page-heading-main {
  align-items: center;
}

.kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--surface-strong);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
}

h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.02;
}

.page-heading h1 {
  font-size: clamp(30px, 3vw, 42px);
}

h2 {
  font-size: 23px;
}

.stat-grid {
  gap: 16px;
}

.stat {
  min-height: 132px;
  padding: 18px;
  border-color: var(--line);
  background: var(--elevated-bg);
  box-shadow: var(--shadow-ring);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--active-border);
  box-shadow: var(--shadow-soft), var(--shadow-ring);
}

.stat-icon {
  width: 36px;
  height: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-icon.green {
  background: color-mix(in srgb, var(--green) 12%, var(--elevated-bg));
}

.stat-icon.blue {
  background: color-mix(in srgb, var(--blue) 12%, var(--elevated-bg));
}

.stat-icon.amber {
  background: color-mix(in srgb, var(--amber) 13%, var(--elevated-bg));
}

.stat-icon.violet {
  background: color-mix(in srgb, var(--violet) 13%, var(--elevated-bg));
}

.stat-value {
  font-size: 36px;
  font-weight: 760;
}

.panel-header {
  padding: 20px 22px;
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.panel-body {
  padding: 22px;
}

.auth-page {
  min-height: calc(100vh - 68px);
  align-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.auth-panel {
  width: min(540px, 100%);
}

.auth-panel .panel-header {
  padding: 30px 30px 22px;
}

.auth-panel .panel-body {
  padding: 24px 30px 30px;
}

.auth-panel h1 {
  font-size: clamp(38px, 5.4vw, 54px);
}

.auth-message {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background: color-mix(in srgb, var(--amber) 10%, var(--elevated-bg));
  color: var(--amber);
}

.form-grid,
.settings-grid,
.update-grid,
.filters {
  gap: 16px;
}

.field {
  gap: 7px;
}

label,
.label {
  color: var(--muted-strong);
  font-weight: 750;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: var(--control-border);
  background: var(--field-bg);
  box-shadow: var(--control-shadow);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 64%, var(--control-border));
  box-shadow: 0 0 0 4px var(--focus-ring), var(--control-shadow);
}

.step-pill,
.badge,
.ticket-code,
.session-pill,
.theme-option,
.position-option {
  border-color: var(--line);
  background: var(--elevated-bg);
}

.step-pill.active,
.choice-card:has(input:checked),
.theme-option.active,
.theme-option:has(input:checked),
.position-option.active,
.position-option:has(input:checked) {
  border-color: var(--active-border);
  background: var(--active-bg);
  color: var(--primary-dark);
}

.step-pill.active strong {
  background: var(--primary);
}

.preview-strip {
  padding: 16px;
  background: var(--elevated-bg);
}

.preview-cover,
.cover-frame,
.ticket-cover {
  background: var(--cover-bg);
}

.preview-cover,
.cover-frame {
  box-shadow: var(--shadow-soft);
}

.badge.success,
.update-status.success {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--elevated-bg));
}

.badge.warn,
.auth-message {
  border-color: color-mix(in srgb, var(--amber) 28%, var(--line));
  background: color-mix(in srgb, var(--amber) 10%, var(--elevated-bg));
}

.badge.danger,
.toast.error,
.update-status.danger {
  border-color: color-mix(in srgb, var(--rose) 28%, var(--line));
  background: color-mix(in srgb, var(--rose) 10%, var(--elevated-bg));
}

.table-wrap {
  background: var(--elevated-bg);
}

th {
  background: var(--table-head);
}

tbody tr:hover {
  background: var(--hover-bg);
}

.empty-state {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--elevated-bg) 78%, transparent);
}

.public-page,
.ticket-page {
  background:
    linear-gradient(180deg, var(--body-top) 0%, var(--bg) 48%, var(--body-bottom) 100%);
}

.public-hero {
  width: min(1180px, calc(100% - 40px));
  padding-top: 24px;
}

.cover-frame {
  border-color: var(--line);
  aspect-ratio: 16 / 5.2;
}

.cover-frame img {
  height: 100%;
  aspect-ratio: auto;
}

.public-content {
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin-top: 26px;
}

.event-main {
  padding: 28px;
}

.event-main h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.event-side {
  top: 88px;
  padding: 20px;
}

.event-meta-grid {
  gap: 16px;
  margin: 26px 0;
  padding: 22px 0;
}

.meta-icon {
  background: var(--active-bg);
  color: var(--primary);
}

.event-description {
  color: var(--description);
}

.session-pill {
  background: var(--elevated-bg);
}

.sticky-cta {
  border-top-color: var(--line);
  background: var(--sticky-bg);
  box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.1);
  backdrop-filter: saturate(180%) blur(22px);
}

.modal-backdrop {
  background: rgba(10, 11, 14, 0.54);
  backdrop-filter: blur(8px);
}

.modal-header,
.modal-body,
.ticket-content {
  padding: 24px;
}

.ticket-page {
  padding-top: 40px;
}

.ticket-code {
  font-weight: 750;
}

.qr-box {
  background: var(--elevated-bg);
}

.toast {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--elevated-bg));
  color: var(--green);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .admin-layout,
  .public-content,
  .ticket-content {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .event-side {
    position: static;
  }

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

  .filters {
    grid-template-columns: 1fr;
  }

  .settings-grid,
  .update-grid {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    aspect-ratio: 16 / 8.5;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .page,
  .public-hero,
  .public-content,
  .sticky-cta-inner {
    width: min(100% - 24px, 1180px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .topbar-inner.brand-center {
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
    gap: 8px;
  }

  .topbar-inner.brand-center .brand-logo {
    max-width: min(144px, 42vw);
  }

  .nav-actions .btn span,
  .row-actions .btn span {
    display: none;
  }

  .page {
    padding-top: 18px;
  }

  .page-heading-main,
  .panel-header,
  .sticky-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .form-grid.three,
  .preview-strip,
  .event-meta-grid,
  .wizard-progress,
  .guest-choice,
  .review-box {
    grid-template-columns: 1fr;
  }

  .session-row {
    grid-template-columns: 1fr;
  }

  .session-row .btn.icon {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .event-main,
  .ticket-content {
    padding: 18px;
  }

  .sticky-cta {
    position: static;
    margin-top: 22px;
  }

  .public-page {
    padding-bottom: 28px;
  }

  .cover-frame img,
  .ticket-cover {
    aspect-ratio: 4 / 3;
  }
}
