/* Shared styles for the self-serve tools (valuation.html, upgrade.html). Builds on styles.css tokens. */
.tool { padding: 34px 0 90px; }
.tool .wrap { max-width: 1080px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; }
.tcard + .tcard { margin-top: 18px; }
.tcard h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.tcard .tsub { font-size: .86rem; color: var(--ink-soft); margin-bottom: 18px; line-height: 1.5; }
.tfield { margin-bottom: 16px; position: relative; }
.tfield label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tfield label span { font-weight: 500; color: var(--ink-soft); }
.tfield input, .tfield select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink); }
.tfield input:focus, .tfield select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(181,148,90,.15); }
.tfield .money { position: relative; }
.tfield .money::before { content: '$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-soft); pointer-events: none; }
.tfield .money input { padding-left: 28px; }
.tfield .hint { font-size: .76rem; color: var(--ink-soft); margin-top: 5px; line-height: 1.45; }
.trow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg2 { display: flex; gap: 6px; flex-wrap: wrap; }
.seg2 button { flex: 1 1 auto; height: 42px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: .93rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.tbtn--gold { background: var(--gold); color: #fff; }
.tbtn--gold:hover { background: var(--gold-deep); }
.tbtn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.tbtn--ghost:hover { border-color: #fff; }
.tbtn--block { width: 100%; }
/* autocomplete */
.ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 4px; max-height: 300px; overflow: auto; box-shadow: 0 14px 34px rgba(10,31,68,.12); }
.ac[hidden] { display: none; }
.ac button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.ac button:hover, .ac button.on { background: var(--paper); }
.ac button small { color: var(--ink-soft); font-size: .76rem; white-space: nowrap; }
/* result panel */
.tres { background: var(--navy); color: #fff; border-radius: 22px; padding: 28px 26px; }
.tres[hidden] { display: none; }
.tres .lbl { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tres .big { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 2.7rem); font-weight: 800; color: var(--gold); letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
.tres .cap { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.tres .kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; font-size: .88rem; margin: 18px 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.tres .kv span { color: rgba(255,255,255,.65); }
.tres .kv b { text-align: right; font-weight: 700; white-space: nowrap; }
.tres .kv .sub { color: rgba(255,255,255,.45); font-size: .78rem; }
.tres .kv .neg { color: #f0a08a; }
.tres .kv .pos { color: #8fd6a8; }
.tres .kv .tot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 9px; }
.tres .note { font-size: .74rem; color: rgba(255,255,255,.5); line-height: 1.55; margin-top: 14px; }
.tres .actions { display: grid; gap: 10px; margin-top: 18px; }
.basis { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(181,148,90,.2); color: var(--gold); margin-top: 8px; }
/* tables */
.ttable { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: 6px; }
.ttable th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 8px 6px; border-bottom: 1.5px solid var(--line); }
.ttable td { padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ttable td.r, .ttable th.r { text-align: right; }
.ttable tr.mine td { background: rgba(181,148,90,.1); }
.twrap { overflow-x: auto; }
.trend { margin-top: 10px; }
.trend svg { width: 100%; height: auto; display: block; }
.flagbox { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.5; background: #fff7e8; border: 1px solid #efd9a8; color: #5a4310; }
.flagbox.bad { background: #fdeeea; border-color: #f2c4b6; color: #7a2a17; }
.flagbox.good { background: #ebf7ef; border-color: #bfe3cb; color: #1d5b33; }
/* compare columns */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cmp > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px; }
.cmp > div.best { border-color: var(--gold); }
.cmp h3 { font-family: inherit; font-size: .92rem; letter-spacing: 0; margin-bottom: 2px; }
.cmp .p { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--gold); letter-spacing: -0.02em; }
.cmp .kv { margin: 10px 0 0; padding: 10px 0 0; border-bottom: 0; font-size: .8rem; gap: 6px 10px; }
.steps { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.steps a { font-size: .8rem; font-weight: 700; color: var(--gold-deep); text-decoration: none; }
@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tcard, .tres { padding: 22px 18px; border-radius: 18px; }
  .trow { grid-template-columns: 1fr; gap: 0; }
}

/* MOP countdown */
.mopbar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; margin: 18px 0 8px; }
.mopbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: inherit; transition: width .6s var(--ease); }
.mopcount { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.75); }
.mopcount b { color: #fff; font-size: 1.15rem; }
.mtl { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.mtl::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.mtl li { position: relative; padding: 0 0 18px 30px; }
.mtl li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.mtl li.key::before { background: var(--gold); }
.mtl li.warn::before { border-color: #c2563a; background: #fdeeea; }
.mtl li.past { opacity: .5; }
.mtl li.past::before { background: var(--line); border-color: var(--line); }
.mtl .when { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); }
.mtl li.warn .when { color: #c2563a; }
.mtl .what b { display: block; font-size: .95rem; margin: 2px 0 2px; }
.mtl .what span { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.mtl a { color: var(--gold-deep); font-weight: 700; }
.tres button.tbtn { font-family: inherit; }
