/* ============ Hyrely design system ============ */
:root {
  --paper: #FAF7F1;
  --paper-2: #F3EEE4;
  --card: #FFFFFF;
  --ink: #191521;
  --ink-2: #55505F;
  --ink-3: #6E6878;
  --line: #E9E2D5;
  --accent: #FF4B2E;
  --btn: #D6371A;
  --btn-deep: #B22B10;
  --accent-soft: #FFEDE8;
  --violet: #4B3FD6;
  --violet-soft: #EDEBFC;
  --green: #0E7A55;
  --green-soft: #E2F4EC;
  --amber: #8A5600;
  --amber-soft: #FBF0DB;
  --red: #A32D20;
  --red-soft: #F9ECEA;
  --dark: #171320;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23,19,32,.06);
  --shadow-md: 0 6px 24px -8px rgba(23,19,32,.14);
  --shadow-lg: 0 18px 50px -16px rgba(23,19,32,.22);
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: var(--font-display); line-height: 1.14; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,75,46,.15);
}
label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin: 14px 0 6px; }
.req { color: var(--btn-deep); font-weight: 700; font-size: 11.5px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: var(--btn); color: #fff; border: none; border-radius: 12px;
  padding: 12px 20px; font-size: 15px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 4px 14px -4px rgba(214,55,26,.5);
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .18s; display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn.big { padding: 15px 28px; font-size: 16.5px; border-radius: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.soft { background: var(--accent-soft); color: var(--btn-deep); box-shadow: none; }
.btn.soft:hover { background: #ffdfd6; }
.btn.green { background: var(--green); box-shadow: none; }
.btn.green:hover { background: #0A6244; }
.btn.small { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn.wfull { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { font-weight: 800; font-size: 23px; letter-spacing: -.02em; flex: none; }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 20px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); border-color: var(--accent); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 9px; align-items: center; }
.nav-burger {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 19px; line-height: 1; padding: 7px 11px; color: var(--ink);
}

/* focus visibility */
.btn:focus-visible, .chip:focus-visible, .tcard:focus-visible, .tab:focus-visible,
.toggle:focus-visible, .role-opt:focus-visible, a:focus-visible, .nav-burger:focus-visible {
  outline: 3px solid var(--violet); outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 66px 0 34px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; max-width: 860px; }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 640px; margin: 20px 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; }
.cat-strip { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; }
.section-head .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--btn-deep); margin-bottom: 8px; }
.section-head p { color: var(--ink-2); max-width: 620px; margin-top: 8px; font-size: 14.5px; }
.sec-h { font-size: 20px; margin: 30px 0 12px; }
.page-head { margin: 30px 0 20px; }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); }
.page-head p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; max-width: 680px; }

