/* IPN 1.8 · Ticket checker (member area, phone first) + per-role Mr & Miss Iran menu. Light & night, LTR & RTL. */

/* ---- ticket checker ---- */
.chk { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.chk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; padding: 18px 20px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #7C3AED 0%, transparent 55%), linear-gradient(135deg, #0F766E, #134E4A); box-shadow: var(--a-shadow); }
.chk-head h2 { margin: 6px 0 2px; font-size: clamp(20px, 4.6vw, 26px); line-height: 1.25; }
.chk-head p { margin: 0; font-size: 14px; color: rgba(255,255,255,.88); }
.chk-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.chk-live { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: chk-pulse 1.8s infinite; }
@keyframes chk-pulse { 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.chk-close { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; background: rgba(0,0,0,.22); font-weight: 700; }
.chk-close .ic { width: 16px; height: 16px; }

.chk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chk-stat { padding: 14px 12px; border-radius: 18px; background: var(--a-card); border: 1px solid var(--a-line); text-align: center; box-shadow: var(--a-shadow); }
.chk-stat strong { display: block; font-size: clamp(24px, 6vw, 32px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chk-stat small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--a-muted); font-weight: 600; }
.chk-stat--me strong { color: var(--a-violet); }
.chk-stat--in strong { color: #059669; }
html[data-mode="dark"] .chk-stat--me strong { color: #C4B5FD; }
html[data-mode="dark"] .chk-stat--in strong { color: #6EE7B7; }
.chk-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--a-sunk); overflow: hidden; }
.chk-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10B981, #0D9488); transition: width .5s var(--ease, ease); }

.chk-scan { position: relative; display: grid; gap: 12px; }
.chk-cam { position: relative; aspect-ratio: 1 / 1; max-height: 62vh; width: 100%; border-radius: 26px; overflow: hidden; background: #0B0A1A; display: grid; place-items: center; box-shadow: var(--a-shadow); }
.chk-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.chk-cam.is-on video { opacity: 1; }
.chk-cam__frame { position: absolute; inset: 16%; pointer-events: none; }
.chk-cam__frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; opacity: .9; }
.chk-cam__frame i:nth-child(1) { inset-block-start: 0; inset-inline-start: 0; border-inline-end: 0; border-block-end: 0; border-start-start-radius: 14px; }
.chk-cam__frame i:nth-child(2) { inset-block-start: 0; inset-inline-end: 0; border-inline-start: 0; border-block-end: 0; border-start-end-radius: 14px; }
.chk-cam__frame i:nth-child(3) { inset-block-end: 0; inset-inline-start: 0; border-inline-end: 0; border-block-start: 0; border-end-start-radius: 14px; }
.chk-cam__frame i:nth-child(4) { inset-block-end: 0; inset-inline-end: 0; border-inline-start: 0; border-block-start: 0; border-end-end-radius: 14px; }
.chk-cam.is-on .chk-cam__frame::after { content: ""; position: absolute; inset-inline: 8%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, #4ADE80, transparent); animation: chk-sweep 2.2s ease-in-out infinite alternate; }
@keyframes chk-sweep { to { top: 88%; } }
.chk-cam__go { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 26px; border: 0; border-radius: 22px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; backdrop-filter: blur(6px); }
.chk-cam__go .ic { width: 40px; height: 40px; }
.chk-cam__go:hover { background: rgba(255,255,255,.18); }
.chk-cam__msg { position: absolute; inset-inline: 16px; bottom: 14px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; text-align: center; }

.chk-result { position: absolute; inset: 0 0 auto; z-index: 5; aspect-ratio: 1 / 1; max-height: 62vh; width: 100%; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px; text-align: center; color: #fff; animation: chk-pop .25s var(--ease, ease); }
.chk-result[hidden] { display: none; }
@keyframes chk-pop { from { transform: scale(.94); opacity: 0; } }
.chk-result.is-ok { background: linear-gradient(160deg, #10B981, #047857); }
.chk-result.is-warn { background: linear-gradient(160deg, #F59E0B, #B45309); }
.chk-result.is-bad { background: linear-gradient(160deg, #EF4444, #991B1B); }
.chk-result__ic .ic { width: 88px; height: 88px; }
.chk-result strong { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; }
.chk-result__who { font-size: 20px; font-weight: 700; }
.chk-result__meta { font-size: 15px; opacity: .92; }
.chk-result__next { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

.chk-manual { display: flex; gap: 8px; }
.chk-manual input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--a-line); background: var(--a-card); color: var(--a-ink); font: 600 17px/1 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.chk-manual input:focus { outline: none; border-color: var(--a-violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a-violet) 18%, transparent); }
.chk-manual .ac-btn { height: 52px; background: var(--a-ink); color: var(--a-card); }
.chk-queue { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--a-amber) 16%, var(--a-card)); color: var(--a-ink); font-weight: 600; font-size: 14px; }
.chk-tools { display: flex; justify-content: flex-end; }
.chk-tog { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--a-ink2); }
.chk-tog span { display: inline-flex; align-items: center; gap: 6px; }
.chk-tog input { width: 18px; height: 18px; accent-color: var(--a-violet); }

.chk-lists { display: grid; gap: 12px; }
.chk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--a-sunk); }
.chk-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--a-ink2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.chk-tabs button.is-on { background: var(--a-card); color: var(--a-ink); box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); }
.chk-cnt { padding: 1px 8px; border-radius: 99px; background: var(--a-rose); color: #fff; font-size: 12px; }
.chk-find { height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--a-line); background: var(--a-card); color: var(--a-ink); font: inherit; }
.chk-list { list-style: none; margin: 0; padding: 0; display: grid; max-height: 420px; overflow: auto; }
.chk-list li { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px dashed var(--a-line); }
.chk-list li:last-child { border-bottom: 0; }
.chk-list__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--a-muted); }
.chk-list li.is-ok .chk-list__dot { background: #10B981; }
.chk-list li.is-used .chk-list__dot { background: #F59E0B; }
.chk-list li[class*="is-"]:not(.is-ok):not(.is-used):not(.is-waiting) .chk-list__dot { background: #EF4444; }
.chk-list__main { flex: 1; min-width: 0; display: grid; }
.chk-list__main strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-list__main small, .chk-list__side small { color: var(--a-muted); font-size: 12.5px; }
.chk-list__side { display: grid; justify-items: end; gap: 2px; }
.chk-list__side code { font-size: 12.5px; color: var(--a-ink2); }
.chk-list__none { justify-content: center; color: var(--a-muted); padding: 22px 4px !important; }
.chk-foot { display: flex; gap: 8px; align-items: flex-start; }

.chk-locked { display: grid; justify-items: center; gap: 8px; padding: 36px 22px; border-radius: 26px; background: var(--a-card); border: 1px solid var(--a-line); text-align: center; box-shadow: var(--a-shadow); }
.chk-locked__ic { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px; background: var(--a-sunk); color: var(--a-ink2); }
.chk-locked__ic .ic { width: 36px; height: 36px; }
.chk-locked h2 { margin: 6px 0 0; font-size: 22px; }
.chk-locked p { margin: 0; color: var(--a-ink2); max-width: 46ch; }
.chk-soon { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 480px; text-align: start; }
.chk-soon li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--a-sunk); }
.chk-soon li span { display: grid; } .chk-soon small { color: var(--a-muted); }

.chk-pick__list { display: grid; gap: 8px; }
.chk-pick__it { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--a-sunk); color: var(--a-ink); text-decoration: none; }
.chk-pick__it > span:nth-child(2) { flex: 1; display: grid; } .chk-pick__it small { color: var(--a-muted); }
.chk-pick__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #0F766E; color: #fff; }

@media (max-width: 560px) {
  .chk { gap: 12px; }
  .chk-head { padding: 16px; border-radius: 18px; }
  .chk-stat { padding: 10px 6px; border-radius: 14px; }
  .chk-cam, .chk-result { border-radius: 20px; }
  .chk-manual .ac-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chk-live, .chk-cam.is-on .chk-cam__frame::after, .chk-result { animation: none; } }

/* ---- Mr & Miss Iran: menu per role ---- */
.shs-role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; }
.shs-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--a-sunk); color: var(--a-ink); border: 1px solid var(--a-line); }
.shs-badge .ic { width: 15px; height: 15px; }
.shs-badge--contestant { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.shs-badge--voter { background: #FFE4E6; color: #9F1239; border-color: #FECDD3; }
.shs-badge--judge { background: #EDE9FE; color: #5B21B6; border-color: #DDD6FE; }
.shs-badge--staff { background: #E0F2FE; color: #075985; border-color: #BAE6FD; }
html[data-mode="dark"] .shs-badge--contestant { background: rgba(245,158,11,.16); color: #FCD34D; border-color: rgba(245,158,11,.3); }
html[data-mode="dark"] .shs-badge--voter { background: rgba(244,63,94,.16); color: #FDA4AF; border-color: rgba(244,63,94,.3); }
html[data-mode="dark"] .shs-badge--judge { background: rgba(139,92,246,.18); color: #C4B5FD; border-color: rgba(139,92,246,.35); }
html[data-mode="dark"] .shs-badge--staff { background: rgba(14,165,233,.16); color: #7DD3FC; border-color: rgba(14,165,233,.3); }
.shs-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.shs-sec { display: grid; align-content: start; gap: 12px; }
.shs-sec__h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.shs-sec__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: var(--sec, #7C3AED); flex: none; }
.shs-sec__h small { display: block; font-weight: 500; font-size: 12.5px; color: var(--a-muted); }
.shs-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shs-links a { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: var(--a-sunk); color: var(--a-ink); text-decoration: none; font-weight: 600; transition: transform .2s var(--ease, ease), background .2s; }
.shs-links a:hover { transform: translateX(2px); background: color-mix(in srgb, var(--sec, #7C3AED) 12%, var(--a-sunk)); }
[dir="rtl"] .shs-links a:hover { transform: translateX(-2px); }
.shs-links a > .ic:first-child { color: var(--sec, #7C3AED); }
html[data-mode="dark"] .shs-links a > .ic:first-child { color: color-mix(in srgb, var(--sec, #7C3AED) 55%, #fff); }
.shs-links a span { flex: 1; }
.shs-links .shs-n { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--a-rose); color: #fff; font-size: 12px; text-align: center; }
.shs-links .shs-lock { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--a-card); border: 1px solid var(--a-line); font-size: 11.5px; color: var(--a-ink2); font-weight: 700; }
.shs-links .shs-lock .ic { width: 12px; height: 12px; }
.shs-links a > .ic:last-child { width: 15px; height: 15px; color: var(--a-muted); }
.shs-teamnote { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #0EA5E9 9%, var(--a-card)); font-size: 13px; color: var(--a-ink2); }
.shs-teamnote .ic { width: 16px; height: 16px; margin-top: 2px; color: #0369A1; }
html[data-mode="dark"] .shs-teamnote .ic { color: #7DD3FC; }
.chk-manual input::placeholder { letter-spacing: normal; text-transform: none; font-family: inherit; font-weight: 500; font-size: 15px; }
