﻿/* =========================================================
   شهر جهادگران — Design System
   ========================================================= */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/fonts/Amiri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Amiri';
  src: url('/fonts/Amiri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lalezar';
  src: url('/fonts/Lalezar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #06203f;
  --navy-900: #0a2c52;
  --navy-800: #0d3a68;
  --navy-700: #11497f;
  --blue-600: #1565a8;
  --blue-500: #2a7fbf;
  --teal-700: #0a6d6d;
  --teal-600: #0c7c7c;
  --teal-500: #109b96;
  --teal-100: #e2f5f3;
  --orange-600: #dd6b0c;
  --orange-500: #f58220;
  --orange-100: #fff878;
  --orange-soft: #fff1e3;
  --ink: #12293f;
  --ink-soft: #38536a;
  --muted: #6b8093;
  --line: #dce7f0;
  --line-soft: #eaf1f6;
  --bg: #f5f9fc;
  --surface: #ffffff;
  --success: #1d8a5b;
  --success-bg: #e7f7ef;
  --warning: #a86a12;
  --warning-bg: #fff7e6;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --info: #1d6fa5;
  --info-bg: #e8f3fa;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(10, 44, 82, .05);
  --shadow-sm: 0 1px 2px rgba(10, 44, 82, .05), 0 6px 18px rgba(10, 44, 82, .06);
  --shadow-md: 0 14px 38px rgba(10, 44, 82, .10);
  --shadow-lg: 0 28px 70px rgba(10, 44, 82, .16);
  --container: 1200px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 92% -10%, rgba(14, 143, 140, .07), transparent 60%),
    radial-gradient(700px 420px at 0% 20%, rgba(245, 130, 32, .05), transparent 60%);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.5;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.2px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--orange-600); }

img { max-width: 100%; display: block; }
ul, ol { padding-inline-start: 1.4em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

::selection { background: rgba(245, 130, 32, .22); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.text-teal { color: var(--teal-600); }
.text-orange { color: var(--orange-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -4px;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover {
  color: var(--btn-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn-accent {
  --btn-bg: linear-gradient(135deg, #f7922f, #e8700e);
  --btn-color: #fff;
  box-shadow: 0 8px 20px rgba(245, 130, 32, .24);
}
.btn-accent:hover { box-shadow: 0 12px 28px rgba(245, 130, 32, .32); }

.btn-navy { --btn-bg: var(--navy-800); }
.btn-teal { --btn-bg: var(--teal-600); }
.btn-outline {
  --btn-bg: transparent;
  --btn-color: var(--navy-800);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--teal-500); background: var(--teal-100); color: var(--teal-700); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--line-soft); color: var(--navy-800); }

.btn-soft {
  --btn-bg: var(--teal-100);
  --btn-color: var(--teal-700);
}
.btn-soft:hover { background: #d3efec; }

.btn-danger {
  --btn-bg: var(--danger-bg);
  --btn-color: var(--danger);
  border-color: rgba(192, 57, 43, .15);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-white { --btn-bg: #fff; --btn-color: var(--navy-900); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: 12px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-700);
}
.link-more .icon { transition: transform .2s ease; }
.link-more:hover .icon { transform: translateX(-4px); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--line-soft); color: var(--muted); }
.badge-teal { background: var(--teal-100); color: var(--teal-700); }
.badge-orange { background: var(--orange-soft); color: var(--orange-600); }
.badge-navy { background: #e8eef6; color: var(--navy-800); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-100); }
.chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- topbar / header ---------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  min-height: 38px;
  position: relative;
  z-index: 60;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-note { display: flex; align-items: center; gap: 7px; }
.topbar-note .icon { width: 14px; height: 14px; color: var(--teal-500); }
.topbar-links { display: flex; align-items: center; gap: 16px; }
.topbar-links a { color: rgba(255, 255, 255, .72); }
.topbar-links a:hover { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a { display: inline-flex; }
.topbar-social .icon { width: 15px; height: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(10, 44, 82, .08); border-color: transparent; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--navy-900);
}
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-title { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.brand-sub { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: .2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.nav-link .icon { width: 14px; height: 14px; flex: 0 0 auto; }
.nav-link:hover { color: var(--navy-900); background: var(--bg); }
.nav-link.is-active { color: var(--teal-700); font-weight: 700; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 13px;
  left: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--orange-500));
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.user-menu { position: relative; }
.notif-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-bell:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-100); }
.notif-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--orange-500);
  border: 2px solid #fff;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.user-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: var(--teal-500); box-shadow: var(--shadow-xs); }
.user-menu-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.user-menu-name { font-size: 12.5px; font-weight: 600; color: var(--ink); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu > summary .icon { width: 14px; height: 14px; color: var(--muted); }
.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 80;
  animation: menuIn .16s ease both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.user-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.user-menu-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.user-menu-head strong { display: block; font-size: 13px; }
.user-menu-head span { font-size: 11px; color: var(--muted); }
.user-menu-links { display: grid; gap: 2px; }
.user-menu-links a, .user-menu-links button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
}
.user-menu-links a:hover, .user-menu-links button:hover { background: var(--bg); color: var(--navy-900); }
.user-menu-links .icon { width: 16px; height: 16px; color: var(--muted); }
.user-menu-links .danger { color: var(--danger); }
.user-menu-links .danger .icon { color: var(--danger); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy-800);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 32, 63, .42);
  backdrop-filter: blur(3px);
}
.mobile-nav.is-open { display: block; }
.mobile-nav-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(340px, 88vw);
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  animation: slideIn .22s ease both;
}
@keyframes slideIn { from { transform: translateX(-30px); opacity: .6; } to { transform: none; opacity: 1; } }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-nav a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.mobile-nav a:hover { background: var(--bg); }
.mobile-nav .btn { margin-top: 10px; }
.mobile-nav-close { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 10px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 80px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/network.svg') center / cover no-repeat;
  opacity: .5;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset-inline-start: -140px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 143, 140, .25), transparent 68%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 38px;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .5); }
.footer-about { font-size: 13px; line-height: 1.9; max-width: 330px; color: rgba(255, 255, 255, .6); }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 9px; font-size: 13px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--teal-500); }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .75);
}
.footer-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
  flex-wrap: wrap;
}