/* ---------- grids & creator cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
.tcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 11px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer; position: relative;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tcard-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tcard-id { min-width: 0; }
.avatar {
  width: 50px; height: 50px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; font-family: var(--font-display);
  position: relative; overflow: hidden;
}
.avatar.lg { width: 82px; height: 82px; font-size: 30px; border-radius: 22px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tname { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thandle { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmeta { display: flex; gap: 6px; flex-wrap: wrap; }
.tskills { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tstats { display: flex; gap: 6px; flex-wrap: wrap; }
.tcard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line); }
.src-note { font-size: 11.5px; color: var(--ink-3); }
.plat-row { display: flex; gap: 7px; color: var(--ink-3); flex: none; }

.stat-pill { background: var(--paper-2); border-radius: 9px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.stat-pill b { color: var(--ink); }
.stat-pill.er { background: var(--violet-soft); color: var(--violet); }
.stat-pill.er b { color: var(--violet); }
.stat-pill.muted { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); font-weight: 500; }
.stat-pill.yt { background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.stat-pill.yt b { color: var(--green); }
.tile.verified-tile { border-color: var(--green); }
.tile.verified-tile .l { color: var(--green); display: flex; align-items: center; gap: 4px; }
.verified-line { color: var(--green); display: flex; align-items: flex-start; gap: 5px; }
.sec-sub { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-3); }

/* video list */
.vid-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.vid-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px;
  transition: box-shadow .15s, border-color .15s;
}
.vid-row:hover { box-shadow: var(--shadow-md); border-color: var(--ink-3); }
.vid-row.top { border-color: var(--green); background: var(--green-soft); }
.vid-thumb { width: 104px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; background: var(--paper-2); }
.vid-main { flex: 1 1 200px; min-width: 0; }
.vid-title { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-badge { margin-left: 7px; vertical-align: middle; }
.vid-date { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.vid-stats { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .vid-thumb { width: 76px; height: 44px; }
  .vid-stats { width: 100%; }
}

.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.cat { background: var(--paper-2); color: var(--ink-2); }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.sample { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-3); font-weight: 600; }
.badge.st-invited, .badge.st-applied { background: var(--amber-soft); color: var(--amber); }
.badge.st-accepted { background: var(--green-soft); color: var(--green); }
.badge.st-discussing { background: var(--violet-soft); color: var(--violet); }
.badge.st-declined { background: var(--red-soft); color: var(--red); }
.icn { vertical-align: -0.15em; flex: none; }

/* ---------- filters ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.filters input, .filters select { width: auto; padding: 9px 12px; font-size: 14px; }
.filters .search { flex: 1 1 220px; min-width: 0; }
.result-count { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }

/* ---------- profile ---------- */
.profile-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start;
  margin-top: 26px;
}
.profile-hero .info { flex: 1 1 300px; min-width: 0; }
.profile-hero h1 { font-size: clamp(24px, 3.4vw, 32px); }
.badge-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0; }
.links-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 10px; }
.ig-link { color: var(--violet); font-weight: 600; font-size: 13.5px; }
.ig-link:hover { text-decoration: underline; }
.profile-hero .bio { color: var(--ink-2); max-width: 560px; font-size: 14.5px; }
.profile-hero .topics { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 1 250px; min-width: 220px; }
.rate-card { background: var(--paper-2); border-radius: 13px; padding: 13px 15px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.muted-box { background: var(--paper-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-3); }

/* notices */
.notice { background: var(--violet-soft); border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--ink-2); margin: 18px 0; line-height: 1.55; }
.notice.warn { background: var(--amber-soft); color: #6B4400; }
.src-line { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 4px; line-height: 1.55; }
.ok-text { color: var(--green); }
.warn-text { color: var(--amber); }
.brief-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.tile .v { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.tile .l { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.tile.hero-tile { background: var(--dark); color: #fff; border-color: var(--dark); }
.tile.hero-tile .l { color: #B9B3C6; }

/* ---------- charts ---------- */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.chart-card h3 { font-size: 16.5px; }
.chart-card .sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 14px; }
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { max-width: 100%; height: auto; }
.bar { fill: var(--violet); transition: opacity .12s; cursor: pointer; }
.bar:hover { opacity: .75; }
.bar.best { fill: var(--accent); }
.axis-label { font-size: 11px; fill: var(--ink-3); font-family: var(--font-body); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.chart-tip {
  position: fixed; z-index: 200; background: var(--dark); color: #fff;
  border-radius: 10px; padding: 8px 12px; font-size: 12.5px; pointer-events: none;
  box-shadow: var(--shadow-lg); max-width: 230px; line-height: 1.5;
}
.chart-tip b { color: #FFB4A4; }

/* ---------- why cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .18s, box-shadow .18s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--btn-deep);
}
.why-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- forms ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; max-width: 520px; margin: 34px auto; box-shadow: var(--shadow-md);
}
.form-card.wide { max-width: 760px; }
.form-card h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 6px; }
.form-card .sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 4px; }
.role-opt { border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: all .15s; }
.role-opt:hover { border-color: var(--ink-3); }
.role-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.role-opt b { display: block; margin-bottom: 3px; font-size: 15px; }
.role-opt span { font-size: 12.5px; color: var(--ink-2); }
.form-err { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-top: 14px; display: none; }
.form-err.show { display: block; }
.linkish { color: var(--btn-deep); font-weight: 600; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.alt-line { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; text-align: center; }
.inline-form { width: 100%; background: var(--paper-2); border-radius: 12px; padding: 14px; margin-top: 12px; }
.inline-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quote-in { width: 130px; padding: 8px 11px; font-size: 13px; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 6px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(24px, 3.6vw, 30px); }
.dash-id { display: flex; gap: 13px; align-items: center; min-width: 0; }
.sub-line { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.tabs {
  display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin: 20px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: none; background: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  white-space: nowrap; flex: none;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--btn-deep); border-color: var(--accent); }
.tab-intro { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }

.list-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  transition: box-shadow .15s;
}
.list-card:hover { box-shadow: var(--shadow-md); }
.list-card.clickable { cursor: pointer; }
.list-card.compact { padding: 12px 14px; }
.list-card.accent { background: var(--green-soft); border-color: var(--green); }
.list-card .main { flex: 1 1 260px; min-width: 0; }
.list-card .t { font-weight: 700; font-size: 15.5px; }
.list-card .by { color: var(--ink-3); font-weight: 500; }
.list-card .s { font-size: 13px; color: var(--ink-2); margin-top: 3px; word-break: break-word; }
.list-card .s.pitch { font-style: italic; color: var(--ink-3); margin-top: 6px; }
.list-card .meta-line { margin-top: 6px; }
.list-card .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reason { width: 100%; font-size: 12.5px; color: var(--amber); background: var(--amber-soft); border-radius: 9px; padding: 7px 11px; }
.post-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.chat-holder, .apply-slot, .deliver-slot { width: 100%; }

.empty {
  text-align: center; padding: 48px 20px; color: var(--ink-3); font-size: 14.5px;
  background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius);
}
.empty .big-ico { display: block; margin-bottom: 12px; color: var(--ink-3); }

/* ---------- chat ---------- */
.chat-box { background: var(--paper-2); border-radius: 13px; padding: 12px; margin-top: 12px; width: 100%; }
.chat-msgs { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 4px; }
.msg { max-width: 85%; border-radius: 13px; padding: 9px 13px; font-size: 13.5px; background: var(--card); box-shadow: var(--shadow-sm); word-break: break-word; }
.msg .who { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.msg.mine { align-self: flex-end; background: var(--dark); color: #fff; }
.msg.mine .who { color: #B9B3C6; }
.msg.system { align-self: center; background: transparent; box-shadow: none; color: var(--ink-3); font-size: 12.5px; text-align: center; max-width: 100%; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; min-width: 0; }

/* ---------- campaign builder ---------- */
.stepper { display: flex; gap: 8px; align-items: center; margin: 26px 0 20px; font-size: 13px; font-weight: 600; color: var(--ink-3); flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 7px; }
.stepper .n { width: 25px; height: 25px; border-radius: 8px; background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; }
.stepper .st.on { color: var(--ink); }
.stepper .st.on .n { background: var(--accent); color: #fff; }
.stepper .sep { width: 22px; height: 1.5px; background: var(--line); }
.pick-card .picker {
  position: absolute; top: 12px; right: 12px; width: 25px; height: 25px; border-radius: 8px;
  border: 2px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all .15s;
}
.pick-card.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,75,46,.14); }
.pick-card.picked .picker { background: var(--accent); border-color: var(--accent); color: #fff; }
.cart-bar {
  position: sticky; bottom: 14px; z-index: 40; background: var(--dark); color: #fff;
  border-radius: 15px; padding: 13px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); margin-top: 20px; flex-wrap: wrap;
}
.cart-bar .info { flex: 1 1 160px; font-size: 14px; }
.cart-bar b { color: #FFB4A4; }
.summary { margin-top: 14px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total { font-weight: 800; font-size: 16px; border: none; }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--dark); color: #fff; border-radius: 12px; padding: 12px 18px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; text-align: center; }
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

/* ---------- footer ---------- */
footer { background: var(--dark); color: #B9B3C6; margin-top: 70px; padding: 46px 0 28px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 11px; }
footer p { font-size: 13.5px; margin-top: 10px; max-width: 300px; }
footer a, footer span { display: block; font-size: 13.5px; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .fine { border-top: 1px solid #2A2438; margin-top: 32px; padding-top: 18px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.fade-in { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* ============ RESPONSIVE ============ */

/* Laptop / small desktop */
@media (max-width: 1100px) {
  .container { padding: 0 18px; }
  .grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Tablet */
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 14px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid var(--line); border-left: none; }
  .nav-in { gap: 12px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .profile-hero { padding: 22px; }
  .profile-actions { flex: 1 1 100%; min-width: 0; }
  section.block { padding: 44px 0; }
  .hero { padding: 48px 0 28px; }
}

/* Large phone / small tablet */
@media (max-width: 700px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .role-pick { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 22px; border-radius: 16px; margin: 24px auto; }
  .filters { padding: 10px; }
  .filters input, .filters select { width: 100%; flex: 1 1 100%; }
  .list-card { padding: 14px; gap: 10px; }
  .list-card .main { flex: 1 1 100%; }
  .list-card .actions { width: 100%; }
  .list-card .actions .btn { flex: 1 1 auto; }
  .quote-in { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .dash-head { align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .logo { font-size: 20px; }
  .nav-cta .btn.small { padding: 7px 10px; font-size: 12px; }
  .nav-links { top: 60px; }
  .nav-in { height: 60px; }
  .hero { padding: 36px 0 22px; }
  .hero-ctas .btn { width: 100%; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 13px; }
  .btn.big { padding: 14px 20px; font-size: 15.5px; width: 100%; }
  .cart-bar { padding: 12px 14px; bottom: 10px; }
  .cart-bar .btn { flex: 1 1 auto; }
  .chat-msgs { max-height: 240px; }
  .msg { max-width: 92%; }
  .stepper { font-size: 12px; gap: 6px; }
  .stepper .sep { width: 12px; }
  footer { padding: 36px 0 22px; }
  footer .cols { grid-template-columns: 1fr; gap: 20px; }
  .avatar.lg { width: 66px; height: 66px; font-size: 24px; }
  .empty { padding: 34px 14px; }
  .post-row .btn { width: 100%; }
}

/* sub-labels inside grouped fields */
.sub-label { margin-top: 0; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.vid-thumb.ig { width: 62px; height: 62px; border-radius: 10px; }
@media (max-width: 700px) { .vid-thumb.ig { width: 52px; height: 52px; } }

/* ---------- fluid bar chart (always fills its container) ---------- */
.bchart { display: flex; gap: 10px; align-items: stretch; width: 100%; }
.bchart-yaxis {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 11px; color: var(--ink-3); text-align: right;
  flex: none; width: 46px; height: 230px; padding-bottom: 30px;
}
.bchart-plot { flex: 1; min-width: 0; position: relative; height: 230px; }
.bchart-grid { position: absolute; inset: 0 0 30px 0; display: flex; flex-direction: column; justify-content: space-between; }
.bchart-grid i { display: block; height: 1px; background: var(--line); }
.bchart-bars { position: absolute; inset: 0; display: flex; gap: 2%; align-items: flex-end; }
.bchart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.bchart-track { flex: 1; display: flex; align-items: flex-end; }
.bchart-bar {
  width: 100%; background: var(--violet); border-radius: 5px 5px 0 0;
  position: relative; transition: opacity .12s, transform .12s;
  min-height: 3px;
}
.bchart-col:hover .bchart-bar { opacity: .8; }
.bchart-bar.best { background: var(--accent); }
.bchart-val {
  position: absolute; top: -17px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.bchart-bar.best .bchart-val { color: var(--btn-deep); }
.bchart-lbl {
  height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--ink-3); text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .bchart-yaxis, .bchart-plot { height: 190px; }
  .bchart-val { font-size: 9px; top: -15px; }
  .bchart-lbl { font-size: 9px; }
}

/* ---------- platform tabs on creator profile ---------- */
.plat-tabs { display: flex; gap: 6px; margin: 26px 0 4px; border-bottom: 1.5px solid var(--line); flex-wrap: wrap; }
.plat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  border: none; background: none; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
}
.plat-tab:hover { color: var(--ink); }
.plat-tab.on { color: var(--btn-deep); border-color: var(--accent); }
.plat-tab .cnt { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.plat-panel[hidden] { display: none; }

/* ---------- quality score ---------- */
.qscore { display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.qscore-num { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; }
.qscore-num small { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.qscore-grade { font-size: 13px; font-weight: 700; margin-top: 4px; }
.qscore-factors { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.qfactor { display: flex; gap: 10px; align-items: baseline; font-size: 13px; flex-wrap: wrap; }
.qfactor .qf-label { font-weight: 600; min-width: 150px; }
.qfactor .qf-verdict { color: var(--ink-2); flex: 1 1 180px; }
.qfactor .qf-pts { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qfactor.good .qf-label { color: var(--green); }
.qfactor.bad .qf-label { color: var(--amber); }

/* ---------- chat: unread + optimistic ---------- */
.nav-dash { position: relative; }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.unread-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
}
.msg.pending { opacity: 0.55; }
.chat-msgs { scroll-behavior: smooth; }

/* ---------- estimated value pill ---------- */
.val-card {
  background: var(--paper-2); border-radius: 13px; padding: 13px 15px; font-size: 13px; color: var(--ink-2);
}
.val-card .amt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); display: block; margin: 2px 0; }
.val-card small { color: var(--ink-3); }
.tcard-val { font-size: 12px; color: var(--ink-2); font-weight: 600; }
