/* NACO Travel & Visa. Uses the site tokens from naco.css (navy, gold, glass, radius). Logical properties keep RTL right. */
.tv { --tv-gold-line: rgba(255, 196, 14, .9); --tv-map-land: #C5D3E6; --tv-map-offer: #F2B705; --tv-map-hover: #0F437F; }
.tv-flag { display: inline-block; width: 28px; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 37, 69, .12); background: #EEF2F7; flex: none; vertical-align: middle; }
.tv-flag--lg { width: 56px; border-radius: 7px; }
.tv-flag--xl { width: 92px; border-radius: 10px; box-shadow: 0 10px 26px rgba(11, 37, 69, .25), 0 0 0 2px #fff; }

/* Hero */
.thero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 520px at 85% -10%, rgba(255, 196, 14, .18), transparent 60%), linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #1B5DA8); padding: 128px 0 clamp(64px, 7vw, 120px); }
.thero__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .13; pointer-events: none; }
.thero__flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.thero__flight path.route { fill: none; stroke: var(--tv-gold-line); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; animation: tv-dash 14s linear infinite; }
.thero__flight .dot { fill: var(--gold); }
.thero__flight .pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; animation: tv-pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.thero__flight .plane { fill: #fff; }
@keyframes tv-dash { to { stroke-dashoffset: -220; } }
@keyframes tv-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.thero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.thero .eyebrow { color: var(--gold); }
.thero h1 { margin: 10px 0 14px; font-size: clamp(32px, 1.2rem + 3.2vw, 64px); line-height: 1.08; letter-spacing: -.02em; }
.thero h1 .accent { color: var(--gold); }
.thero p.lead { max-width: 620px; margin: 0 0 24px; color: rgba(255, 255, 255, .86); font-size: clamp(16px, .9rem + .3vw, 19px); }
.thero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tsearch { position: relative; padding: clamp(18px, 2vw, 28px); border-radius: 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(5, 20, 45, .35); }
.tsearch h2 { margin: 0 0 4px; font-size: clamp(18px, 1rem + .5vw, 22px); color: #fff; }
.tsearch > p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.tsearch__grid { display: grid; gap: 12px; }
.tsearch label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .9); }
.tsearch select, .tmini select { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; }
.tsearch .btn { margin-top: 4px; }
.tsearch__note { margin: 12px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* Stats */
.tstats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(30px, 4vw, 56px)); }
.tstats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 300px)); justify-content: center; gap: var(--space-gap); }
.tstat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tstat b { display: block; font-size: clamp(20px, 1rem + .8vw, 28px); line-height: 1.1; color: var(--navy-ink); }
.tstat span { color: var(--muted); font-size: 14px; }
.tstat b.is-text { font-size: clamp(15.5px, .9rem + .2vw, 18px); line-height: 1.3; }

