/* TERA OPTIONS — Verified prices page. Builds on auth.css and receipt.css. */
.vp-card .rc-title { display: block; }
.vp-lead { margin: 10px 0 0; color: var(--c-text-2); font-size: var(--fs-md); line-height: 1.6; max-width: 62ch; }
.vp-h2 { margin: 32px 0 12px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.vp-note, .vp-small { margin: 0 0 14px; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.6; }
.vp-small { margin: 14px 0 0; color: var(--c-text-3); font-size: var(--fs-xs); }

.vp-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vp-steps li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: rgba(7, 17, 31, 0.5); }
.vp-steps b { display: block; font-size: var(--fs-sm); margin-bottom: 4px; }
.vp-steps p { margin: 0; font-size: 12.5px; color: var(--c-text-2); line-height: 1.55; }
.vp-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--c-accent); }

.vp-now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-code { padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: rgba(7, 17, 31, 0.5); display: grid; gap: 6px; min-width: 0; }
.vp-code-k { font-size: var(--fs-xs); font-weight: 600; color: var(--c-cyan); }
.vp-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--c-text); overflow-wrap: anywhere; line-height: 1.5; }
.vp-code small { font-size: 12px; color: var(--c-text-3); }
.vp-loading { display: flex; align-items: center; gap: 10px; color: var(--c-text-2); font-size: var(--fs-sm); padding: 12px 0; }

.vp-hours { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-md); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.vp-hours li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "when tag btn"; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--c-border); }
.vp-when { grid-area: when; min-width: 0; }
.vp-hours .vp-tag { grid-area: tag; }
.vp-hours .btn { grid-area: btn; min-width: 72px; justify-content: center; }
.vp-more { display: none; }
.vp-hours li:first-child { border-top: 0; }
.vp-hours b { display: block; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.vp-hours small { font-size: 12px; color: var(--c-text-3); }
.vp-empty { color: var(--c-text-3); font-size: var(--fs-sm); }
.vp-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(148, 163, 184, 0.12); color: var(--c-text-2); white-space: nowrap; }
.vp-tag.ok { background: rgba(34, 179, 154, 0.14); color: #2fc1b2; }
.vp-tag.live { background: var(--c-cyan-soft); color: var(--c-cyan); }

.vp-result { margin-top: 14px; }
.vp-verdict { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--c-border); background: rgba(7, 17, 31, 0.5); }
.vp-verdict b { font-size: var(--fs-md); }
.vp-verdict span { font-size: var(--fs-sm); color: var(--c-text-2); }
.vp-verdict.ok { border-color: rgba(47, 193, 178, 0.35); background: rgba(38, 166, 154, 0.08); }
.vp-verdict.ok b { color: #2fc1b2; }
.vp-verdict.bad { border-color: rgba(240, 82, 90, 0.45); background: rgba(240, 82, 90, 0.07); }
.vp-verdict.bad b { color: #ff7c80; }
.vp-checks { grid-template-columns: 1fr; margin: 10px 0; }
.vp-checks li { padding: 10px 14px; }

.vp-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.vp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vp-table caption { text-align: left; padding: 10px 14px; font-size: var(--fs-xs); color: var(--c-text-3); }
.vp-table th, .vp-table td { padding: 7px 14px; text-align: right; border-top: 1px solid var(--c-border); white-space: nowrap; }
.vp-table th[scope="row"], .vp-table thead th:first-child { text-align: left; font-weight: 500; }
/* the market names stay in view while the prices scroll sideways on a phone */
.vp-table th[scope="row"] { position: sticky; left: 0; background: #0c192b; }
.vp-table thead th { color: var(--c-text-3); font-weight: 500; font-size: 11.5px; }
.vp-table td.up { color: #2fc1b2; }
.vp-table td.down { color: #ff7c80; }
.vp-otc { font-size: 11px; color: var(--c-text-3); }

.vp-proves ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--c-text-2); line-height: 1.6; }
.vp-proves b { color: var(--c-text); }
.vp-card .rc-how { margin-top: 24px; }

@media (max-width: 680px) {
  .vp-steps, .vp-now-grid { grid-template-columns: 1fr; }
  .vp-steps li { padding: 14px 12px; }
  .vp-h2 { margin-top: 28px; }
  /* the hours list grows with the page (no box that scrolls inside the page) and starts with the latest few */
  .vp-hours { max-height: none; overflow: visible; }
  .vp-hours:not(.is-all) li:nth-child(n+7) { display: none; }
  .vp-more {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 16px;
    border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); background: transparent; color: var(--c-cyan);
    font: 600 var(--fs-sm) var(--font-sans); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .vp-more[hidden] { display: none; }
  .vp-more:active { background: var(--c-cyan-soft); }
  .vp-table th, .vp-table td { padding: 8px 12px; }
}
/* narrow phones: the status tag goes under the hour, so the time never wraps and the button keeps its size */
@media (max-width: 480px) {
  .vp-hours li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when btn" "tag btn"; gap: 6px 12px; padding: 12px; }
  .vp-hours .vp-tag { justify-self: start; }
  .vp-when b { display: inline; white-space: nowrap; }
  .vp-when small { margin-left: 6px; }
}

/* Arabic (right to left) */
html[dir="rtl"] .vp-table caption, html[dir="rtl"] .vp-table th[scope="row"], html[dir="rtl"] .vp-table thead th:first-child { text-align: right; }
html[dir="rtl"] .vp-table th, html[dir="rtl"] .vp-table td { text-align: left; }
html[dir="rtl"] .vp-table th[scope="row"] { left: auto; right: 0; }
html[dir="rtl"] .vp-proves ul { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .vp-code code { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 480px) { html[dir="rtl"] .vp-when small { margin-left: 0; margin-right: 6px; } }
