:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f1;
  --ink: #0b0c08;
  --ink-soft: #6b6b5e;
  --line: #e7e5da;
  --accent: #0b0c08;
  --accent-ink: #0b0c08;
  --camo-1: #0b0c08;
  --camo-2: #0b0c08;
  --camo-3: #0b0c08;
  --camo-4: #0b0c08;
  --camo-dark: #0b0c08;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- top bar ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  width: 250px;
  color: var(--ink-soft);
  font-size: 14px;
}
.search-box kbd {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand .mark {
  display: inline-block;
}

.topbar-spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #26281c; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: #cac6b0; }
.btn-blue { background: #2563eb; color: #fff; }
.btn-blue:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-camo { background: var(--camo-1); color: #f3f1e6; }
.btn-camo:hover { background: #2e3824; }

/* ---- layout grid ---- */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0,1fr) 300px;
  gap: 32px;
  padding: 32px 28px 90px;
}

.sidebar-left, .sidebar-right {
  position: sticky;
  top: 86px;
  align-self: start;
}
.sidebar-left { max-height: calc(100vh - 106px); overflow-y: auto; }

@media (max-width: 1140px) {
  .layout { grid-template-columns: minmax(0,1fr); padding: 24px 0 70px; }
  .sidebar-left { display: none; }
  .sidebar-right { position: static; max-height: none; overflow: visible; margin-top: 28px; }
  .wrap, .topbar-inner, .layout { padding-left: 16px; padding-right: 16px; }
}

/* ---- auth gate (shown before submitting a launch) ---- */
.auth-gate { display: flex; justify-content: center; padding: 70px 0 40px; }
.auth-gate-card { max-width: 360px; width: 100%; text-align: center; }
.auth-gate-card .mark-lg {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.auth-gate-brand { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-bottom: 6px; }
.auth-gate-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }

/* ---- left sidebar ---- */
.sidebar-left { text-align: left; }

.side-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 22px 0 10px;
  text-align: left;
}
.side-label:first-child { margin-top: 0; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.nav-link:hover { background: var(--bg-soft); }
.nav-link.active { background: var(--bg-soft); color: var(--camo-1); }
.nav-link.active .icon { color: var(--camo-1); }
.nav-link .pill {
  margin-left: auto;
  background: #e9f9ef;
  color: #1a7f3c;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.nav-link .pill.alert { background: #c0392b; color: #fff; }

.promo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 24px;
  background: var(--bg-soft);
  border-top: 3px solid var(--camo-2);
  text-align: left;
}
.promo-card .promo-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.promo-card strong { color: var(--accent-ink); }
.promo-card h4 { margin: 0 0 5px; font-size: 15.5px; font-family: var(--font-display); }
.promo-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ---- status bar ---- */
.status-bar {
  position: relative;
  background: #000;
  color: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.status-stat { display: flex; flex-direction: column; gap: 3px; }
.status-stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.status-stat .label {
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a8a8a8;
}
.status-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.16); }
.status-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status-cta .note { font-size: 13px; color: #a8a8a8; max-width: 220px; line-height: 1.4; }
.status-cta .btn { background: #fff; color: #000; font-weight: 700; white-space: nowrap; }
.status-cta .btn:hover { background: #e8e8e8; }

@media (max-width: 760px) {
  .status-bar { padding: 20px; gap: 18px; }
  .status-divider { display: none; }
  .status-cta { margin-left: 0; width: 100%; }
}

.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-heading p { margin: 2px 0 18px; color: var(--ink-soft); font-size: 14.5px; }

/* ---- week tabs ---- */
.week-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.week-tab {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}
.week-tab.active { background: var(--camo-1); color: #fff; }
.week-tab:disabled { opacity: .35; cursor: not-allowed; }
.week-nav-arrow {
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft); font-size: 17px; padding: 4px;
}

/* ---- launch card: full-width edge-to-edge rectangle, left sidebar to right sidebar ---- */
.launch-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.launch-card:hover { background: var(--bg-soft); border-color: #cac6b0; }
.launch-card.is-premium { border-left: 4px solid var(--ink); padding-left: 17px; }
.rank {
  width: 22px;
  flex: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}
.logo {
  width: 56px; height: 56px;
  border-radius: 13px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex: none;
  background: var(--bg-soft);
  font-family: var(--font-display);
}
.launch-main { flex: 1; min-width: 0; }
.launch-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.verified { color: var(--accent); font-size: 13px; }
.tagline {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 3px 0 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.tag {
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.upvote-btn {
  flex: none;
  width: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 16px;
}
.upvote-btn:hover { border-color: var(--camo-2); }
.upvote-btn .arrow { display: block; margin-bottom: 3px; }
.upvote-btn.voted { background: var(--camo-1); color: #fff; border-color: var(--camo-1); }

.sponsored-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 14px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fafaf5, #fff);
}
.sponsored-banner .label {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  font-weight: 700;
}
.sponsored-banner h3 { font-family: var(--font-display); font-size: 28px; margin: 9px 0 5px; max-width: 420px; }

.claim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.claim-slot {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px dashed #cac6b0;
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  text-align: left;
  background: var(--bg-soft);
}
.claim-slot .n {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--ink-soft);
}
.claim-slot .btn { width: auto; margin-left: auto; justify-content: center; font-size: 13.5px; padding: 10px 20px; }

/* ---- right sidebar ---- */
@property --sponsor-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.sponsor-slot-empty, .sponsor-card-filled {
  display: block;
  position: relative;
  border: 1px dashed #cac6b0;
  border-top: 3px solid var(--camo-3);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 18px;
  background: var(--bg-soft);
  text-decoration: none;
}
.sponsor-slot-empty::before, .sponsor-card-filled::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 3px);
  padding: 2px;
  background: conic-gradient(from var(--sponsor-angle), transparent 0deg, transparent 290deg, #000 330deg, #555 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sponsor-border-spin 3.2s linear infinite;
  pointer-events: none;
}
@keyframes sponsor-border-spin {
  to { --sponsor-angle: 360deg; }
}
.sponsor-slot-empty .icon, .sponsor-card-filled .icon { color: var(--camo-2); margin: 0 auto 10px; }
.sponsor-slot-empty strong, .sponsor-card-filled strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; font-family: var(--font-display); }
.sponsor-slot-empty .price { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.sponsor-card-filled .price { font-size: 13.5px; color: #000; margin-bottom: 4px; }
.sponsor-card-filled { border-style: solid; cursor: pointer; transition: border-color .15s, background .15s; }
.sponsor-card-filled:hover { border-color: var(--ink-soft); background: #f1f1f1; }

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); }
.leaderboard-item .name { font-weight: 700; font-size: 14px; }
.leaderboard-item .desc { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-item .count { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-weight: 700; font-family: var(--font-display); }

/* ---- icons ---- */
.icon { flex: none; display: inline-flex; color: currentColor; }
.nav-link .icon { color: var(--ink-soft); }
.nav-link:hover .icon, .nav-link.active .icon { color: var(--ink); }
.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  color: var(--ink-soft);
  position: relative;
}
.topbar-icon:hover { background: var(--bg-soft); color: var(--ink); }
.topbar-icon .dot {
  position: absolute;
  top: 6px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--camo-4);
  border: 1.5px solid #fff;
}
.star-icon { color: var(--accent); }

/* ---- generic page ---- */
.page { max-width: 780px; margin: 0 auto; padding: 60px 24px 110px; }
.page h1 { font-family: var(--font-display); font-size: 38px; letter-spacing: -0.02em; margin-bottom: 10px; }
.page .lead { color: var(--ink-soft); font-size: 17px; margin-bottom: 44px; }

.pricing-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 24px 40px; }
.pricing-wrap .pricing-head { text-align: center; margin-bottom: 18px; }
.pricing-wrap .pricing-head h1 { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.02em; margin-bottom: 8px; }
.pricing-wrap .pricing-head p { color: var(--ink-soft); font-size: 15.5px; margin: 0 auto; max-width: 520px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 0 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.highlight {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  transform: translateY(-8px);
  background: var(--bg-soft);
}
@media (max-width: 900px) { .plan-card.highlight { transform: none; } }

.plan-card .plan-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.plan-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
  white-space: nowrap;
}
.plan-card strong { font-size: 17px; font-weight: 700; }
.plan-card .tagline { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.plan-card .price { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin: 14px 0 2px; line-height: 1; }
.plan-card .price span { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.plan-card hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.plan-card .feature-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13.5px; color: var(--ink); flex: 1; }
.plan-card .feature-list li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; line-height: 1.4; }
.plan-card .feature-list li svg { flex: none; margin-top: 2px; color: var(--ink); }
.plan-card .feature-list li.extra { color: var(--ink-soft); font-style: normal; }
.plan-card .feature-list li.extra svg { color: var(--ink-soft); }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
}
.form-group .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.form-group input[type="file"] { padding: 9px 13px; font-size: 13.5px; background: #fff; }
.tag-input-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.upload-square, .upload-rect {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.upload-square:hover, .upload-rect:hover { border-color: var(--ink-soft); background: #f1f1f1; }
.upload-square { width: 92px; height: 92px; }
.upload-rect { width: 120px; height: 90px; }
.upload-square img, .upload-rect img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-plus { font-size: 30px; line-height: 1; color: var(--ink-soft); font-weight: 400; }
.upload-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: none;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.upload-remove:hover { background: rgba(0,0,0,.85); }
.upload-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.plan-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-choice {
  position: relative;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 16px 16px 40px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.plan-choice input { position: absolute; top: 18px; left: 16px; width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.plan-choice-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.plan-choice-sub { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.plan-choice.selected { border-color: var(--ink); background: var(--bg-soft); }
@media (max-width: 560px) { .plan-choice-grid { grid-template-columns: 1fr; } }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 9px;
}
.slot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}
.slot .n { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-soft); margin-top: 3px; }
.slot.full { background: var(--bg-soft); color: var(--ink-soft); cursor: pointer; }
.slot.full.premium-ok { background: #fff; color: var(--ink); }
.slot.selected { background: var(--camo-1); color: #fff; border-color: var(--camo-1); }

.badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}
.badge-preview .mark { width: 14px; height: 14px; }

footer {
  border-top: 1px solid var(--line);
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
}
footer a:hover { color: var(--ink); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.admin-table th { font-family: var(--font-display); font-weight: 700; color: var(--ink-soft); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.admin-table tbody tr:hover { background: var(--bg-soft); }
.admin-table a { text-decoration: underline; }
