/* ==========================================================================
   NovaStar — design system (seeder.gg inspired: deep space + violet/cyan
   gradients, glass cards, glow accents). Signature component: pool meter.
   ========================================================================== */
:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --muted: #a9b2cf;
  --violet: #7c5cff;
  --cyan: #35d0ff;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4d7cff 45%, #35d0ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(53, 208, 255, 0.12));
  --green: #4ade80;
  --red: #ff6470;
  --amber: #ffc857;
  --blue: #63b3ff;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Sora", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono-num: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.62 var(--font);
  letter-spacing: 0.01em;
  position: relative;
  min-height: 100vh;
}
/* space glow backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 420px at 12% -8%, rgba(124, 92, 255, 0.20), transparent 60%),
    radial-gradient(640px 400px at 88% -12%, rgba(53, 208, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 115%, rgba(124, 92, 255, 0.10), transparent 65%);
}
/* subtle star grid */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 75%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

/* --------------------------------- header -------------------------------- */
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--grad);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.45);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar span { color: #fff; font-weight: 900; font-size: .95rem; text-transform: uppercase; }
.avatar:hover { transform: scale(1.05); box-shadow: 0 0 18px rgba(53, 208, 255, 0.55); }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 30;
}
.topbar .container { display: flex; align-items: center; gap: 1.4rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.brand { font-weight: 800; font-size: 1.24rem; letter-spacing: .12em; color: var(--text); display: flex; align-items: center; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand .nmark {
  width: 1.7rem; height: 1.7rem; display: inline-grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .95rem; font-weight: 900;
  border-radius: 8px; box-shadow: 0 0 18px rgba(124, 92, 255, 0.55);
}
nav.main { display: flex; gap: .35rem; flex-wrap: wrap; }
nav.main a {
  color: var(--muted); font-weight: 600; font-size: .92rem;
  padding: .42rem .85rem; border-radius: 999px; transition: all .15s;
}
nav.main a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
nav.main a[aria-current="page"] { color: #fff; background: var(--grad-soft); border: 1px solid rgba(124, 92, 255, 0.4); }
.spacer { flex: 1; }

/* --------------------------------- buttons ------------------------------- */
.btn {
  display: inline-block; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06);
  color: var(--text); padding: .6rem 1.2rem; font-weight: 700; font-size: 1rem;
  font-family: inherit; border-radius: 12px; transition: all .16s; cursor: pointer;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-1px); text-decoration: none; }
.btn.primary {
  background: var(--grad); color: #fff; border: none;
  box-shadow: 0 4px 22px rgba(124, 92, 255, 0.4);
}
.btn.primary:hover { box-shadow: 0 6px 30px rgba(124, 92, 255, 0.6); transform: translateY(-1px); }
.btn.danger { color: var(--red); border-color: rgba(255, 100, 112, 0.5); }
.btn.danger:hover { background: rgba(255, 100, 112, 0.1); }
.btn.small { padding: .38rem .85rem; font-size: .95rem; border-radius: 9px; }
.btn.tiny { padding: .26rem .6rem; font-size: .82rem; border-radius: 8px; font-weight: 600; }

.sound-btn { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5); }

