:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #132031;
  --text-soft: #5d6a7d;
  --border: #deebf5;
  --accent: #33f7ea;
  --accent-deep: #009f93;
  --warn: #ffe9d7;
  --keep: #dcfff7;
  --review: #fff4dc;
  --unfollow: #ffe9ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Geist", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 0% -10%, rgba(51, 247, 234, 0.22), transparent 65%),
    radial-gradient(900px 540px at 100% 0%, rgba(157, 208, 255, 0.18), transparent 65%),
    var(--bg);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(45px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: rgba(51, 247, 234, 0.25);
  top: -90px;
  left: -110px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: rgba(94, 171, 255, 0.22);
  top: 60px;
  right: -90px;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 44px;
  position: relative;
  z-index: 1;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.07);
  margin-bottom: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 50px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.69) 0%, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0.69) 100%),
    url("./assets/instagram-background.png");
  background-size: cover;
  background-position: center center;
  border-color: rgba(62, 211, 218, 0.28);
  animation: heroBgDrift 28s ease-in-out infinite;
  transition: transform 280ms ease, box-shadow 280ms ease;
  will-change: transform, box-shadow, background-position;
}

.hero:hover {
  transform: translateY(-2px) scale(1.0025);
  box-shadow:
    0 16px 30px rgba(17, 34, 60, 0.12),
    0 0 18px rgba(216, 153, 236, 0.17);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 220px at 70% 10%, rgba(51, 247, 234, 0.14), transparent 65%);
  pointer-events: none;
  transform-origin: center center;
  animation: heroAuraPulse 7.4s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(14px, 1.5vw, 24px);
  letter-spacing: 0.01em;
}

.hero .subtle {
  margin: 8px auto 0;
  max-width: 780px;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.35;
}

.hero-product-label {
  position: absolute;
  top: 14px;
  left: 18px;
  margin: 0;
  z-index: 2;
}

.hero-console-label {
  margin: 0;
  color: #132031;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  text-shadow:
    0 0 8px rgba(226, 166, 240, 0.28),
    0 4px 14px rgba(255, 255, 255, 0.55);
  animation: heroTitleShimmer 5.8s ease-in-out infinite;
  transition: transform 220ms ease;
}

.hero:hover .hero-console-label {
  transform: translateY(-1px);
}

.hero-subhero {
  font-style: italic;
}

@keyframes heroBgDrift {
  0%, 100% { background-position: 50% 50%; }
  50% { background-position: 52% 49%; }
}

@keyframes heroAuraPulse {
  0%, 100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes heroTitleShimmer {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(226, 166, 240, 0.28),
      0 4px 14px rgba(255, 255, 255, 0.55);
  }
  50% {
    text-shadow:
      0 0 13px rgba(226, 166, 240, 0.44),
      0 6px 18px rgba(255, 255, 255, 0.68);
  }
}

.commerce-card {
  border-color: rgba(51, 247, 234, 0.24);
  background:
    linear-gradient(145deg, rgba(51, 247, 234, 0.09), rgba(255, 255, 255, 0.92) 36%),
    var(--surface);
}

.commerce-head {
  margin-bottom: 10px;
}

.commerce-head h2 {
  margin-top: 0;
}

.access-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.access-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c6d8e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #eef6ff;
  color: #244569;
}

.access-pill.founders {
  background: #defbf8;
  border-color: #a9ebe4;
  color: #0e756c;
}

.access-pill.credits {
  background: #ecf4ff;
  border-color: #c6dbff;
  color: #22507f;
}

.access-pill.none {
  background: #f2f6fb;
  border-color: #d9e5f0;
  color: #4a5f78;
}

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

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

.access-state-grid.single-layout {
  grid-template-columns: minmax(0, 1fr);
}

.access-detail {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.founders-art {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.75) 8%, rgba(255, 255, 255, 0.58) 45%, rgba(255, 255, 255, 0.72) 100%),
    url("./assets/instagram-background.png");
  background-size: cover;
  background-position: center;
  animation: foundersPanelFloat 7.2s ease-in-out infinite, foundersBgDrift 24s ease-in-out infinite;
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform, box-shadow, background-position;
}

.founders-art:hover {
  transform: translateY(-2px) scale(1.003);
  box-shadow:
    0 16px 30px rgba(17, 34, 60, 0.12),
    0 0 20px rgba(216, 153, 236, 0.2);
}

.founders-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 210px at 72% 18%, rgba(51, 247, 234, 0.22), transparent 65%);
  pointer-events: none;
  transform-origin: center center;
  animation: foundersAuraPulse 6.4s ease-in-out infinite;
}

.founders-art-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  max-width: 32ch;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #0c2d46;
  font-weight: 800;
  text-wrap: balance;
  text-shadow:
    0 0 12px rgba(226, 166, 240, 0.42),
    0 0 26px rgba(214, 153, 236, 0.28),
    0 6px 24px rgba(255, 255, 255, 0.64);
  animation: foundersTextShimmer 5.3s ease-in-out infinite;
  transition: transform 220ms ease;
}

.founders-art:hover .founders-art-copy {
  transform: translateY(-1px);
}

@keyframes foundersPanelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes foundersBgDrift {
  0%, 100% { background-position: 50% 50%; }
  50% { background-position: 52% 48%; }
}

@keyframes foundersAuraPulse {
  0%, 100% {
    opacity: 0.74;
    transform: scale(1);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.03);
  }
}