/* ---------- section / page head ---------- */
.section { padding: 62px 0; }
.section-tight { padding: 42px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head-center { text-align: center; display: block; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow.orange { background: var(--orange-soft); color: var(--orange-600); }
.section-title { font-size: clamp(23px, 2.4vw, 31px); font-weight: 800; margin-bottom: 7px; }
.section-sub { color: var(--muted); font-size: 13.5px; max-width: 640px; margin: 0; }

.page-head {
  position: relative;
  background: linear-gradient(120deg, #0a2c52 0%, #0d3a68 55%, #0c6c74 100%);
  color: #fff;
  padding: 46px 0 40px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/network.svg') center / cover no-repeat;
  opacity: .55;
}
.page-head::after {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .03), 0 0 0 110px rgba(255, 255, 255, .02);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.page-head p { color: rgba(255, 255, 255, .72); max-width: 700px; font-size: 14px; margin: 0; }
.page-head .eyebrow { background: rgba(255, 255, 255, .1); color: #9fe3dd; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255, 255, 255, .72); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { width: 12px; height: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 58px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(760px 460px at 88% 0%, rgba(14, 143, 140, .08), transparent 65%),
    radial-gradient(520px 360px at 5% 35%, rgba(245, 130, 32, .06), transparent 65%),
    #fbfdff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/network.svg') center top / 1300px auto no-repeat;
  opacity: .5;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
}
.hero-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 18px;
}
.hero-line { white-space: nowrap; }
.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(120deg, var(--teal-600), var(--blue-600) 60%, var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-title .highlight::after {
  content: "";
  position: absolute;
  right: 0;
  left: 4px;
  bottom: 3px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(245, 130, 32, .5), rgba(14, 143, 140, .28));
  z-index: -1;
}
.hero-lead {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-search {
  display: flex;
  gap: 8px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  max-width: 580px;
}
.hero-search .search-wrap { position: relative; flex: 1; }
.hero-search .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; height: 19px; }
.hero-search input {
  width: 100%;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0 44px 0 14px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.hero-search input::placeholder { color: #93a6b6; }
.hero-search .btn { min-height: 48px; border-radius: 11px; padding-inline: 24px; }
.hero-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; font-size: 12px; }
.hero-chips span { color: var(--muted); }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--navy-800); line-height: 1.2; }
.hero-stat span { font-size: 11.5px; color: var(--muted); }
.hero-stat strong em { font-style: normal; font-size: 13px; color: var(--teal-600); font-weight: 700; margin-inline-start: 2px; }

.hero-visual { position: relative; height: 470px; }
.visual-frame {
  position: absolute;
  inset: 18px 8px 32px 8px;
  border-radius: 38px;
  background: linear-gradient(145deg, #0a2c52, #0d3a68 50%, #0b6d73);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
}
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/network.svg') center / cover;
  opacity: .9;
}
.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 220px at 75% 25%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(260px 260px at 20% 85%, rgba(245, 130, 32, .18), transparent 70%);
}
.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.visual-orbit::before {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.visual-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .035);
}
.visual-center img { width: 50px; height: 50px; object-fit: contain; }
.visual-center strong { font-size: 12px; font-weight: 700; }
.visual-center span { font-size: 9.5px; color: rgba(255, 255, 255, .6); }
.orbit-avatar {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.orbit-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.orbit-avatar b { display: block; font-size: 10.5px; color: var(--navy-900); line-height: 1.4; }
.orbit-avatar small { display: block; font-size: 8.5px; color: var(--muted); line-height: 1.4; }
.oa-1 { top: 40px; right: 16px; animation-delay: 0s; }
.oa-2 { top: 152px; left: 16px; animation-delay: .8s; }
.oa-3 { bottom: 88px; right: 16px; animation-delay: 1.6s; }
.oa-4 { bottom: 28px; left: 36px; animation-delay: 2.4s; }
.orbit-avatar div { max-width: 112px; overflow: hidden; }
.orbit-avatar b, .orbit-avatar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-800);
}
.float-badge .icon { color: var(--teal-600); width: 16px; height: 16px; }
.fb-1 { top: 18px; left: 18px; }
.fb-2 { bottom: 10px; right: 40px; }

.stat-band {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}
.stat-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat-item {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-inline-start: 1px solid var(--line-soft);
}
.stat-item:first-child { border-inline-start: 0; }
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-100);
  color: var(--teal-700);
  flex: 0 0 auto;
}
.stat-icon.orange { background: var(--orange-soft); color: var(--orange-600); }
.stat-icon.navy { background: #e9eef6; color: var(--navy-800); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-item strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--navy-900); }
.stat-item span { font-size: 11.5px; color: var(--muted); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.process-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(14,143,140,.3); }
.process-num {
  position: absolute;
  top: 10px;
  inset-inline-end: 18px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--line-soft);
  letter-spacing: -2px;
}
.process-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.process-icon .icon { width: 22px; height: 22px; }
.process-card h3 { font-size: 15px; margin-bottom: 5px; }
.process-card p { font-size: 12px; color: var(--muted); line-height: 1.95; margin: 0; }