/* ------------- song detail: seeder-style campaign hero ------------------- */
.cd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas: "id rate" "caps caps" "budget budget" "actions actions";
  column-gap: 2rem; row-gap: 1.15rem;
}
.card.cd-hero { margin: 1.4rem 0 1rem; }
.cd-hero__id { grid-area: id; display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.cd-cover {
  flex: none; width: 104px; height: 104px; border-radius: 20px; overflow: hidden;
  display: inline-flex; background: linear-gradient(135deg, #232a4d, #171a2e);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line-strong);
}
.cd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-hero__meta { min-width: 0; flex: 1 1 auto; }
.cd-hero__line { display: flex; align-items: flex-start; gap: .6rem; }
.cd-hero__line h1 {
  margin: 0; min-width: 0; overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 25%, #a78bff 65%, #35d0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-hero__artists { margin: .25rem 0 0; color: var(--muted); font-weight: 600; }
.cd-hero__meta .genre-row { margin: .45rem 0 0; }
.cstatus {
  flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.cstatus.ok { background: var(--green); color: #052e12; }
.cstatus.warn { background: var(--amber); color: #382a00; }
.cstatus.bad { background: rgba(255, 100, 112, 0.18); color: #ffb3ba; border: 1px solid rgba(255, 100, 112, 0.45); }
.cstatus.paused { background: rgba(255, 200, 87, 0.16); color: var(--amber); border: 1px solid rgba(255, 200, 87, 0.45); }
.cstatus.muted { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid var(--line); }
.cd-hero__rate { grid-area: rate; align-self: center; display: flex; flex-direction: column; gap: .3rem; }
.cd-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-rate { display: flex; align-items: center; gap: .9rem; }
.cd-rate__big { font-size: clamp(2.5rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.cd-rate__per { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cd-rate__per b { font-size: 1rem; }
.cd-rate__per span { color: var(--muted); font-size: .84rem; }
.cd-caps {
  grid-area: caps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0; padding: .95rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.cd-caps > div { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 0 .9rem; text-align: center; min-width: 0; }
.cd-caps > div + div { border-left: 1px solid var(--line); }
.cd-caps dd { margin: 0; font-family: var(--mono-num); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cd-hero__budget { grid-area: budget; display: flex; flex-direction: column; gap: .5rem; }
.cd-done { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cd-done__pct { display: flex; flex-direction: column; gap: .2rem; }
.cd-done__pct b { font-family: var(--mono-num); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.cd-done__of { color: var(--muted); font-size: .88rem; padding-bottom: .2rem; text-align: right; }
.cd-hero__actions { grid-area: actions; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cd-hero__actions .cd-go { margin-left: auto; padding: .7rem 1.7rem; }
.cd-actions__foot { flex: 1 1 100%; margin: 0; color: var(--muted); font-size: .78rem; text-align: center; }

.cd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.cd-head h2 { margin: 0; }
.cd-hint { color: var(--muted); font-size: .84rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.1rem; align-items: start; }
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .cd-hero { grid-template-columns: 1fr; grid-template-areas: "id" "rate" "caps" "budget" "actions"; row-gap: 1rem; }
  .cd-cover { width: 84px; height: 84px; border-radius: 16px; }
  .cd-hero__actions .cd-go { margin-left: 0; flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .cd-caps dd { font-size: 1.08rem; }
  .cd-caps > div { padding: 0 .5rem; }
}
.submit-panel { position: sticky; top: 84px; }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: .5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .65rem;
}
.steps li {
  counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); padding: .8rem .95rem; display: block;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .8rem;
  margin-bottom: .4rem;
}
.steps strong { display: block; margin: .1rem 0 .15rem; }
.steps span { color: var(--muted); font-size: .9rem; }
.rules { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.rules li {
  display: flex; align-items: flex-start; gap: .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); padding: .55rem .8rem;
}
.rules li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800;
  color: #0b2b16; background: var(--green);
}
.themes { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .45rem; }
.theme-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-left: 3px solid rgba(124, 92, 255, 0.6);
  border-radius: var(--radius-sm); padding: .6rem .85rem;
}
.theme-card strong { display: block; margin-bottom: .1rem; }
.theme-card span { display: block; color: var(--muted); font-size: .9rem; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .7rem; margin-top: .5rem; }
.theme-tile { display: flex; flex-direction: column; gap: .12rem; }
.theme-emoji { font-size: 1.7rem; line-height: 1.25; margin-bottom: .3rem; }
.theme-tile strong { font-size: 1.02rem; }

/* ------------------ manage: campaign action buttons ---------------------- */
.actions-cell { min-width: 300px; display: flex; flex-direction: column; gap: .35rem; }
.actions-cell .act-group { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.actions-cell .act-group form { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: 0; }
.act-input input {
  width: 88px; padding: .27rem .5rem; font-size: .8rem; text-align: right;
  font-family: var(--mono-num);
}
.actions-cell .btn.tiny { margin: 0; white-space: nowrap; }
img.brand-icon { display: inline-block; vertical-align: -3px; margin-right: 4px; border-radius: 4px; }
.btn.provider {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; margin: .45rem 0; text-align: left;
}
.btn.provider .brand-icon { width: 20px; height: 20px; margin: 0; vertical-align: middle; flex-shrink: 0; }
th .brand-icon, td .brand-icon { vertical-align: -4px; margin-right: 6px; }

/* --------------------------------- hero ---------------------------------- */
.hero { padding: 3.2rem 0 1.6rem; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 20%, #a78bff 55%, #35d0ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); max-width: 640px; margin: 0 auto 1rem; }
.stat-chips { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.chip {
  padding: .42rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: .88rem;
}
.chip strong { color: var(--text); font-family: var(--mono-num); font-weight: 700; }

/* --------------------------------- pills --------------------------------- */
.pills { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.4rem 0; }
.pills a, .pills button, .tabs a {
  padding: .5rem 1.15rem; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); font-weight: 700; font-size: .95rem; background: rgba(255, 255, 255, 0.05);
  font-family: inherit; cursor: pointer; transition: all .15s;
}
.pills a:hover, .pills button:hover, .tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.pills a[aria-current="true"], .tabs a[aria-current="true"] {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 2px 16px rgba(124, 92, 255, 0.45);
}
.pills .count { color: inherit; opacity: .75; font-size: .85em; }

/* --------------------------------- cards --------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 1rem 0;
  backdrop-filter: blur(8px);
}
.card.glow { position: relative; }
.card.danger-card {
  border-color: rgba(255, 100, 112, 0.55);
  background: rgba(255, 100, 112, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 100, 112, 0.18), 0 0 26px rgba(255, 100, 112, 0.12);
}
.card.danger-card h2 { color: var(--red); }
.card.danger-card .danger-summary { color: var(--red); font-weight: 700; }
.card h2, .card h3 { margin-top: 0; letter-spacing: -0.01em; }
.grid { display: grid; gap: 1.1rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

/* card as a link surface */
a.card { display: block; color: inherit; transition: all .18s; }
a.card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-3px); text-decoration: none; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 92, 255, 0.18); }
.grid a.card { margin: 0; }

.stat-tile { text-align: left; }
.stat-tile .stat { font-size: 1.5rem; }
.stat-flag { color: var(--amber); }

/* ------------------------------ song cards ------------------------------- */
.songcard .cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--radius) - 6px); border: 1px solid var(--line);
  background: linear-gradient(135deg, #171a2e, #232a4d);
}
.songcard h3 { margin: .7rem 0 .15rem; font-size: 1.06rem; }
.songcard .artist { color: var(--muted); margin: 0 0 .7rem; font-size: .9rem; }

/* ------------------------- signature: pool meter ------------------------- */
.poolmeter {
  --fill: 0%;
  height: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; position: relative;
}
.poolmeter > .fill {
  height: 100%; width: var(--fill); min-width: 2px;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
.poolmeter > .fill.tier-low {
  background: linear-gradient(90deg, #34d399, #86efac);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.55);
}
.poolmeter > .fill.tier-mid {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
}
.poolmeter > .fill.tier-high {
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}
.poolmeter.large { height: 16px; }
.meter-caption { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.meter-caption strong { color: var(--text); font-family: var(--mono-num); }

/* --------------------------------- badges -------------------------------- */
.badge { display: inline-block; padding: .12rem .6rem; font-size: .76rem; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--green); border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.08); }
.badge.warn { color: var(--amber); border-color: rgba(255, 200, 87, 0.45); background: rgba(255, 200, 87, 0.08); }
.badge.bad { color: var(--red); border-color: rgba(255, 100, 112, 0.45); background: rgba(255, 100, 112, 0.08); }
.badge.info { color: var(--blue); border-color: rgba(99, 179, 255, 0.45); background: rgba(99, 179, 255, 0.08); }

/* --------------------------------- tables -------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { margin: 0; }
.money { font-variant-numeric: tabular-nums; font-family: var(--mono-num); }

/* --------------------------------- forms --------------------------------- */
form .field { margin: 0 0 1.05rem; }
label { display: block; font-weight: 600; margin-bottom: .32rem; font-size: .92rem; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; background: rgba(255, 255, 255, 0.045); color: var(--text); border: 1px solid var(--line);
  padding: .6rem .8rem; border-radius: var(--radius-sm); font: 1rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
select { width: auto; min-width: 180px; cursor: pointer; }
select option, select optgroup {
  background-color: var(--bg-2); color: var(--text); font: 1rem var(--font);
}
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: #7c5cff; cursor: pointer; }
input::placeholder, textarea::placeholder { color: rgba(139, 147, 176, 0.6); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(124, 92, 255, 0.7); outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22);
}
.help { color: var(--muted); font-size: .84rem; margin-top: .28rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .5rem; }

/* --------------------------------- messages ------------------------------- */
.messages { list-style: none; margin: .8rem 0; padding: 0; }
.messages li {
  padding: .7rem 1rem; margin: .45rem 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px);
}
.messages li.success { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.07); }
.messages li.error { border-color: rgba(255, 100, 112, 0.55); background: rgba(255, 100, 112, 0.08); }
.messages li.warning { border-color: rgba(255, 200, 87, 0.5); background: rgba(255, 200, 87, 0.07); }

/* --------------------------------- stats ---------------------------------- */
.stat { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-family: var(--mono-num); }
.stat-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .2rem; }
.stat.glow { background: linear-gradient(100deg, #fff, #a78bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
.tags .badge { margin: 0; }

/* --------------------------------- cashout -------------------------------- */
.hero.slim h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.method-chips { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.dest-list { list-style: none; margin: 0; padding: 0; }
.dest-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.dest-add-form { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: .55rem; align-items: end; margin-top: .8rem; }
.dest-add-form .field { margin: 0; min-width: 0; }
.dest-add-form select, .dest-add-form input { width: 100%; min-width: 0; }
@media (max-width: 640px) {
  .dest-add-form { grid-template-columns: 1fr 1fr; }
  .dest-add-form .btn { grid-column: 1 / -1; }
}
.fold summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
.fold summary .count { color: var(--muted); font-weight: 600; }

.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .8rem; }
.method-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; background: rgba(255, 255, 255, 0.035); color: inherit;
  transition: all .16s;
}
.method-card strong { display: block; font-size: 1.18rem; margin-bottom: .3rem; letter-spacing: -0.01em; }
.method-card span { color: var(--muted); font-size: .92rem; }
.method-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line-strong); background: var(--card-hover); }
.method-card.active {
  border-color: rgba(124, 92, 255, 0.85); background: var(--grad-soft);
  box-shadow: 0 0 26px rgba(124, 92, 255, 0.3);
}

/* --------------------------------- tabs ----------------------------------- */
.tabs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 1.1rem 0 1rem; }

@media (max-width: 640px) {
  .method-cards { grid-template-columns: 1fr; }
}

/* --------------------------------- search --------------------------------- */
.searchbar { display: flex; gap: .6rem; flex-wrap: wrap; }
.searchbar input { flex: 1; min-width: 200px; }

/* compact search: a small button that opens a popover form */
.list-toolbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1.2rem 0 0; }
.search-pop { position: relative; }
.search-pop summary { list-style: none; }
.search-pop summary::-webkit-details-marker { display: none; }
.search-pop[open] summary { background: var(--grad); border-color: transparent; color: #fff; }
.search-pop-form {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  display: flex; gap: .5rem; padding: .8rem; min-width: 420px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
@media (max-width: 560px) { .search-pop-form { min-width: 260px; } }

/* --------------------------------- genres --------------------------------- */
.genre-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.genre-pill { position: relative; cursor: pointer; }
.genre-pill input { position: absolute; opacity: 0; pointer-events: none; }
.genre-pill span {
  display: inline-block; padding: .38rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .88rem;
  background: rgba(255, 255, 255, 0.03); transition: all .14s;
}
.genre-pill input:checked + span {
  background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.65);
  color: #fff; box-shadow: 0 0 12px rgba(124, 92, 255, 0.35);
}
.genre-pill input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.genre-row { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .5rem; }

/* --------------------------------- pagination ------------------------------ */
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 1.6rem 0 0; }
.pagination a, .pagination span {
  padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.pagination a:hover { color: var(--text); text-decoration: none; border-color: var(--line-strong); }
.pagination .current { background: var(--grad); border-color: transparent; color: #fff; }

footer.foot { border-top: 1px solid var(--line); margin-top: 3.4rem; padding: 1.6rem 0 2.6rem; color: var(--muted); font-size: .9rem; }
footer.foot .container { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.timeline { list-style: none; padding: 0; margin: .5rem 0; }
.timeline li { border-left: 2px solid var(--line); padding: .15rem 0 .15rem 1rem; margin-left: .35rem; position: relative; }
.timeline li::before { content: ""; width: 9px; height: 9px; background: var(--grad); border-radius: 50%; position: absolute; left: -6px; top: .55rem; box-shadow: 0 0 8px rgba(124, 92, 255, 0.7); }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding: .5rem 0 1.6rem; }
.bars .bar {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; position: relative;
  background: linear-gradient(180deg, #7c5cff, rgba(53, 208, 255, 0.35));
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.35);
}
.bars .bar span { position: absolute; bottom: -1.35rem; left: 50%; transform: translateX(-50%); font-size: .66rem; color: var(--muted); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--grad); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------------------- mobile bottom tab bar ---------------------------- */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(7, 8, 15, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
}
.tabbar a {
  flex: 1 1 0; min-width: 0; text-align: center;
  padding: 7px 2px; border-radius: 10px; border: 1px solid transparent;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s, background-color .15s;
}
.tabbar a:hover { color: var(--text); text-decoration: none; }
.tabbar a[aria-current="page"] { color: #fff; background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.45); }

@media (max-width: 720px) {
  nav.main { display: none; }
  .tabbar { display: flex; }
  footer.foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  main.container { padding-bottom: 20px; }
}

@media (max-width: 640px) {
  .topbar .container { gap: .5rem; }
  .hero { padding: 2rem 0 1rem; }
}

/* ------------------------------ landing page ----------------------------- */
.lp-hero { padding: 3.5rem 0 2rem; text-align: center; }
.lp-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .5rem; letter-spacing: -0.03em; line-height: 1.08; }
.lp-grad { background: linear-gradient(100deg, #a78bff 0%, #7c5cff 45%, #35d0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { margin: 0 auto 1.4rem; max-width: 640px; }
.lp-toggle { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.lp-side { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 220px; padding: .95rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.03); transition: all .16s; }
.lp-side:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--line-strong); color: var(--text); }
.lp-side.active { background: var(--grad-soft); border-color: rgba(124, 92, 255, 0.55); color: #fff; box-shadow: 0 0 22px rgba(124, 92, 255, 0.28); }
.lp-side strong { font-size: 1.05rem; }
.lp-side span { font-size: .84rem; opacity: .8; }
.lp-niches { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; max-width: 720px; margin: 0 auto; }
.lp-chip { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: .8rem; font-weight: 600; }

.lp-section { padding: 2.2rem 0 .6rem; }
.lp-section h2 { text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 1.2rem; }
.lp-center { text-align: center; }

.lp-steps { list-style: none; counter-reset: lps; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.lp-steps li { counter-increment: lps; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); padding: 1.1rem 1.15rem; }
.lp-steps li::before { content: counter(lps); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: .55rem; }
.lp-steps h3 { margin: .2rem 0 .3rem; font-size: 1.06rem; }
.lp-steps p { margin: 0; color: var(--muted); font-size: .92rem; }

.lp-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.lp-example { display: flex; flex-direction: column; gap: .18rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; background: rgba(255, 255, 255, 0.03); color: inherit; transition: all .16s; }
.lp-example:hover { transform: translateY(-3px); border-color: var(--line-strong); text-decoration: none; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
.lp-example-cover { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #232a4d, #171a2e); margin-bottom: .35rem; }
.lp-example-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-example strong { font-size: .98rem; }
.lp-rate { font-family: var(--mono-num); font-weight: 700; color: var(--cyan); }
.lp-rate small { color: var(--muted); font-weight: 600; }

.lp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.lp-benefit h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.lp-benefit p { margin: 0; color: var(--muted); font-size: .9rem; }

.lp-cta { margin: 2.4rem 0; padding: 2.4rem 1.4rem; text-align: center; border: 1px solid rgba(124, 92, 255, 0.4); border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(53, 208, 255, 0.1)); }
.lp-cta h2 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.lp-cta .lead { margin: 0 auto 1.1rem; max-width: 560px; }
.lp-big { padding: .85rem 1.7rem; font-size: 1.05rem; border-radius: 14px; }

.lp-compare { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-cmp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .2rem .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); align-items: center; }
.lp-cmp-row:last-child { border-bottom: 0; }
.lp-cmp-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.lp-cmp-row > span { font-weight: 700; font-size: .92rem; }
.lp-cmp-row b { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lp-cmp-row i { font-style: normal; color: var(--muted); font-size: .92rem; }
.lp-cmp-row .lp-us { color: #fff; }
.lp-cmp-row i.lp-us { color: var(--green); }

.lp-lead-card { max-width: 760px; margin: 0 auto; padding: 1.6rem 1.7rem; }
.lp-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }

@media (max-width: 720px) {
  .lp-cmp-row { grid-template-columns: 1fr; }
  .lp-cmp-row > span { color: var(--text); }
  .lp-toggle .lp-side { min-width: 100%; }
}
