/* IPN 1.9 · Mr & Miss Iran in the account: "the contest right now" (stage, countdown, both votes, quick links)
   and the contestant journey (progress ring + coloured stepper). Light & night, LTR & RTL. */

/* ---- the contest right now ---- */
.cxn { position: relative; display: grid; gap: 16px; overflow: hidden; isolation: isolate; }
.cxn::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, #F59E0B 22%, transparent), transparent 70%); animation: cx-float 9s ease-in-out infinite alternate; }
[dir="rtl"] .cxn::before { inset: -40% auto auto -20%; }
.cxn.is-open::before { background: radial-gradient(circle, color-mix(in srgb, #E11D48 20%, transparent), transparent 70%); }
@keyframes cx-float { to { transform: translate(-30px, 30px) scale(1.12); } }
.cxn__head { display: flex; align-items: center; gap: 14px; }
.cxn__head h3 { margin: 0 0 2px; font-size: 17px; }
.cxn__head p { margin: 0; color: var(--a-ink2); font-size: 14px; }
.cxn__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #F59E0B, #E11D48); box-shadow: 0 10px 24px -12px rgba(225,29,72,.8); }
.cxn__ic .ic { width: 24px; height: 24px; }
.cxn__st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cxn__st--open { color: #059669; } html[data-mode="dark"] .cxn__st--open { color: #6EE7B7; }
.cxn__live { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: cx-pulse 1.8s infinite; }
@keyframes cx-pulse { 70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.cxn__cd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cxn__cd > span { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px 8px; border-radius: 16px; background: var(--a-sunk); border: 1px solid var(--a-line); }
.cxn__cd b { font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #E11D48, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-mode="dark"] .cxn__cd b { background-image: linear-gradient(135deg, #FB7185, #C4B5FD); }
.cxn__cd b.is-tick { animation: cx-tick .35s var(--ease, ease); }
@keyframes cx-tick { from { transform: translateY(-4px); opacity: .35; } }
.cxn__cd small { margin-top: 4px; font-size: 11.5px; color: var(--a-muted); font-weight: 700; }
.cxn__cd em { font-style: normal; font-size: 13px; color: var(--a-muted); font-weight: 600; margin-inline-start: 4px; }
.cxn__cd.is-over { opacity: .55; }
.cxn__note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--a-sunk); color: var(--a-ink2); font-size: 14px; }
.cxn__note .ic { width: 16px; height: 16px; margin-top: 2px; flex: none; }

.cxn__votes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.cxv { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 18px; border: 1.5px solid var(--a-line); background: var(--a-card); transition: border-color .2s, transform .2s; }
.cxv:hover { transform: translateY(-1px); }
.cxv__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: #E11D48; }
.cxv__ic .ic { width: 21px; height: 21px; }
.cxv__tx { flex: 1 1 140px; display: grid; gap: 2px; min-width: 0; }
.cxv__tx small { font-size: 12.5px; color: var(--a-muted); font-weight: 700; }
.cxv__tx strong { font-size: 15px; overflow-wrap: anywhere; }
.cxv.is-wait { border-color: color-mix(in srgb, #E11D48 40%, var(--a-line)); background: color-mix(in srgb, #E11D48 6%, var(--a-card)); }
.cxv.is-wait .cxv__ic { animation: cx-beat 2.2s ease-in-out infinite; }
@keyframes cx-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.cxv--self .cxv__ic { background: linear-gradient(135deg, #F59E0B, #D97706); }
.cxv--self.is-wait { border-color: color-mix(in srgb, #F59E0B 50%, var(--a-line)); background: color-mix(in srgb, #F59E0B 8%, var(--a-card)); }
.cxv.is-done { border-color: color-mix(in srgb, #059669 35%, var(--a-line)); background: color-mix(in srgb, #059669 7%, var(--a-card)); }
.cxv.is-done .cxv__ic { background: #059669; }
.cxv__go { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.cxv__go .ic { width: 17px; height: 17px; }
.cxv__go--self { background: linear-gradient(135deg, #FBBF24, #D97706); color: #1A1430; box-shadow: 0 10px 22px -14px rgba(217,119,6,.9); }

.cxn__quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cxn__quick a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 14px; background: var(--a-sunk); color: var(--a-ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s, transform .2s; }
.cxn__quick a:hover { background: color-mix(in srgb, var(--qc, #7C3AED) 13%, var(--a-sunk)); transform: translateY(-1px); }
.cxn__quick a > .ic { width: 19px; height: 19px; flex: none; color: var(--qc, #7C3AED); }
html[data-mode="dark"] .cxn__quick a > .ic { color: color-mix(in srgb, var(--qc, #7C3AED) 60%, #fff); }
.cxn__quick span { flex: 1; min-width: 0; }
.cxn__n { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--a-rose); color: #fff; font-size: 12px; text-align: center; }
.cxn__n--soft { background: var(--a-card); color: var(--a-ink2); border: 1px solid var(--a-line); }

/* ---- the journey ---- */
.cxj { display: grid; gap: 18px; }
.cxj__head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.cxj__ring { position: relative; flex: none; width: 128px; height: 128px; }
.cxj__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .cxj__ring svg { transform: rotate(-90deg) scaleY(-1); }
.cxj__track { fill: none; stroke: var(--a-sunk); stroke-width: 11; }
.cxj__bar { fill: none; stroke: url(#cxj-g); stroke-width: 11; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--off); animation: cx-ring 1.4s cubic-bezier(.2,.8,.2,1) both; filter: drop-shadow(0 4px 8px rgba(225,29,72,.35)); }
@keyframes cx-ring { from { stroke-dashoffset: var(--c); } }
.cxj__ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cxj__ring b { font-size: 28px; font-weight: 900; line-height: 1; }
.cxj__ring small { margin-top: 4px; font-size: 11.5px; color: var(--a-muted); font-weight: 700; }
.cxj__intro { flex: 1 1 260px; display: grid; gap: 8px; justify-items: start; }
.cxj__intro h3 { margin: 0; font-size: 19px; }
.cxj__intro p { margin: 0; color: var(--a-ink2); }
.cxj__next { margin-top: 4px; height: auto; min-height: 46px; white-space: normal; text-align: start; }
.cxj__next .ic { width: 18px; height: 18px; flex: none; }
.cxj__alldone { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #059669 10%, var(--a-card)); color: var(--a-ink) !important; font-weight: 600; }
.cxj__alldone .ic { width: 20px; height: 20px; color: #059669; flex: none; }

.cxj__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: cxs; }
.cxs { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 10px 0 18px; animation: cx-in .5s var(--ease, ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } }
.cxs::before { content: ""; position: absolute; top: 58px; bottom: -6px; inset-inline-start: 23px; width: 3px; border-radius: 3px; background: var(--a-line); }
.cxs:last-child::before { display: none; }
.cxs--done::before { background: linear-gradient(180deg, #10B981, color-mix(in srgb, #10B981 30%, var(--a-line))); }
.cxs__ic { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: var(--h, #7C3AED); box-shadow: 0 10px 22px -14px var(--h, #7C3AED); transition: transform .25s; }
.cxs__ic > .ic { width: 23px; height: 23px; }
.cxs__badge { position: absolute; bottom: -5px; inset-inline-end: -5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--a-card); box-shadow: 0 0 0 2px var(--a-card); }
.cxs__badge .ic { width: 18px; height: 18px; }
.cxs--done .cxs__badge { color: #059669; }
.cxs--action .cxs__badge { color: #D97706; }
.cxs--current .cxs__badge { color: #7C3AED; }
.cxs--wait .cxs__badge { color: #0284C7; }
.cxs--rejected .cxs__badge { color: #E11D48; }
.cxs--locked .cxs__badge { color: var(--a-muted); }
.cxs--locked .cxs__ic { background: var(--a-sunk); color: var(--a-muted); box-shadow: none; }
.cxs--locked .cxs__tx strong { color: var(--a-muted); }
.cxs.is-next .cxs__ic { animation: cx-glow 2.2s ease-in-out infinite; }
@keyframes cx-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--h) 55%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--h) 0%, transparent); } }
.cxs__tx { flex: 1; min-width: 0; display: grid; gap: 3px; padding-top: 2px; }
.cxs__tx strong { font-size: 15.5px; }
.cxs__st { justify-self: start; display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--a-sunk); color: var(--a-muted); }
.cxs--done .cxs__st { background: #D1FAE5; color: #065F46; }
.cxs--action .cxs__st { background: #FEF3C7; color: #92400E; }
.cxs--current .cxs__st { background: #EDE9FE; color: #5B21B6; }
.cxs--wait .cxs__st { background: #E0F2FE; color: #075985; }
.cxs--rejected .cxs__st { background: #FFE4E6; color: #9F1239; }
html[data-mode="dark"] .cxs--done .cxs__st { background: rgba(16,185,129,.16); color: #6EE7B7; }
html[data-mode="dark"] .cxs--action .cxs__st { background: rgba(245,158,11,.16); color: #FCD34D; }
html[data-mode="dark"] .cxs--current .cxs__st { background: rgba(139,92,246,.18); color: #C4B5FD; }
html[data-mode="dark"] .cxs--wait .cxs__st { background: rgba(14,165,233,.16); color: #7DD3FC; }
html[data-mode="dark"] .cxs--rejected .cxs__st { background: rgba(244,63,94,.16); color: #FDA4AF; }
.cxs__note, .cxs__hint { margin: 2px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--a-ink2); }
.cxs__hint { color: var(--a-muted); }
.cxs--rejected .cxs__note { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #E11D48 8%, var(--a-card)); color: var(--a-ink); }
.cxs__go { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; font-weight: 800; font-size: 13.5px; text-decoration: none; color: var(--a-ink); background: var(--a-sunk); border: 1px solid var(--a-line); transition: background .2s, transform .2s; }
.cxs__go .ic { width: 15px; height: 15px; }
.cxs__go:hover { transform: translateX(2px); background: color-mix(in srgb, var(--h, #7C3AED) 14%, var(--a-sunk)); }
[dir="rtl"] .cxs__go:hover { transform: translateX(-2px); }
.cxs--action .cxs__go, .cxs--rejected .cxs__go { background: var(--a-grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -14px rgba(225,29,72,.9); }
.cxs__rounds { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.cxr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; border-radius: 12px; background: var(--a-sunk); font-size: 13.5px; }
.cxr > .ic { width: 16px; height: 16px; flex: none; }
.cxr span { flex: 1 1 120px; font-weight: 700; }
.cxr b { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--a-ink2); }
.cxr b .ic { width: 13px; height: 13px; color: #E11D48; }
.cxr__rank .ic { color: #D97706 !important; }
.cxr--done > .ic { color: #059669; } .cxr--current > .ic { color: #7C3AED; } .cxr--rejected > .ic { color: #E11D48; } .cxr--locked { opacity: .65; }

.cxj-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; border: 1px solid color-mix(in srgb, #D97706 35%, transparent); background: linear-gradient(120deg, color-mix(in srgb, #F59E0B 10%, var(--a-card)), var(--a-card)); }
.cxj-apply > div { flex: 1 1 260px; } .cxj-apply h3 { margin: 0 0 4px; font-size: 17px; } .cxj-apply p { margin: 0; line-height: 1.65; color: var(--a-ink2); }
.cxj-apply__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #F59E0B, #D97706); }
.cxj-apply__ic .ic { width: 24px; height: 24px; }

@media (max-width: 560px) {
  .cxs { flex-wrap: wrap; }
  .cxs__go { margin-inline-start: 62px; }
  .cxn__cd > span { min-width: 56px; }
  .cxj__ring { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .cxn::before, .cxv.is-wait .cxv__ic, .cxs.is-next .cxs__ic, .cxs, .cxj__bar, .cxn__cd b.is-tick, .cxn__live { animation: none !important; }
}

/* 1.11 · short entry form: date-of-birth selects, country → state, height hint */
.cx-dob__row { display: grid; grid-template-columns: 1fr 1.5fr 1.1fr; gap: 8px; } .cx-dob__row select { margin: 0; min-width: 0; }
.cx-dob__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; }
.cx-dob__cal { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted, #888); } .cx-dob__cal input { width: 16px; height: 16px; margin: 0; }
.cx-dob__age { font-weight: 700; color: var(--ok, #22a06b); } .cx-dob.is-out .cx-dob__age { color: var(--danger, #d33); } .cx-dob.is-invalid select { border-color: var(--danger, #d33); }
.ac-field[hidden] { display: none !important; }
.cx-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #888); direction: ltr; text-align: start; }
