/* RGL ARENA hub — page-specific styles (public pages + request form + tracking). Uses the theme tokens from style.css. */

/* Numbered steps */
.hub-steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hub-step { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem 1.25rem 1.25rem; }
.hub-step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.25rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.hub-step h3 { font-size: 1.02rem; margin: .5rem 0 .4rem; }
.hub-step p { margin: 0; font-size: .92rem; color: var(--text-muted); }

/* Feature cards */
.hub-feature { height: 100%; }
.hub-feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-text); font-size: 1.25rem; margin-bottom: 1rem; }
.hub-feature h3 { font-size: 1.05rem; }
.hub-feature p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Tournament cards */
.t-card { height: 100%; display: flex; flex-direction: column; }
.t-card .banner { aspect-ratio: 16/7; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: grid; place-items: center; color: var(--on-primary); font-size: 2rem; overflow: hidden; border-radius: 20px 20px 0 0; }
.t-card .banner img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.t-card .body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.t-card h3 { font-size: 1.08rem; margin: 0; }
.t-card .meta { font-size: .85rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.t-card .foot { margin-top: auto; padding-top: .5rem; }

/* Partner / leader cards */
.p-card { text-align: center; height: 100%; }
.p-card .logo { width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 22px; background: var(--primary-50); display: grid; place-items: center; font-weight: 800; color: var(--primary-text); overflow: hidden; }
.p-card .logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.leader-card .photo { position: relative; width: 120px; height: 150px; border-radius: 24px; overflow: hidden; margin: 0 auto 1rem; background: var(--primary-50); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--primary-text); }
.leader-card .photo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

/* Quote */
.hub-quote { position: relative; }
.hub-quote .mark { font-size: 2rem; color: var(--primary); opacity: .35; }
.hub-quote p { font-size: 1.02rem; }

/* Request form wizard */
.wiz-progress { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.wiz-progress .pip { flex: 1 1 90px; min-width: 90px; }
.wiz-progress .pip span { display: block; height: 6px; border-radius: 6px; background: var(--border); transition: background .2s; }
.wiz-progress .pip small { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .35rem; font-weight: 600; }
.wiz-progress .pip.is-done span, .wiz-progress .pip.is-current span { background: var(--primary); }
.wiz-progress .pip.is-current small { color: var(--text); }
.wiz-step { display: none; }
.wizard-enhanced .wiz-step.is-active { display: block; }
.wizard-enhanced .wiz-step { display: none; }
.wizard-enhanced .wiz-step.is-active { display: block; }
.wizard-plain .wiz-step { display: block; margin-bottom: 2rem; }
.wizard-plain .wiz-progress, .wizard-plain .wiz-nav { display: none; }
.wiz-step > h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.wiz-step > .lead-sm { color: var(--text-muted); margin-bottom: 1.25rem; font-size: .95rem; }
.check-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.check-tile { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); cursor: pointer; }
.check-tile:hover { border-color: var(--primary); }
.check-tile input { margin-top: .25rem; }
.check-tile input:checked + span strong { color: var(--primary-text); }
.check-tile small { display: block; color: var(--text-muted); font-size: .8rem; }
.wiz-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; }
.wiz-error { border-color: var(--danger, #d64545) !important; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tracking timeline */
.hub-timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--border); display: grid; gap: 1.1rem; }
.hub-timeline li { position: relative; }
.hub-timeline li::before { content: ""; position: absolute; left: calc(-1.25rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.hub-timeline li.is-note::before { background: var(--text-muted); }
.hub-timeline .who { font-weight: 600; font-size: .9rem; }
.hub-timeline .when { color: var(--text-muted); font-size: .78rem; margin-left: .4rem; }
.hub-timeline .txt { white-space: pre-line; font-size: .93rem; margin-top: .15rem; }
.hub-timeline li.in .txt { background: var(--primary-50); border-radius: 12px; padding: .6rem .8rem; }

/* Pipeline funnel (admin dashboard) */
.funnel { display: grid; gap: .6rem; }
.funnel .row-f { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: .75rem; font-size: .9rem; }
.funnel .bar { height: 12px; border-radius: 8px; background: var(--border); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--primary); border-radius: 8px; }
.req-detail dt { font-weight: 600; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.req-detail dd { margin-bottom: .9rem; }
.provision-cmd { background: var(--bg-tertiary); border-radius: 12px; padding: .9rem 1rem; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 575px) { .funnel .row-f { grid-template-columns: 100px 1fr 32px; } }
.leader-card .photo, .t-card .banner { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.leader-card .photo > img, .t-card .banner > img { min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; }
