/* 2.55 — the Track my queue page (owner: "keep it only in the track my queue page and improve the design").
   One centred column; three cards of the same width; the same field, button and label in each. The page is light:
   white cards on the page's own tint, the court's colour only on the actions. Loaded by templates/public/track.html
   (not by the home page — the home budget is untouched). Tokens: tokens.css / public-d.css. */
.c .tq{padding:56px 0 72px;background:
  radial-gradient(900px 420px at 50% -8%,color-mix(in srgb,var(--tif) 9%,transparent),transparent 70%)}
.c .tq{position:relative;overflow:hidden}
.c .tq > .wrap{max-width:none;position:relative;z-index:1}
.tq-head{max-width:720px;margin:0 auto 28px;text-align:center}
.c .tq-head h1{margin:0;font:800 clamp(30px,4.2vw,42px)/1.12 var(--f);letter-spacing:-.02em;color:var(--ink)}
.tq-head p{margin:14px auto 0;max-width:560px;font-size:16px;line-height:1.6;color:var(--mu)}
.tq-col{display:grid;gap:16px;width:100%;max-width:760px;margin:0 auto}
.tq-card{background:#fff;border-radius:22px;padding:24px;box-shadow:0 18px 48px rgba(10,22,40,.07),inset 0 0 0 1px var(--line2)}
.tq-main{padding:28px;box-shadow:0 24px 64px rgba(10,22,40,.09),inset 0 0 0 1px var(--line2)}
.c .tq-label{display:block;margin:0 0 8px;font:700 13px/1.3 var(--f);color:var(--ink)}
.c .tq-more{margin:14px 4px 0;font:700 13px/1.3 var(--f);letter-spacing:.08em;text-transform:uppercase;color:var(--mu)}
[dir=rtl] .c .tq-more{letter-spacing:0;font-size:14.5px}

/* the number field */
.tq-form{display:flex;gap:10px;align-items:stretch}
.tq-in{flex:1;display:flex;align-items:center;gap:2px;min-width:0;height:60px;padding:0 18px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);direction:ltr}
.tq-in:focus-within{box-shadow:inset 0 0 0 2px var(--tif),0 0 0 4px color-mix(in srgb,var(--tif) 16%,transparent)}
.tq-in .pre{font:700 22px/1 var(--n);color:var(--mu)}
.tq-in input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:700 22px/1 var(--n);color:var(--ink);letter-spacing:.01em}
.tq-in input::placeholder{color:#A9B5C1;font-weight:600}
.c .tq-form .btn{height:60px;padding:0 28px;border-radius:16px;font-size:16px;flex:none}
.tq-form.shake{animation:tqShake .32s ease}
@keyframes tqShake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.tq .thint{margin:10px 2px 0;font-size:14px;line-height:1.5;font-weight:500;color:#9A3412}
.tq .thint.ok{font-weight:600;color:#0B6B3A}
.tq .thint a{color:var(--tifd);font-weight:700}
.c .tq-points{display:flex;flex-wrap:wrap;gap:8px 22px;margin:16px 2px 0;padding:0;list-style:none}
.tq-points li{display:inline-flex;align-items:center;gap:8px;font:600 13.5px/1.3 var(--f);color:var(--mu)}
.tq-points .ic{width:17px;height:17px;color:var(--tifd);flex:none}

/* the live result, inside the first card */
.tq-res{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;margin-top:20px;padding:20px;border-radius:18px;background:var(--tif-tint,#EEF8F8);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tif) 22%,#fff)}
.tq-res[hidden]{display:none}
/* the answer arrives: it rises into place (motion that answers the press of "Track") */
.tq-res:not([hidden]){animation:tqIn .42s cubic-bezier(.2,.7,.2,1)}
@keyframes tqIn{from{opacity:0;transform:translateY(10px)}}
@media (prefers-reduced-motion:reduce){.tq-res:not([hidden]){animation:none}}
.tq-res-main{min-width:0}
.tq-res-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:0}
.tq-live{display:inline-flex;align-items:center;gap:7px;font:700 12.5px/1 var(--f);color:#0B7A43}
.tq-res-top b{font:800 26px/1 var(--n);color:var(--ink);letter-spacing:-.01em}
.tq-res-top .chip{margin-inline-start:auto}
.tq-stats{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px;margin:14px 0 0}
.tq-stats > div{padding:10px 12px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--line2);min-width:0}
.tq-stats dt{font:700 10.5px/1.3 var(--f);letter-spacing:.12em;text-transform:uppercase;color:var(--mu)}
[dir=rtl] .tq-stats dt{letter-spacing:0;font-size:12px}
.tq-stats dd{margin:3px 0 0;font:700 15.5px/1.3 var(--f);color:var(--ink);overflow-wrap:anywhere}
.tq-bar{height:6px;margin-top:14px;border-radius:4px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line2)}
.tq-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--tifd),var(--tif))}
[dir=rtl] .tq-bar i{background:linear-gradient(270deg,var(--tifd),var(--tif))}
.tq-acts,.tq-match .acts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.tq-acts .btn[aria-disabled=true]{opacity:.5;pointer-events:none}
.tq-qr{display:grid;justify-items:center;gap:8px;width:118px;text-align:center}
.tq-qr #trqr{width:104px;height:104px;padding:8px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line2)}
.tq-qr #trqr img{display:block;width:88px;height:88px}
.tq-qr small{font-size:11.5px;line-height:1.35;color:var(--mu)}

