/* Fees page. Colors and base components come from market.css. */

.fees-page { width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 0 60px; display: flex; flex-direction: column; gap: 22px; }

/* ---- hero ---- */
.fees-hero {
    padding: 40px 32px 34px; text-align: center;
    background: radial-gradient(620px 240px at 50% -10%, rgba(59, 130, 246, 0.22), transparent 70%), var(--bg-1);
    border: 1px solid var(--border); border-radius: 16px;
}
.fees-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.fees-hero h1 { margin: 14px 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.fees-hero p { max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.fees-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 700px; margin: 26px auto 0; }
.fees-pill { padding: 16px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.fees-pill strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.fees-pill span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.fees-pill.is-accent { border-color: rgba(59, 130, 246, 0.45); background: var(--accent-soft); }
.fees-pill.is-accent strong { color: var(--accent); }

.fees-notice { padding: 10px 14px; font-size: 13px; color: var(--orange); background: rgba(245, 166, 35, 0.08); border: 1px solid rgba(245, 166, 35, 0.35); border-radius: 10px; }

/* ---- buyers / sellers ---- */
.fees-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fees-card { padding: 22px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; }
.fees-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fees-card-head h2 { font-size: 17px; font-weight: 800; }
.fees-card-icon { width: 34px; height: 34px; display: grid; place-items: center; font-size: 14px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; }
.fees-tag { margin-left: auto; padding: 4px 10px; font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 999px; white-space: nowrap; }
.fees-tag.is-good { color: var(--green); background: rgba(31, 191, 107, 0.13); }
.fees-list { display: grid; gap: 12px; }
.fees-list li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.fees-list li i { flex-shrink: 0; margin-top: 4px; font-size: 12px; color: var(--green); }
.fees-list strong { color: var(--text); }

/* ---- sections ---- */
.fees-section { padding: 26px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; }
.fees-section-head { margin-bottom: 18px; }
.fees-section-head h2 { font-size: 19px; font-weight: 800; }
.fees-section-head p { margin-top: 4px; font-size: 13.5px; color: var(--text-muted); }
.fees-fine { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }

/* ---- calculator ---- */
.fees-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.fees-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.fees-money { position: relative; }
.fees-money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--text-muted); }
.fees-money input { width: 100%; padding: 13px 14px 13px 30px; font-size: 20px; font-weight: 700; color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; outline: none; }
.fees-money input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fees-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fees-quick button { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; transition: all 0.15s ease; }
.fees-quick button:hover { color: var(--text); border-color: var(--accent); }
.fees-error { margin-top: 10px; font-size: 12.5px; color: #ef4444; }
.fees-calc-out { padding: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.fees-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.fees-row strong { font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.fees-row strong.is-fee { color: #ff8c8c; }
.fees-row.is-total { border-bottom: 0; padding-bottom: 4px; color: var(--text); font-weight: 700; }
.fees-row.is-total strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--green); }
.fees-bar { display: flex; height: 10px; margin-top: 12px; overflow: hidden; background: var(--bg-3); border-radius: 999px; }
.fees-bar-net { background: var(--green); transition: width 0.25s ease; }
.fees-bar-fee { background: var(--accent); transition: width 0.25s ease; }
.fees-bar-key { display: flex; gap: 16px; margin-top: 9px; font-size: 11.5px; color: var(--text-muted); }
.fees-bar-key i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.fees-bar-key i.is-net { background: var(--green); }
.fees-bar-key i.is-fee { background: var(--accent); }

/* ---- when fees apply ---- */
.fees-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fees-when-card { padding: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.fees-when-card > i { font-size: 18px; color: var(--text-muted); }
.fees-when-card h3 { margin: 10px 0 5px; font-size: 14.5px; font-weight: 800; }
.fees-when-card p { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.fees-when-card.is-charged { border-color: rgba(59, 130, 246, 0.45); background: var(--accent-soft); }
.fees-when-card.is-charged > i { color: var(--accent); }
.fees-when-card.is-charged p { color: var(--text-dim); }

/* ---- escrow steps (reuses .how-step from market.css) ---- */
.fees-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fees-steps .how-step { background: var(--bg-2); }

/* ---- links ---- */
.fees-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 26px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), var(--bg-1) 70%); border: 1px solid var(--border); border-radius: 14px; }
.fees-cta h2 { font-size: 18px; font-weight: 800; }
.fees-cta p { max-width: 460px; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.fees-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fees-cta-actions .btn { padding: 11px 20px; font-size: 13.5px; }

@media (max-width: 1000px) {
    .fees-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .fees-hero { padding: 30px 18px 26px; }
    .fees-hero h1 { font-size: 27px; }
    .fees-pills { grid-template-columns: 1fr; }
    .fees-split, .fees-calc, .fees-when { grid-template-columns: 1fr; }
    .fees-section { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .fees-steps { grid-template-columns: 1fr; }
}
