/* HUB design system — HUB Business identity (navy #23346C, Cairo) on Braha-style hand-written CSS. */
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-variable.ttf') format('truetype'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --navy: #23346C; --navy-900: #19254D; --navy-700: #2C4185; --steel: #B6BCD2; --slate: #758C9C; --ink-soft: #626985;
  --cream: #FBF6F3; --crimson: #A32B46; --teal: #0EA8BD; --orange: #FFA033; --green: #8DBF4E; --wa: #25D366;
  --bg: #ffffff; --bg-soft: #F6F7FB; --surface: #ffffff; --surface-2: #F3F4F9; --text: #19254D; --muted: #626985; --line: #E2E5EF;
  --primary: var(--navy); --primary-ink: #ffffff; --focus: #0EA8BD;
  --ok: #1F8A5B; --ok-bg: #E4F5EC; --warn: #9A6100; --warn-bg: #FFF2DC; --danger: #A32B46; --danger-bg: #FBE7EB; --info: #0B7D8C; --info-bg: #E0F5F8;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(25,37,77,.06), 0 8px 24px rgba(25,37,77,.07); --shadow-lg: 0 18px 50px rgba(25,37,77,.18);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; --wrap: 1200px; --header-h: 76px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A1029; --bg-soft: #0D1433; --surface: #131B42; --surface-2: #1A2452; --text: #F2F4FB; --muted: #AEB7D8; --line: #27336B;
  --primary: #0EA8BD; --primary-ink: #ffffff; --cream: #111A40; --steel: #16204D;
  --ok-bg: #0F3A2C; --ok: #63D69F; --warn-bg: #3A2A0C; --warn: #FFC266; --danger-bg: #3D1522; --danger: #FF8FA6; --info-bg: #0B3342; --info: #6FDCEA;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.3); color-scheme: dark;
}
:root[data-theme="dark"] .header { background: rgba(10,16,41,.92); }
:root[data-theme="dark"] .page-hero, :root[data-theme="dark"] .topbar { background-color: #19254D; }
:root[data-theme="dark"] .page-hero::before { background: linear-gradient(180deg, rgba(25,37,77,.75), rgba(19,27,66,.97)); }
:root[data-theme="dark"] .btn-ghost { color: var(--text); border-color: var(--line); }
:root[data-theme="dark"] .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
:root[data-theme="dark"] .btn:hover { box-shadow: 0 6px 18px rgba(14,168,189,.25); }
:root[data-theme="dark"] .nav a[aria-current="page"], :root[data-theme="dark"] .nav a:hover { color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-danger { color: #fff; }
:root[data-theme="dark"] .btn-light { color: #19254D; }
:root[data-theme="dark"] .sec-navy { background: #131B42; }
:root[data-theme="dark"] .welcome { background: linear-gradient(120deg, #19254D, #23346C); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background: #0D1433; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); letter-spacing: .1px; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--text); font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .right { text-align: end; } .nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.danger { color: var(--danger) !important; } .mt { margin-top: 1.2rem; } .pre { white-space: pre-wrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wrap-row { flex-wrap: wrap; } .row-end { display: flex; justify-content: flex-end; gap: 10px; } .row-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rounded { border-radius: var(--radius); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; } :root[data-theme="dark"] .only-light { display: none; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; } :root[data-theme="dark"] .logo-light { display: none; }

/* ---------- buttons ---------- */
.btn { --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border-radius: 10px; border: 1.5px solid var(--b); background: var(--b); color: var(--primary-ink); font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; position: relative; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(35,52,108,.22); }
.btn:active { transform: none; }
.btn-primary { --b: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); box-shadow: none; }
.btn-light { --b: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-danger { --b: var(--crimson); color: #fff; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 4px 6px; min-height: auto; } .btn-link:hover { box-shadow: none; text-decoration: underline; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .7; pointer-events: none; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.danger:hover { background: var(--danger-bg); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; font-weight: 700; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.lang-switch:hover { background: rgba(127,127,127,.12); }
.lang-switch.compact span { display: none; } @media (min-width: 700px) { .lang-switch.compact span { display: inline; } }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy) url('/img/pattern-bg.webp') center/cover; color: #DCE1F1; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-social { display: flex; gap: 16px; align-items: center; }
.topbar-social > a:not(.lang-switch) { width: 28px; justify-content: center; }
@media (max-width: 640px) { .topbar-social { gap: 4px; } .topbar-social > a:not(.lang-switch) { display: none; } .topbar-contact a:nth-child(2) { display: none; } .topbar-contact span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.header.scrolled { box-shadow: 0 6px 20px rgba(25,37,77,.08); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand .logo { height: 54px; width: auto; }
.brand-name { font-weight: 900; font-size: 1.1rem; letter-spacing: .5px; white-space: nowrap; } .brand-name b { font-weight: 900; }
:root[data-theme="dark"] .brand { color: #fff; }
.nav { display: flex; gap: 2px; margin-inline: auto; flex-wrap: nowrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; padding: 8px 9px; border-radius: 8px; white-space: nowrap; position: relative; }
.nav a:hover { color: var(--primary); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 9px; bottom: 2px; height: 2px; background: var(--teal); border-radius: 2px; }
[dir="rtl"] .nav a { text-transform: none; font-size: .92rem; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.header-account { display: flex; gap: 8px; margin-inline-start: 6px; }
.header-account .avatar { margin-inline-end: 2px; }
.nav-toggle { display: none; }
@media (max-width: 1180px) { .nav { display: none; } .nav-toggle { display: inline-grid; } }
@media (max-width: 760px) { .header-account { display: none; } .brand-name { display: none; } .brand .logo { height: 46px; } }

.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(15,21,48,.55); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(360px, 88vw); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; animation: slideIn .22s ease; }
[dir="rtl"] .drawer-panel { animation-name: slideInRtl; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } } @keyframes slideInRtl { from { transform: translateX(-30px); opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.drawer-nav a[aria-current="page"] { color: var(--teal); }
.drawer-account { display: grid; gap: 8px; } .drawer-account .btn { width: 100%; }
.drawer-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.social { display: flex; gap: 6px; } .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: inherit; background: rgba(127,127,127,.12); }
.social a:hover { background: var(--teal); color: #fff; }
.social-lg a { width: 46px; height: 46px; }

.search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(15,21,48,.7); display: grid; place-items: start center; padding-top: 12vh; }
.search-box, .search-inline { display: flex; align-items: center; gap: 10px; width: min(640px, 92vw); background: var(--surface); border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-lg); }
[dir="rtl"] .search-box { padding: 8px 16px 8px 8px; }
.search-box input, .search-inline input { flex: 1; border: 0; background: transparent; font: 600 1.1rem var(--font); color: var(--text); padding: 10px 0; min-width: 0; }
.search-box input:focus, .search-inline input:focus { outline: none; }
.search-inline { width: 100%; box-shadow: none; border: 1.5px solid var(--line); margin-bottom: 16px; }

/* ---------- hero & sections ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(25,37,77,.96) 0%, rgba(35,52,108,.86) 50%, rgba(35,52,108,.55) 100%), url('/img/hero.webp') center/cover; }
[dir="rtl"] .hero-bg { background: linear-gradient(250deg, rgba(25,37,77,.96) 0%, rgba(35,52,108,.86) 50%, rgba(35,52,108,.55) 100%), url('/img/hero.webp') center/cover; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: .4em; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #DCE1F1; max-width: 620px; }
.kicker { display: inline-block; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; font-size: .82rem; color: var(--orange); margin-bottom: 14px; }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .95rem; }
.hero-art img { width: 100%; max-width: 440px; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); display: block; margin-inline: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { max-width: 300px; } }
.pattern-strip { height: 6px; background: linear-gradient(90deg, var(--navy-700) 0 40%, var(--teal) 40% 75%, var(--orange) 75% 100%); }
.hero .pattern-strip { position: relative; height: 6px; }

.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-cream { background: var(--cream); }
.sec-steel { background: var(--steel); }
.sec-navy { background: var(--navy); color: #DCE1F1; }
.sec-navy h2, .sec-navy h3 { color: #fff; }
.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); }
:root[data-theme="dark"] .sec-head h2 { color: #fff; }
.sec-head.light h2 { color: #fff; } .sec-head.light p { color: #DCE1F1; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-line { display: block; width: 64px; height: 3px; background: var(--navy); border-radius: 3px; margin-top: 12px; }
.sec-navy .sec-line, .speeches .sec-line { background: var(--teal); }
.lead-sm { font-size: 1.08rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.page-hero { position: relative; background: var(--navy) url('/img/pattern-bg.webp') center/cover; color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,37,77,.6), rgba(35,52,108,.92)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 6px 0 8px; }
.page-hero p { color: #DCE1F1; max-width: 760px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #B6BCD2; } .crumbs a { color: #DCE1F1; text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.corner { display: none; }
.corner-a { top: 18px; inset-inline-end: 22px; } .corner-b { bottom: 18px; inset-inline-end: 90px; transform: rotate(180deg); }
[dir="rtl"] .corner-a { transform: scaleX(-1); } [dir="rtl"] .corner-b { transform: rotate(180deg) scaleX(-1); }
@media (max-width: 640px) { .corner { width: 36px; } .corner-b { inset-inline-end: 64px; } }

.values-pill { display: block; width: 100%; max-width: 560px; margin: 0 auto 34px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.value-card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.value-ic, .tile-ic, .vm-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--c, var(--navy)); color: #fff; margin-bottom: 14px; }
.value-ic .ic, .tile-ic .ic, .vm-ic .ic { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.3rem; }
.value-card p { color: var(--muted); margin: 0; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: 18px; padding: 0 22px 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; border: 1px solid var(--line); overflow: hidden; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-tab { display: block; margin: 18px -6px 0; padding: 14px 18px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 800; text-align: center; line-height: 1.35; }
.service-card p { color: var(--muted); margin: 0; flex: 1; }
.service-more { font-weight: 800; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.step-n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--c); color: #fff; font-weight: 900; font-size: 1.6rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; } .step p { color: var(--muted); margin: 0; font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 20px; color: var(--text); box-shadow: var(--shadow); }
.sec-navy .tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.sec-navy .tile h3 { color: #fff; } .sec-navy .tile p { color: #B6BCD2; }
.tile h3 { font-size: 1.02rem; margin: 0; } .tile p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.loc-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.loc-map { border-radius: var(--radius); background: #fff; }
.loc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.loc { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.loc h3 { font-size: 1.05rem; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.loc a { display: inline-flex; gap: 6px; align-items: center; margin-inline-end: 14px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.loc a:hover { color: var(--primary); }
.flag { font-size: 1.8rem; line-height: 1; }
@media (max-width: 860px) { .loc-wrap { grid-template-columns: 1fr; } }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.partners.single { grid-template-columns: 1fr; }
.partner { display: grid; place-items: center; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); min-height: 100px; }
.partners.single .partner img { max-width: 1000px; width: 100%; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-card img, .news-ph { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; } .news-ph .ic { width: 48px; height: 48px; opacity: .8; }
.news-card > div { padding: 18px; } .news-card time { font-size: .82rem; color: var(--muted); } .news-card h3 { font-size: 1.12rem; margin: 4px 0 6px; } .news-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.speeches .speech { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; padding: 30px 0; }
.speeches .speech + .speech { border-top: 1px solid rgba(255,255,255,.18); }
.speech img { border-radius: var(--radius); background: #fff; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.speech h3 { font-size: 1.6rem; font-weight: 600; }
.speech p { color: #DCE1F1; }
.speech-by { color: #fff !important; }
@media (max-width: 760px) { .speeches .speech { grid-template-columns: 1fr; } .speech img { max-width: 260px; } }
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.vm-card { background: var(--cream); border-radius: var(--radius); padding: 0 28px 32px; text-align: center; margin-top: 30px; box-shadow: var(--shadow); }
:root[data-theme="dark"] .vm-card { background: var(--surface); }
.vm-ic { background: #FF7F50; margin-top: -28px; width: 64px; height: 64px; }
.vm-card h3 { color: var(--navy); } .vm-card p { color: var(--text); margin: 0; }
:root[data-theme="dark"] .vm-card h3 { color: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.member { background: var(--surface); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.member img { border-radius: 12px; background: #fff; aspect-ratio: 3/4; object-fit: cover; object-position: top; width: 100%; }
.member h3 { margin: 12px 0 2px; }
.member-ph { aspect-ratio: 3/4; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; } .member-ph .ic { width: 64px; height: 64px; color: var(--muted); }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.pkg { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--c); display: flex; flex-direction: column; }
.pkg h3 { font-size: 1.15rem; } .pkg p { color: var(--muted); font-size: .96rem; }
.pkg-dur { display: inline-flex; gap: 6px; align-items: center; color: var(--text) !important; font-weight: 700; }
.pkg-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.pkg-foot b { color: var(--crimson); }
:root[data-theme="dark"] .pkg-foot b { color: var(--orange); }

.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .2s; color: var(--teal); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-more { margin-top: 36px; text-align: center; background: var(--cream); padding: 28px; border-radius: var(--radius); }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, #2B4A9A); color: #fff; padding: 52px 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; } .cta-band p { color: #DCE1F1; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-aside h2 { font-size: 1.25rem; margin-top: 8px; }
.contact-aside p a, .contact-aside p { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.contact-art, .contact-aside img { margin-top: 18px; border-radius: var(--radius); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.search-results { list-style: none; padding: 0; display: grid; gap: 10px; }
.search-results a { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); }
.search-results a:hover { border-color: var(--primary); } .search-results small { color: var(--teal); font-weight: 800; } .search-results span { color: var(--muted); font-size: .94rem; }

.prose { font-size: 1.04rem; } .prose h2 { margin-top: 1.6em; color: var(--navy); } .prose img { border-radius: var(--radius); margin: 12px 0; }
:root[data-theme="dark"] .prose h2 { color: #fff; }
.prose blockquote { border-inline-start: 4px solid var(--teal); margin: 1em 0; padding: 4px 16px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #C9CFE4; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 36px; }
.footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #C9CFE4; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; } .footer-col a:hover { color: #fff; }
.footer-brand img { width: 96px; margin-bottom: 10px; }
.footer-cta { margin-top: 10px; } .footer-col a.btn { color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: .86rem; text-align: center; font-weight: 700; color: #fff; }
.footer .pattern-strip { height: 6px; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-in { grid-template-columns: 1fr; } }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); } .wa-float .ic { width: 28px; height: 28px; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-art img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-size: 1.15rem; display: flex; gap: 8px; align-items: center; } .card h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.pad-lg { padding: clamp(22px, 4vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; }
.req { color: var(--crimson); } .opt { color: var(--muted); font-weight: 500; font-size: .85em; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; font: 500 1rem/1.5 var(--font); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 90px; } textarea.mono, .mono textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
input[type="file"] { font: inherit; max-width: 100%; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-weight: 700; font-size: .85rem; min-height: 0; } .err:empty { display: none; }
.hint { color: var(--muted); font-size: .83rem; }
.field.check { flex-direction: row; } .field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.field.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); flex: none; }
.field.inline { margin: 0; flex-direction: row; align-items: center; gap: 10px; } .field.inline select { width: auto; }
.pw-wrap { position: relative; } .pw-wrap input { padding-inline-end: 46px; }
.pw-toggle { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 38px; height: 38px; cursor: pointer; border-radius: 8px; }
.pw-meter { height: 5px; background: var(--line); border-radius: 4px; margin: -8px 0 16px; overflow: hidden; } .pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 2px; margin: 0 0 16px; } .fieldset legend { font-weight: 800; padding: 0 6px; }
.form-msg:empty { display: none; }
.alert { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.alert-ok { background: var(--ok-bg); color: var(--ok); } .alert-warn { background: var(--warn-bg); color: var(--warn); } .alert-info { background: var(--info-bg); color: var(--info); } .alert-err { background: var(--danger-bg); color: var(--danger); }
.color-row { display: flex; gap: 8px; } .color-row input[type="color"] { width: 52px; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; background: var(--bg); }
.image-field { display: flex; gap: 10px; align-items: center; } .image-field img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.file-btn { cursor: pointer; }

/* ---------- auth ---------- */
.auth-grid { display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.1fr; min-height: 100vh; }
.auth-aside { background: var(--navy) url('/img/pattern-bg.webp') center/cover; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px 0; position: relative; overflow: hidden; }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(25,37,77,.7), rgba(35,52,108,.95)); }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; max-width: 440px; }
.auth-values { margin-top: 18px; border-radius: 999px; max-width: 380px; }
.auth-aside .pattern-strip { margin: 0 -48px; }
.auth-main { display: flex; flex-direction: column; padding: 24px clamp(18px, 5vw, 64px) 40px; background: var(--bg-soft); }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.auth-mobile-logo { visibility: hidden; } .auth-mobile-logo img, .drawer-head img { height: 48px; width: auto; } .error-box img { height: 90px; width: auto; } .auth-tools { display: flex; gap: 6px; margin-inline-start: auto; }
.auth-card { width: 100%; max-width: 520px; margin: auto; background: var(--surface); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.7rem; color: var(--navy); } :root[data-theme="dark"] .auth-card h1 { color: #fff; }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--muted); }
.auth-done { text-align: center; } .auth-done .ic { width: 56px; height: 56px; color: var(--ok); }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-mobile-logo { visibility: visible; } }

/* ---------- app shell (dashboard & admin) ---------- */
.app { background: var(--bg-soft); }
.sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 264px; background: var(--navy-900); color: #C9CFE4; display: flex; flex-direction: column; z-index: 80; transition: transform .25s ease; }
.app-admin .sidebar { background: linear-gradient(180deg, #19254D, #141D3E); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.sidebar-logo img { width: 40px; height: auto; } .sidebar-logo small { display: block; font-size: .72rem; font-weight: 700; color: var(--teal); letter-spacing: .5px; text-transform: uppercase; line-height: 1.2; }
.sidebar-nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.sidebar-nav a, .sidebar-foot a, .sidebar-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #C9CFE4; text-decoration: none; font: 700 .93rem var(--font); background: none; border: 0; width: 100%; cursor: pointer; text-align: start; }
.sidebar-nav a:hover, .sidebar-foot a:hover, .sidebar-foot button:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a[aria-current="page"] { background: rgba(14,168,189,.16); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
[dir="rtl"] .sidebar-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--teal); }
.sidebar .count { margin-inline-start: auto; background: var(--crimson); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 999px; }
.sidebar-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-close, .sidebar-open { display: none; color: inherit; }
.sidebar-backdrop { display: none; }
.app-main { margin-inline-start: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px clamp(14px, 3vw, 28px); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 64px; }
.app-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.app-search input { border: 0; background: transparent; min-height: 40px; padding: 0; } .app-search input:focus { box-shadow: none; }
.app-search:focus-within { border-color: var(--teal); }
.app-title-sm { font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.bell .dot { position: absolute; top: 4px; inset-inline-end: 3px; background: var(--crimson); color: #fff; font-size: .65rem; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.app-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 8px; border-radius: 10px; margin-inline-start: 4px; }
.app-user:hover { background: var(--surface-2); } .app-user span { display: flex; flex-direction: column; line-height: 1.25; } .app-user small { color: var(--muted); font-size: .76rem; }
.app-content { padding: clamp(16px, 3vw, 30px); width: 100%; max-width: 1360px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); } [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: none; } .sidebar-close, .sidebar-open { display: inline-grid; }
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,21,48,.5); z-index: 70; }
  .app-main { margin-inline-start: 0; } .app-user span { display: none; }
}
@media (max-width: 560px) { .app-search { max-width: none; } .app-top-actions .lang-switch { display: none; } }

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-i { display: inline-grid !important; place-items: center; line-height: 1 !important; flex-direction: row; background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.span-2 { grid-column: span 2; } @media (max-width: 700px) { .span-2 { grid-column: auto; } }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .grid-side { grid-template-columns: 1fr; } }
.align-start { align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; }
.narrow-card { max-width: 760px; }
.welcome { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; border: 0; min-height: 150px; }
.welcome h2 { color: #fff; font-size: 1.5rem; } .welcome .muted { color: #C9CFE4; }
.welcome-in { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; max-width: 70%; }
.welcome-art { position: absolute; inset-inline-end: -10px; bottom: -10px; width: 300px; opacity: .18; filter: invert(1); }
@media (max-width: 700px) { .welcome-in { max-width: 100%; } .welcome-art { display: none; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; } .kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; font-weight: 600; text-align: end; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line) 0); }
.ring span { width: 92px; height: 92px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 900; font-size: 1.4rem; }
.bar { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; flex: 1; } .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--teal)); border-radius: 6px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; text-align: center; }
.shortcuts a:hover { background: var(--navy); color: #fff; } .shortcuts .ic { width: 24px; height: 24px; color: var(--teal); }
.mini-list, .timeline, .ann-list, .notif-list, .sessions, .inbox, .bars { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border: 0; } .mini-list li.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-inline-end: 8px; }
.mini-list a { text-decoration: none; color: var(--text); } .mini-list a:hover { color: var(--primary); }
.link-more { display: inline-block; margin-top: 10px; font-weight: 700; }
.timeline li { position: relative; padding: 0 0 14px; padding-inline-start: 20px; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 3px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 6.5px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; } .timeline li.sec::before { background: var(--crimson); }
.ann-list li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); } .ann-list li:last-child { border: 0; } .ann-list p { margin: 2px 0; color: var(--muted); }
.pin { color: var(--orange); }
.notif-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.notif-list li.unread { background: color-mix(in srgb, var(--teal) 6%, transparent); border-radius: 10px; }
.notif-list p { margin: 2px 0; color: var(--muted); } .notif-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--navy); }
:root[data-theme="dark"] .notif-ic { color: var(--teal); }
.notif-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .notif-list li { grid-template-columns: auto 1fr; } .notif-actions { grid-column: 2; justify-content: flex-start; } }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); } .sessions li div { display: flex; flex-direction: column; }
.card-danger { border-color: color-mix(in srgb, var(--crimson) 40%, var(--line)); }
.avatar-edit { display: flex; justify-content: center; margin: 8px 0 14px; }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); } .empty .ic { width: 44px; height: 44px; opacity: .5; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); } .badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); } .badge-accent { background: color-mix(in srgb, var(--navy) 12%, transparent); color: var(--navy); } .badge-muted { opacity: .75; }
:root[data-theme="dark"] .badge-accent { color: #AFC0FF; background: rgba(111,134,214,.2); }
.warn-ic { color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 800; padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
[dir="rtl"] .table th { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table a { text-decoration: none; } .table .center { text-align: center; }
.small-table { font-size: .85rem; }
.matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: start; min-width: 240px; }
.matrix input { width: 18px; height: 18px; accent-color: var(--navy); }
.user-cell { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 200px; }
.user-cell span { display: flex; flex-direction: column; line-height: 1.3; } .user-cell small { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-height: 38px; padding: 6px 10px; font-size: .9rem; flex: 1 1 150px; }
.filters input[type="search"] { flex: 2 1 220px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.stat .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--navy) 10%, transparent); color: var(--navy); }
:root[data-theme="dark"] .stat .ic { color: var(--teal); }
.stat b { font-size: 1.7rem; display: block; line-height: 1.1; } .stat span { color: var(--muted); font-size: .88rem; }
.stat.warn .ic { background: var(--warn-bg); color: var(--warn); }
.chart svg { width: 100%; height: auto; } .chart .cbar { fill: var(--teal); } .chart .cbar:hover { fill: var(--navy); } .chart .axis { stroke: var(--line); } .chart .tick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart { margin: 0; }
.bars li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; } .bars b { text-align: end; }
.user-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; } .user-head h2 { margin: 0; font-size: 1.4rem; } .user-head p { margin: 2px 0; }
.user-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; justify-content: flex-end; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); } .tab[aria-current="page"] { color: var(--primary); border-color: var(--teal); }
#site, #registration, #email, #dashboard, #orders, #security { scroll-margin-top: 80px; margin-bottom: 18px; }
.thread { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; max-width: 92%; }
.msg.staff { background: color-mix(in srgb, var(--teal) 7%, var(--surface)); align-self: flex-end; } .msg.mine { align-self: flex-start; }
.msg.internal { background: var(--warn-bg); border-style: dashed; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .msg-head small { margin-inline-start: auto; }
.msg-body p:last-child { margin: 0; }
.thread .event { align-self: center; color: var(--muted); font-size: .82rem; background: var(--surface-2); padding: 2px 12px; border-radius: 999px; }
.inbox li { border-bottom: 1px solid var(--line); } .inbox summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.inbox li.unread summary b { color: var(--primary); } .inbox-body { padding: 0 4px 16px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--teal); } .hub-card .ic { width: 28px; height: 28px; color: var(--teal); } .hub-card small { color: var(--muted); }
.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .cms-grid > .field:has(textarea[rows="12"]), .cms-grid > .field.check { grid-column: auto; }
@media (max-width: 760px) { .cms-grid { grid-template-columns: 1fr; } }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid var(--line); }
.sticky-save { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); }
.widget-list { display: grid; gap: 6px; margin-bottom: 16px; } .widget-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; }
.widget-row label { display: flex; gap: 10px; align-items: center; font-weight: 700; } .widget-row input[type="number"] { width: 80px; min-height: 36px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.media-item img, .media-file { aspect-ratio: 4/3; object-fit: contain; background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0/16px 16px; width: 100%; display: grid; place-items: center; }
.media-file .ic { width: 40px; height: 40px; color: var(--muted); }
.media-item figcaption { padding: 10px; display: grid; gap: 4px; font-size: .85rem; } .media-item figcaption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 700; max-width: calc(100vw - 32px); }
.toast.err { background: var(--crimson); }
.confirm-dialog { border: 0; border-radius: 16px; padding: 22px; max-width: 420px; width: calc(100vw - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.confirm-dialog::backdrop { background: rgba(15,21,48,.55); }
.confirm-dialog input { margin-bottom: 14px; }

.error-page { display: grid; place-items: center; min-height: 100vh; background: var(--bg-soft); padding: 20px; }
.error-box { text-align: center; max-width: 520px; } .error-code { font-size: 5rem; font-weight: 900; color: var(--teal); margin: 10px 0 0; line-height: 1; }

@media print { .header, .topbar, .footer, .wa-float, .sidebar, .app-top { display: none !important; } .app-main { margin: 0; } }

/* ---------- checkout & orders ---------- */
.checkout-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; counter-reset: st; }
.checkout-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .9rem; }
.checkout-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--text); font-size: .8rem; }
.checkout-steps li.done { color: var(--ok); } .checkout-steps li.done::before { content: '✓'; background: var(--ok); color: #fff; }
.checkout-steps li.now { background: var(--navy); color: #fff; } .checkout-steps li.now::before { background: var(--teal); color: #fff; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); border-top: 5px solid var(--c); }
.checkout-summary .service-tab { margin: 0 0 14px; background: var(--c); }
.checkout-summary h2 { font-size: 1.3rem; display: block; }
.kv.total { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 12px 0; margin: 12px 0 6px; }
.kv.total dd { font-size: 1.35rem; font-weight: 900; color: var(--crimson); }
:root[data-theme="dark"] .kv.total dd { color: var(--orange); }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pay-option { cursor: pointer; } .pay-option input { position: absolute; opacity: 0; }
.pay-option span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.pay-option span .ic { width: 26px; height: 26px; color: var(--teal); } .pay-option small { color: var(--muted); line-height: 1.4; }
.pay-option input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.pay-option input:focus-visible + span { outline: 3px solid var(--focus); }
.order-track { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.order-track li { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 14px; border-top: 4px solid var(--line); }
.order-track li.done { border-color: var(--teal); color: var(--text); } .order-track li.now { border-color: var(--navy); color: var(--primary); }
@media (max-width: 700px) { .order-track { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } }
pre.bank { white-space: pre-wrap; font-family: var(--font); background: var(--surface-2); padding: 14px; border-radius: 10px; font-weight: 700; }
.price { color: var(--crimson); }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { position: static; order: -1; } }
@media print { .page-actions, .order-track, .btn { display: none !important; } .app-content { padding: 0; } }
:root[data-theme="dark"] .sec-line { background: var(--teal); }
