/* The team checkout, welcome and manage pages (/teams/checkout, /teams/welcome,
   /teams/manage). Everything else -- colours, type, buttons, the seat stepper --
   comes from the site's own stylesheet. */
[hidden] { display: none !important; }
.tp-nav-actions { margin-inline-start: auto; }
.tp-main { min-height: calc(100vh - 80px); padding: 104px 0 48px; }
.tp-card { width: min(560px, 100% - 32px); margin-inline: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px; box-shadow: 0 1px 2px rgba(38, 8, 79, .06), 0 40px 80px -40px rgba(30, 20, 90, .45); }
.tp-card + .tp-card, .tp-stack > * + * { margin-top: 16px; }
.tp-mark { width: 56px; height: 56px; border-radius: 14px; }
.tp-step { color: var(--accent); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.tp-card h1 { font: 400 clamp(34px, 6vw, 44px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink-2); margin-top: 8px; text-wrap: balance; overflow-wrap: anywhere; }
:root[lang="ar"] .tp-card h1 { font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: clamp(26px, 5vw, 32px); }
.tp-card h2 { font: 600 18px/1.3 var(--sans); color: var(--ink-2); }
.tp-card h2 + .tp-hint { margin-top: 6px; }
.tp-lead { color: var(--muted); margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; }
.tp-hint { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tp-fine { color: var(--muted); font-size: 13.5px; margin-top: 16px; text-align: center; }

/* Forms */
.tp-field { display: grid; gap: 6px; margin-top: 16px; }
.tp-field label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.tp-field .tp-opt { font-weight: 500; color: var(--muted); }
.tp-input { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: 500 16px var(--sans); color: var(--ink); }
.tp-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tp-input[aria-invalid="true"] { border-color: #d92d20; }
textarea.tp-input { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.tp-code { text-align: center; font: 600 24px var(--sans); letter-spacing: .3em; }
.tp-actions { display: grid; gap: 10px; margin-top: 22px; }
.tp-actions .btn { width: 100%; }
.tp-actions.tp-two { grid-template-columns: 1fr 1fr; }
button.btn-dark { border: 0; cursor: pointer; }
button.btn-outline { cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.tp-textbtn { border: 0; background: none; padding: 6px 2px; color: var(--accent); font: 600 14.5px var(--sans); cursor: pointer; }
.tp-textbtn:hover { text-decoration: underline; }
.tp-textbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.tp-mini { border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); font: 600 13.5px var(--sans); padding: 7px 11px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tp-mini:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tp-mini.tp-danger { color: #b42318; }
.tp-mini[disabled] { opacity: .6; cursor: default; }

/* Messages */
.tp-note, .tp-error, .tp-ok { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 15px; overflow-wrap: anywhere; }
.tp-note { background: var(--accent-soft); color: var(--ink-2); }
.tp-error { background: #fdeceb; color: #9b1c1c; }
.tp-ok { background: #e7f6ee; color: #0b6643; }
.tp-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 12px 0; }
.spinner { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Checkout: the seats and the total */
.tp-sum { background: var(--card); border-radius: 20px; padding: 18px; margin-top: 22px; display: grid; gap: 12px; }
.tp-sum label { font-weight: 700; color: var(--ink-2); }
.tp-sum #seats, .tp-seats-row #seats { background: var(--card-2); }
.tp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.tp-total b { font: 400 34px/1 var(--serif); color: var(--ink-2); font-variant-numeric: tabular-nums; }
:root[lang="ar"] .tp-total b { font-family: var(--sans); font-weight: 700; font-size: 26px; }
.tp-back { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; font-size: 15px; }
.tp-back:hover { color: var(--ink); }

/* Welcome: what to do next */
.tp-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.tp-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.tp-steps li > b { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.tp-steps p { color: var(--muted); font-size: 15px; margin-top: 4px; overflow-wrap: anywhere; }
.tp-btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tp-box { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--card); }
.tp-box p { font-size: 15px; color: var(--ink); }
.tp-linkbox { display: flex; gap: 8px; margin-top: 10px; }
.tp-linkbox .tp-input { height: 44px; font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 0; flex: 1; background: var(--card-2); }
.tp-linkbox .btn { flex: none; }

/* Manage: the team */
.tp-big { margin-top: 14px; font-weight: 700; font-size: 18px; color: var(--ink-2); }
.tp-status { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tp-status.tp-warn { color: #9b1c1c; font-weight: 600; }
.tp-list { list-style: none; padding: 0; margin: 12px 0 0; }
.tp-list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.tp-list li:first-child { border-top: 0; }
.tp-who { flex: 1; min-width: 0; }
.tp-who b { display: block; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.tp-who small { display: block; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.tp-tag { flex: none; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); }
.tp-row-btns { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.tp-empty { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tp-sub { margin-top: 22px; }
.tp-results { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.tp-results li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--card); }
.tp-results li span:first-child { overflow-wrap: anywhere; min-width: 0; }
.tp-results li span:last-child { flex: none; color: var(--muted); }
.tp-results li.tp-good span:last-child { color: #0b6643; font-weight: 600; }
.tp-seats-row { margin-top: 14px; max-width: 280px; }
.tp-center { text-align: center; margin-top: 20px; }

/* Footer */
.tp-foot { padding: 24px 0 36px; color: var(--muted); font-size: 14px; text-align: center; }
.tp-foot a:hover { color: var(--ink); }
.tp-foot span[aria-hidden] { margin-inline: 8px; }

@media (max-width: 520px) {
  .tp-card { padding: 26px 20px; border-radius: 24px; }
  .tp-list li { flex-wrap: wrap; }
  .tp-row-btns { width: 100%; justify-content: flex-start; }
  .tp-actions.tp-two { grid-template-columns: 1fr; }
}
