@font-face { font-family: "Plex Arabic"; src: url("assets/fonts/IBMPlexSansArabic-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("assets/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* ألوان الهوية */
  --purple: #7a39eb;
  --lavender: #a68bf8;
  --cyan: #01d7f5;
  --navy: #090f22;

  --bg: #0a0f23;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hi: rgba(255, 255, 255, 0.075);
  --stroke: rgba(166, 139, 248, 0.22);
  --text: #f3f1ff;
  --muted: #a9a7c4;
  --brand-grad: linear-gradient(90deg, var(--purple) 0%, var(--lavender) 50%, var(--cyan) 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plex Arabic", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% 110%, rgba(122, 57, 235, 0.45), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(122, 57, 235, 0.25), transparent 60%),
    linear-gradient(180deg, #0b1027 0%, #120f33 55%, #1d1048 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "Michroma", ui-monospace, monospace; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; }
.accent {
  background: linear-gradient(90deg, var(--cyan), #6fe9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: url("assets/city.jpg") center bottom / cover no-repeat;
  opacity: 0.12; filter: blur(14px) saturate(1.3);
}

/* ============ Buttons ============ */
.btn-primary, .btn-outline {
  height: 60px; padding: 0 26px; border-radius: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: inherit; font-size: 18px; font-weight: 600; color: #fff;
  transition: transform .15s, box-shadow .2s, filter .2s, border-color .2s;
}
.btn-primary svg, .btn-outline svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  border: 0; background: var(--brand-grad);
  box-shadow: 0 10px 30px rgba(122, 57, 235, 0.45), 0 0 26px rgba(1, 215, 245, 0.3);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active, .btn-outline:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-primary.loading span::after { content: " …"; }
.btn-outline {
  background: rgba(10, 10, 35, 0.4);
  border: 1.5px solid rgba(166, 139, 248, 0.7);
  box-shadow: inset 0 0 18px rgba(122, 57, 235, 0.18);
}
.btn-outline:hover { border-color: var(--lavender); box-shadow: inset 0 0 22px rgba(122, 57, 235, 0.3), 0 0 18px rgba(122, 57, 235, 0.25); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }
.btn-sm svg { width: 20px; height: 20px; }

/* ============ Top nav ============ */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  background: rgba(10, 12, 35, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; }
.brand span { font-family: "Michroma", sans-serif; font-size: 15px; letter-spacing: .12em; direction: ltr; }
.brand .brand-wm { width: auto; height: 13px; }
/* شعار الكتابة HASHOPOLIS (مستخرج من ملف الهوية) */
.wordmark-img {
  display: block; margin: 0 auto; width: min(300px, 78%); height: auto;
  filter: drop-shadow(0 0 18px rgba(166, 139, 248, .45));
}
.hero-land .wordmark-img { width: min(440px, 82%); }
.idc-head .idc-wm { display: block; height: 12px; width: auto; margin: 2px 0 4px auto; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ============ Landing ============ */
.landing { position: relative; z-index: 1; }
.hero-land {
  position: relative; text-align: center; overflow: hidden;
  padding: 56px 16px 0;
}
.hero-land .logo-xl {
  width: 120px; display: block; margin: 0 auto 14px;
  filter: drop-shadow(0 0 22px rgba(1, 215, 245, 0.45)) drop-shadow(0 0 36px rgba(122, 57, 235, 0.4));
  animation: float 6s ease-in-out infinite;
}
.hero-land .wordmark { font-size: clamp(26px, 6vw, 44px); }
.hero-land h1 { margin: 22px auto 0; max-width: 760px; font-size: clamp(30px, 6vw, 52px); line-height: 1.3; font-weight: 700; }
.hero-land .lead { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.counter {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke);
  color: var(--muted); font-size: 15px;
}
.counter b { color: var(--cyan); font-size: 17px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(1,215,245,.6); animation: pulse 2s infinite; }
.hero-city {
  height: clamp(190px, 32vw, 380px); margin: 28px -16px 0;
  background: url("assets/city.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%);
}

.section { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 56px 16px; }
.section-head { text-align: center; margin-bottom: 34px; }
.eyebrow { display: inline-block; color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 4.4vw, 36px); }
.section-head p { margin: 10px auto 0; max-width: 620px; color: var(--muted); line-height: 1.8; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pillar {
  padding: 26px 24px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .25s, background .25s;
}
.pillar:hover { border-color: var(--stroke); background: var(--surface-hi); transform: translateY(-3px); }
.pillar .pi {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(122,57,235,.35), rgba(1,215,245,.18)); border: 1px solid var(--stroke);
}
.pillar .pi svg { width: 26px; height: 26px; fill: none; stroke: #e6e0ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin: 0 0 8px; font-size: 20px; }
.pillar p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255,255,255,.08); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--brand-grad); font-weight: 700; font-size: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.showcase .copy h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 34px); }
.showcase .copy p { margin: 0 0 22px; color: var(--muted); line-height: 1.9; }
.showcase ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.showcase li { display: flex; gap: 10px; align-items: center; color: #dcd8f5; }
.showcase li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }

.cta-band {
  text-align: center; padding: 44px 24px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(122,57,235,.35), rgba(1,215,245,.12)), rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(22px, 4vw, 32px); }
.cta-band p { margin: 0 0 24px; color: var(--muted); }

.site-foot {
  position: relative; z-index: 1; text-align: center; padding: 26px 16px 34px;
  color: rgba(169,167,196,.65); font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.06);
}

/* ============ Auth page ============ */
.shell {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 16px 28px;
  display: flex; flex-direction: column; align-items: stretch;
}
.hero { position: relative; text-align: center; }
.logo {
  width: 92px; height: auto; display: block; margin: 0 auto 10px;
  filter: drop-shadow(0 0 18px rgba(1, 215, 245, 0.45)) drop-shadow(0 0 30px rgba(122, 57, 235, 0.35));
  animation: float 6s ease-in-out infinite;
}
.wordmark {
  font-family: "Michroma", "Plex Arabic", sans-serif;
  font-size: 26px; letter-spacing: 0.14em; direction: ltr;
  color: #fff; text-shadow: 0 0 22px rgba(166, 139, 248, 0.5);
}
.city {
  height: 150px; margin: 14px -16px 0;
  background: url("assets/city.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.intro { text-align: center; margin-top: 4px; }
.intro h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.35; }
.intro p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.divider {
  display: block; width: 150px; height: 2px; margin: 16px auto 22px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  box-shadow: 0 0 12px rgba(1, 215, 245, 0.6);
}
.home-link { position: absolute; top: 0; right: 0; }

.panel { display: flex; flex-direction: column; gap: 14px; animation: rise .45s ease both; }
.panel[hidden] { display: none; }
.panel .btn-primary { margin-top: 8px; width: 100%; }
.panel .btn-outline { width: 100%; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.panel-head h2 { margin: 0; font-size: 19px; font-weight: 600; }
.back {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.field {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 18px; border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within {
  border-color: rgba(1, 215, 245, 0.55); background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(1, 215, 245, 0.12), 0 0 24px rgba(122, 57, 235, 0.25);
}
.field.invalid { border-color: #ff6b8a; box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.12); }
.ico, .chev, .eye svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: #c9c6e6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.field input, .field select {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 16px;
}
.field input::placeholder { color: #c9c6e6; opacity: .85; }
.field select { appearance: none; cursor: pointer; }
.field select:invalid { color: #c9c6e6; }
.field select option { background: #15123a; color: var(--text); }
.chev { pointer-events: none; width: 18px; height: 18px; }
.eye { border: 0; background: none; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.eye .slash { opacity: 1; transition: opacity .2s; }
.eye.on .slash { opacity: 0; }

.link {
  align-self: flex-start; border: 0; background: none; padding: 2px 4px; cursor: pointer;
  color: var(--lavender); font: inherit; font-size: 15px;
}
.link:hover { color: #c8b6ff; }

.or { display: flex; align-items: center; gap: 14px; margin: 14px 0 2px; color: var(--muted); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18)); }
.or::after { transform: scaleX(-1); }
.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 12px; }
.social button {
  height: 64px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.social button:hover { background: var(--surface-hi); border-color: var(--stroke); }
.social svg { width: 26px; height: 26px; }
/* ---------- المهارات التقنية: اختيار متعدد ---------- */
.ms { display: flex; flex-direction: column; gap: 8px; }
.ms-field { height: auto; min-height: 58px; padding: 9px 18px; cursor: pointer; outline: none; }
.ms-field:focus-visible, .ms.open .ms-field {
  border-color: rgba(1, 215, 245, 0.55); background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(1, 215, 245, 0.12), 0 0 24px rgba(122, 57, 235, 0.25);
}
.ms.open .chev { transform: rotate(180deg); }
.ms .chev { transition: transform .2s; }
.ms-value { flex: 1; min-width: 0; display: flex; align-items: center; }
.ms-placeholder { color: #c9c6e6; opacity: .85; font-size: 16px; }
.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-tags:empty { display: none; }
.ms-tag {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 13.5px; line-height: 1.5;
  background: linear-gradient(90deg, rgba(122, 57, 235, .35), rgba(1, 215, 245, .22));
  border: 1px solid rgba(166, 139, 248, .45); color: #fff;
}
.ms-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tag button {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0 0 1px;
  background: rgba(255, 255, 255, .14); color: #fff;
}
.ms-tag button:hover { background: rgba(255, 107, 138, .55); }
.ms-panel {
  border-radius: 18px; padding: 8px; animation: rise .2s ease both;
  background: rgba(20, 16, 52, .96); border: 1px solid rgba(166, 139, 248, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(122, 57, 235, .2);
}
.ms-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ms-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px;
  border-radius: 12px; cursor: pointer; font-size: 15px; user-select: none;
  transition: background .15s;
}
.ms-opt:hover { background: rgba(255, 255, 255, .06); }
.ms-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ms-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; position: relative;
  border: 1.5px solid rgba(201, 198, 230, .6); background: rgba(255, 255, 255, .04);
  transition: background .15s, border-color .15s;
}
.ms-opt input:checked + .ms-box { background: var(--brand-grad); border-color: transparent; }
.ms-opt input:checked + .ms-box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}
.ms-opt input:focus-visible + .ms-box { box-shadow: 0 0 0 3px rgba(1, 215, 245, .35); }
.ms-opt:has(input:checked) { background: rgba(122, 57, 235, .16); }
.ms-other { padding: 6px 4px 2px; }
.ms-other input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; outline: 0;
  background: var(--surface); border: 1px solid rgba(1, 215, 245, .4); color: var(--text); font: inherit; font-size: 15px;
}
.ms-other input:focus { box-shadow: 0 0 0 3px rgba(1, 215, 245, .15); }
.ms-other input.invalid { border-color: #ff6b8a; }
.ms-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 2px; }
.ms-count { color: var(--muted); font-size: 13.5px; }
.ms-done {
  height: 40px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand-grad); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
}
@media (max-width: 400px) { .ms-list { grid-template-columns: 1fr; } }

/* مهارات على البطاقة */
.idc-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.idc-skills:empty { display: none; }

.email-hint {
  margin: -6px 4px 0; font-size: 14.5px; color: #ffd36b;
}
.email-hint .hint-fix {
  border: 0; background: rgba(1, 215, 245, .14); color: var(--cyan); font: inherit; font-weight: 600;
  padding: 2px 10px; border-radius: 8px; cursor: pointer; text-decoration: underline;
}
.hint { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.foot { margin-top: 30px; text-align: center; color: rgba(169, 167, 196, .6); font-size: 13px; }

/* ============ Resident ID card ============ */
/* كل تصميم يغيّر المتغيرات فقط — والتخطيط واحد (بسيط ليظهر مطابقًا عند التحميل كصورة) */
.idc {
  --c-bg: linear-gradient(135deg, #3b1f8f 0%, #1c1554 50%, #0c2a4a 100%);
  --c-border: rgba(166, 139, 248, .55);
  --c-text: #ffffff;
  --c-muted: #b9b6d8;
  --c-accent: #01d7f5;
  --c-line: rgba(255, 255, 255, .14);
  --c-skill-bg: rgba(1, 215, 245, .14);
  --c-skill-fg: #8eefff;
  --c-skill-bd: rgba(1, 215, 245, .4);
  --c-glow: rgba(122, 57, 235, .35);

  position: relative; overflow: hidden;
  width: 100%; max-width: 460px; aspect-ratio: 1.586 / 1; margin: 0 auto;
  padding: 22px 24px 18px; border-radius: 24px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 40px var(--c-glow);
  display: grid; grid-template-rows: auto 1fr auto; row-gap: 12px;
}
.idc[data-theme="neon"] {
  --c-bg: linear-gradient(135deg, #04394d 0%, #062c48 50%, #0d1840 100%);
  --c-border: rgba(1, 215, 245, .6);
  --c-muted: #a6d8e6;
  --c-glow: rgba(1, 215, 245, .3);
}
.idc[data-theme="midnight"] {
  --c-bg: linear-gradient(160deg, #0d1230 0%, #090f22 100%);
  --c-border: rgba(166, 139, 248, .35);
  --c-muted: #9c9bb8;
  --c-accent: #a68bf8;
  --c-skill-bg: rgba(166, 139, 248, .14);
  --c-skill-fg: #cdbdff;
  --c-skill-bd: rgba(166, 139, 248, .4);
  --c-glow: rgba(9, 15, 34, .6);
}
.idc[data-theme="pearl"] {
  --c-bg: linear-gradient(135deg, #f7f3ff 0%, #ece6ff 45%, #dff7fc 100%);
  --c-border: rgba(122, 57, 235, .35);
  --c-text: #1a1450;
  --c-muted: #5d5a80;
  --c-accent: #7a39eb;
  --c-line: rgba(26, 20, 80, .12);
  --c-skill-bg: rgba(122, 57, 235, .1);
  --c-skill-fg: #5a24c4;
  --c-skill-bd: rgba(122, 57, 235, .35);
  --c-glow: rgba(166, 139, 248, .35);
}
.idc.exporting { box-shadow: none; }
.idc-watermark {
  position: absolute; left: -46px; bottom: -58px; width: 230px; opacity: .07; pointer-events: none;
}
.idc-head, .idc-body, .idc-foot { position: relative; }
.idc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.idc-brand { display: flex; align-items: center; gap: 10px; }
.idc-logo { width: 38px; height: auto; display: block; }
.idc-brand .t { display: flex; flex-direction: column; gap: 4px; }
.idc-head .idc-wm { display: block; height: 13px; width: auto; }
.idc-brand small { color: var(--c-muted); font-size: 12px; line-height: 1; }
.idc-chip {
  position: relative; flex: none; width: 46px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #f0e2b6 0%, #c9a865 55%, #e8d39e 100%);
  border: 1px solid rgba(0, 0, 0, .18);
}
.idc-chip i { position: absolute; background: rgba(0, 0, 0, .22); }
.idc-chip i:first-child { left: 7px; right: 7px; top: 50%; height: 1px; }
.idc-chip i:last-child { top: 7px; bottom: 7px; left: 50%; width: 1px; }
.idc-body { display: flex; align-items: center; gap: 16px; min-width: 0; }
.idc-avatar {
  width: 72px; height: 72px; border-radius: 20px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff; line-height: 1;
  background: linear-gradient(135deg, #7a39eb 0%, #a68bf8 55%, #01d7f5 100%);
}
.idc-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.idc-name { font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.idc-skill {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; line-height: 1.5;
  background: var(--c-skill-bg); color: var(--c-skill-fg); border: 1px solid var(--c-skill-bd);
}
.idc-mail { color: var(--c-muted); font-size: 12.5px; direction: ltr; overflow-wrap: anywhere; }
.idc-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end;
  padding-top: 12px; border-top: 1px solid var(--c-line);
}
.idc-foot > div:nth-child(2) { text-align: center; }
.idc-foot > div:nth-child(3) { text-align: left; }
.idc-foot small { display: block; color: var(--c-muted); font-size: 11.5px; margin-bottom: 4px; }
.idc-foot b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.idc-foot .mono { font-size: 13px; color: var(--c-accent); }
.status { font-style: normal; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: rgba(255, 193, 7, .15); color: #ffd36b; }
.status.confirmed { background: rgba(1, 215, 245, .15); color: var(--cyan); }
.status.rejected { background: rgba(255, 107, 138, .15); color: #ff8fa6; }
.idc[data-theme="pearl"] .status { background: rgba(196, 140, 0, .14); color: #8a5d00; }
.idc[data-theme="pearl"] .status.confirmed { background: rgba(1, 160, 190, .14); color: #037a91; }

/* اختيار شكل البطاقة */
.theme-picker { margin-top: 16px; }
.theme-picker > span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.theme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-opt {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1.5px solid rgba(255, 255, 255, .1); color: var(--text); font: inherit; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.theme-opt:hover { background: var(--surface-hi); }
.theme-opt[aria-checked="true"] { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(1, 215, 245, .15); }
.theme-opt .sw { width: 30px; height: 20px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); }
.sw-aurora { background: linear-gradient(135deg, #3b1f8f, #1c1554 50%, #0c2a4a); }
.sw-neon { background: linear-gradient(135deg, #04394d, #062c48 50%, #0d1840); border-color: rgba(1, 215, 245, .6) !important; }
.sw-midnight { background: linear-gradient(160deg, #0d1230, #090f22); }
.sw-pearl { background: linear-gradient(135deg, #f7f3ff, #ece6ff 45%, #dff7fc); }

/* ============ City page ============ */
.city-main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 28px 16px 40px; }
.welcome { display: grid; grid-template-columns: 1fr 460px; gap: 36px; align-items: center; }
.welcome h1 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 40px); line-height: 1.35; }
.welcome p { margin: 0 0 20px; color: var(--muted); line-height: 1.9; }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--stroke); font-size: 15px; line-height: 1.6;
}
.notice.ok { border-color: rgba(1, 215, 245, .45); }
.notice .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--cyan); animation: spin .9s linear infinite; flex: none; }
.notice .tick { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.user-chip .av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand-grad); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.service {
  position: relative; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255,255,255,.08);
}
.service .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(122,57,235,.25); border: 1px solid var(--stroke); }
.service .pi svg { width: 22px; height: 22px; fill: none; stroke: #e6e0ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 6px; font-size: 17px; }
.service p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.soon { position: absolute; top: 18px; left: 18px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(166,139,248,.15); color: var(--lavender); }
.loading-screen { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ============ حارات المدينة ============ */
.no-scroll { overflow: hidden; }
.muted { color: var(--muted); }
.muted-line { color: var(--muted); margin: 6px 0; font-size: 15px; }
.mono-sm { font-family: "Michroma", monospace; font-size: 11.5px; letter-spacing: .05em; direction: ltr; }
.link.danger { color: #ff8fa6; }
.btn-sm[disabled] { opacity: .6; cursor: default; transform: none; }

.welcome-banner {
  display: flex; flex-direction: column; gap: 4px; margin: 0 auto 26px; max-width: 760px; text-align: center;
  padding: 18px 22px; border-radius: 20px; animation: rise .5s ease both;
  background: linear-gradient(135deg, rgba(122, 57, 235, .35), rgba(1, 215, 245, .16));
  border: 1px solid rgba(1, 215, 245, .45); box-shadow: 0 0 30px rgba(1, 215, 245, .15);
}
.welcome-banner strong { font-size: 22px; }
.welcome-banner span { color: #d9d6f2; }

.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.district-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 18px; border-radius: 20px; min-height: 112px;
  background: linear-gradient(135deg, rgba(122, 57, 235, .18), rgba(1, 215, 245, .06)), var(--surface);
  border: 1px solid rgba(166, 139, 248, .25); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.district-card:hover { transform: translateY(-3px); border-color: rgba(1, 215, 245, .55); box-shadow: 0 12px 30px rgba(0, 0, 0, .3), 0 0 22px rgba(1, 215, 245, .15); }
.district-ico {
  flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand-grad); box-shadow: 0 0 22px rgba(122, 57, 235, .4);
}
.district-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.district-ico.lg { width: 78px; height: 78px; border-radius: 24px; }
.district-ico.lg svg { width: 38px; height: 38px; }
.district-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.district-body strong { font-size: 18px; }
.district-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.district-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 13.5px; font-weight: 600; }
.district-meta.big { font-size: 15px; margin-top: 6px; }
.district-meta .mini, .mini { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.district-go { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-box {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px; border-radius: 18px; color: var(--muted); background: var(--surface); border: 1px dashed rgba(166, 139, 248, .35);
}
.empty-box.big strong { color: var(--text); font-size: 19px; }

/* صفحة الحارة */
.district-hero { display: flex; align-items: center; gap: 20px; margin: 10px 0 24px; }
.district-hero h1 { margin: 2px 0 6px; font-size: clamp(26px, 5vw, 38px); }
.district-hero p { margin: 0; color: var(--muted); line-height: 1.8; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 20px; }
.tab {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  padding: 12px 16px; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.search-field { max-width: 460px; }
.search-field input::-webkit-search-cancel-button { filter: invert(1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(166, 139, 248, .35); background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s;
}
.chip[aria-pressed="true"] { background: linear-gradient(90deg, rgba(122, 57, 235, .5), rgba(1, 215, 245, .3)); border-color: var(--cyan); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.member-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .08);
}
.member-card.is-me { border-color: rgba(1, 215, 245, .35); }
.member-top { display: flex; align-items: center; gap: 12px; }
.member-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-id strong { font-size: 17px; overflow-wrap: anywhere; }
.me-pill { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(1, 215, 245, .15); color: var(--cyan); vertical-align: middle; }
.member-bio { margin: 0; font-size: 14.5px; line-height: 1.7; color: #d9d6f2; min-height: 24px; }
.member-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.member-btns .btn-sm { flex: 1; min-width: 120px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(1, 215, 245, .12); color: #8eefff; border: 1px solid rgba(1, 215, 245, .3); }
.tag-alt { background: rgba(166, 139, 248, .14); color: #cdbdff; border-color: rgba(166, 139, 248, .4); }

.av-img { flex: none; width: 56px; height: 56px; border-radius: 18px; object-fit: cover; display: block; background: var(--surface); }
.av-fallback {
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; line-height: 1;
  background: linear-gradient(135deg, #7a39eb, #a68bf8 55%, #01d7f5);
}
img.av-img[width="42"], img.av-img[width="32"] { border-radius: 12px; }

/* فرص التعاون */
.opp-form {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(122, 57, 235, .18), rgba(1, 215, 245, .06)); border: 1px solid rgba(166, 139, 248, .3);
}
.opp-form h3 { margin: 0 0 4px; font-size: 17px; }
.opp-form .btn-sm { align-self: flex-start; }
.opp-list { display: grid; gap: 14px; }
.opp-card { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); }
.opp-card h4 { margin: 10px 0 6px; font-size: 18px; }
.opp-card p { margin: 0; color: #d9d6f2; line-height: 1.8; white-space: pre-line; }
.opp-head, .opp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.opp-foot { margin-top: 14px; }
.opp-kind { font-size: 12.5px; padding: 3px 12px; border-radius: 999px; font-weight: 600; background: rgba(1, 215, 245, .15); color: var(--cyan); }
.opp-kind.k-project { background: rgba(166, 139, 248, .18); color: #cdbdff; }
.opp-kind.k-partner { background: rgba(255, 193, 7, .15); color: #ffd36b; }

/* حقول النماذج داخل النوافذ */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-stack h3 { margin: 0; font-size: 20px; }
.form-stack p { margin: 0; }
.lbl { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: #d9d6f2; }
.lbl input, .lbl textarea, .lbl select, .row2 input, .row2 select, .opp-form input, .opp-form textarea, .opp-form select {
  width: 100%; padding: 12px 14px; border-radius: 14px; outline: 0; resize: vertical;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .12); color: var(--text); font: inherit; font-size: 15px;
}
.lbl select option, .row2 select option, .opp-form select option { background: #15123a; }
.lbl input:focus, .lbl textarea:focus, .row2 input:focus, .opp-form input:focus, .opp-form textarea:focus { border-color: rgba(1, 215, 245, .55); box-shadow: 0 0 0 3px rgba(1, 215, 245, .12); }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.opp-form .row2 { grid-template-columns: 2fr 1fr; }
.avatar-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-preview .av-img { width: 72px; height: 72px; border-radius: 22px; }
.file-btn { cursor: pointer; }

/* النافذة المنبثقة */
.modal {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 6, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: rise .2s ease both;
}
.modal-card {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 26px 22px 22px; border-radius: 24px;
  background: linear-gradient(160deg, #18134a, #0d1030); border: 1px solid rgba(166, 139, 248, .35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(122, 57, 235, .25);
}
.modal-x {
  position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--text); font-size: 22px; line-height: 1;
}
.profile-view h3 { margin: 0 0 4px; font-size: 22px; }
.profile-view h4 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.profile-top { display: flex; align-items: center; gap: 14px; padding-left: 40px; }
.profile-top .av-img { width: 84px; height: 84px; border-radius: 24px; }
.profile-bio { margin: 16px 0 0; line-height: 1.8; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.connected-box { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 14px; border-radius: 14px; font-size: 14px;
  background: rgba(1, 215, 245, .12); border: 1px solid rgba(1, 215, 245, .4); color: #c9f6ff;
}
.contact-pill b { color: #fff; overflow-wrap: anywhere; }

/* طلبات التواصل */
.conn-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.conn-title { margin: 0 0 10px; font-size: 16px; color: #d9d6f2; }
.conn-list { display: flex; flex-direction: column; gap: 10px; }
.conn-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .08); }
.conn-item p { margin: 0; font-size: 14px; line-height: 1.7; color: #d9d6f2; }
.conn-person { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-align: right; }
.conn-person > span { display: flex; flex-direction: column; gap: 2px; }
.conn-person .muted { font-size: 12.5px; }
.conn-person .av-img { width: 42px; height: 42px; border-radius: 12px; }
.opp-foot .conn-person .av-img { width: 32px; height: 32px; border-radius: 10px; font-size: 14px !important; }
.conn-btns { display: flex; gap: 8px; }
.pill-wait { align-self: flex-start; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 193, 7, .14); color: #ffd36b; }

@media (max-width: 860px) {
  .conn-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .district-grid, .member-grid { grid-template-columns: 1fr; }
  .district-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .row2, .opp-form .row2 { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 16px 18px; }
}

/* ============ التنقل الرئيسي داخل المدينة ============ */
.nav-links { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 12px;
  color: var(--muted); font-size: 15px; font-weight: 600; transition: background .15s, color .15s;
}
.nav-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-link[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(122, 57, 235, .55), rgba(1, 215, 245, .3)); box-shadow: 0 0 16px rgba(122, 57, 235, .3); }

/* ============ تبويب المشاريع ============ */
.projects-head { margin-bottom: 22px; }
.projects-head h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); }
.proj-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.proj-search { max-width: 560px; }
.search-clear {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--text); font-size: 18px; line-height: 1;
}
.search-clear:hover { background: rgba(255, 107, 138, .45); }
.chip small { opacity: .7; font-size: 12px; margin-inline-start: 4px; }
.chip:focus-visible, .proj-card:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.proj-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; min-height: 24px; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.proj-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer; border-radius: 22px;
  background: var(--surface); border: 1px solid rgba(166, 139, 248, .2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.proj-card:hover { transform: translateY(-3px); border-color: rgba(1, 215, 245, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 24px rgba(1, 215, 245, .14); }
.proj-cover { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #0f0c2e; flex: none; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-fallback {
  display: grid; place-items: center;
  background: radial-gradient(260px 140px at 80% 0%, rgba(1, 215, 245, .35), transparent 60%), linear-gradient(135deg, #2a1870, #0f1a3d);
}
.proj-fallback span { font-size: 46px; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 0 24px rgba(166, 139, 248, .6); }
.proj-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.proj-body h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.proj-summary { margin: 0; color: #d9d6f2; font-size: 14.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.proj-owner { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; min-width: 0; }
.proj-owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-foot .btn-sm { flex: none; min-height: 44px; }
.tag-sample { background: rgba(255, 193, 7, .14); color: #ffd36b; border-color: rgba(255, 193, 7, .35); }

/* هيكل التحميل */
.skeleton { cursor: default; pointer-events: none; }
.sk { background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk-line { display: block; height: 13px; border-radius: 7px; width: 100%; }
.sk-line.w60 { width: 60%; height: 18px; }
.sk-line.w80 { width: 80%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* تفاصيل المشروع */
.proj-modal { width: min(680px, 100%); padding: 0 0 22px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.proj-modal .modal-x { z-index: 2; background: rgba(9, 15, 34, .7); }
.proj-detail { display: flex; flex-direction: column; gap: 12px; }
.proj-detail > :not(.proj-cover) { margin-inline: 22px; }
.proj-cover.lg { aspect-ratio: 2.2 / 1; }
.proj-detail h2 { margin: 4px 22px 0; font-size: clamp(22px, 4vw, 28px); }
.proj-desc { margin: 0; line-height: 1.9; color: #e3e0f7; white-space: pre-line; }
.proj-detail h4 { margin: 8px 22px 0; font-size: 14px; color: var(--muted); }
.ltr-tags .tag { font-family: "Plex Arabic", system-ui, sans-serif; }
.team-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.team-list li { display: flex; align-items: center; gap: 10px; }
.team-list li > span { display: flex; flex-direction: column; }
.team-list small { color: var(--muted); }
.team-list .av-img { width: 36px; height: 36px; border-radius: 11px; }
.visit-btn { align-self: flex-start; margin-top: 8px; height: 50px; font-size: 16px; }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; }
  .nav-link { flex: 1; justify-content: center; padding: 0 8px; }
}
@media (max-width: 520px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-detail > :not(.proj-cover), .proj-detail h2, .proj-detail h4 { margin-inline: 16px; }
  .visit-btn { align-self: stretch; }
}

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20;
  transform: translate(-50%, 140%); opacity: 0;
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 16px;
  background: rgba(20, 16, 50, .95); border: 1px solid var(--stroke);
  box-shadow: 0 12px 30px rgba(0,0,0,.4); font-size: 15px; text-align: center;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { border-color: rgba(1, 215, 245, .5); }
.toast.err { border-color: rgba(255, 107, 138, .6); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(1,215,245,.6); } 70% { box-shadow: 0 0 0 10px rgba(1,215,245,0); } 100% { box-shadow: 0 0 0 0 rgba(1,215,245,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .showcase, .welcome { grid-template-columns: 1fr; }
  .welcome .idc { order: -1; }
}
@media (max-width: 520px) {
  .nav .hide-sm { display: none; }
  .brand span { font-size: 13px; }
  .hero-cta .btn-primary, .hero-cta .btn-outline { width: 100%; }
  .idc { padding: 18px 16px 14px; aspect-ratio: auto; min-height: 220px; }
  .idc-avatar { width: 58px; height: 58px; font-size: 24px; border-radius: 16px; }
  .idc-name { font-size: 19px; }
  .idc-head .idc-wm { height: 11px; }
}
@media (min-width: 900px) {
  .shell { padding-top: 40px; }
  .city { height: 170px; margin-inline: -60px; }
}
@media (prefers-reduced-motion: reduce) { .logo, .logo-xl, .panel, .pulse { animation: none; } }
.service-link { display: block; transition: transform .2s, border-color .2s; }
.service-link:hover { transform: translateY(-3px); border-color: rgba(1, 215, 245, .5); }
.soon.live { background: rgba(1, 215, 245, .15); color: var(--cyan); }