/* the two helper cards */
.tq-opt form{margin:0}
.tq-opt-h{display:flex;align-items:flex-start;gap:14px;margin:0 0 16px}
.tq-opt-h > i{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--tif-tint,#E7F8F7);color:var(--tifd)}
.tq-opt-h .ic{width:21px;height:21px}
.c .tq-opt-h h3{margin:1px 0 0;font:800 17px/1.25 var(--f);letter-spacing:-.005em;color:var(--ink)}
.tq-opt-h p{margin:3px 0 0;font-size:14px;line-height:1.5;color:var(--mu)}
.tq-row{display:flex;gap:10px;align-items:flex-end}
.tq-row > .tq-field{flex:1}
/* 2.55 second review: the lost-number field has its calling code (the UAE first) */
.tq-tel{display:flex;gap:10px;flex:1;min-width:0}.tq-tel > .tq-field{flex:1}
.tq-tel > .tq-cc{flex:none;width:5.8rem;height:52px;padding:0 10px;border:0;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:700 15px/1 var(--f);color:var(--ink);text-overflow:ellipsis;cursor:pointer}
.tq-tel > .tq-cc:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--tif),0 0 0 4px color-mix(in srgb,var(--tif) 16%,transparent)}
.tq-row.tq-two{display:grid;grid-template-columns:1fr 1.25fr auto;align-items:end}
.c .tq-f{display:block;min-width:0;margin:0}
.tq-field{display:block;width:100%;min-width:0;height:52px;padding:0 16px;border:0;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font:600 16px/1 var(--f);color:var(--ink);outline:0}
.tq-field::placeholder{color:#A9B5C1;font-weight:500}
.tq-field:focus{box-shadow:inset 0 0 0 2px var(--tif),0 0 0 4px color-mix(in srgb,var(--tif) 16%,transparent)}
.tq-field[aria-invalid=true]{box-shadow:inset 0 0 0 2px #C2410C}
.c .tq-row .btn{height:52px;padding:0 22px;border-radius:14px;white-space:nowrap;flex:none}
.tq-note{display:flex;align-items:flex-start;gap:8px;margin:12px 2px 0;font-size:13.5px;line-height:1.5;color:var(--mu)}
.tq-note .ic{width:17px;height:17px;margin-top:2px;color:var(--tifd);flex:none}
.tq-match{margin:0 0 16px;padding:14px 16px;border-radius:14px;background:var(--tif-tint,#E7F8F7);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tif) 22%,#fff)}
.tq-match p{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink)}
.tq-match .sub{margin-top:8px;font-size:13.5px;color:var(--mu)}
.tq-match .ref{font-family:var(--n)}

@media (max-width:760px){
  .c .tq{padding:32px 0 48px}
  .tq-card,.tq-main{padding:18px;border-radius:20px}
  .tq-form{flex-direction:column}
  .tq-in{height:56px;flex:none}.c .tq-form .btn{height:52px;width:100%}
  .tq-points{gap:8px 16px}
  .tq-res{grid-template-columns:1fr;padding:16px}
  .tq-qr{display:none}
  .tq-stats{grid-template-columns:1fr 1fr}.tq-stats > div:first-child{grid-column:1/-1}
  .tq-acts .btn,.tq-match .acts .btn{flex:1 1 100%}
  .tq-row,.tq-row.tq-two{display:grid;grid-template-columns:1fr}
  .c .tq-row .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.tq-form.shake{animation:none}}