/* Map */
.tmap { position: relative; padding: clamp(12px, 2vw, 24px); background: linear-gradient(180deg, #F7FAFD, #fff); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.tmap__stage { position: relative; height: clamp(240px, 30vw, 430px); display: grid; place-items: center; }
.tmap__stage > .tmap__loading { color: var(--muted); font-size: 14px; }
.tmap__svg { width: 100%; height: 100%; display: block; }
.tmap__sphere { fill: #F3F7FC; stroke: #D7E2EF; stroke-width: 1; }
.tmap__lands path { fill: var(--tv-map-land); stroke: #fff; stroke-width: .5; cursor: pointer; transition: fill .2s; }
.tmap__lands path.is-offer { fill: var(--tv-map-offer); }
.tmap__lands path:hover, .tmap__lands path:focus { fill: var(--tv-map-hover); outline: none; }
.tmap__tip { position: absolute; z-index: 5; min-width: 180px; max-width: 260px; padding: 10px 12px; background: var(--navy-ink); color: #fff; border-radius: 12px; box-shadow: 0 14px 30px rgba(5, 20, 45, .35); font-size: 13.5px; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.tmap__tip b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.tmap__tip small { display: block; margin-top: 5px; color: rgba(255, 255, 255, .78); }
.tmap__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.tmap__legend i { display: inline-block; width: 14px; height: 10px; margin-inline-end: 6px; border-radius: 3px; vertical-align: middle; }

/* Visa types */
.ttypes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-gap); }
.ttype { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; overflow: hidden; }
.ttype::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 14, .22), transparent 70%); }
.ttype h3 { margin: 6px 0 0; font-size: var(--fs-card-title); color: var(--navy-ink); }
.ttype p { margin: 0; color: var(--muted); font-size: var(--fs-card-text); flex: 1; }
.ttype__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Destination cards */
.tdest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--space-gap); }
.tdest { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.tdest:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tdest__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep), #1B5DA8); }
.tdest__art img.photo { width: 100%; height: 100%; object-fit: cover; }
.tdest__art .wash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.2) blur(1px); transform: scale(1.15); }
.tdest__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tdest__art .tv-flag { position: absolute; inset-inline-start: 14px; bottom: 12px; }
.tdest__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.tdest__body h3 { margin: 0; font-size: 17px; color: var(--navy-ink); }
.tdest__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.tchip--gold { background: var(--gold-soft); color: var(--gold-ink); }
.tchip--grey { background: var(--grey); color: var(--muted); }
.tchip--ok { background: #E7F7EE; color: #166534; }
.tchip--warn { background: #FFF4E0; color: #92400E; }
.tchip--bad { background: #FDECEC; color: #991B1B; }
.tdest__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13.5px; }

/* How it works */
.tsteps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: tstep; }
.tstep { position: relative; padding: 20px 16px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tstep::before { counter-increment: tstep; content: counter(tstep); position: absolute; top: 12px; inset-inline-start: 14px; font-weight: 800; font-size: 13px; color: var(--gold-ink); }
.tstep .icon-tile { margin: 0 auto 12px; }
.tstep h3 { margin: 0; font-size: 15.5px; color: var(--navy-ink); }
.tstep p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* CTA strip */
.tcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(20px, 3vw, 34px); border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--navy-deep), var(--navy)); box-shadow: var(--shadow-lg); }
.tcta h2 { margin: 0; font-size: clamp(20px, 1rem + 1vw, 30px); }
.tcta p { margin: 6px 0 0; color: rgba(255, 255, 255, .8); }
.tcta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Countries page */
.tfilter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tfilter label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--navy-ink); }
.tfilter input[type=search], .tfilter select { width: 100%; padding: 10px 12px; border: 1px solid #D3DAE4; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.tfilter__checks { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; grid-column: 1 / -1; font-size: 14px; }
.tfilter__checks label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 600; }
.tviews { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tviews a { padding: 8px 12px; color: var(--muted); }
.tviews a.is-active { background: var(--navy); color: #fff; }
.taz { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 8px; }
.taz a, .taz span { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: 13.5px; }
.taz a { background: var(--navy-soft); color: var(--navy); }
.taz a:hover { background: var(--navy); color: #fff; }
.taz span { color: #B4BECB; }
.tletter { margin: 26px 0 10px; font-size: 20px; color: var(--navy-ink); scroll-margin-top: 110px; }
.tcountries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tcountry { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, transform .2s; color: var(--ink); }
.tcountry:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.tcountry b { display: block; font-size: 15px; color: var(--navy-ink); }
.tcountry small { display: block; color: var(--muted); font-size: 12.5px; }
.tcountry.is-offer { border-color: rgba(242, 183, 5, .7); background: linear-gradient(180deg, #FFFDF4, #fff); }
.tcountries--list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.tcountries--list .tcountry { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.tcountries--list .tcountry:hover { transform: none; box-shadow: none; background: #F7FAFD; }
.tcountry__end { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.tempty { padding: 34px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #C9D3E0; border-radius: 18px; }

/* Country page */
.tchead { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); padding: 128px 0 clamp(28px, 4vw, 56px); }
.tchead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.tchead__inner { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); flex-wrap: wrap; }
.tchead h1 { margin: 6px 0 4px; font-size: clamp(28px, 1rem + 2.5vw, 50px); line-height: 1.1; }
.tchead p { margin: 0; color: rgba(255, 255, 255, .82); }
.tchead .crumbs a, .tchead .crumbs li { color: rgba(255, 255, 255, .85); }
.ttabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.ttabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-ink); font-weight: 700; font-size: 14.5px; }
.ttabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(18px, 2.5vw, 34px); align-items: start; }
.tfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tfact { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tfact i { color: var(--gold-deep); }
.tfact small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.tfact b { display: block; margin-top: 2px; color: var(--navy-ink); font-size: 15.5px; }
.tblock { margin-top: 18px; padding: clamp(16px, 2vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tblock h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; color: var(--navy-ink); }
.tblock h2 i { color: var(--gold-deep); }
.tblock p, .tblock li { color: var(--ink); font-size: 15px; line-height: 1.65; }
.tdocs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tdocs li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFCFE; }
.tdocs li > i { margin-top: 3px; color: #16A34A; }
.tdocs li b { display: block; color: var(--navy-ink); font-size: 15px; }
.tdocs li small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tfee { width: 100%; border-collapse: collapse; }
.tfee td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tfee td:last-child { text-align: end; font-weight: 700; color: var(--navy-ink); }
.tfee tr.total td { border-bottom: 0; font-size: 16.5px; }
.tapply { position: sticky; top: 100px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tapply h2 { margin: 0 0 4px; font-size: 18px; color: var(--navy-ink); }
.tapply .tfee { margin: 10px 0 16px; }
.tnote { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13.5px; line-height: 1.5; }
.tnote i { margin-top: 3px; }

/* Track */
.ttrack { max-width: 860px; margin-inline: auto; }
.ttrack form { display: flex; gap: 10px; flex-wrap: wrap; }
.ttrack form input { flex: 1 1 260px; padding: 13px 14px; border: 1px solid #D3DAE4; border-radius: 12px; font: inherit; font-size: 16px; }
.tline { position: relative; margin: 18px 0 0; padding: 0; list-style: none; }
.tline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.tline li::before { content: ''; position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tline li:last-child::before { display: none; }
.tline .dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E5EAF1; color: #fff; font-size: 12px; position: relative; z-index: 1; }
.tline li.is-done .dot { background: #16A34A; }
.tline li.is-now .dot { background: var(--gold); color: var(--navy-ink); box-shadow: 0 0 0 6px rgba(255, 196, 14, .25); }
.tline b { display: block; color: var(--navy-ink); font-size: 15px; }
.tline small { display: block; color: var(--muted); font-size: 13px; }
.tline li.is-todo b { color: #8A97A8; font-weight: 600; }
.tbar { height: 10px; border-radius: 99px; background: #E8EEF6; overflow: hidden; }
.tbar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--gold)); transition: width .4s var(--ease); }

/* Wizard */
.twiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(16px, 2.5vw, 30px); align-items: start; }
.twiz__progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: wstep; }
.twiz__progress li { position: relative; padding-top: 12px; font-size: 12.5px; font-weight: 700; color: #8A97A8; }
.twiz__progress li::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 5px; border-radius: 99px; background: #E3E9F1; }
.twiz__progress li.is-done::before { background: #16A34A; }
.twiz__progress li.is-now::before { background: linear-gradient(90deg, var(--navy), var(--gold)); }
.twiz__progress li.is-now, .twiz__progress li.is-done { color: var(--navy-ink); }
.twiz__progress a { color: inherit; }
.twiz__card { padding: clamp(18px, 2.4vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.twiz__card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: clamp(20px, 1rem + .6vw, 26px); color: var(--navy-ink); }
.twiz__card > p.intro { margin: 0 0 18px; color: var(--muted); }
.twiz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.twiz__grid .wide { grid-column: 1 / -1; }
.twiz .field label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14px; color: var(--navy-ink); }
.twiz .field small.hint { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.twiz__person { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #FBFCFE; }
.twiz__person h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; color: var(--navy); }
.twiz__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.twiz__actions .right { display: flex; flex-wrap: wrap; gap: 10px; margin-inline-start: auto; }
.twiz__side { position: sticky; top: 100px; display: grid; gap: 14px; }
.twiz__summary { padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(140deg, var(--navy-deep), var(--navy)); box-shadow: var(--shadow-lg); }
.twiz__summary h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; }
.twiz__summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.twiz__summary dt { color: rgba(255, 255, 255, .7); }
.twiz__summary dd { margin: 0; font-weight: 700; text-align: end; }
.twiz__number { display: block; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 13px; letter-spacing: .03em; }
.twarn { display: flex; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #FFF4E0; color: #92400E; font-size: 14px; }
.twarn ul { margin: 4px 0 0; padding-inline-start: 18px; }
.tconsent { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFCFE; font-size: 14.5px; line-height: 1.55; }
.tconsent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.treview { display: grid; gap: 12px; }
.treview section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.treview h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 15.5px; color: var(--navy-ink); }
.treview h3 a { font-size: 13px; font-weight: 700; color: var(--navy); }
.treview dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.treview dt { color: var(--muted); }
.treview dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* Upload checklist */
.tup { display: grid; gap: 12px; }
.tup__row { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tup__row.is-missing.is-required { border-color: #F5D28A; }
.tup__row.is-rejected { border-color: #F3B4B4; background: #FFFAFA; }
.tup__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tup__head b { color: var(--navy-ink); font-size: 15px; }
.tup__head small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tup__drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border: 2px dashed #C7D3E3; border-radius: 14px; background: #F8FAFD; transition: border-color .2s, background .2s; }
.tup__drop.is-over { border-color: var(--navy); background: var(--navy-soft); }
.tup__drop p { flex: 1 1 180px; margin: 0; color: var(--muted); font-size: 13.5px; }
.tup__drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tup__files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tfile { position: relative; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; }
.tfile img, .tfile .tfile__icon { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy); font-size: 18px; }
.tfile span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.tfile small { display: block; color: var(--muted); }
.tfile button { border: 0; background: none; color: #B91C1C; cursor: pointer; padding: 4px; }
.tfile.is-loading { opacity: .6; }
.tfile__reason { display: block; color: #B91C1C; white-space: normal; }
.tprogress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.tprogress .tbar { flex: 1; }
.tprogress b { min-width: 46px; text-align: end; color: var(--navy-ink); }

/* Done */
.tdone { max-width: 760px; margin-inline: auto; text-align: center; }
.tdone__badge { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: #E7F7EE; color: #16A34A; font-size: 36px; box-shadow: 0 0 0 10px rgba(22, 163, 74, .08); }
.tdone__number { display: inline-block; margin: 12px 0; padding: 12px 18px; border-radius: 14px; background: var(--navy-soft); color: var(--navy-ink); font-size: clamp(18px, 1rem + .8vw, 26px); font-weight: 800; letter-spacing: .04em; }
.tdone ol { display: grid; gap: 8px; max-width: 520px; margin: 14px auto; padding: 0; list-style: none; text-align: start; counter-reset: dn; }
.tdone ol li { position: relative; padding: 10px 12px 10px 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
[dir=rtl] .tdone ol li { padding: 10px 46px 10px 12px; }
.tdone ol li::before { counter-increment: dn; content: counter(dn); position: absolute; inset-inline-start: 12px; top: 9px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }

/* Home section */
.thome-band { background: radial-gradient(900px 380px at 0% 0%, rgba(15, 67, 127, .07), transparent 70%), linear-gradient(180deg, #F7FAFD, #FFFFFF 70%); }
.thome { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.thome__art { position: relative; aspect-ratio: 5 / 4; border-radius: 26px; overflow: hidden; background: radial-gradient(600px 300px at 80% 0%, rgba(255, 196, 14, .25), transparent 60%), linear-gradient(140deg, var(--navy-deep), var(--navy) 60%, #1B5DA8); box-shadow: var(--shadow-lg); }
.thome__art .thero__map { opacity: .2; }
.thome__flags { position: absolute; inset-inline: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.thome__flags a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy-ink); font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(5, 20, 45, .25); }
[dir=rtl] .thome__flags a { padding: 6px 6px 6px 10px; }
.thome__flags .tv-flag { width: 24px; border-radius: 50%; aspect-ratio: 1; }
.thome__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.thome__card { display: flex; gap: 12px; padding: 16px; }
.thome__card h3 { margin: 0; font-size: 16px; color: var(--navy-ink); }
.thome__card p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.tmini { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tmini select { border-color: #D3DAE4; }
.thome__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Client panel */
.tvcards { display: grid; gap: 14px; }
.tvcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tvcard h3 { margin: 0; font-size: 16px; color: var(--navy-ink); }
.tvcard p { margin: 2px 0 6px; color: var(--muted); font-size: 13.5px; }
.tvbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; }
.tvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }

@media (max-width: 1100px) {
  .tsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tfilter { grid-template-columns: 1fr 1fr; }
  .tfilter > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .thero__inner, .thome, .tlayout, .twiz { grid-template-columns: 1fr; }
  .tapply, .twiz__side { position: static; }
  .twiz__side { order: -1; }
}
@media (max-width: 640px) {
  .tsteps { grid-template-columns: 1fr 1fr; }
  .twiz__grid, .thome__cards { grid-template-columns: 1fr; }
  .tmini { grid-template-columns: 1fr; }
  .tfilter { grid-template-columns: 1fr; }
  .twiz__progress span { display: none; }
  .tvcard { grid-template-columns: auto minmax(0, 1fr); }
  .tvcard > :last-child { grid-column: 1 / -1; }
  .treview dl { grid-template-columns: 1fr; }
  .treview dt { margin-top: 6px; }
}
@media (max-width: 380px) {
  .tsteps { grid-template-columns: 1fr; }
  .tstats__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .thero__flight path.route, .thero__flight .pulse { animation: none; }
  .thero__flight .moving { display: none; }
}

/* Text on the navy areas. */
.thero h1, .thero h2, .tchead h1, .tcta h2, .twiz__summary h3, .tsearch h2 { color: #fff; }
.thero .accent, .tchead .accent, .tcta .accent { color: var(--gold); background: none; }
.thero .crumbs, .tchead .crumbs { color: rgba(255, 255, 255, .7); }
.thero .crumbs a, .tchead .crumbs a { color: #fff; }
/* Map: flight paths and dots. */
.tmap__flights { pointer-events: none; }
.tmap__arc { fill: none; stroke: #E0A800; stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .85; animation: tv-dash 9s linear infinite; }
.tmap__dest { fill: #FFC40E; stroke: #fff; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: tmap-pulse 2.4s ease-in-out infinite; }
.tmap__home { fill: #0F437F; stroke: #FFC40E; stroke-width: 2; }
.tmap__plane { fill: #0F437F; }
.is-calm .tmap__arc, .is-calm .tmap__dest { animation: none; }
@keyframes tmap-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .55; } }
.tmap-phone { display: none; }
@media (max-width: 640px) {
  .tmap .tmap__stage, .tmap .tmap__legend { display: none; }
  .tmap-phone { display: grid; gap: 8px; }
}
/* Map fills the card width at a balanced height (cropped to the land by the script); legend aligned inside the card. */
.tmap.is-fitted .tmap__stage { height: auto; min-height: 0; aspect-ratio: auto; }
.tmap.is-fitted .tmap__svg, .tmap.is-fitted .tmap__stage > svg { width: 100%; height: auto; max-height: 620px; }
.tmap__legend { align-items: center; padding: 10px 4px 0; border-top: 1px solid var(--line); }
.tmap__legend a { margin-inline-start: auto; font-weight: 700; color: var(--navy); }
