/* Edusson design system */
:root {
  --navy-950: #071830;
  --navy-900: #0b2141;
  --navy-800: #11305a;
  --navy-700: #1c4277;
  --navy-600: #2a5594;
  --navy-100: #e6edf7;
  --navy-50: #f2f6fb;
  --gold: #b8924a;
  --gold-600: #9a7634;
  --gold-200: #ecdcb8;
  --gold-50: #faf5ea;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #14213a;
  --ink-2: #33415a;
  --muted: #64708a;
  --line: #e5e2d9;
  --line-2: #eceae4;
  --ok: #157a55; --ok-bg: #e3f4ec;
  --warn: #9a5b00; --warn-bg: #fdf0d9;
  --bad: #b42318; --bad-bg: #fde8e6;
  --info: #1c4277; --info-bg: #e6edf7;
  --violet: #5b3cc4; --violet-bg: #eeeafb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 33, 65, .06);
  --shadow: 0 1px 2px rgba(11, 33, 65, .05), 0 10px 30px rgba(11, 33, 65, .07);
  --shadow-lg: 0 24px 60px rgba(11, 33, 65, .18);
  --serif: 'Noto Serif Display', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; color: var(--navy-900); }
h1, h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-200); }

/* ---------- buttons */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid var(--b); border-radius: 999px;
  padding: .72em 1.35em; font: 600 .93rem/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap; background: none; color: inherit; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(184, 146, 74, .32); }
