/* POOLIO theme — brief §6
   Rule: one color = one meaning.
   Bubblegum #FF6FA5 = money actions ONLY (join pool, unlock, deposit).
   Lavender #B69CFF = info/secondary. Mint #7FE7C4 = success/progress.
   Cream #FFF7FA bg. Dark mode #221E33. */
:root {
  --pink: #FF6FA5;      /* money only */
  --lavender: #B69CFF;  /* info */
  --mint: #7FE7C4;      /* success/progress */
  --cream: #FFF7FA;
  --ink: #3A2E45;
  --muted: #9B8FA6;
  --card: #ffffff;
  --shadow: 0 6px 24px rgba(255, 111, 165, 0.10), 0 2px 6px rgba(58, 46, 69, 0.06);
  --radius: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #221E33; --ink: #F3EDF7; --muted: #8C8199; --card: #2C2640;
    --shadow: 0 6px 24px rgba(0,0,0,0.4);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.55;
}
h1, h2, h3, .logo { font-family: 'Quicksand', 'Nunito', sans-serif; }
a { color: var(--lavender); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.5rem;
  background: var(--card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.pippa { margin-left: 2px; }
.site-header nav { display: flex; gap: 1rem; }
.site-header nav a { color: var(--ink); font-weight: 600; }
.header-search { margin-left: auto; display: flex; gap: .5rem; }
main { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
footer { max-width: 1180px; margin: 2rem auto 3rem; padding: 0 1.5rem; }

/* trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: center;
  padding: .8rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font-weight: 600; font-size: .9rem; color: var(--muted);
}
.footer-links { text-align: center; margin-top: .8rem; font-size: .9rem; }

/* hero */
.hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero .sub { color: var(--muted); font-size: 1.1rem; }
.hero-search { display: flex; max-width: 560px; margin: 1.2rem auto 0; gap: .5rem; }
input[type="search"] {
  flex: 1; padding: .8rem 1.2rem; border: 2px solid var(--lavender);
  border-radius: 999px; font-size: 1rem; font-family: inherit;
  background: var(--card); color: var(--ink);
}

/* buttons — pink = money only */
.btn {
  border: none; border-radius: 999px; padding: .65rem 1.4rem; font-size: 1rem;
  font-family: inherit; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow); }
.btn-pink { background: var(--pink); color: #fff; }        /* money action */
.btn-mint { background: var(--mint); color: #1E4636; }     /* success */
.btn-ghost { background: var(--card); color: var(--lavender); border: 2px solid var(--lavender); }
.btn-xl { font-size: 1.15rem; padding: .85rem 1.8rem; display: inline-block; }

/* cards + grids */
.model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem;
}
.model-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .15s ease; display: block; color: var(--ink);
}
.model-card:hover { transform: translateY(-4px); text-decoration: none; }
.model-avatar, .placeholder {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--lavender); opacity: .35; }
.model-card-body { padding: .7rem .9rem 1rem; }
.model-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.chip {
  background: var(--cream); border-radius: 999px; padding: .15rem .65rem;
  font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.chip-link { display: inline-block; background: var(--lavender); color: #fff; }
.chip-status-open, .chip-status-funded { background: var(--mint); color: #1E4636; }
.chip-status-claimed, .chip-status-delivered, .chip-status-voting { background: var(--lavender); color: #fff; }
.chip-status-released { background: var(--pink); color: #fff; }

/* ticker / live pools */
.ticker h2, .grid-section h2, .how h2 { margin: 1.8rem 0 1rem; }
.live-pools { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.live-pools a {
  display: flex; align-items: center; gap: .8rem; background: var(--card);
  border-radius: var(--radius); padding: .7rem 1.1rem; box-shadow: var(--shadow); color: var(--ink);
}
.progress-mini {
  flex: 1; height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; min-width: 60px;
}
.progress-mini i { display: block; height: 100%; background: var(--mint); border-radius: 999px; }

/* how it works */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.step-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; position: relative;
}
.step-num {
  position: absolute; top: -14px; left: 1rem; background: var(--lavender); color: #fff;
  border-radius: 999px; width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; font-weight: 700;
}

/* model page */
.model-hero {
  display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem;
}
.model-avatar-lg { width: 180px; height: 180px; border-radius: var(--radius); object-fit: cover; }
.model-info { flex: 1; min-width: 260px; }
.model-preview { max-width: 320px; border-radius: var(--radius); }
.aliases .chip { background: var(--lavender); color: #fff; }

/* pager */
.pager { display: flex; gap: 1rem; justify-content: center; margin: 1.5rem 0; align-items: center; }

/* misc */
.muted { color: var(--muted); }
.error { color: var(--pink); font-weight: 700; }

/* login */
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem; width: min(360px, 90vw);
}
.login-card input {
  padding: .8rem 1.2rem; border: 2px solid var(--lavender); border-radius: 999px;
  font-size: 1rem; background: var(--card); color: var(--ink);
}

/* admin */
.admin-sections { list-style: none; padding: 0; display: grid; gap: .6rem; }
.admin-section {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.2rem;
}
.admin-link { color: var(--ink); font-weight: 700; }
.admin-wrap h2 { margin: 1.6rem 0 .6rem; }
.import-form {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem;
}
.import-form input[type="text"] {
  padding: .7rem 1rem; border: 2px solid var(--lavender); border-radius: 999px;
  font-family: monospace; background: var(--cream); color: var(--ink);
}
.import-running { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.run-log {
  background: var(--cream); border-radius: var(--radius); padding: 1rem; max-height: 300px;
  overflow: auto; font-size: .8rem; white-space: pre-wrap;
}
.run-table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius); }
.run-table th, .run-table td { text-align: left; padding: .5rem .8rem; border-bottom: 1px solid var(--lavender); }
.run-open { background: var(--mint); color: #1E4636; }
.ok-msg { color: #1E4636; background: var(--mint); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; }