/* ---------- member cards ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(14, 143, 140, .3); }
.member-cover {
  height: 82px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.member-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 44, 82, .28), transparent);
}
.member-featured {
  position: absolute;
  top: 9px;
  inset-inline-end: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--orange-600);
  font-size: 9.5px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.member-featured .icon { width: 11px; height: 11px; }
.member-avatar-wrap { margin-top: -38px; padding-inline: 16px; position: relative; z-index: 2; }
.member-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(10, 44, 82, .12);
  background: var(--line);
}
.member-body { padding: 9px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.member-name-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.member-name { font-size: 15px; font-weight: 700; color: var(--navy-900); margin: 0; line-height: 1.6; }
.member-name a { color: inherit; }
.member-name a:hover { color: var(--teal-700); }
.verified { width: 16px; height: 16px; color: var(--teal-600); flex: 0 0 auto; }
.member-headline {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 2px 0 8px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.member-detail-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin: -2px 0 5px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.member-detail-label { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; }
.member-detail-label .icon { width: 11px; height: 11px; color: var(--teal-600); flex: 0 0 auto; }
.member-detail-value { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.member-detail-value .icon { width: 11px; height: 11px; color: var(--teal-600); flex: 0 0 auto; }
.member-org {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-org .icon { width: 13px; height: 13px; color: var(--teal-600); }
.member-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.skill-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 10px;
}
.member-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  color: var(--muted);
}
.member-meta span { display: inline-flex; align-items: center; gap: 4px; }
.member-meta .icon { width: 12px; height: 12px; }
.member-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fcfdff;
}
.member-footer .followers { font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.member-footer .followers .icon { width: 13px; height: 13px; }
.member-footer a { font-size: 11px; font-weight: 600; color: var(--teal-700); display: inline-flex; align-items: center; gap: 4px; }
.member-footer a .icon { width: 13px; height: 13px; }
.member-footer .member-edit-link { color: var(--muted); font-size: 10px; }
.member-footer .member-edit-link:hover { color: var(--navy-800); }
.member-footer button.member-edit-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.member-edit-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(6,32,63,.24);
}
.member-edit-dialog::backdrop { background: rgba(6,32,63,.45); }
.member-edit-dialog form { padding: 18px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dialog-head h3 { margin: 3px 0 0; font-size: 18px; }
.dialog-close { border: 0; background: var(--bg); color: var(--ink); width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

/* ---------- directory ---------- */
.directory-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); }
.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-xs);
}
.filter-card + .filter-card { margin-top: 14px; }
.filter-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.filter-title .icon { width: 17px; height: 17px; color: var(--teal-600); }
.filter-group { margin-bottom: 14px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.filter-reset { font-size: 11px; color: var(--muted); }
.filter-reset:hover { color: var(--danger); }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.results-count { font-size: 13px; color: var(--muted); }
.results-count strong { color: var(--navy-900); font-size: 15px; }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sort-select .select { min-width: 170px; height: 40px; font-size: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
}
.active-filter a { color: var(--muted); display: inline-flex; }
.active-filter a:hover { color: var(--danger); }
.mobile-filter-toggle { display: none; }

/* ---------- forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.form-section-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.form-section-title .num {
  width: 25px; height: 25px;
  border-radius: 8px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.form-section-sub { font-size: 11.5px; color: var(--muted); margin: 0 0 18px 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > label { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.field > label .req { color: var(--orange-500); }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.9; }
.input::placeholder, .textarea::placeholder { color: #9aacbb; }
.input:hover, .select:hover, .textarea:hover { border-color: #c8d8e5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(16, 155, 150, .12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236b8093' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-inline-start: 36px;
}
.help { font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.validation { color: var(--danger); font-size: 11px; display: block; }
.input.input-validation-error, .textarea.input-validation-error, .select.input-validation-error { border-color: var(--danger); background: #fffafa; }
.input[readonly], .input[disabled] { background: var(--bg); color: var(--muted); }
.input-group { position: relative; }
.input-group .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.input-group .input { padding-inline-start: 40px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.8;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--teal-600); flex: 0 0 auto; }
.check a { text-decoration: underline; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.switch-row span { font-size: 12px; color: var(--ink-soft); }
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch em {
  position: absolute; inset: 0; border-radius: 999px; background: #d5e2ec; transition: background .2s; cursor: pointer;
}
.switch em::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
}
.switch input:checked + em { background: var(--teal-600); }
.switch input:checked + em::after { transform: translateX(-18px); }

.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: all .16s;
}
.radio-card:hover { border-color: var(--teal-500); }
.radio-card input { margin-top: 3px; accent-color: var(--teal-600); width: 15px; height: 15px; }
.radio-card strong { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.radio-card small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.5; }
.radio-card:has(input:checked) { border-color: var(--teal-500); background: #f1fbfa; box-shadow: 0 0 0 2px rgba(16,155,150,.08); }

.upload-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
  padding: 16px;
  border: 1.5px dashed #c8d9e6;
  border-radius: 13px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
  transition: all .16s;
  overflow: hidden;
}
.upload-box:hover { border-color: var(--teal-500); background: #f4fbfa; }
.upload-box .icon { width: 26px; height: 26px; color: var(--teal-600); }
.upload-box strong { font-size: 11.5px; font-weight: 600; }
.upload-box small { font-size: 9.5px; color: var(--muted); }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; display: none; }
.upload-box.has-preview .upload-preview { display: block; }
.upload-box.has-preview .upload-placeholder { display: none; }
.upload-box.avatar-upload .upload-preview { width: 104px; height: 104px; border-radius: 50%; margin-inline: auto; object-fit: cover; }
.upload-box.avatar-upload { min-height: 150px; }

/* ---------- register ---------- */
.register-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.register-side { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.side-card h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.side-card h3 .icon { width: 18px; height: 18px; color: var(--teal-600); }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefit-list li { display: flex; gap: 10px; font-size: 11.5px; line-height: 1.8; color: var(--ink-soft); }
.benefit-list .icon { width: 17px; height: 17px; color: var(--teal-600); margin-top: 3px; flex: 0 0 auto; }
.benefit-list strong { display: block; font-size: 12px; color: var(--ink); }
.support-card { background: linear-gradient(145deg, #0a2c52, #0d4a6b); color: #fff; border: 0; position: relative; overflow: hidden; }
.support-card::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .35; }
.support-card > * { position: relative; z-index: 1; }
.support-card h3 { color: #fff; }
.support-card p { font-size: 11.5px; color: rgba(255,255,255,.7); line-height: 1.9; }
.support-card a { color: #9fe3dd; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
}
.step { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.step-num {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.step-label { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.step.is-active .step-num { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.step.is-active .step-label { color: var(--navy-900); font-weight: 700; }
.step.is-done .step-num { background: var(--success-bg); border-color: transparent; color: var(--success); }
.step-line { width: 40px; height: 1px; background: var(--line); margin-inline: 10px; flex: 1 0 24px; }
.form-step { display: block; }
.js .form-step { display: none; }
.js .form-step.is-active { display: block; animation: fadeStep .25s ease both; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.form-step-head { margin-bottom: 18px; }
.form-step-head h2 { font-size: 18px; margin-bottom: 5px; }
.form-step-head p { font-size: 12px; color: var(--muted); margin: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.form-actions .btn { min-width: 130px; }
.form-actions-end { margin-inline-start: auto; }
.form-actions-end + .form-actions-end { margin-inline-start: 0; }

/* ---------- track ---------- */
.track-wrap { max-width: 820px; margin-inline: auto; }
.track-search { display: flex; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.track-search input { flex: 1; height: 48px; border: 0; padding: 0 14px; font-size: 14px; letter-spacing: 1px; outline: none; text-align: center; }
.track-search input::placeholder { letter-spacing: 0; color: #9aacbb; }
.track-search .btn { min-height: 48px; }
.track-result { margin-top: 22px; }
.track-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.track-card-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  background: linear-gradient(180deg, #fbfdff, #fff);
}
.track-code { font-family: var(--font); font-size: 17px; font-weight: 800; letter-spacing: 1.5px; color: var(--navy-900); direction: ltr; text-align: right; }
.track-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.track-body { padding: 24px; }
.track-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.track-step { position: relative; display: flex; gap: 14px; padding-bottom: 26px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; top: 30px; inset-inline-start: 14px; bottom: 0; width: 2px; background: var(--line); }
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: var(--success); opacity: .4; }
.track-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--line); color: var(--muted);
}
.track-dot .icon { width: 15px; height: 15px; }
.track-step.is-done .track-dot { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.track-step.is-current .track-dot { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(168,106,18,.2); } 50% { box-shadow: 0 0 0 7px rgba(168,106,18,0); } }
.track-step h4 { font-size: 13px; margin: 3px 0 2px; }
.track-step p { font-size: 11px; color: var(--muted); margin: 0; }
.track-uploaded { margin-bottom: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.track-uploaded h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; color: var(--navy-800); }
.track-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.track-photo-grid a { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 9px; }
.track-photo-grid img { width: 130px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.track-document { flex-direction: row !important; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--teal-700) !important; }
.activation-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1fbfa, #f7fbff);
  border: 1px dashed var(--teal-500);
}
.activation-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 11px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
}
.activation-code code { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--navy-900); }
.copy-btn { border: 0; background: var(--bg); color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 10.5px; display: inline-flex; align-items: center; gap: 5px; }
.copy-btn:hover { background: var(--teal-100); color: var(--teal-700); }
.copy-btn .icon { width: 13px; height: 13px; }

/* ---------- profile ---------- */
.profile-cover-wrap { position: relative; }
.profile-cover {
  height: 290px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
}
.profile-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 32, 63, .55), transparent 62%);
}
.profile-head-card {
  position: relative;
  z-index: 2;
  margin: -74px 26px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 26px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 142px; height: 142px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  margin-top: -66px;
  box-shadow: 0 8px 26px rgba(10, 44, 82, .16);
  background: var(--line);
  flex: 0 0 auto;
}
.profile-head-main { flex: 1; min-width: 240px; padding-top: 14px; }
.profile-name { font-size: 25px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.profile-name .verified { width: 21px; height: 21px; }
.profile-headline { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 7px; }
.profile-quick-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.profile-quick-meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile-quick-meta .icon { width: 14px; height: 14px; color: var(--teal-600); }
.profile-head-actions { display: flex; gap: 8px; padding-top: 14px; align-items: center; flex-wrap: wrap; }
.profile-stats-row {
  display: flex;
  gap: 26px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.profile-stat strong { display: block; font-size: 18px; font-weight: 800; color: var(--navy-900); line-height: 1.3; }
.profile-stat span { font-size: 10.5px; color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; margin-top: 24px; align-items: start; }
.profile-main { display: grid; gap: 18px; }
.profile-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 18px); }
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.content-card h3 { font-size: 14.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.content-card h3 .icon { width: 18px; height: 18px; color: var(--teal-600); }
.bio-text { font-size: 13.5px; line-height: 2.05; color: var(--ink-soft); white-space: pre-line; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 8px;
  background: var(--teal-100); color: var(--teal-700);
  font-size: 11.5px; font-weight: 500;
}
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 9px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 34px 22px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; top: 7px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-500); z-index: 1;
}
.timeline-item.is-jahad .timeline-dot { border-color: var(--orange-500); }
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline-item h4 { font-size: 13.5px; margin: 0 0 2px; }
.timeline-org { font-size: 11.5px; color: var(--ink-soft); }
.timeline-years { font-size: 10.5px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.timeline-desc { font-size: 11.5px; color: var(--muted); line-height: 1.85; margin: 6px 0 0; }
.timeline-badge { font-size: 9.5px; color: var(--orange-600); background: var(--orange-soft); padding: 1px 7px; border-radius: 5px; margin-inline-start: 5px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; }
.contact-list .icon { width: 17px; height: 17px; color: var(--teal-600); margin-top: 3px; flex: 0 0 auto; }
.contact-list span { color: var(--muted); display: block; font-size: 10px; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 500; direction: ltr; display: inline-block; text-align: right; }
.social-row { display: flex; gap: 7px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-soft);
}
.social-btn:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-100); }
.social-btn .icon { width: 14px; height: 14px; }
.mini-connections { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-connection { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px; border-radius: 9px; }
.mini-connection:hover { background: var(--bg); }
.mini-connection img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mini-connection b { display: block; font-size: 11px; color: var(--ink); line-height: 1.5; }
.mini-connection small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.5; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.connection-grid .suggestion-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px; margin: 0; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-inline-start: -8px; object-fit: cover; }
.avatar-stack img:first-child { margin-inline-start: 0; }
.avatar-stack .more { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--bg); color: var(--muted); font-size: 9px; display: inline-flex; align-items: center; justify-content: center; margin-inline-start: -8px; }

