/* ============================================================
   DASHBOARD — Agency earnings landing
   ============================================================ */

.page{ padding: 6px 8px 48px; max-width: 1320px; margin: 0 auto; }
.page-head{ margin-bottom: 26px; padding-top: 4px; }
.page-eyebrow{
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px; display:flex; align-items:center; gap:8px;
}
.page-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--grad); }
.page-title{ font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.page-title .accent{ color: var(--text-3); font-weight: 500; }

/* ---------- HERO HORIZON BAND (the signature) ---------- */
.hero-band{
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  margin-bottom: 22px;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero-band-bg{
  position: absolute; inset: 0;
  background: url('/assets/am-hero-strip.jpg') 72% 62%/cover no-repeat;
  z-index: 0;
}
.hero-band-bg::after{
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(5,5,7,0.92) 0%, rgba(5,5,7,0.55) 38%, rgba(5,5,7,0.25) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.30) 0%, rgba(5,5,7,0.20) 45%, rgba(5,5,7,0.80) 100%);
}
.hero-band-inner{
  position: relative; z-index: 1;
  padding: 30px 34px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-metric .label{
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.hero-metric .net-value{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-metric .sub-line{
  margin-top: 12px;
  display: flex; align-items: center; gap: 16px;
  font-size: 13.5px; color: var(--text-2);
  flex-wrap: wrap;
}
.hero-metric .sub-line b{ color: var(--text); font-weight: 600; }

.delta-pill{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  font-family: var(--display);
}
.delta-pill svg{ width: 13px; height: 13px; }
.delta-pill.up{ background: var(--good-dim); color: var(--good); }
.delta-pill.down{ background: var(--bad-dim); color: var(--bad); }
.delta-pill.flat{ background: var(--surface-3); color: var(--text-3); }

.hero-split{
  display: flex; flex-direction: column; gap: 8px;
}
.hero-plats{ display: flex; gap: 12px; }
.hero-plat{
  background: rgba(10,10,17,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 14px 18px;
  min-width: 150px;
}
.hero-plat .pn{
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px; display:flex; align-items:center; gap:6px;
}
.hero-plat .pn .badge{ width:7px; height:7px; border-radius:50%; }
.hero-plat .pv{ font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.hero-plat .pnet{ font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.badge.of{ background: var(--onlyfans); }
.badge.fv{ background: var(--fanvue); }

/* ---------- STAT CARD ROW ---------- */
.stat-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card{
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.stat-card:hover{ border-color: var(--line-2); transform: translateY(-2px); }
.stat-card .sc-head{
  display:flex; align-items:center; justify-content: space-between;
  margin-bottom: 16px; height: 26px;
}
.stat-card .delta-pill{ line-height: 1; }
.stat-card .sc-label{
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}
.stat-card .sc-gross{
  font-family: var(--display); font-weight: 700;
  font-size: 32px; letter-spacing: -0.03em; line-height: 1;
}
.stat-card .sc-net{
  margin-top: 8px; font-size: 13px; color: var(--text-3);
}
.stat-card .sc-net b{ color: var(--text-2); font-weight: 600; }
.stat-card .sc-foot{
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display:flex; align-items:center; justify-content: space-between;
  font-size: 12px; color: var(--text-4);
}
.stat-card.feature{
  background: var(--grad-soft);
  border-color: rgba(236,30,121,0.28);
}
.stat-card.feature .sc-gross{ background: var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* ---------- TARGET PANEL ---------- */
.target-panel .panel-head{ margin-bottom: 18px; }
.target-amount{
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, background .15s;
}
.target-amount:hover{ border-color: var(--pink); background: var(--surface-2); }
.target-amount .edit-ic{ display:inline-flex; color: var(--text-3); }
.target-amount .edit-ic svg{ width: 15px; height: 15px; }

.progress-track{
  position: relative;
  height: 14px;
  background: var(--surface-3);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill{
  position: absolute; top:0; left:0; bottom:0;
  background: var(--grad);
  border-radius: 20px;
  transition: width .6s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 20px -2px rgba(236,30,121,0.5);
}
.progress-marker{
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
}
.progress-marker::after{
  content:''; position:absolute; top:-4px; left:-3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-2);
}
.progress-legend{
  display:flex; align-items:center; justify-content: space-between;
  margin-top: 13px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; gap: 8px;
}
.progress-legend b{ font-family: var(--display); font-weight: 700; }
.progress-legend .on-track{ color: var(--good); display:inline-flex; align-items:center; gap:6px; }
.progress-legend .off-track{ color: var(--warn); display:inline-flex; align-items:center; gap:6px; }
.progress-legend svg{ width: 14px; height: 14px; }
.panel{
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.panel-head{
  display:flex; align-items:center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.panel-title{ font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.panel-sub{ font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.legend{ display:flex; gap: 16px; }
.legend span{ display:flex; align-items:center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.legend .sw{ width: 11px; height: 11px; border-radius: 3px; }

.chart-wrap{ width: 100%; position: relative; }
.chart-tip{
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface-3); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 9px 12px; font-size: 12px;
  transform: translate(-50%, -115%); white-space: nowrap;
  opacity: 0; transition: opacity .12s; box-shadow: var(--shadow);
}
.chart-tip .ct-m{ color: var(--text-3); font-size: 11px; margin-bottom: 3px; }
.chart-tip .ct-v{ font-family: var(--display); font-weight: 600; }

/* ---------- CONTEXT TILES ---------- */
.tiles{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tile{
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
}
.tile .tv{ font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.tile .tl{ font-size: 12px; color: var(--text-3); margin-top: 4px; }
.tile .tsplit{ font-size: 11.5px; color: var(--text-4); margin-top: 8px; }

/* loading / empty */
.loading-block{
  display: grid; place-items: center; min-height: 300px; color: var(--text-3);
  font-size: 14px; gap: 14px;
}
.spinner{
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--pink);
  animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.empty-hint{
  background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--r); padding: 18px 20px; color: var(--text-3);
  font-size: 13.5px; line-height: 1.6;
}
.empty-hint b{ color: var(--text-2); }

@media (max-width: 1000px){
  .stat-row{ grid-template-columns: 1fr; }
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .page{ padding: 26px 20px 50px; }
  .hero-split{ width: 100%; }
}
@media (max-width: 900px){
  .page{ padding-top: 74px; }
  .hero-band-inner{ flex-direction: column; align-items: flex-start; }
  .hero-split{ width: 100%; }
  .hero-plat{ flex: 1; }
}

/* Forecast estimate cards + avg daily tiles */
.est-card{ border-color: rgba(123,77,255,0.22); }
.avgd-row{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
.avgd-tile{
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border:1px solid var(--line); border-radius: var(--r); padding:18px 20px;
}
.avgd-label{ display:flex; align-items:center; gap:8px; font-size:12px; color: var(--text-3); font-weight:600; letter-spacing:0.03em; text-transform:uppercase; margin-bottom:10px; }
.avgd-val{ font-family: var(--display); font-weight:700; font-size:26px; letter-spacing:-0.02em; }
.avgd-per{ font-size:14px; color: var(--text-4); font-weight:600; margin-left:2px; }
.avgd-net{ font-size:12.5px; color: var(--text-3); margin-top:4px; }
@media (max-width: 760px){ .avgd-row{ grid-template-columns:1fr; } }

/* Hero date-range picker */
.hero-range-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.hero-metric .range-btn{ margin-bottom:12px; }
.range-btn{
  display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600;
  color:var(--text-2); background:rgba(255,255,255,0.06); border:1px solid var(--line-2);
  padding:6px 11px; border-radius:20px; cursor:pointer; white-space:nowrap;
}
.range-btn:hover{ background:rgba(255,255,255,0.11); color:var(--text); }
.range-btn svg{ width:13px; height:13px; }
.rp-section{ font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-4); margin:14px 0 8px; }
.rp-section:first-child{ margin-top:0; }
.rp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.rp-opt{
  background:var(--surface-2); border:1px solid var(--line); border-radius:10px;
  padding:10px 8px; font-size:12.5px; font-weight:600; color:var(--text-2); cursor:pointer; text-align:center;
}
.rp-opt:hover{ border-color:var(--pink); color:var(--text); }
.rp-opt.active{ background:var(--pink-dim); border-color:var(--pink); color:#fff; }
.rp-custom{ display:flex; align-items:center; gap:10px; }
.rp-custom input[type=date]{ background:var(--surface); border:1px solid var(--line-2); border-radius:8px; padding:9px 12px; color:var(--text); font-size:13px; }
@media (max-width:600px){ .rp-grid{ grid-template-columns:repeat(3,1fr); } .rp-custom{ flex-wrap:wrap; } }

/* Live roster vs ended collaborations split line */
.roster-split{
  display:flex; align-items:flex-start; gap:9px; margin:-6px 0 6px;
  padding:11px 15px; background:rgba(255,255,255,0.03); border:1px solid var(--line);
  border-radius:12px; font-size:12.5px; color:var(--text-3); line-height:1.5;
}
.roster-split svg{ width:15px; height:15px; flex-shrink:0; margin-top:1px; color:var(--text-4); }
.roster-split b{ color:var(--text); }

/* Per-platform split inside a forecast card */
.est-split{ display:flex; gap:14px; margin-top:8px; font-size:11.5px; color:var(--text-3); }
.est-split .badge{ margin-right:4px; }

/* 4-card stat row (last week / last month / best month / YTD) */
.stat-row-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px){ .stat-row-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .stat-row-4{ grid-template-columns: 1fr; } }
