/* Millzik+ MK2 — Sponsorship System styles. Loaded in addition to styles.css.
   Zero external dependencies. Reuses the core design tokens (--blue/--green/--gold…). */

/* ---------- section helpers ---------- */
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-narrow { max-width: 720px; }
.spon-badge { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.4); }

/* ---------- problem / solution ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-soft { border-radius: var(--radius); padding: 24px; }
.panel-problem { background: var(--error-soft); border: 1px solid #fecaca; }
.panel-solution { background: #ecfdf5; border: 1px solid #a7f3d0; }
.panel-soft h3 { margin: 0 0 12px; }
.panel-soft ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- how it works ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800;
  display: grid; place-items: center; }
.step h4 { margin: 10px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- pricing tiers ---------- */
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.price-card.popular { border-color: var(--gold); box-shadow: 0 12px 40px rgba(251,171,24,.28); }
.price-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #422006; font-weight: 800; font-size: .72rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price-ico { font-size: 1.8rem; }
.price-name { font-weight: 800; font-size: 1.05rem; margin: 6px 0 2px; }
.price-amt { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.price-amt small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.price-mst { display: inline-block; margin: 8px 0; font-size: .78rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; background: #eef2ff; color: var(--blue-700); }
.price-feats { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 7px; font-size: .88rem; }
.price-feats li { padding-left: 22px; position: relative; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- counters / stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat .num.green { color: var(--green); } .stat .num.orange { color: var(--orange); } .stat .num.gold { color: #b45309; }
.stat .lbl { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- stories ---------- */
.story-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.story-card .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; background: #eef2ff; margin-bottom: 12px; }
.story-card blockquote { margin: 0 0 10px; font-size: 1.02rem; font-weight: 600; }
.story-card .who { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit;
  font-weight: 700; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--blue); }
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 18px 16px; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ---------- dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 248px 1fr; gap: 22px; align-items: start; }
.dash-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 74px; box-shadow: var(--shadow); }
.dash-side .who { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dash-side .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dash-side .who .nm { font-weight: 800; }
.tier-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--warning-soft); color: var(--warning-strong); }
.dash-nav { display: grid; gap: 4px; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab, .dash-nav .tab { background: none; border: none; cursor: pointer; font: inherit; font-weight: 700;
  padding: 10px 14px; border-radius: 10px 10px 0 0; color: var(--muted); border-bottom: 3px solid transparent; }
.tab:hover { color: var(--ink); background: #f1f5f9; }
.tab[aria-selected="true"] { color: var(--blue-700); border-bottom-color: var(--orange); }
.dash-nav .tab { width: 100%; text-align: left; border-radius: 10px; border-bottom: none; }
.dash-nav .tab[aria-selected="true"] { background: #eef2ff; color: var(--blue-700); }
.panel[hidden] { display: none; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; }
.tl-item .date { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ---------- attendance calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 420px; }
.cal-day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.cal-day.go { background: var(--green); } .cal-day.miss { background: var(--error); } .cal-day.upcoming { background: #cbd5e1; color: #475569; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ---------- achievements / portfolio ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.badge-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.badge-card .emo { font-size: 2.2rem; }
.badge-card .bt { font-weight: 800; margin: 6px 0 2px; }
.badge-card .bd { font-size: .82rem; color: var(--muted); }
.work-card .media { aspect-ratio: 16/10; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 2rem; margin-bottom: 12px; }

/* ---------- profile hero overlay ---------- */
.profile-hero { position: relative; color: #fff; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, rgba(15,23,42,.78), rgba(36,85,166,.5)), var(--grad); padding: 36px 28px; }
.profile-hero h1 { margin: 0 0 6px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; opacity: .95; font-size: .95rem; }
.profile-photo { width: 96px; height: 96px; border-radius: 20px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 3rem; }

/* ---------- charts ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chart-card h3 { margin: 0 0 14px; font-size: 1.05rem; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bar-row { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: .88rem; }
.bar .track { background: #e2e8f0; border-radius: 999px; height: 14px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--grad); }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.table tbody tr:hover { background: #f8fafc; }

/* ---------- donate wizard ---------- */
.wsteps { list-style: none; display: flex; gap: 6px; margin: 0 0 26px; padding: 0; counter-reset: w; }
.wsteps li { flex: 1; text-align: center; color: var(--muted); font-size: .82rem; font-weight: 700; position: relative; }
.wsteps li .dot { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #64748b;
  display: grid; place-items: center; margin: 0 auto 6px; font-weight: 800; }
.wsteps li.active .dot, .wsteps li.done .dot { background: var(--blue); color: #fff; }
.wsteps li.done .dot::after { content: "✓"; }
.wstep[hidden], .wsuccess[hidden], .wnav [hidden] { display: none; }
.opt-grid { display: grid; gap: 12px; }
.opt { display: block; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 16px; transition: border-color .12s ease; }
.opt:hover { border-color: #c7d2fe; }
.opt input { margin-right: 8px; }
.opt.sel, .opt input:checked ~ * { }
.opt:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .9rem; }
.inp { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.inp:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.checks { display: grid; gap: 8px; }
.checks label { font-weight: 600; font-size: .92rem; }
.security-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: var(--muted); font-size: .85rem; }
.wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.review-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.review-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.review-box dt { color: var(--muted); }
.review-box dd { margin: 0; font-weight: 700; text-align: right; }
.note { background: #fffbeb; border: 1px solid #fde68a; color: var(--warning-strong); border-radius: 10px; padding: 10px 14px; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 700px) {
  .split, .stat-row, .badge-grid, .form-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .price-grid, .steps-row { grid-template-columns: 1fr; }
}
