* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 2%, rgba(67, 97, 238, .12), transparent 24rem),
    radial-gradient(circle at 92% 10%, rgba(16, 185, 129, .10), transparent 28rem),
    linear-gradient(180deg, #f5f8fc 0%, #eef4fb 48%, #eef2f7 100%);
  color: #172033;
}

.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .62fr);
  gap: 28px;
  align-items: center;
  padding: 34px 36px;
  color: white;
  background: linear-gradient(145deg, #07111f 0%, #0b1730 45%, #102447 100%);
  border-radius: 36px;
  box-shadow: 0 28px 90px rgba(8, 20, 40, .24);
}

.hero:before {
  content: "";
  position: absolute;
  inset: -30% auto auto 55%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, .22) 0%, rgba(56, 189, 248, 0) 65%);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, .18) 0%, rgba(59, 130, 246, 0) 72%);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 4.7vw, 62px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  backdrop-filter: blur(14px);
}

.hero-profile {
  display: flex;
  justify-content: flex-end;
}

.hero-brand-mark {
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(226, 232, 240, .88));
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.hero-brand-mark img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .18));
}

.card {
  padding: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(23, 32, 51, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(18px);
}

.eventbar,
.nav,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eventbar,
.nav {
  margin-top: 18px;
}

.eventbar {
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
}

.eventbar-copy {
  display: grid;
  gap: 10px;
  min-width: min(100%, 560px);
}

.eventbar-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.eventbar-select-wrap {
  position: relative;
}

.eventbar-select-wrap:after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.eventbar-select-wrap select {
  width: 100%;
  padding: 18px 48px 18px 18px;
  font-size: 19px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid #d7e0ea;
  background: #fff;
  appearance: none;
}

.eventbar-meta {
  font-size: 14px;
}

.eventbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  min-width: 110px;
  background: rgba(255, 255, 255, .92) !important;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, .14);
  z-index: 20;
}

.profile-action {
  width: 100%;
  justify-content: center;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-label {
  color: #64748b;
  font-size: 14px;
}

.stat-value {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
}

.stat-hint {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  outline: none;
}

textarea {
  min-height: 170px;
}

button,
.button {
  display: inline-block;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.primary {
  background: #102447;
  color: #fff;
}

.gold {
  background: #0f766e;
  color: #fff;
}

.light {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.danger {
  background: #fef2f2;
  color: #b91c1c;
}

.section {
  margin-top: 22px;
}

.upload-field {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: rgba(248, 250, 252, .9);
}

.upload-field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #334155;
}

.upload-field input[type="file"] {
  padding: 14px;
  background: #fff;
}

.table-wrap {
  overflow: auto;
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  padding: 14px;
  background: #f8fafc;
  color: #64748b;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 14px;
  border-top: 1px solid #f1f5f9;
  vertical-align: top;
}

.badge {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.badge.ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #d1fae5;
}

.badge.warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fef3c7;
}

.badge.no {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fee2e2;
}

.campaign-grid,
.password-grid {
  display: grid;
  gap: 20px;
}

.campaign-grid {
  grid-template-columns: 1fr .85fr;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.preview {
  padding: 18px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
}

.muted {
  color: #64748b;
}

.small {
  font-size: 12px;
}

.link {
  color: #0f766e;
}

.hidden {
  display: none;
}

.public-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-card {
  width: 100%;
  max-width: 560px;
  padding: 32px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 32px;
  box-shadow: 0 22px 70px rgba(23, 32, 51, .08);
}

.public-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.eyebrow {
  color: #0f766e;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.form button {
  background: #102447;
  color: white;
}

.success {
  margin-top: 16px;
  padding: 12px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
  border-radius: 16px;
}

.invite-page {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
}

.invite-layout {
  width: min(1280px, 100%);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(15, 23, 42, .18);
  background: #fff;
}

.invite-visual {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 36px;
  background: linear-gradient(160deg, #0b1730 0%, #12305d 42%, #164e63 100%);
}

.invite-visual-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  align-self: center;
}

.invite-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, .08), rgba(7, 17, 31, .58));
}

.invite-visual-content,
.invite-panel-card {
  position: relative;
  z-index: 1;
}

.invite-visual-content {
  display: grid;
  gap: 18px;
  max-width: 520px;
  color: #fff;
}

.invite-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
}

.invite-visual h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.invite-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.invite-event-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid #d7e0ea;
  color: #334155;
  font-size: 13px;
}

.invite-panel {
  display: grid;
  place-items: center;
  padding: 34px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8fc 100%);
}

.invite-panel-card {
  width: min(520px, 100%);
  padding: 34px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(215, 224, 234, .9);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .10);
}

.invite-panel-card h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.invite-guest-name {
  margin: 0 0 18px;
}

.invite-copy {
  margin: 0 0 22px;
  color: #475569;
  line-height: 1.6;
}

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

.invite-form label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.invite-submit {
  margin-top: 8px;
  background: linear-gradient(135deg, #102447 0%, #164e63 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(16, 36, 71, .22);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-profile {
    justify-content: stretch;
  }

  .profile-trigger {
    width: 100%;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
    min-width: 100%;
  }

  .eventbar {
    padding: 22px;
  }

  .eventbar-copy,
  .eventbar-actions {
    width: 100%;
  }

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

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

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

  .invite-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .invite-visual {
    min-height: 320px;
  }

  .invite-panel {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-brand-mark {
    min-height: 180px;
  }

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

  .invite-page {
    padding: 14px;
  }

  .invite-visual,
  .invite-panel-card {
    padding: 24px;
  }

  .invite-panel-card h2 {
    font-size: 28px;
  }
}
