/* Partner portal — partners.syfarix.com */
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('fonts/cairo-latin-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --brand: #0C66E1; --navy: #000835; --navy-2: #06154a;
  --brand-50: #eef4fe; --brand-100: #d9e7fd;
  --ink: #0b1433; --text: #2b3350; --muted: #69728c; --line: #e4e9f2; --bg: #f5f7fb; --card: #fff;
  --green: #12925a; --green-50: #e7f6ee; --amber: #b7790f; --amber-50: #fdf4e2; --red: #d23c3c; --red-50: #fdeded; --grey-50: #f0f2f7;
  --r-lg: 22px; --r: 16px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(0, 8, 53, .05), 0 10px 30px rgba(0, 8, 53, .07);
  --shadow-lg: 0 30px 70px rgba(0, 8, 53, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .wrapr { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
svg.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(12, 102, 225, .3); }
.btn.primary:hover { background: #0a59c6; color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.white { background: #fff; color: var(--navy); }
.btn.glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: #f3c9c9; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.lbl .opt { font-weight: 500; color: var(--muted); }
.inp { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12, 102, 225, .12); }
.inp.bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(210, 60, 60, .1); }
textarea.inp { min-height: 92px; resize: vertical; }
.iwrap { position: relative; }
.iwrap > svg.ic, .iwrap > span[data-icon] { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.iwrap > .inp { padding-left: 40px; }
.iwrap > .eye { display: flex; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; cursor: pointer; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.err { background: var(--red-50); color: var(--red); border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 600; }
.ok-box { background: var(--green-50); color: var(--green); border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand img { height: 34px; width: auto; }
.brand .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a.lnk { color: rgba(255, 255, 255, .82); font-weight: 600; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.top nav a.lnk:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; overflow: hidden; margin-left: 6px; }
.lang button { border: 0; background: none; padding: 6px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: rgba(255, 255, 255, .7); }
.lang button.on { background: #fff; color: var(--navy); }
.lang.dark { border-color: var(--line); }
.lang.dark button { color: var(--muted); }
.lang.dark button.on { background: var(--navy); color: #fff; }
@media (max-width: 760px) { .top nav a.lnk { display: none; } .brand .tag { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 520px at 85% -10%, rgba(12, 102, 225, .55), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(12, 102, 225, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 130px 0 90px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9cc3ff; background: rgba(12, 102, 225, .18); border: 1px solid rgba(156, 195, 255, .25); padding: 6px 12px; border-radius: 99px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 18px 0 16px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #6fb0ff, #b9d7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 560px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.stats b { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.stats span { color: rgba(255, 255, 255, .62); font-size: 14px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 110px; } }

/* login card */
.login { background: rgba(255, 255, 255, .97); color: var(--text); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.login h2 { font-size: 24px; font-weight: 800; }
.login .sub { color: var(--muted); margin: 4px 0 20px; font-size: 15px; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login .foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- sections ---------- */
section.sec { padding: 84px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.sec-head .eyebrow { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 8px 0 10px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.airlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.al { background: #fff; border: 1px solid var(--line); border-radius: var(--r); height: 96px; display: grid; place-items: center; padding: 16px 20px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; position: relative; }
.al:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.al img { max-height: 46px; max-width: 100%; object-fit: contain; }
.al .nm { font-weight: 800; color: var(--ink); text-align: center; font-size: 15px; }
.al .cd { position: absolute; top: 7px; right: 9px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.feat .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.feat .fi svg.ic { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px 24px 24px 74px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.band { background: linear-gradient(120deg, var(--brand), #0a4fb3 60%, var(--navy)); border-radius: 28px; color: #fff; padding: 46px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: 30px; font-weight: 800; }
.band p { margin: 6px 0 0; color: rgba(255, 255, 255, .8); }
footer.foot { padding: 34px 0 40px; color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ---------- apply page ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 112px 0 120px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(12, 102, 225, .55), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; position: relative; z-index: 1; }
.page-hero p { color: rgba(255, 255, 255, .75); margin: 8px 0 0; font-size: 17px; max-width: 640px; position: relative; z-index: 1; }
.form-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px; margin-top: -76px; position: relative; z-index: 2; margin-bottom: 60px; }
.fsec { padding: 6px 0 26px; }
.fsec + .fsec { border-top: 1px solid var(--line); padding-top: 26px; }
.fsec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fsec-h .n { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.fsec-h h3 { font-size: 19px; font-weight: 800; }
.fsec-h p { margin: 0; color: var(--muted); font-size: 14px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } .form-card { padding: 20px; } }
.doc { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; background: #fbfcfe; transition: border-color .2s; }
.doc.done { border-color: #a9dcc2; background: #f6fcf9; }
.doc.bad { border-color: #f1b8b8; }
.doc-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.doc-h b { font-size: 15px; color: var(--ink); }
.doc-h span { font-size: 12.5px; color: var(--muted); }

/* modern dropzone */
.drop { position: relative; display: flex; align-items: center; gap: 12px; border: 1.5px dashed #b9c7df; border-radius: 13px; padding: 12px 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; margin-top: 10px; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-50); }
.drop.over { transform: scale(1.01); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .di { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.drop .dt { flex: 1; min-width: 0; font-size: 14px; }
.drop .dt b { display: block; color: var(--ink); font-size: 14.5px; }
.drop .dt span { color: var(--muted); font-size: 12.5px; }
.drop.has { border-style: solid; border-color: #a9dcc2; background: #fff; }
.drop.has .di { background: var(--green-50); color: var(--green); }
.drop .fname { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 700; }
.drop .rm { position: relative; z-index: 2; border: 0; background: var(--grey-50); color: var(--muted); width: 30px; height: 30px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.drop .rm:hover { background: var(--red-50); color: var(--red); }
.drop .thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.files-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chip-file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; font-size: 14px; background: #fff; }
.chip-file .fname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.chip-file button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; }
.done-card { text-align: center; padding: 30px 10px; }
.done-card .big { width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.done-card .big svg.ic { width: 34px; height: 34px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- dashboard ---------- */
body.app { background: var(--bg); }
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.side .brand { padding: 4px 8px 18px; }
.side .agency { margin: 0 4px 16px; padding: 12px; border-radius: 13px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.side .agency b { display: block; font-size: 15px; line-height: 1.3; }
.side .agency span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.tab { display: flex; align-items: center; gap: 11px; border: 0; background: none; color: rgba(255, 255, 255, .72); padding: 11px 12px; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 15px; text-align: left; width: 100%; }
.tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.tab.on { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(12, 102, 225, .35); }
.tab .bdg { margin-left: auto; background: rgba(255, 255, 255, .18); border-radius: 99px; font-size: 12px; padding: 1px 8px; font-weight: 800; }
.side .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.main { min-width: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 18px 30px; background: rgba(245, 247, 251, .9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.bar h1 { font-size: 22px; font-weight: 800; }
.content { padding: 26px 30px 60px; max-width: 1200px; }
.mtabs { display: none; }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .bar { padding: 12px 16px; flex-wrap: wrap; }
  .bar .mbrand { display: flex !important; }
  .content { padding: 18px 16px 90px; }
  .mtabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--navy); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mtabs button { flex: 1; border: 0; background: none; color: rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 6px 2px; border-radius: 10px; cursor: pointer; }
  .mtabs button.on { color: #fff; background: rgba(255, 255, 255, .08); }
  .mtabs svg.ic { width: 21px; height: 21px; }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: #fff; border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi .k { color: var(--muted); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 6px; line-height: 1.15; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 700; }
.kpi .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kpi.hl { background: linear-gradient(140deg, var(--brand), #0a4fb3); color: #fff; border: 0; }
.kpi.hl .k, .kpi.hl .s, .kpi.hl .v small { color: rgba(255, 255, 255, .78); }
.kpi.hl .v { color: #fff; }
.kpi.warn .v { color: var(--red); }
.card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.card + .card { margin-top: 18px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h3 { font-size: 17px; font-weight: 800; }
.card-b { padding: 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafcff; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .tbl.resp thead { display: none; }
  .tbl.resp tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.resp td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .tbl.resp td::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
  .tbl.resp td.num { text-align: right; }
  .tbl.resp td.act::before { content: ''; }
}
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.green { background: var(--green-50); color: var(--green); }
.pill.amber { background: var(--amber-50); color: var(--amber); }
.pill.red { background: var(--red-50); color: var(--red); }
.pill.blue { background: var(--brand-50); color: var(--brand); }
.pill.grey { background: var(--grey-50); color: var(--muted); }
.kind { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.kind.adm { background: var(--amber-50); color: var(--amber); }
.kind.tkt { background: var(--green-50); color: var(--green); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg.ic { width: 38px; height: 38px; color: #b9c3d6; margin-bottom: 8px; }
.seg { display: inline-flex; background: var(--grey-50); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 8, 53, .1); }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spin { width: 22px; height: 22px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.files { display: flex; gap: 6px; flex-wrap: wrap; }
.fbtn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 9px; background: var(--grey-50); color: var(--ink); border: 0; cursor: pointer; max-width: 200px; }
.fbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbtn:hover { background: var(--brand-50); color: var(--brand); }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14.5px; }
.dl dt { color: var(--muted); font-weight: 600; } .dl dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 8, 53, .55); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .2s var(--ease); }
.modal.sm { width: min(460px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 19px; font-weight: 800; flex: 1; }
.modal-h .x { border: 0; background: var(--grey-50); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.modal-b { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }
@media (max-width: 560px) { .modal-bg { padding: 0; place-items: end stretch; } .modal { border-radius: 22px 22px 0 0; max-height: 92vh; } }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 10px; background: #fff; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s; }
.method svg.ic { width: 24px; height: 24px; color: var(--muted); }
.method.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.method.on svg.ic { color: var(--brand); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); color: #154b9c; border-radius: 12px; padding: 11px 13px; font-size: 13.5px; }
.alloc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.alloc-row { display: grid; grid-template-columns: 26px 1fr 140px; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.alloc-row:last-child { border-bottom: 0; }
.alloc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.alloc-row .inp { padding: 7px 10px; text-align: right; font-size: 14px; }
.alloc-row .t b { color: var(--ink); } .alloc-row .t span { color: var(--muted); font-size: 12.5px; display: block; }
.alloc-sum { display: flex; justify-content: space-between; padding: 10px 12px; background: #fafbfd; font-weight: 700; font-size: 14px; }
@media (max-width: 560px) { .alloc-row { grid-template-columns: 22px 1fr; } .alloc-row .inp { grid-column: 2; } .methods { grid-template-columns: 1fr 1fr 1fr; } .method { padding: 10px 4px; font-size: 12.5px; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 60; box-shadow: var(--shadow-lg); animation: up .2s var(--ease); max-width: calc(100% - 32px); }
@media (max-width: 920px) { .toast { bottom: 84px; } }
.inp::placeholder { font-family: 'Cairo', system-ui, sans-serif; text-transform: none; color: #9aa3b8; letter-spacing: 0; }
@media (min-width: 921px) { .shell { background: linear-gradient(90deg, var(--navy) 250px, var(--bg) 250px); } .m-only { display: none !important; } }
@media (max-width: 600px) { #stmtBtn { display: none; } .kpi .v { font-size: 21px; } .kpi { padding: 16px; } .bar h1 { font-size: 19px; } }
/* first sign-in: choose a password */
.fp { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 80% -10%, rgba(12, 102, 225, .45), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.fp-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.fp-card .sub { margin: 0 0 4px; }
/* support */
.tab .bdg.new { background: #ff5a5f; }
.mtabs button { position: relative; }
.mtabs .mdot { position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: #ff5a5f; }
@media (max-width: 920px) { .mtabs button { font-size: 10px; padding: 6px 0; } }
.sup-list { display: flex; flex-direction: column; }
.sup-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; width: 100%; }
.sup-row:last-child { border-bottom: 0; }
.sup-row:hover { background: #fafcff; }
.sup-row.unread .sup-subj { font-weight: 800; }
.sup-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.sup-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sup-top { font-size: 13px; }
.sup-subj { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-side { display: flex; align-items: center; gap: 8px; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5a5f; }
@media (max-width: 600px) { .sup-row { flex-wrap: wrap; padding: 12px 14px; } .sup-side { width: 100%; padding-left: 54px; } }
.sup-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .sup-types { grid-template-columns: 1fr; } }
.sup-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sup-type:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.sup-type b { color: var(--ink); font-size: 16px; }
.span2 { grid-column: 1 / -1; }
.sup-fields { grid-template-columns: 180px 1fr; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; border-radius: 16px; padding: 12px 14px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--grey-50); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-h { display: flex; gap: 10px; justify-content: space-between; font-size: 12.5px; opacity: .85; margin-bottom: 4px; }
.msg-b { white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.msg.me .fbtn { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 600px) { .msg { max-width: 92%; } }
.sup-reply { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--r-lg) var(--r-lg); }
