:root {
  --ink: #261c1f;
  --muted: #7b6b68;
  --line: rgba(38, 28, 31, 0.12);
  --paper: #ffffff;
  --soft: #fff7f2;
  --accent: #c13f68;
  --accent-strong: #a92f55;
  --teal: #8b5e48;
  --coral: #f06f92;
  --danger: #b9384f;
  --gold: #d9a64f;
  --shadow: 0 18px 48px rgba(80, 42, 38, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 52%, #fff1ea 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  align-items: center;
  background: linear-gradient(115deg, rgba(27, 49, 98, 0.97), rgba(126, 42, 91, 0.96) 58%, rgba(193, 63, 104, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(54, 31, 89, 0.22);
  display: flex;
  justify-content: space-between;
  margin: 18px auto 0;
  min-height: 64px;
  padding: 0 18px;
  position: sticky;
  top: 14px;
  width: min(1180px, calc(100% - 32px));
  z-index: 10;
}

.brand {
  align-items: center;
  color: #fff8f3;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  gap: 0;
  position: relative;
}

.brand strong {
  color: #fff8f3;
  font-weight: 900;
}

.brand i {
  background: linear-gradient(135deg, var(--coral), var(--gold));
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(193, 63, 104, 0.1);
  height: 10px;
  margin-left: 6px;
  margin-top: -14px;
  width: 10px;
}

.nav {
  display: flex;
  gap: 8px;
  color: rgba(255, 248, 243, 0.76);
  font-weight: 650;
}

.nav a {
  border-radius: 999px;
  padding: 10px 14px;
}

.nav a:hover {
  background: rgba(240, 111, 146, 0.18);
  color: #ffffff;
}

.mobile-menu-button { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; cursor: pointer; display: none; font-size: 1.35rem; height: 42px; justify-content: center; padding: 0; width: 42px; }

.home,
.workspace {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 24px;
}

.home {
  max-width: none;
  padding-top: 0;
}

.intro {
  background:
    linear-gradient(90deg, rgba(38, 28, 31, 0.9), rgba(38, 28, 31, 0.38)),
    url("https://images.unsplash.com/photo-1527529482837-4698179dc6ce?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 8px;
  margin: 30px auto 0;
  max-width: 1180px;
  overflow: hidden;
  padding: 72px 54px;
  position: relative;
}

.intro > * {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.intro h1,
.intro h2,
.intro p {
  color: #fff;
}

.intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 18px;
}

.platform-intro {
  margin-top: 28px;
}

.intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions .button span,
.form-panel .button span {
  margin-right: 7px;
}

.actions .secondary:last-child {
  border-color: rgba(32, 199, 181, 0.5);
  color: var(--teal);
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(193, 63, 104, 0.2);
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.secondary:hover,
.icon-button:hover {
  border-color: rgba(193, 63, 104, 0.42);
  color: var(--accent);
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px auto 0;
  max-width: 1180px;
}

.visual-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  margin: 28px auto 0;
  max-width: 1180px;
}

.visual-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 330px;
  overflow: hidden;
  padding: 22px 22px 172px;
  position: relative;
}

.visual-card h3,
.visual-card p {
  position: relative;
  z-index: 2;
}

.visual-card h3 {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.18;
  margin: 0 0 8px;
  max-width: 270px;
}

.visual-card p {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
  max-width: 290px;
}

.visual-card img {
  bottom: 0;
  height: 150px;
  left: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.visual-card.photo-tall img {
  height: 100%;
  inset: 0;
}

.visual-card.photo-tall {
  padding: 24px;
}

.visual-card.photo-tall h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  max-width: 260px;
}

.visual-card.photo-tall p {
  max-width: 250px;
}

.visual-card.photo-tall::after {
  background: linear-gradient(180deg, rgba(38, 28, 31, 0.18), rgba(38, 28, 31, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.visual-card.photo-tall h3,
.visual-card.photo-tall p {
  color: #fff;
}

.steps article,
.panel,
.stats-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps article {
  padding: 24px;
}

.steps .step-illustration {
  display: block;
  height: 118px;
  margin: 0 auto 18px;
  object-fit: contain;
  width: 150px;
}

.steps span {
  align-items: center;
  background: rgba(193, 63, 104, 0.1);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.steps .event-symbol {
  background: rgba(193, 63, 104, 0.12);
  color: #c13f68;
}

.steps .guests-symbol {
  background: rgba(46, 134, 222, 0.12);
  color: #2e86de;
  font-size: 1rem;
  letter-spacing: 0;
}

.steps .rsvp-symbol {
  background: rgba(32, 199, 181, 0.14);
  color: #159c8d;
}

.admin-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 8px;
}

.event-code {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  padding: 14px 16px;
}

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

.stats-grid article {
  padding: 20px;
  position: relative;
}

.stats-grid article i {
  color: var(--accent);
  float: right;
  font-style: normal;
  opacity: 0.78;
}

.stats-grid article::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 20px;
  position: absolute;
  right: 20px;
  top: 0;
}

.stats-grid article:nth-child(2)::before {
  background: var(--teal);
}

.stats-grid article:nth-child(3)::before {
  background: var(--coral);
}

.stats-grid article:nth-child(4)::before {
  background: var(--ink);
}

.stats-grid span {
  display: block;
  font-size: 2rem;
  font-weight: 850;
  margin-bottom: 4px;
}

.stats-grid p {
  margin: 0;
}

.split {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.panel {
  padding: 22px;
}

.form-panel {
  display: grid;
  gap: 16px;
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 750;
  gap: 8px;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(193, 63, 104, 0.13);
}

.form-message {
  color: var(--teal);
  font-weight: 750;
  min-height: 24px;
}
.section-title,
.pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.section-title p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

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

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

td small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

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

th {
  color: var(--muted);
  font-size: 0.82rem;
}

code {
  background: var(--soft);
  border-radius: 6px;
  padding: 4px 6px;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.yes {
  background: rgba(32, 199, 181, 0.14);
  color: var(--teal);
}

.pending {
  background: rgba(46, 134, 222, 0.12);
  color: var(--accent);
}

.no {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.icon-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  min-height: 34px;
  padding: 0 10px;
}

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

.empty-row,
.empty {
  color: var(--muted);
  padding: 40px 16px;
  text-align: center;
}

.pagination {
  padding-top: 18px;
}

.invite-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(46, 134, 222, 0.54)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80") center/cover;
  display: grid;
  place-items: center;
}

.invite-hero {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 680px;
  padding: 44px;
  width: min(100%, 680px);
}

.invite-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.guest-name {
  color: var(--coral);
  font-size: 1.45rem;
  font-weight: 850;
}

.invite-copy {
  color: var(--ink);
  font-size: 1.1rem;
}

.invite-details {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-weight: 800;
  margin: 26px 0;
  padding: 16px 0;
}

.rsvp-form {
  display: grid;
  gap: 16px;
}

fieldset {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: 850;
  margin-bottom: 10px;
}

.radio-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
}

.radio-row input {
  min-height: auto;
  width: auto;
}

@media (max-width: 860px) {
  .topbar,
  .admin-head,
  .section-title,
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps,
  .stats-grid,
  .split,
  .visual-strip,
  .event-gallery,
  .event-creator {
    grid-template-columns: 1fr;
  }

  .studio-welcome,
  .studio-section-head,
  .event-cover-body {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-welcome {
    margin-top: -28px;
    min-height: 430px;
    padding: 52px 24px 38px;
  }

  .studio-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-creator {
    gap: 24px;
    margin-bottom: -28px;
    margin-top: 52px;
    padding: 38px 24px;
  }

  .creator-intro {
    position: static;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 20px;
  }

  .mobile-menu-button { display: inline-flex; }
  .topbar .nav { background: rgba(15,23,42,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; display: none; flex-direction: column; gap: 4px; padding: 8px; width: 100%; }
  .topbar.menu-open .nav { display: flex; }
  .topbar .nav a { align-items: center; display: flex; min-height: 46px; padding: 0 13px; width: 100%; }

  .home,
  .workspace {
    padding: 28px 18px;
  }

  .invite-shell {
    padding: 16px;
  }

  .invite-hero {
    padding: 28px 20px;
  }
}