@keyframes foundersTextShimmer {
  0%, 100% {
    text-shadow:
      0 0 12px rgba(226, 166, 240, 0.42),
      0 0 26px rgba(214, 153, 236, 0.28),
      0 6px 24px rgba(255, 255, 255, 0.64);
  }
  50% {
    text-shadow:
      0 0 16px rgba(226, 166, 240, 0.56),
      0 0 32px rgba(214, 153, 236, 0.38),
      0 8px 28px rgba(255, 255, 255, 0.74);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero::after,
  .hero-console-label,
  .founders-art,
  .founders-art::after,
  .founders-art-copy {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.detail-title {
  margin: 0 0 10px;
  font-size: 22px;
  color: #11223c;
}

.offer {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.offer-tag {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
}

.offer-price {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #11223c;
}

.offer-note {
  margin: 8px 0 12px;
  color: var(--text-soft);
}

.offer-list {
  margin: 0 0 8px 18px;
  padding: 0;
  color: var(--text-soft);
}

.offer-list li {
  margin: 0 0 4px;
}

.offer-meta {
  margin: 6px 0;
  color: var(--text-soft);
  font-size: 13px;
}

.run-credit-note {
  margin-top: 24px;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}

.offer-btn.compact {
  min-height: 36px;
  font-size: 14px;
}

.offer-btn.primary-link {
  background: linear-gradient(180deg, #4dfbee 0%, var(--accent) 100%);
  border-color: rgba(51, 247, 234, 0.45);
  color: #0e4f49;
}

.offer-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

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

.run-pack {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.run-pack.popular {
  border-color: rgba(51, 247, 234, 0.5);
  box-shadow: 0 8px 14px rgba(51, 247, 234, 0.14);
}

.run-pack.best {
  border-color: rgba(0, 159, 147, 0.42);
}

.pack-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  font-weight: 700;
}

.pack-price {
  margin: 4px 0;
  font-size: 30px;
  font-weight: 800;
  color: #11223c;
}

.pack-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
}

.subtle {
  margin: 0;
  color: var(--text-soft);
}

h2 {
  margin: 12px 0 10px;
  font-size: 18px;
}

.grid-upload {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.grid-userlists {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field small {
  color: var(--text-soft);
  font-size: 12px;
}

.info-dot {
  min-height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 159, 147, 0.2);
  color: #0c7f74;
  background: rgba(51, 247, 234, 0.14);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.info-dot:hover {
  transform: none;
  box-shadow: none;
}

.rules-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.primary {
  background: linear-gradient(180deg, #4dfbee 0%, var(--accent) 100%);
  border-color: rgba(51, 247, 234, 0.45);
  color: #0e4f49;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.button-row.wrap {
  flex-wrap: wrap;
}

.status {
  margin: 10px 0 0;
  color: var(--text-soft);
  min-height: 20px;
}

.status.error {
  color: #9f2931;
}

.stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 10px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.stat .label {
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 4px;
}

.stat .value {
  font-size: 24px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 8px 0 12px;
}

.inline-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.inline-field > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.inline-field.grow {
  flex: 1;
}

.selection-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.inline-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.hotkey-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(51, 247, 234, 0.45);
  background: linear-gradient(180deg, rgba(77, 251, 238, 0.24) 0%, rgba(42, 215, 203, 0.24) 100%);
  color: #0e4f49;
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  max-height: 62vh;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f2f8ff;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 var(--border);
}

thead {
  position: relative;
  z-index: 12;
}

.th-action {
  white-space: nowrap;
}

.th-sort-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.th-sort-btn::after {
  content: "↕";
  font-size: 11px;
  opacity: 0.64;
}

.th-sort-btn.active::after {
  content: "↓";
  opacity: 0.9;
}

.th-sort-btn:hover,
.th-sort-btn:focus-visible {
  color: #1c466f;
}

tr:hover td {
  background: #fafdff;
}

.row-done td {
  opacity: 0.56;
}

.w-checkbox {
  width: 42px;
}

.badge {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 9px;
  font-weight: 700;
}

.badge.keep {
  background: var(--keep);
  color: #0f7d66;
  border-color: #bcebdc;
}

.badge.review {
  background: var(--review);
  color: #8a5f07;
  border-color: #f2d9a8;
}

.badge.unfollow {
  background: var(--unfollow);
  color: #9f2931;
  border-color: #f2b6c0;
}

.profile-link {
  color: #0b66c3;
  text-decoration: none;
  font-weight: 600;
}

.profile-link:hover {
  text-decoration: underline;
}

.done-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f7d66;
  background: #e3fff4;
  border: 1px solid #bcebdc;
}

.action-select {
  min-width: 148px;
}

.note-input {
  min-width: 180px;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 56px;
  }

  .hero-product-label {
    top: 12px;
    left: 14px;
    font-size: 11px;
  }

  .hero-console-label {
    font-size: clamp(20px, 7vw, 30px);
    line-height: 1.12;
  }

  .commerce-grid,
  .access-state-grid,
  .grid-upload,
  .grid-userlists,
  .grid-rules,
  .stats {
    grid-template-columns: 1fr;
  }

  .founders-art {
    min-height: 220px;
  }

  .founders-art-copy {
    font-size: clamp(22px, 6vw, 30px);
  }

  .run-pack-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .selection-meta {
    width: 100%;
    margin-left: 0;
  }
}