.btn-gold:hover { background: var(--gold-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--navy-50); }
.btn-outline { --b: var(--line); color: var(--navy-900); background: #fff; }
.btn-outline:hover { --b: var(--navy-600); }
.btn-ghost:hover { background: rgba(100, 112, 138, .1); }
.btn-ghost-light { color: #fff; --b: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-danger { background: var(--bad-bg); color: var(--bad); }
.btn-danger:hover { background: #fbd3cf; }
.btn-ok { background: var(--ok-bg); color: var(--ok); }
.btn-ok:hover { background: #cdeedd; }
.btn-sm { padding: .45em .95em; font-size: .84rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(100, 112, 138, .12); }
.icon-btn svg { width: 20px; height: 20px; }
.dot-count { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: .38rem; margin-bottom: 1rem; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.field .hint, .hint { font-size: .8rem; color: var(--muted); }
.req::after { content: ' *'; color: var(--bad); }
.input, select.input, textarea.input {
  width: 100%; font: 400 .95rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .72em .9em; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(42, 85, 148, .15); }
.input:disabled { background: var(--paper); color: var(--muted); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364708a' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.2em; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .25em; width: 17px; height: 17px; accent-color: var(--navy-800); flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #cfd5e0; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex-shrink: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--navy-800); }
.switch input:checked::after { transform: translateX(18px); }
.code-input { font: 600 1.7rem/1 var(--sans); letter-spacing: .5em; text-align: center; padding: .6em .4em .6em .9em; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- badges, tags */
.badge { display: inline-flex; align-items: center; gap: .4em; font-size: .74rem; font-weight: 650; padding: .28em .72em; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-info { background: var(--info-bg); color: var(--info); }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-violet { background: var(--violet-bg); color: var(--violet); }
.b-gold { background: var(--gold-50); color: var(--gold-600); }
.b-muted { background: #eef0f4; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .74rem; font-weight: 600; padding: .25em .65em; border-radius: 6px; background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100); }
.tag.gold { background: var(--gold-50); color: var(--gold-600); border-color: var(--gold-200); }

/* ---------- announcement + header */
.announce { background: var(--gold); color: #fff; text-align: center; font-size: .86rem; font-weight: 500; padding: .5rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(11, 33, 65, .96); backdrop-filter: saturate(1.4) blur(10px); color: #fff; }
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff !important; text-decoration: none !important; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand .word { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .18em; font-weight: 500; line-height: 1; }
.brand .word small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .24em; color: var(--gold-200); margin-top: .35rem; font-weight: 500; text-transform: uppercase; }
.nav { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.nav a { color: #c9d4e6; padding: .55em .8em; border-radius: 8px; font-weight: 500; font-size: .92rem; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.lang-sw { display: inline-flex; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 2px; }
.lang-sw button { background: none; border: 0; color: #c9d4e6; font: 600 .72rem var(--sans); padding: .38em .62em; border-radius: 999px; cursor: pointer; }
.lang-sw button.on { background: #fff; color: var(--navy-900); }
.lang-sw.dark { border-color: var(--line); }
.lang-sw.dark button { color: var(--muted); }
.lang-sw.dark button.on { background: var(--navy-800); color: #fff; }
.menu-toggle { display: none; color: #fff; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--navy-900); padding: 1rem 20px 1.5rem; margin: 0; display: none; box-shadow: var(--shadow-lg); max-height: calc(100vh - 74px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--gold); border-radius: 8px; }
  .header-actions .hide-sm { display: none; }
  .brand .word small { display: none; }
}
@media (max-width: 480px) { .brand .word { font-size: 1.15rem; letter-spacing: .12em; } .brand img { height: 40px; } .site-header .lang-sw { display: none; } }

/* ---------- hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 24, 48, .97) 0%, rgba(11, 33, 65, .88) 45%, rgba(11, 33, 65, .45) 100%); }
.hero .container { position: relative; padding: 6rem 0 7.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; color: var(--gold); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead { color: #c3cee0; font-size: 1.1rem; max-width: 36rem; margin-bottom: 2rem; }
.hero-search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .4rem; background: #fff; border-radius: 18px; padding: .45rem; box-shadow: var(--shadow-lg); max-width: 720px; }
.hero-search .input { border: 0; background: var(--paper); }
.hero-search .btn { border-radius: 12px; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr 1fr; } .hero-search .input:first-child { grid-column: 1 / -1; } }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: #fff; line-height: 1; }
.hero-stats span { font-size: .84rem; color: #9aabc4; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 1.75rem; backdrop-filter: blur(8px); }
.hero-card h3 { color: #fff; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.steps-mini { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; counter-reset: s; }
.steps-mini li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: start; color: #c3cee0; font-size: .92rem; }
.steps-mini li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.steps-mini b { color: #fff; display: block; font-weight: 600; }
@media (max-width: 960px) { .hero .container { grid-template-columns: minmax(0, 1fr); padding: 3.5rem 0 4.5rem; } .hero-card { display: none; } }

/* ---------- sections */
.section { padding: 5.5rem 0; }
.section.tight { padding: 3.5rem 0; }
.section-white { background: var(--surface); }
.section-navy { background: var(--navy-900); color: #dbe3f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); max-width: 38rem; margin: .6rem 0 0; }
.section-navy .section-head p { color: #9aabc4; }
.rule { width: 48px; height: 2px; background: var(--gold); border: 0; margin: 1rem 0 0; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card + .card { margin-top: 1.25rem; }
.card.pad-sm { padding: 1rem 1.15rem; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-title h3 { margin: 0; }
.link-card { display: block; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6d2c6; }

.uni-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.uni-card .cover { height: 150px; position: relative; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.uni-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.uni-card .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 24, 48, .45)); }
.uni-card .logo { position: absolute; left: 1.1rem; bottom: -28px; width: 62px; height: 62px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); z-index: 1; }
.uni-card .logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.uni-card .body { padding: 2.2rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.uni-card h3 { margin: 0; font-size: 1.05rem; }
.uni-card h3 a { color: var(--navy-900); }
.uni-card h3 a::after { content: ''; position: absolute; inset: 0; }
.loc { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: .35rem; }
.uni-card .foot { margin-top: auto; padding-top: .85rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); font-size: .86rem; }
.fee b { color: var(--navy-900); font-weight: 700; }
.fav-btn { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 0; display: grid; place-items: center; cursor: pointer; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.on { color: #d1435b; }
.fav-btn.on svg { fill: currentColor; }
.initials { font-family: var(--serif); font-weight: 600; color: var(--navy-700); font-size: 1.15rem; }

.program-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; position: relative; }
.program-card .uni { display: flex; gap: .7rem; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: .55rem; }
.program-card h3 { margin: 0 0 .5rem; font-size: 1.08rem; }
.program-card h3 a { color: var(--navy-900); }
.facts { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .85rem; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }
.price { text-align: right; }
.price b { display: block; font-size: 1.22rem; color: var(--navy-900); font-weight: 700; white-space: nowrap; }
.price .btn { margin-top: .6rem; }
@media (max-width: 640px) { .program-card { grid-template-columns: minmax(0, 1fr); } .price { text-align: left; } }
.mini-logo { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.mini-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-logo.lg { width: 64px; height: 64px; border-radius: 14px; }

.country-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; background: var(--navy-800); text-decoration: none !important; }
.country-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.country-card:hover img { transform: scale(1.05); }
.country-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 24, 48, .05) 30%, rgba(7, 24, 48, .88)); }
.country-card .in { position: relative; z-index: 1; padding: 1.25rem 1.35rem; }
.country-card h3 { color: #fff; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 0 0 .2rem; }
.country-card p { margin: 0; color: #d6deeb; font-size: .86rem; }

.sch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: flex; flex-direction: column; gap: .55rem; position: relative; }
.sch-card .cov { font-weight: 650; color: var(--gold-600); font-size: .9rem; }
.sch-card h3 { margin: 0; }
.sch-card h3 a { color: var(--navy-900); }
.sch-card h3 a::after { content: ''; position: absolute; inset: 0; }

.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.article-card .img { aspect-ratio: 16 / 9; background: var(--navy-100); overflow: hidden; }
.article-card .img img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.article-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; margin: 0; }
.article-card h3 a { color: var(--navy-900); }
.article-card h3 a::after { content: ''; position: absolute; inset: 0; }

.service { padding: 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.service .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(184, 146, 74, .14); color: var(--gold); display: grid; place-items: center; margin-bottom: 1.1rem; }
.service .ic svg { width: 24px; height: 24px; }
.service h3 { color: #fff; margin-bottom: .4rem; }
.service p { color: #9aabc4; font-size: .92rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: st; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before { counter-increment: st; content: '0' counter(st); font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold); display: block; line-height: 1; margin-bottom: 1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--navy-900); line-height: 1.5; }
.quote-card blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: .4rem; }
.person { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; overflow: hidden; font-size: .95rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card { text-align: left; }
.team-card .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); margin-bottom: 1rem; display: grid; place-items: center; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { color: var(--gold-600); font-weight: 600; font-size: .86rem; margin-bottom: .4rem; }
.partners { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: center; opacity: .85; }
.partners img { height: 46px; width: auto; filter: grayscale(1); transition: filter .2s; }
.partners a:hover img { filter: none; }

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding-top: .8rem; color: var(--ink-2); }

.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--navy-950)); color: #fff; border-radius: 22px; padding: 3rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0 0 .5rem; }
.cta-band p { color: #b8c5da; margin: 0; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(184, 146, 74, .12); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 2rem; } }

/* ---------- page header / detail */
.page-head { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; padding: 3.75rem 0 3.25rem; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; margin-bottom: .6rem; }
.page-head p { color: #b8c5da; margin: 0; max-width: 44rem; font-size: 1.05rem; }
.page-head .bg { position: absolute; inset: 0; opacity: .25; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head .container { position: relative; }
.crumbs { font-size: .84rem; color: #9aabc4; margin-bottom: 1.1rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: #c9d4e6; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; padding: 2.5rem 0 4.5rem; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 96px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; word-break: break-word; }
.uni-hero { position: relative; background: var(--navy-900); color: #fff; }
.uni-hero .bg { position: absolute; inset: 0; }
.uni-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.uni-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 24, 48, .25), rgba(7, 24, 48, .95)); }
.uni-hero .container { position: relative; z-index: 1; padding: 5rem 0 2.5rem; display: flex; gap: 1.5rem; align-items: flex-end; flex-wrap: wrap; }
.uni-hero .logo { width: 104px; height: 104px; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-lg); }
.uni-hero .logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.uni-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 .35rem; }
.uni-hero .meta { color: #c3cee0; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .92rem; }
.tabs-line { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs-line button, .tabs-line a { background: none; border: 0; padding: .8rem 1rem; font: 600 .92rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs-line .on { color: var(--navy-900); border-bottom-color: var(--gold); }
.pill-tabs { display: inline-flex; gap: .25rem; background: #ebe8e0; padding: 4px; border-radius: 999px; }
.pill-tabs button { border: 0; background: none; padding: .5em 1.1em; border-radius: 999px; font: 600 .88rem var(--sans); color: var(--muted); cursor: pointer; }
.pill-tabs button.on { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* ---------- prose (rendered rich text) */
.prose { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 3px solid var(--gold); background: var(--gold-50); border-radius: 0 8px 8px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* ---------- filters / list pages */
.filters-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: .6rem; margin: -2.25rem 0 1.75rem; position: relative; box-shadow: var(--shadow); z-index: 2; }
@media (max-width: 1080px) { .filters-bar { grid-template-columns: 1fr 1fr 1fr; } .filters-bar .input:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filters-bar { grid-template-columns: 1fr 1fr; } }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.result-count { color: var(--muted); font-size: .92rem; }
.empty { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 42px; height: 42px; color: #b7bfcd; margin: 0 auto 1rem; }
.empty h3 { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 .9rem var(--sans); color: var(--ink-2); }
.pager button.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.35rem; }
.contact-item .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; border: 1px solid var(--gold-200); }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--navy-900); }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); margin-top: 1rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-footer { background: var(--navy-950); color: #8ea0bb; padding: 4rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: 1rem; letter-spacing: .04em; }
.site-footer a { color: #b8c5da; display: block; margin-bottom: .45rem; }
.site-footer .socials { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer .socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; margin: 0; }
.site-footer .socials svg { width: 18px; height: 18px; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.site-footer .copy a { display: inline; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-side { background: var(--navy-900); color: #fff; padding: 3rem 4rem; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side .bg { position: absolute; inset: 0; opacity: .22; }
.auth-side .bg img { width: 100%; height: 100%; object-fit: cover; }
.auth-side > * { position: relative; }
.auth-side .mid { margin: auto 0; max-width: 30rem; }
.auth-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; color: #c3cee0; }
.auth-side li { display: flex; gap: .7rem; align-items: flex-start; }
.auth-side li svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.auth-main { display: flex; flex-direction: column; padding: 2rem 1.5rem; }
.auth-main .top { display: flex; justify-content: space-between; align-items: center; }
.auth-box { width: min(440px, 100%); margin: auto; padding: 2rem 0; }
.auth-box h1 { font-size: 2rem; margin-bottom: .4rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice { border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem; border: 1px solid; }
.notice.info { background: var(--info-bg); border-color: #cddbee; color: var(--navy-800); }
.notice.warn { background: var(--warn-bg); border-color: #f4dcae; color: var(--warn); }
.notice.ok { background: var(--ok-bg); border-color: #bfe5d2; color: var(--ok); }
.notice.bad { background: var(--bad-bg); border-color: #f6c9c4; color: var(--bad); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: .3rem; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- app shell (dashboard + panel) */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.app-side { background: var(--navy-900); color: #c9d4e6; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.1rem .85rem; overflow-y: auto; }
.app-side .brand { padding: .25rem .5rem 1.4rem; }
.app-side .brand img { height: 40px; }
.app-side .brand .word { font-size: 1.15rem; }
.app-nav { display: flex; flex-direction: column; gap: .15rem; }
.app-nav .sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #6f82a1; margin: 1.1rem .75rem .4rem; font-weight: 650; }
.app-nav a { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none !important; font-weight: 500; font-size: .92rem; padding: .62rem .8rem; border-radius: 10px; }
.app-nav a svg { width: 19px; height: 19px; opacity: .8; flex-shrink: 0; }
.app-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-nav a.on { background: #fff; color: var(--navy-900); }
.app-nav a.on svg { opacity: 1; color: var(--gold-600); }
.app-nav .count { margin-left: auto; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; }
.app-nav a.on .count { background: var(--navy-800); }
.app-side .me { margin-top: auto; padding: 1rem .6rem .2rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: .7rem; align-items: center; font-size: .84rem; }
.app-side .me b { color: #fff; display: block; font-size: .9rem; }
.app-side .me .avatar { background: rgba(255, 255, 255, .1); color: #fff; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { height: 68px; display: flex; align-items: center; gap: .75rem; padding: 0 2rem; background: rgba(247, 245, 240, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.app-top .title { font-weight: 650; color: var(--navy-900); }
.app-content { padding: 2rem 2rem 4rem; max-width: 1280px; width: 100%; }
.app-content > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.app-content > header h1 { font-size: 1.8rem; margin: 0; }
.app-content > header p { margin: .3rem 0 0; color: var(--muted); }
.app .menu-btn { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .app-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .app .menu-btn { display: inline-grid; }
  .app-top { padding: 0 1rem; }
  .app-content { padding: 1.25rem 1rem 3rem; }
  .side-scrim { position: fixed; inset: 0; background: rgba(7, 24, 48, .45); z-index: 80; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; display: block; color: inherit; text-decoration: none !important; }
.kpi span { color: var(--muted); font-size: .84rem; display: block; }
.kpi b { display: block; font-size: 2rem; line-height: 1.25; color: var(--navy-900); font-family: var(--serif); font-weight: 600; }
.kpi.navy { background: var(--navy-800); border-color: var(--navy-800); }
.kpi.navy span { color: #a9b8d0; } .kpi.navy b { color: #fff; }
a.kpi:hover { box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); } }
.progress { height: 8px; background: var(--navy-100); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-700), var(--gold)); border-radius: 999px; }
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; margin: .5rem 0 0; }
.stepper div { text-align: center; font-size: .72rem; color: var(--muted); }
.stepper div::before { content: ''; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: .45rem; }
.stepper div.done::before { background: var(--navy-700); }
.stepper div.now::before { background: var(--gold); }
.stepper div.now { color: var(--navy-900); font-weight: 650; }
@media (max-width: 640px) { .stepper div { font-size: 0; } }

/* tables */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 650; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #faf9f5; }
.strong { font-weight: 650; color: var(--ink); }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.toolbar .input { width: auto; min-width: 170px; }
.toolbar .grow { flex: 1; min-width: 220px; }

/* list rows (dashboard) */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row.click { cursor: pointer; margin: 0 -.75rem; padding-inline: .75rem; border-radius: 10px; }
.list-row.click:hover { background: var(--paper); }
.app-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: .85rem; color: inherit; text-decoration: none !important; }
a.app-card:hover { box-shadow: var(--shadow); }
.app-card .mini-logo { width: 56px; height: 56px; }

/* documents */
.dropzone { border: 2px dashed #cfd5e0; border-radius: var(--radius); padding: 1.75rem; text-align: center; background: #fbfaf7; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--navy-600); background: var(--navy-50); }
.dropzone svg { width: 34px; height: 34px; color: var(--navy-600); margin: 0 auto .6rem; }
.doc-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .04em; }
.doc-ic.pdf { background: #fdecea; color: #c0362c; }
.doc-ic.img { background: #e8f5ee; color: #157a55; }
.doc-ic.doc { background: #e7effa; color: #1c4277; }
.doc-row .name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.doc-row .note { grid-column: 2 / -1; font-size: .84rem; color: var(--bad); margin-top: -.3rem; }
.checklist { display: grid; gap: .5rem; }
.checklist .ci { display: flex; gap: .7rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.checklist .ci.ok { border-color: #bfe5d2; background: #f5fbf8; }
.checklist .ci .tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #cfd5e0; flex-shrink: 0; color: #fff; }
.checklist .ci.ok .tick { background: var(--ok); border-color: var(--ok); }
.checklist .ci .tick svg { width: 14px; height: 14px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.15rem 1.7rem; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.timeline li.gold::after { border-color: var(--gold); }
.timeline li.private::after { border-color: var(--warn); }
.timeline .when { font-size: .76rem; color: var(--muted); }
.timeline .msg { background: var(--paper); border-radius: 10px; padding: .6rem .85rem; margin-top: .4rem; white-space: pre-wrap; }
.timeline li.private .msg { background: var(--warn-bg); }

/* chat */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 200px); min-height: 520px; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list .head { padding: 1rem; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; }
.chat-list .items { overflow-y: auto; flex: 1; }
.conv { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); cursor: pointer; align-items: center; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.conv:hover { background: var(--paper); }
.conv.on { background: var(--navy-50); box-shadow: inset 3px 0 0 var(--gold); }
.conv .t { font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .p { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .u { background: var(--gold); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; }
.conv .when { font-size: .72rem; color: var(--muted); text-align: right; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-main .head { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; gap: .8rem; align-items: center; }
.chat-main .head .t { font-weight: 650; }
.msgs { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; background: #fbfaf7; }
.bubble-row { display: flex; gap: .6rem; align-items: flex-end; max-width: 78%; }
.bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .6rem .9rem; font-size: .93rem; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow-sm); }
.bubble-row.me .bubble { background: var(--navy-800); color: #fff; border-color: var(--navy-800); border-radius: 16px 16px 4px 16px; }
.bubble .meta { font-size: .7rem; color: var(--muted); margin-top: .25rem; }
.bubble-row.me .bubble .meta { color: #a9b8d0; text-align: right; }
.bubble .file { display: flex; gap: .55rem; align-items: center; padding: .5rem .6rem; margin: .2rem 0 .3rem; border-radius: 10px; background: rgba(100, 112, 138, .1); color: inherit; text-decoration: none !important; font-size: .86rem; }
.bubble-row.me .bubble .file { background: rgba(255, 255, 255, .12); }
.day-sep { align-self: center; font-size: .74rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: .15rem .7rem; border-radius: 999px; margin: .8rem 0; }
.composer { border-top: 1px solid var(--line); padding: .75rem; display: flex; gap: .5rem; align-items: flex-end; background: #fff; }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 12px; }
.composer .file-chip { font-size: .8rem; background: var(--navy-50); border-radius: 8px; padding: .3rem .6rem; display: inline-flex; gap: .4rem; align-items: center; }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 2rem; }
.seen { font-size: .72rem; color: var(--muted); align-self: flex-end; margin-top: -.1rem; }
@media (max-width: 860px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 150px); }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-main { display: none; }
  .bubble-row { max-width: 90%; }
}

/* notifications dropdown */
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 100; overflow: hidden; color: var(--ink); }
.dropdown .head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.dropdown .items { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); cursor: pointer; text-decoration: none !important; color: inherit; }
.notif:hover { background: var(--paper); }
.notif.unread { background: var(--navy-50); }
.notif .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); display: grid; place-items: center; flex-shrink: 0; }
.notif .ic svg { width: 16px; height: 16px; }
.notif b { font-size: .88rem; display: block; }
.notif span { font-size: .82rem; color: var(--muted); }

/* modal / drawer / toast */
.overlay { position: fixed; inset: 0; background: rgba(7, 24, 48, .5); z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 5vh 1rem; overflow-y: auto; animation: fade .15s; }
.overlay.right { justify-content: flex-end; align-items: stretch; padding: 0; }
.modal { width: min(680px, 100%); background: #fff; border-radius: 18px; animation: pop .18s ease-out; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(980px, 100%); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 18px 18px 0 0; z-index: 2; }
.modal .mh h3 { margin: 0; font-size: 1.15rem; }
.modal .mb { padding: 1.5rem; }
.modal .mf { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .5rem; background: #fbfaf7; border-radius: 0 0 18px 18px; position: sticky; bottom: 0; }
.drawer { width: min(920px, 100%); background: var(--paper); height: 100%; overflow-y: auto; animation: slide .2s ease-out; }
.x { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; padding: .15rem .5rem; border-radius: 8px; }
.x:hover { background: var(--paper); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.toasts { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.toast { background: var(--navy-900); color: #fff; padding: .8rem 1.15rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: min(460px, 92vw); animation: pop .2s; display: flex; gap: .6rem; align-items: center; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.toast.error::before { background: #f97066; }
.toast.ok::before { background: #32d583; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--navy-700); border-radius: 50%; animation: spin .8s linear infinite; margin: 3rem auto; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eceae4 25%, #f5f3ee 50%, #eceae4 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* CMS editor */
.i18n-tabs { display: inline-flex; gap: 2px; margin-left: auto; }
.i18n-tabs button { border: 1px solid var(--line); background: #fff; font: 700 .66rem var(--sans); padding: .2em .55em; border-radius: 6px; cursor: pointer; color: var(--muted); }
.i18n-tabs button.on { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.i18n-tabs button.filled:not(.on) { color: var(--navy-700); border-color: #b9c8e0; }
.field-head { display: flex; align-items: center; gap: .5rem; }
.img-field { display: flex; gap: .8rem; align-items: center; }
.img-field .preview { width: 92px; height: 70px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper) center / cover no-repeat; flex-shrink: 0; display: grid; place-items: center; color: var(--muted); font-size: .72rem; overflow: hidden; }
.img-field .preview img { width: 100%; height: 100%; object-fit: contain; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; position: relative; padding: 0; text-align: left; font: inherit; }
.media-item .im { aspect-ratio: 4 / 3; background: var(--paper); }
.media-item .im img { width: 100%; height: 100%; object-fit: cover; }
.media-item .nm { font-size: .74rem; padding: .4rem .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.media-item:hover { box-shadow: var(--shadow); }
.multi-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.multi-chips label { display: inline-flex; gap: .35rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .84rem; cursor: pointer; background: #fff; }
.multi-chips label:has(input:checked) { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.multi-chips input { display: none; }
.md-toolbar { display: flex; gap: .25rem; margin-bottom: .35rem; flex-wrap: wrap; }
.md-toolbar button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .15rem .55rem; font: 600 .78rem var(--sans); cursor: pointer; color: var(--ink-2); }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.coll-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; color: inherit; text-decoration: none !important; }
.coll-tile:hover { box-shadow: var(--shadow); }
.coll-tile .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; flex-shrink: 0; }
.coll-tile .ic svg { width: 22px; height: 22px; }
.coll-tile b { display: block; color: var(--navy-900); }
.drag-handle { cursor: grab; color: #a3acbd; }
tr.dragging { opacity: .4; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: .5rem; }
.bars div { flex: 1; background: var(--navy-100); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div.has { background: var(--navy-700); }
.bars div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--navy-900); color: #fff; font-size: .7rem; padding: .15rem .4rem; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; }
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: .75rem; align-items: center; font-size: .86rem; margin-bottom: .55rem; cursor: pointer; }
.hbar .track { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--navy-700); border-radius: 999px; }
pre.code { background: var(--navy-950); color: #d6deeb; padding: 1rem; border-radius: 10px; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; }
.app-top .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) { .app-top .lang-sw { display: none; } }
