:root {
  --red: #b60916;
  --red-dark: #78050f;
  --gold: #f3c34f;
  --ink: #161616;
  --muted: #6e737b;
  --line: rgba(22, 22, 22, 0.12);
  --paper: #ffffff;
  --soft: #f5f6f8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f2f3f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(182, 9, 22, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(182, 9, 22, 0.24);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 26px);
  color: #30343a;
  font-weight: 700;
  font-size: 0.92rem;
}

.logout-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  min-height: calc(100vh - 74px);
  padding: clamp(18px, 3vw, 44px);
  gap: clamp(22px, 4vw, 48px);
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7e8ea;
  box-shadow: 0 28px 80px rgba(10, 10, 10, 0.14);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--red);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2vw, 22px) 0;
}

.eyebrow,
.section-heading span,
.lead-copy span,
.admin-heading span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 690px;
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 7.5vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  color: #3d4249;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.primary-link,
.group-cta,
.lead-form button,
.admin-login button,
.admin-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(182, 9, 22, 0.24);
  cursor: pointer;
}

.quote-band,
.group-section,
.lead-section,
.steps,
footer,
.admin-shell {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.quote-band {
  background:
    linear-gradient(135deg, rgba(182, 9, 22, 0.08), rgba(243, 195, 79, 0.22)),
    linear-gradient(180deg, #ffffff 0%, #f7f2f1 100%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  margin-bottom: 28px;
}

.quote-band .section-heading {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  margin: 0 auto 34px;
  text-align: center;
}

.quote-alert {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 10px 18px;
  border: 2px solid rgba(243, 195, 79, 0.95);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #121212, var(--red));
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(243, 195, 79, 0.65), 0 18px 38px rgba(182, 9, 22, 0.22);
  animation: quotePulse 1.15s ease-in-out infinite;
}

@keyframes quotePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(243, 195, 79, 0.55), 0 18px 38px rgba(182, 9, 22, 0.22);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(243, 195, 79, 0), 0 22px 48px rgba(182, 9, 22, 0.34);
  }
}

.quote-band .section-heading span {
  width: fit-content;
  margin: 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 30px rgba(182, 9, 22, 0.22);
}

.quote-band .section-heading h2 {
  color: #121212;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  text-wrap: balance;
}

.quote-band .section-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: #4d535d;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.section-heading h2,
.lead-copy h2,
.admin-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.lead-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.quote-card,
.steps article,
.lead-form,
.admin-card,
.admin-login {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 55px rgba(20, 24, 31, 0.08);
}

.quote-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 24px;
  border-color: rgba(182, 9, 22, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 247, 0.96));
  box-shadow: 0 22px 60px rgba(20, 24, 31, 0.12);
}

.quote-card span {
  color: #353b43;
  font-size: 1.05rem;
  font-weight: 900;
}

.quote-card strong {
  color: var(--red);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
}

.quote-section-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(243, 195, 79, 0.2), transparent 42%),
    linear-gradient(135deg, #141414 0%, #3a070d 52%, #b60916 100%);
  color: #fff;
}

.lead-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--gold);
  pointer-events: none;
}

.lead-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.group-section {
  background:
    linear-gradient(135deg, rgba(182, 9, 22, 0.08), rgba(243, 195, 79, 0.18)),
    #fff;
}

.group-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(182, 9, 22, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #141414 0%, #2b070b 54%, #7f0711 100%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(20, 24, 31, 0.18);
}

.group-panel span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-panel h2 {
  max-width: 780px;
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.group-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.group-action {
  display: grid;
  justify-items: stretch;
  gap: 12px;
}

.group-cta {
  width: 100%;
  min-height: 68px;
  padding: 0 28px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  background: linear-gradient(135deg, #16803a, #075f2a);
  box-shadow: 0 16px 32px rgba(7, 95, 42, 0.24);
}

.group-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  text-align: center;
}

.trust-row strong {
  min-width: 78px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--gold);
  text-align: center;
}

.lead-form {
  display: grid;
  gap: 15px;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: #30343a;
  font-weight: 800;
  font-size: 0.91rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(182, 9, 22, 0.1);
}

.lead-form button,
.admin-login button,
.admin-heading button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.lead-form small {
  color: var(--muted);
  line-height: 1.55;
}

.lead-cta-panel {
  align-content: center;
  min-height: 280px;
  border-color: rgba(243, 195, 79, 0.54);
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.attendant-cta {
  min-height: 96px;
  padding: 0 30px;
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  background: linear-gradient(135deg, #18a34a, #08692f);
  box-shadow: 0 20px 42px rgba(8, 105, 47, 0.3);
}

.attendant-cta:disabled {
  cursor: wait;
  opacity: 0.78;
}

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

.steps article {
  padding: 24px;
}

.steps span {
  color: var(--red);
  font-weight: 900;
}

.steps h3 {
  margin: 10px 0 8px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-body {
  background: #f5f6f8;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-login {
  max-width: 460px;
  margin: 30px auto;
  padding: 28px;
}

.admin-login p {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.admin-heading,
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading {
  margin-bottom: 22px;
}

.admin-heading button {
  width: auto;
}

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

.admin-card {
  padding: 22px;
}

.admin-card h2 {
  margin-bottom: 18px;
}

.secondary-button,
.remove-button,
.save-item-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.remove-button {
  color: var(--red);
}

.save-item-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
}

.save-item-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.banner-preview {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-box {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px dashed rgba(182, 9, 22, 0.35);
  border-radius: 8px;
  background: rgba(182, 9, 22, 0.04);
}

.upload-box span {
  font-weight: 900;
}

.upload-box p,
.upload-box small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
}

.actions-cell button {
  min-height: 42px;
}

.editing-row input {
  min-width: 140px;
  padding: 10px 11px;
}

.editor-list {
  display: grid;
  gap: 12px;
}

.editor-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.compact-list .editor-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.attendant-list .editor-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto;
  align-items: end;
}

.group-list .editor-item {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto auto auto;
  align-items: end;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.leads-card {
  margin-top: 16px;
}

.clicks-card {
  margin-top: 16px;
}

.click-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.click-filter button {
  min-height: 49px;
}

.click-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.click-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.click-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.click-summary strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.click-summary p {
  margin: 0;
  color: #3d4249;
  font-weight: 800;
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero,
  .lead-section,
  .group-panel,
  .section-heading,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 430px;
  }

  .quote-grid,
  .steps,
  .click-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-media {
    min-height: 320px;
  }

  .quote-grid,
  .steps,
  .click-filter,
  .click-summary,
  .compact-list .editor-item,
  .attendant-list .editor-item,
  .group-list .editor-item {
    grid-template-columns: 1fr;
  }

  .quote-card,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading,
  .card-title-row {
    align-items: stretch;
    flex-direction: column;
  }
}
