:root {
  --ink: #6361ce;
  --ink-2: #6361ce;
  --paper: #f6f8fb;
  --surface: #fff;
  --muted: #617184;
  --line: #6fb0f1;
  --accent: #F3858A;
  --accent-dark: #F3858A;
  --teal: #F3858A;
  --success: #e1e1e1;
  --warning: #9a6500;
  --danger: #F3858A;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.1);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.btn {
  min-height: 44px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 31, 51, 0.97);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-wrap {
  max-width: 1180px;
  margin: auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 0;
}
.brand > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links a,
.nav-links button {
  color: #dbe7f0;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.hero {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 90px solid rgba(8, 126, 139, 0.22);
  border-radius: 50%;
  right: -180px;
  top: -250px;
}
.hero-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7fd4dd;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 12px 0 24px;
  max-width: 800px;
}
.hero h1 span {
  color: #F3858A;
}
.hero-copy {
  font-size: 1.12rem;
  color: #c9d7e3;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: 0.18s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
}
.btn-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.hero .btn-outline {
  border-color: #6f8294;
  color: #fff;
}
.event-card {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.event-card:before {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  background: var(--accent);
  border-radius: 10px;
  margin-bottom: 24px;
}
.event-card h2 {
  font-size: 1.55rem;
  margin: 0 0 22px;
}
.event-fact {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.event-fact:first-of-type {
  border-top: 0;
}
.event-fact strong {
  display: block;
}
.section {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.lead {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.08rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.feature-card,
.panel,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.04);
}
.feature-number {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin: 28px 0 8px;
}
.feature-card p {
  color: var(--muted);
  margin: 0;
}
.page-shell {
  min-height: calc(100vh - 72px);
  padding: 54px 0 90px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.04em;
}
.page-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}
.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--ink);
  color: #fff;
  padding: 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-aside h1 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 14px 0;
}
.auth-aside p {
  color: #c9d7e3;
  max-width: 520px;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 50px 24px;
}
.form-card {
  width: min(540px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.form-card > p {
  color: var(--muted);
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 750;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bdc9d5;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 13px;
  min-height: 46px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(8, 126, 139, 0.18);
  border-color: var(--teal);
}
.field small {
  color: var(--muted);
}
.field-error {
  color: var(--danger);
  font-size: 0.83rem;
  min-height: 1.2em;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.alert {
  padding: 13px 15px;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px solid;
}
.alert-error {
  background: #fff1f0;
  border-color: #f5b7b1;
  color: #8c1c13;
}
.alert-success {
  background: #ecfdf3;
  border-color: #abe4c6;
  color: #0c6444;
}
.hidden {
  display: none !important;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card .label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.stat-card .value {
  font-size: 1.45rem;
  font-weight: 850;
  margin-top: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  background: #e8edf2;
  color: #405268;
}
.badge-confirmed,
.badge-captured,
.badge-active,
.badge-accepted {
  background: #dff7e9;
  color: #11623f;
}
.badge-payment_pending,
.badge-pending,
.badge-submitted,
.badge-under_review {
  background: #fff2cc;
  color: #805800;
}
.badge-payment_failed,
.badge-failed,
.badge-rejected,
.badge-disabled,
.badge-locked {
  background: #fee4e2;
  color: #912018;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  margin-top: 22px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.action-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  text-decoration: none;
  background: #fff;
}
.action-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}
.action-card strong {
  display: block;
}
.action-card span {
  font-size: 0.86rem;
  color: var(--muted);
}
.detail-list {
  margin: 0;
}
.detail-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child {
  border-bottom: 0;
}
.detail-row dt {
  color: var(--muted);
}
.detail-row dd {
  margin: 0;
  font-weight: 700;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #f8fafc;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 240px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.admin-nav {
  background: var(--ink);
  border-radius: 18px;
  padding: 16px;
  height: max-content;
  position: sticky;
  top: 92px;
}
.admin-nav a {
  display: block;
  color: #d9e5ee;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 8px;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-footer {
  background: #071624;
  color: #bdcad5;
  padding: 34px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.skeleton {
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e7edf2 25%, #f5f7f9 50%, #e7edf2 75%);
  background-size: 200% 100%;
  animation: load 1.3s infinite;
}
@keyframes load {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 900px) {
  .hero-grid,
  .auth-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding: 54px 0;
  }
  .event-card {
    max-width: 600px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-aside {
    padding: 60px 32px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
    display: flex;
    overflow: auto;
  }
  .admin-nav a {
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .nav-wrap {
    padding: 0 16px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
    font-size: 0.8rem;
    max-width: calc(100% - 74px);
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--ink);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open {
    display: flex;
  }
  .hero-grid {
    min-height: auto;
    gap: 36px;
  }
  .section {
    padding: 56px 0;
  }
  .feature-grid,
  .dashboard-grid,
  .form-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar input {
    width: 100%;
    min-width: 0;
  }
}
