:root {
  --bg: #eef5f8;
  --bg-2: #d9ebe7;
  --ink: #0b1f33;
  --muted: #4a6274;
  --accent: #00b39a;
  --accent-2: #ff3b6b;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(11, 31, 51, 0.1);
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.12);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, #b8f2e6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffd0dc 0%, transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 40%, #e8f1f4 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 1.25rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(145deg, rgba(0, 179, 154, 0.55), rgba(255, 59, 107, 0.42));
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.95;
  animation: floaty 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: #06241f;
}

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.section {
  padding: 3.5rem 0 1rem;
  animation: rise 0.8s ease both;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.section p.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.group-all {
  margin-bottom: 1.25rem;
}

.niche-joins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: baseline;
}

.niche-join {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 179, 154, 0.45);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.niche-join:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.partners {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
}

.partner {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.partner:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.partner-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  padding: 0.55rem;
  background: #0b1f33;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.partner-text {
  min-width: 0;
}

.partner strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  border-bottom: 2px solid rgba(0, 179, 154, 0.45);
}

.partner span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.partner:hover strong {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.coupon-strip {
  display: grid;
  gap: 0.85rem;
}

.coupon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

a.coupon:hover {
  border-color: rgba(6, 36, 31, 0.25);
}

.coupon code {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: #06241f;
  color: #b8ffe9;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
}

.coupon code.soft {
  background: #1a3a55;
  color: #d7ecff;
  font-size: 0.95rem;
}

.coupon strong {
  display: block;
  margin-bottom: 0.2rem;
}

.coupon span {
  color: var(--muted);
  font-size: 0.92rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.promo-more-wrap {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.promo {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.promo:hover {
  transform: translateY(-4px);
}

.promo-media {
  aspect-ratio: 1;
  background: #dfe9ef center/cover no-repeat;
}

.promo-body {
  padding: 0.95rem 1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.badge-market {
  background: #1a1a1a;
  margin-left: 0.35rem;
}

.promo h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.prices {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.prices .now {
  font-weight: 800;
  font-size: 1.15rem;
}

.prices .was {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.pitch {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.empty {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.footer {
  padding: 3rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.panel h1,
.panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1 1 180px;
}

.admin-promo {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.admin-promo:first-of-type {
  border-top: 0;
}

.admin-promo img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #dfe9ef;
}

.admin-promo .meta {
  display: grid;
  gap: 0.25rem;
}

.option-pick {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.option-pick:first-of-type {
  border-top: 0;
}

.option-pick.cheapest {
  background: rgba(10, 122, 95, 0.08);
  border-radius: 14px;
  padding: 0.75rem;
  border-top: 0;
  margin-bottom: 0.35rem;
}

.option-pick img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #dfe9ef;
}

.option-pick .price {
  font-weight: 800;
  font-size: 1.05rem;
}

.option-badge {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0a7a5f;
}

.preview-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.preview-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #dfe9ef;
}

#previewCaption {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status {
  font-size: 0.8rem;
  color: var(--muted);
}

.status.sent {
  color: #0a7a5f;
}

.status.pending {
  color: #b42318;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
  pointer-events: none;
  z-index: 20;
}

.request-form {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
  margin-top: 1rem;
}

.request-form .status {
  margin: 0;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  vertical-align: middle;
}

.request-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.request-item:first-of-type {
  border-top: 0;
}

.request-item .meta {
  display: grid;
  gap: 0.25rem;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero::before {
    inset: -5% -30% auto auto;
    opacity: 0.55;
  }

  .admin-promo {
    grid-template-columns: 72px 1fr;
  }

  .admin-promo .actions {
    grid-column: 1 / -1;
  }
}