.profile-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.profile-tab { padding: 8px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.profile-tab.is-active { color: var(--navy-900); font-weight: 700; border-color: var(--teal-500); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.post-tile {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bg);
  display: block;
}
.post-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-tile:hover img { transform: scale(1.04); }
.post-tile-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,32,63,.82), rgba(6,32,63,.1) 60%);
  color: #fff; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity .22s ease;
}
.post-tile:hover .post-tile-overlay { opacity: 1; }
.post-tile-overlay p { font-size: 10px; line-height: 1.7; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-tile-stats { display: flex; gap: 10px; font-size: 9.5px; }
.post-tile-stats span { display: inline-flex; align-items: center; gap: 3px; }
.post-tile-stats .icon { width: 11px; height: 11px; }
.post-tile-text { background: linear-gradient(145deg, #0d3a68, #0c7c7c); padding: 12px; }
.post-tile-text p { opacity: 1; position: relative; z-index: 1; }
.post-tile-text::after { content: "”"; position: absolute; top: 4px; inset-inline-end: 10px; font-size: 60px; line-height: 1; color: rgba(255,255,255,.12); }

/* ---------- feed ---------- */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.feed-main { display: grid; gap: 18px; }
.feed-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 18px); }
.composer {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-xs);
}
.composer-top { display: flex; gap: 11px; }
.composer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.composer-body { flex: 1; }
.composer textarea {
  width: 100%; min-height: 78px; border: 0; background: transparent; resize: vertical;
  font-size: 13.5px; line-height: 1.9; padding: 8px 2px; outline: none;
}
.composer textarea::placeholder { color: #9aacbb; }
.composer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 6px;
}
.composer-tools { display: flex; gap: 4px; }
.composer-tool {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: none; color: var(--muted); font-size: 11px;
  padding: 7px 9px; border-radius: 8px; cursor: pointer;
}
.composer-tool:hover { background: var(--teal-100); color: var(--teal-700); }
.composer-tool .icon { width: 17px; height: 17px; }
.composer-preview { position: relative; margin-top: 10px; border-radius: 10px; overflow: hidden; display: none; }
.composer-preview img { max-height: 220px; width: 100%; object-fit: cover; }
.composer-preview button { position: absolute; top: 7px; inset-inline-end: 7px; border: 0; background: rgba(0,0,0,.55); color: #fff; width: 28px; height: 28px; border-radius: 50%; }
.composer-preview .icon { width: 14px; height: 14px; }
.composer-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.composer-login p { margin: 0; font-size: 12.5px; color: var(--muted); }

.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-xs); overflow: hidden;
}
.post-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px 12px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.post-author { flex: 1; min-width: 0; }
.post-author a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--navy-900); }
.post-author a:hover { color: var(--teal-700); }
.post-author .verified { width: 14px; height: 14px; }
.post-author small { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; }
.post-menu { position: relative; }
.post-menu summary { list-style: none; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu summary:hover { background: var(--bg); }
.post-menu-panel { position: absolute; top: 36px; inset-inline-start: 0; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 5px; min-width: 130px; }
.post-menu-panel button { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 7px 9px; font-size: 11px; color: var(--danger); border-radius: 6px; }
.post-menu-panel button:hover { background: var(--danger-bg); }
.post-body { padding: 0 18px 14px; font-size: 13.5px; line-height: 2; color: var(--ink-soft); white-space: pre-line; }
.post-media { margin: 0 18px 14px; border-radius: 13px; overflow: hidden; background: var(--bg); }
.post-media img { width: 100%; max-height: 430px; object-fit: cover; }
.post-stats { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 9px; font-size: 10.5px; color: var(--muted); }
.post-stats .likes-summary { display: inline-flex; align-items: center; gap: 4px; }
.post-stats .likes-summary .icon { width: 12px; height: 12px; color: var(--orange-500); }
.post-actions { display: flex; gap: 2px; padding: 7px 10px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.action-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; border: 0; border-radius: 9px; background: none; color: var(--muted);
  font-size: 11.5px; font-weight: 500;
}
.action-btn:hover { background: var(--bg); color: var(--navy-900); }
.action-btn .icon { width: 17px; height: 17px; }
.action-btn.is-liked { color: var(--orange-600); }
.action-btn.is-liked .icon { fill: rgba(245, 130, 32, .18); }
.comments { padding: 13px 18px 16px; background: #fbfdff; }
.comment { display: flex; gap: 8px; margin-bottom: 10px; }
.comment img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.comment-bubble { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 7px 10px; flex: 1; }
.comment-bubble b { font-size: 10.5px; color: var(--navy-900); }
.comment-bubble p { font-size: 11.5px; margin: 1px 0 0; line-height: 1.8; color: var(--ink-soft); }
.comment-time { font-size: 9px; color: var(--muted); margin-top: 3px; }
.comment-form { display: flex; gap: 7px; margin-top: 10px; }
.comment-form input {
  flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px;
  font-size: 11.5px; background: #fff;
}
.comment-form input:focus { outline: none; border-color: var(--teal-500); }
.comment-form button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; }
.comment-form button .icon { width: 16px; height: 16px; }

.suggestion-card { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.suggestion-card:last-child { border-bottom: 0; }
.suggestion-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.suggestion-card div { flex: 1; min-width: 0; }
.suggestion-card b { display: block; font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-card small { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-list { display: flex; flex-wrap: wrap; gap: 6px; }
.trend-list .chip { font-size: 10.5px; }
.mini-cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(145deg, var(--navy-900), #0c6c74); color: #fff;
  border: 0;
}
.mini-cta::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .4; }
.mini-cta > * { position: relative; z-index: 1; }
.mini-cta h3 { color: #fff; justify-content: center; }
.mini-cta p { font-size: 11px; color: rgba(255,255,255,.68); line-height: 1.9; }
.mini-cta .btn { margin-top: 6px; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-side {
  position: relative; overflow: hidden; padding: 54px 48px; color: #fff;
  background: linear-gradient(150deg, #06203f, #0a2c52 45%, #0b6d73);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .65; }
.auth-side::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); bottom: -220px; left: -160px; box-shadow: 0 0 0 70px rgba(255,255,255,.03); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-side .brand:hover { color: #fff; }
.auth-side .brand-sub { color: rgba(255,255,255,.55); }
.auth-side-body { margin: 40px 0; max-width: 440px; }
.auth-side-body h1 { color: #fff; font-size: 34px; line-height: 1.55; margin-bottom: 16px; }
.auth-side-body h1 span { color: #7fe0d8; }
.auth-side-body p { color: rgba(255,255,255,.66); font-size: 13.5px; line-height: 2; }
.auth-quote {
  border-inline-start: 2px solid var(--orange-500); padding-inline-start: 16px;
  font-size: 12px; color: rgba(255,255,255,.62); line-height: 2; margin-top: 26px;
}
.auth-side-foot { font-size: 11px; color: rgba(255,255,255,.4); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fbfdff; }
.auth-card { width: min(430px, 100%); }
.auth-card .brand { display: none; margin-bottom: 26px; }
.auth-title { font-size: 25px; margin-bottom: 6px; }
.auth-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.auth-form { display: grid; gap: 15px; }
.auth-form .btn { margin-top: 4px; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 9px 10px; cursor: pointer; white-space: nowrap; }
.auth-tabs button:hover { color: var(--navy-800); }
.auth-tabs button.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.auth-tab-panel[hidden] { display: none; }
.auth-tab-panel:not(.is-active) { display: none; }
.auth-tab-panel.is-active { display: block; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.auth-alt { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; }
.auth-alt a { font-weight: 600; }
.demo-note {
  margin-top: 20px; padding: 12px 14px; border-radius: 11px;
  background: var(--info-bg); border: 1px dashed #b8d8ea; font-size: 10.5px; color: var(--info); line-height: 1.9;
}
.demo-note strong { display: block; margin-bottom: 2px; }
.demo-note code { background: #fff; padding: 1px 5px; border-radius: 4px; direction: ltr; display: inline-block; }
.auth-back { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-bottom: 20px; }
.auth-back .icon { width: 14px; height: 14px; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 18px; }
.auth-secure .icon { width: 13px; height: 13px; color: var(--success); }

/* ---------- dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; position: sticky; top: calc(var(--header-h) + 18px); }
.dash-user { text-align: center; padding: 10px 6px 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
.dash-user img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; border: 3px solid var(--teal-100); }
.dash-user strong { display: block; font-size: 13px; }
.dash-user span { font-size: 10px; color: var(--muted); }
.dash-nav-links { display: grid; gap: 3px; }
.dash-nav-links a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; color: var(--ink-soft); }
.dash-nav-links a:hover { background: var(--bg); color: var(--navy-900); }
.dash-nav-links a.is-active { background: var(--teal-100); color: var(--teal-700); font-weight: 700; }
.dash-nav-links .icon { width: 17px; height: 17px; }
.dash-main { display: grid; gap: 18px; }
.dash-welcome {
  position: relative; overflow: hidden; border-radius: 20px; padding: 24px;
  background: linear-gradient(140deg, #0a2c52, #0d3a68 55%, #0b6d73); color: #fff;
}
.dash-welcome::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .45; }
.dash-welcome > * { position: relative; z-index: 1; }
.dash-welcome h1 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.dash-welcome p { color: rgba(255,255,255,.65); font-size: 12px; margin: 0; }
.dash-welcome .dash-welcome-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.dash-welcome-flex { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dash-ring { width: 108px; height: 108px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.dash-ring-hole {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(6, 32, 63, .62);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.12);
}
.dash-ring-hole strong { font-size: 19px; color: #fff; line-height: 1.2; }
.dash-ring-hole span { font-size: 8px; color: rgba(255,255,255,.65); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.dash-stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--teal-100); color: var(--teal-700); }
.dash-stat-icon.orange { background: var(--orange-soft); color: var(--orange-600); }
.dash-stat-icon.blue { background: var(--info-bg); color: var(--info); }
.dash-stat strong { display: block; font-size: 20px; line-height: 1.3; }
.dash-stat span { font-size: 10.5px; color: var(--muted); }
.dash-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.progress { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-500), var(--blue-500)); }
.completeness-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.completeness-head strong { font-size: 12px; }
.completeness-head span { font-size: 12px; font-weight: 700; color: var(--teal-700); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.checklist li.is-done { color: var(--success); }
.checklist .icon { width: 15px; height: 15px; }
.checklist li.is-done .icon { color: var(--success); }
.checklist a { margin-inline-start: auto; font-size: 10px; color: var(--teal-700); }
.activity-list { display: grid; gap: 0; }
.activity-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--teal-100); color: var(--teal-700);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.activity-icon .icon { width: 14px; height: 14px; }
.activity-row p { font-size: 11px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.activity-row.is-unread p { color: var(--ink); font-weight: 500; }
.activity-row small { font-size: 9px; color: var(--muted); }
.my-post-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.my-post-row:last-child { border-bottom: 0; }
.my-post-row img, .my-post-row .no-image { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.my-post-row .no-image .icon { width: 20px; height: 20px; }
.my-post-row div { flex: 1; min-width: 0; }
.my-post-row p { font-size: 11.5px; line-height: 1.8; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-post-row small { font-size: 9.5px; color: var(--muted); }
.my-post-row form { align-self: flex-start; }
.icon-btn-danger { border: 0; background: none; color: var(--muted); padding: 5px; border-radius: 6px; }
.icon-btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn-danger .icon { width: 15px; height: 15px; }

/* ---------- my posts ---------- */
.post-menu-panel a { display: flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11px; color: var(--ink-soft); border-radius: 6px; }
.post-menu-panel a:hover { background: var(--bg); color: var(--navy-900); }
.post-menu-panel a .icon { width: 14px; height: 14px; }
.post-manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.post-manage-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-manage-media { display: block; height: 180px; overflow: hidden; background: var(--bg); }
.post-manage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-manage-card:hover .post-manage-media img { transform: scale(1.03); }
.post-manage-text {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(145deg, #0d3a68, #0c7c7c);
}
.post-manage-text p {
  color: #fff;
  font-size: 12px;
  line-height: 2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-manage-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.post-manage-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.post-manage-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-manage-meta .icon { width: 13px; height: 13px; }
.post-manage-excerpt {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-manage-actions { display: flex; align-items: center; gap: 5px; margin-top: auto; flex-wrap: wrap; }
.post-manage-actions .btn { min-height: 32px; padding: 4px 9px; font-size: 10.5px; }
.post-manage-actions form { margin-inline-start: auto; }
.edit-post-image { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.edit-post-image img { width: 100%; max-height: 320px; object-fit: cover; }

/* ---------- notifications ---------- */
.notif-list { display: block; }
.notif-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  text-align: right;
  color: var(--ink);
  transition: background .16s;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #fbfdff; }
.notif-item.is-unread { background: #f7fcfb; }
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.notif-icon.teal { background: var(--teal-100); color: var(--teal-700); }
.notif-icon.orange { background: var(--orange-soft); color: var(--orange-600); }
.notif-icon.blue { background: var(--info-bg); color: var(--info); }
.notif-icon.navy { background: #e9eef6; color: var(--navy-800); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { display: block; font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }
.notif-item.is-unread .notif-text { color: var(--ink); font-weight: 500; }
.notif-time { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); flex: 0 0 auto; }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 20px; overflow-x: auto; }
.admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px; font-size: 12px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.admin-nav a:hover { background: var(--bg); color: var(--navy-900); }
.admin-nav a.is-active { background: var(--navy-800); color: #fff; }
.admin-nav .icon { width: 15px; height: 15px; }
.admin-nav .count { background: rgba(255,255,255,.18); padding: 0 6px; border-radius: 99px; font-size: 9px; }
.admin-nav a:not(.is-active) .count { background: var(--orange-soft); color: var(--orange-600); }

/* Admin section: right-side navigation and tabbed settings */
@media (min-width: 981px) {
  .admin-page .section > .container {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .admin-page .section > .container > .admin-nav {
    grid-column: 1;
    grid-row: 1 / span 100;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 10px;
    position: sticky;
    top: calc(var(--header-h) + 18px);
    overflow: visible;
  }
  .admin-page .section > .container > .admin-nav a {
    justify-content: flex-start;
    padding: 10px 12px;
  }
  .admin-page .section > .container > .admin-nav a.is-active {
    background: var(--navy-800);
  }
  .admin-page .section > .container > *:not(.admin-nav) {
    grid-column: 2;
    min-width: 0;
  }
}
.settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 20px;
  overflow-x: auto;
}
.settings-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.settings-tabs button:hover { color: var(--navy-800); }
.settings-tabs button.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
.settings-panel[hidden] { display: none; }
.settings-panel.is-active { display: block; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea,
.quick-field.is-invalid .input,
.quick-field.is-invalid .select,
.quick-field.is-invalid .textarea {
  border-color: #c24132;
  box-shadow: 0 0 0 2px rgba(194,65,50,.08);
}
.client-field-error {
  display: block;
  color: #b42318;
  font-size: 9px;
  line-height: 1.6;
  margin-top: 2px;
}
@media (max-width: 980px) {
  .admin-page .section > .container > .admin-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 18px;
  }
}
.admin-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-side { display: grid; gap: 14px; }
.admin-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.admin-summary h3 { font-size: 12.5px; margin-bottom: 12px; }
.admin-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted); }
.admin-summary-row:last-child { border-bottom: 0; }
.admin-summary-row strong { font-size: 13px; color: var(--navy-900); }
.admin-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 14px; }
.admin-card span { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.admin-card span .icon { width: 14px; height: 14px; color: var(--teal-600); }
.admin-card strong { display: block; font-size: 24px; margin-top: 6px; color: var(--navy-900); line-height: 1.2; }
.admin-card.is-alert strong { color: var(--orange-600); }
.admin-card small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.admin-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e6, #fffdf8);
  border: 1px solid #f2e0b8;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-alert-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: var(--warning);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.admin-alert > div:nth-child(2) { flex: 1; min-width: 220px; }
.admin-alert strong { display: block; font-size: 12px; color: #7a4e0d; }
.admin-alert span { display: block; font-size: 10.5px; color: #9a6a1c; }
.admin-alert .btn { margin-inline-start: auto; }
.avatar-initial {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
}
.admin-charts { display: grid; grid-template-columns: 1.15fr .95fr 1fr; gap: 14px; margin-bottom: 22px; }
.chart-card { padding: 18px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.chart-head h3 { font-size: 12.5px; margin: 0; }
.chart-head span { font-size: 9.5px; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 9px; height: 152px; padding-top: 6px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.bar-track { flex: 1; width: 100%; max-width: 34px; background: var(--bg); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-track span { width: 100%; border-radius: 7px 7px 0 0; background: linear-gradient(to top, var(--teal-600), #35b7ae); min-height: 3px; transition: height .4s ease; }
.bar-col b { font-size: 11px; font-weight: 700; color: var(--navy-900); line-height: 1; }
.bar-col small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 16px; min-height: 152px; }
.donut { width: 124px; height: 124px; border-radius: 50%; position: relative; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(10,44,82,.04); }
.donut-hole {
  position: absolute; inset: 19px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(10,44,82,.06);
}
.donut-hole strong { font-size: 20px; line-height: 1.2; color: var(--navy-900); }
.donut-hole span { font-size: 8.5px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 9.5px; color: var(--ink-soft); min-width: 0; }
.legend li { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.legend b { margin-inline-start: auto; color: var(--navy-900); font-size: 10px; }
.hbar-list { display: grid; gap: 10px; }
.hbar-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--ink-soft); margin-bottom: 4px; }
.hbar-head b { font-size: 10px; color: var(--navy-900); }
.hbar-track { height: 7px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-500), var(--blue-500)); }
.admin-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-member-hero { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.admin-member-cover { height: 170px; background-size: cover; background-position: center; }
.admin-member-head { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 22px; flex-wrap: wrap; }
.admin-member-head > img {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; margin-top: -58px; box-shadow: 0 6px 18px rgba(10,44,82,.14);
}
.admin-member-head h1 { font-size: 22px; margin: 0 0 3px; }
.admin-member-head p { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.admin-member-stats { grid-template-columns: repeat(5, 1fr); }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-xs); }
.table-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.table-card-head h3 { font-size: 14px; margin: 0; display: flex; align-items: center; gap: 7px; }
.table-card-head h3 .icon { width: 17px; height: 17px; color: var(--teal-600); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { text-align: right; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; background: #fbfdff; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-soft); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdff; }
.data-table .person { display: flex; align-items: center; gap: 8px; }
.data-table .person img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.data-table .person b { display: block; font-size: 11.5px; color: var(--navy-900); line-height: 1.5; }
.data-table .person small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.5; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.table-actions .btn { min-height: 30px; padding: 3px 9px; font-size: 10.5px; border-radius: 7px; }
.order-controls { display: inline-flex; align-items: center; gap: 3px; }
.order-position { min-width: 18px; text-align: center; font-size: 10px; color: var(--muted); }
.order-controls form { display: inline-flex; margin: 0; }
.order-arrow {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy-800);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.order-arrow:hover:not(:disabled) { border-color: var(--teal-500); color: var(--teal-700); }
.order-arrow:disabled { opacity: .3; cursor: default; }
.table-sub { font-size: 10px; color: var(--muted); display: block; }
.empty-cell { text-align: center; color: var(--muted); padding: 30px !important; font-size: 12px; }

.request-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong { color: var(--ink); font-weight: 600; text-align: left; }
.detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.detail-photo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.detail-photo img { width: 100%; height: 120px; object-fit: cover; }
.detail-photo span { display: block; padding: 5px 8px; font-size: 9.5px; color: var(--muted); }

/* ---------- alerts / empty / pager ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px; border-radius: 11px; font-size: 12px; line-height: 1.85;
  border: 1px solid transparent;
}
.alert .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.alert-success { background: var(--success-bg); color: #146b47; border-color: #c7ebd9; }
.alert-danger { background: var(--danger-bg); color: #9d2f23; border-color: #f5cdc8; }
.alert-warning { background: var(--warning-bg); color: #8a5a10; border-color: #f2e0b8; }
.alert-info { background: var(--info-bg); color: #175a86; border-color: #c9e3f2; }
.alert ul { margin: 4px 0 0; padding-inline-start: 18px; }
.alert a { text-decoration: underline; font-weight: 600; }

.empty-state { text-align: center; padding: 52px 20px; }
.empty-icon {
  width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 16px;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
}
.empty-icon .icon { width: 34px; height: 34px; }
.empty-state h3 { font-size: 16px; margin-bottom: 5px; }
.empty-state p { font-size: 12px; color: var(--muted); max-width: 380px; margin: 0 auto 16px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 28px; flex-wrap: wrap; }
.page-link {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12px; color: var(--ink-soft);
}
.page-link:hover { border-color: var(--teal-500); color: var(--teal-700); }
.page-link.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }
.pagination-info { font-size: 10.5px; color: var(--muted); margin-inline-start: 8px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 300;
  min-width: 260px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  font-size: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast .icon { width: 18px; height: 18px; color: #7fe0d8; }

/* ---------- misc ---------- */
.member-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.member-chip { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; }
.member-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.member-chip span { font-size: 10.5px; color: var(--ink-soft); }
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 44px; color: #fff;
  background: linear-gradient(135deg, #0a2c52, #0d3a68 55%, #0b6d73);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .5; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.68); font-size: 13px; max-width: 560px; margin: 0; }
.cta-band .cta-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.quote-card { border-inline-start: 3px solid var(--orange-500); padding-inline-start: 18px; }
.quote-card p { font-size: 14px; line-height: 2.1; color: var(--ink-soft); font-style: italic; }
.quote-card span { font-size: 11px; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.about-grid--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- lightweight rich text editor ---------- */
.rich-editor-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}
.rich-tool {
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--navy-800);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.rich-tool:hover { border-color: var(--line); background: #fff; }
.rich-separator { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.rich-color {
  width: 19px;
  height: 19px;
  margin: 0 1px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.rich-color:hover { transform: scale(1.12); }
.rich-editor-content {
  min-height: 115px;
  max-height: 360px;
  overflow-y: auto;
  padding: 11px 13px;
  outline: none;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
}
.rich-editor-content:focus { box-shadow: inset 0 0 0 2px rgba(12,124,124,.14); }
.rich-editor-shell--single .rich-editor-content {
  min-height: 42px;
  max-height: 88px;
}
.rich-editor-content p { margin: 0 0 .55em; }
.rich-editor-content ul, .rich-editor-content ol { margin: .4em 0; padding-inline-start: 1.5em; }
.rich-editor-content a { color: var(--teal-700); text-decoration: underline; }
.rich-editor-source { display: none !important; }
.home-edit-toolbar .rich-toolbar {
  position: sticky;
  z-index: 8;
  top: 8px;
  margin: 7px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 22px rgba(10,44,82,.08);
}
.rt-orange { color: var(--orange-500); }

/* city theme: centered hero, matching the open horizon layout */
body.public-page[data-theme="city"] .hero-visual { display: none; }
body.public-page[data-theme="city"] .hero-grid {
  display: block;
  max-width: 1020px;
}
body.public-page[data-theme="city"] .hero-copy {
  text-align: center;
}
body.public-page[data-theme="city"] .hero-title {
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: 18px;
}
body.public-page[data-theme="city"] .hero-lead {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 26px;
}
body.public-page[data-theme="city"] .hero-search {
  max-width: 700px;
  margin-inline: auto;
}
body.public-page[data-theme="city"] .hero-chips {
  justify-content: center;
}
body.public-page[data-theme="city"] .hero-stats {
  justify-content: center;
  max-width: 900px;
  margin-inline: auto;
}
.about-text h2 { font-size: 22px; margin-top: 26px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { font-size: 13.5px; line-height: 2.1; color: var(--ink-soft); }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.value-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.value-item .icon { width: 22px; height: 22px; color: var(--teal-600); margin-bottom: 8px; }
.value-item h4 { font-size: 12.5px; margin-bottom: 4px; }
.value-item p { font-size: 10.5px; color: var(--muted); line-height: 1.8; margin: 0; }
.faq-list { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 9px; padding: 15px 18px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 17px; height: 17px; color: var(--teal-600); }
.faq-item summary::after { content: "+"; margin-inline-start: auto; font-size: 18px; color: var(--muted); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--teal-700); background: #fbfdff; }
.faq-body { padding: 0 18px 16px 44px; font-size: 12px; line-height: 2; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.contact-info { display: grid; gap: 10px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.contact-info-item .icon { width: 20px; height: 20px; color: var(--teal-600); margin-top: 2px; }
.contact-info-item b { display: block; font-size: 12px; }
.contact-info-item span { font-size: 10.5px; color: var(--muted); direction: ltr; display: inline-block; }
.map-placeholder {
  height: 190px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(145deg, #eef6f8, #e6f1f5); position: relative;
}
.map-placeholder::before { content: ""; position: absolute; inset: 0; background: url('/img/network.svg') center / cover; opacity: .6; }
.map-placeholder span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--teal-700); font-weight: 600; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 12.5px; }
  .hero-grid { gap: 26px; }
  .hero-visual { height: 420px; }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .topbar-note span { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead, .hero-search { margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 10px auto 0; width: 100%; height: 430px; }
  .hero-line { white-space: normal; }
  .stat-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--line-soft); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .mobile-filter-toggle { display: inline-flex; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout, .feed-layout, .register-layout, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .profile-side, .feed-side, .register-side { position: static; }
  .feed-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card .brand { display: flex; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
  .dash-nav-links { grid-template-columns: repeat(3, 1fr); }
  .dash-columns { grid-template-columns: 1fr; }
  .admin-grid, .request-detail { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: repeat(3, 1fr); }
  .admin-charts { grid-template-columns: 1fr 1fr; }
  .admin-charts .chart-card:last-child { grid-column: 1 / -1; }
  .admin-columns { grid-template-columns: 1fr; }
  .admin-member-stats { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .topbar { display: none; }
  :root { --header-h: 68px; }
  .header-inner { min-height: 68px; gap: 8px; }
  .brand-title { font-size: 16px; }
  .brand-sub { display: none; }
  .brand-mark { width: 38px; height: 38px; object-fit: contain; }
  .header-actions .btn-accent { display: none; }
  .user-menu-name { display: none; }
  .hero { padding: 34px 0 60px; }
  .hero-title { font-size: clamp(28px, 8vw, 38px); }
  .hero-lead { font-size: 13.5px; }
  .hero-search { flex-direction: column; padding: 8px; }
  .hero-search .btn { width: 100%; }
  .hero-search input { padding-inline: 40px 10px; }
  .hero-stats { gap: 20px; margin-top: 24px; }
  .hero-stat strong { font-size: 20px; }
  .hero-visual { height: 360px; }
  .visual-frame { inset: 6px 0 20px; border-radius: 28px; }
  .visual-orbit { width: 240px; height: 240px; }
  .visual-center { width: 120px; height: 120px; }
  .visual-center img { width: 42px; height: 42px; object-fit: contain; }
  .orbit-avatar { padding: 4px 9px 4px 4px; }
  .orbit-avatar img { width: 30px; height: 30px; }
  .orbit-avatar b { font-size: 9px; }
  .orbit-avatar small { font-size: 7.5px; }
  .oa-2 { left: 2px; }
  .oa-3 { right: 2px; }
  .float-badge { display: none; }
  .stat-band { margin-top: -26px; }
  .stat-item { padding: 16px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-item strong { font-size: 20px; }
  .section { padding: 42px 0; }
  .section-head { align-items: flex-start; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member-avatar { width: 62px; height: 62px; }
  .member-body { padding: 7px 12px 12px; }
  .member-cover { height: 66px; }
  .member-name { font-size: 13.5px; }
  .member-headline { font-size: 10.5px; min-height: 36px; }
  .member-footer { padding: 8px 12px; }
  .results-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .steps { padding: 12px; }
  .step-label { font-size: 10px; }
  .step-line { margin-inline: 7px; }
  .profile-cover { height: 200px; border-radius: 16px; }
  .profile-head-card { margin: -54px 12px 0; padding: 0 16px 18px; gap: 12px; }
  .profile-avatar { width: 104px; height: 104px; margin-top: -48px; border-width: 5px; }
  .profile-name { font-size: 20px; }
  .profile-head-actions { width: 100%; padding-top: 0; }
  .profile-stats-row { gap: 18px; }
  .profile-side { position: static; }
  .post-grid { gap: 5px; }
  .feed-side { grid-template-columns: 1fr; }
  .composer { padding: 14px; }
  .post-body { font-size: 12.5px; padding-inline: 14px; }
  .post-head { padding-inline: 14px; }
  .post-media { margin-inline: 14px; }
  .post-actions { padding-inline: 6px; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-welcome-flex { flex-direction: column; align-items: flex-start; }
  .dash-ring { width: 88px; height: 88px; }
  .dash-nav-links { grid-template-columns: repeat(2, 1fr); }
  .post-manage-grid { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-cards .admin-card:last-child { grid-column: 1 / -1; }
  .admin-charts { grid-template-columns: 1fr; }
  .admin-charts .chart-card:last-child { grid-column: auto; }
  .admin-member-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .cta-band { padding: 28px; }
  .cta-band h2 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 26px; }
  .footer-grid > :last-child { grid-column: auto; }
  .site-footer { margin-top: 50px; }
  .page-head { padding: 30px 0; }
  .page-head h1 { font-size: 24px; }
  .table-card { border-radius: 14px; }
  .track-search { flex-direction: column; }
  .track-search .btn { width: 100%; }
  .track-card-head { flex-direction: column; }
  .detail-photos { grid-template-columns: 1fr; }
  .auth-main { padding: 28px 18px; }
  .auth-title { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 18px; }
  .member-grid { grid-template-columns: 1fr; }
  .member-cover { height: 80px; }
  .stat-band-inner { grid-template-columns: 1fr; }
  .stat-item { border-inline-start: 0 !important; border-top: 1px solid var(--line-soft); }
  .stat-item:first-child { border-top: 0; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1; }
  .profile-head-card { flex-direction: column; align-items: stretch; }
  .profile-avatar { margin-top: -56px; }
  .profile-head-actions .btn { flex: 1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-nav-links { grid-template-columns: 1fr 1fr; }
  .auth-meta { flex-direction: column; align-items: flex-start; }
}

/* Inline homepage editor */
.home-edit-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 14px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink-soft);
  font-size: 11px; position: relative; z-index: 30;
}
.home-edit-toolbar > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.home-edit-toolbar .icon { width: 15px; height: 15px; color: var(--teal-600); }
.home-edit-actions { display: flex; align-items: center; gap: 6px; }
.home-edit-hint { color: var(--muted); font-size: 10px; flex: 1; text-align: center; }
.home-edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(14, 143, 140, .65); outline-offset: 4px;
  background: rgba(226, 245, 243, .28); border-radius: 3px; cursor: text;
}
.home-edit-mode [contenteditable="true"]:focus { outline: 2px solid var(--teal-500); background: #fff; }
.home-edit-mode .hero-title .highlight {
  background: none !important;
  -webkit-text-fill-color: var(--orange-600);
  color: var(--orange-600);
}
@media (max-width: 600px) {
  .home-edit-toolbar { flex-wrap: wrap; }
  .home-edit-hint { order: 3; width: 100%; text-align: right; }
}
