/* ==========================================================================
   Chapa design system
   Navy ink on white and cool greys, one light sky blue for actions.
   Display: Outfit (bold, rounded). Body: Manrope.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/outfit-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --soft: #f4f5f8;
  --soft-2: #e9ecf2;
  --line: #e2e5eb;
  --line-strong: #cfd4dd;
  --navy: #0f1b33;
  --navy-2: #1a2747;
  --ink: #121a2b;
  --muted: #5f6676;
  --faint: #9aa0ad;
  --sky: #2f95f5;
  --sky-ink: #1877d2;
  --sky-deep: #1a7ad6;
  --sky-soft: #e8f3ff;
  --sky-glow: rgba(47, 149, 245, .28);
  --success: #1c7f47;
  --success-soft: #e8f6ee;
  --warning: #9a5a00;
  --warning-soft: #fff4e2;
  --danger: #c0352a;
  --danger-soft: #fdeceb;

  --display: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .05);
  --shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 10px 30px rgba(15, 27, 51, .07);
  --shadow-lg: 0 24px 60px rgba(15, 27, 51, .14);
  --wrap: 1200px;
  --sidebar: 264px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
svg { flex: 0 0 auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.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; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 22px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.nums { font-variant-numeric: tabular-nums; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); }
.title-xl { font-size: clamp(40px, 6.6vw, 72px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; }
.title-lg { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.title-md { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.title-sm { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.accent { color: var(--sky-ink); }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .lead { font-size: 16.5px; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding-inline: 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 6px 18px var(--sky-glow); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--soft-2); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f2c9c5; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #166638; }
.btn-sm { --h: 36px; padding-inline: 14px; font-size: 13.5px; }
.btn-lg { --h: 54px; padding-inline: 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.link { color: var(--sky-ink); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.card-lg { padding: 32px; border-radius: var(--r-xl); }
.card-soft { background: var(--soft); border-color: transparent; }
.card-shadow { box-shadow: var(--shadow); border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
@media (max-width: 620px) {
  .card { padding: 20px; }
  .card-lg { padding: 24px 20px; border-radius: var(--r-lg); }
}

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before { display: none; }
.badge-sky { background: var(--sky-soft); color: var(--sky-ink); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: var(--soft); color: var(--muted); }
.badge-navy { background: var(--navy); color: #fff; }
.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; white-space: nowrap; }
a.chip:hover { background: var(--soft-2); }
.chip.is-active { background: var(--navy); color: #fff; }

/* ---------- Alerts / flash ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.5; }
.alert svg { margin-top: 2px; }
.alert-success { background: var(--success-soft); color: #145c34; }
.alert-error { background: var(--danger-soft); color: #93271f; }
.alert-info { background: var(--sky-soft); color: #11549a; }
.alert-warning { background: var(--warning-soft); color: #7a4700; }
.alert .alert-close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; font-size: 18px; line-height: 1; }
.alert .alert-close:hover { opacity: 1; }
.flash-zone { display: grid; gap: 10px; margin-bottom: 24px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.label .opt { font-weight: 500; color: var(--faint); }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.input, .select, .textarea {
  width: 100%; min-width: 0;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
  font: 500 16px/1.4 var(--body);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input, .select { height: 50px; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--faint); font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: #e8a29b; }
.has-error .input:focus, .has-error .textarea:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6676' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--faint); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.input-group .toggle-pass:hover { color: var(--ink); background: var(--soft); }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-prefix:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.input-prefix > span { display: flex; align-items: center; padding-inline: 14px; color: var(--muted); font-weight: 700; font-size: 15px; border-right: 1px solid var(--line); background: var(--soft); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-prefix .input { border: 0; box-shadow: none !important; height: 47px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sky); flex: 0 0 auto; cursor: pointer; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.counter { font-size: 12.5px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }

/* Choice cards (role picker, specialties) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; background: #fff; }
.choice-body .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: 0 0 auto; transition: background .15s, color .15s; }
.choice-body b { display: block; font-size: 15.5px; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.choice-body small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.choice:hover .choice-body { border-color: var(--line-strong); }
.choice input:checked + .choice-body { border-color: var(--sky); background: #f7fbff; box-shadow: 0 0 0 4px var(--sky-soft); }
.choice input:checked + .choice-body .ic { background: var(--sky); color: #fff; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--sky); outline-offset: 2px; }
.pill-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { position: relative; cursor: pointer; }
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; transition: all .15s; background: #fff; }
.pill-choice:hover span { border-color: var(--line-strong); }
.pill-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill-choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 520px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }

/* Upload drop zone */
.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 26px 18px; background: var(--soft); cursor: pointer; transition: border-color .15s, background .15s; min-height: 170px; overflow: hidden; }
.dropzone:hover, .dropzone.is-over { border-color: var(--sky); background: #f7fbff; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--sky-ink); box-shadow: var(--shadow-sm); }
.dropzone .dz-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone .dz-preview + .dz-text { display: none; }

/* ---------- Avatar ---------- */
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; background: linear-gradient(135deg, var(--sky), #1d5fbf); color: #fff; font-family: var(--display); font-weight: 700; font-size: calc(var(--s) * .38); letter-spacing: -0.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar > .av-i { display: block; color: #fff; font-size: inherit; line-height: 1; }
.avatar-sm { --s: 32px; }
.avatar-lg { --s: 72px; }
.avatar-xl { --s: 104px; box-shadow: 0 0 0 5px #fff, var(--shadow); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.05em; color: var(--navy); text-decoration: none; line-height: 1; }
.logo span { color: var(--sky); }
.logo small { font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0; color: var(--faint); margin-left: 8px; }
.site-links { display: flex; gap: 26px; }
.site-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); }
.site-links a:hover, .site-links a.is-active { color: var(--ink); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang form { display: contents; }
.lang button { border: 0; background: transparent; font: 800 12px/1 var(--body); color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; letter-spacing: .02em; }
.lang button.is-active { background: var(--navy); color: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; color: var(--ink); }
.mobile-menu { border-top: 1px solid var(--line); padding-block: 8px 20px; background: #fff; }
.mobile-menu a.mm-link { display: block; padding: 14px 0; font-size: 18px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); font-family: var(--display); letter-spacing: -0.01em; }
.mobile-menu .row { margin-top: 18px; }
.mobile-menu .row .btn { flex: 1; }
@media (max-width: 920px) {
  .site-links { display: none; }
  .menu-toggle { display: grid; }
  .site-actions .hide-sm { display: none; }
}

/* User menu */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: var(--line-strong); }
.user-menu .um-name { font-size: 14px; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.menu-pop .mp-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .mp-head b { display: block; font-size: 14.5px; }
.menu-pop .mp-head span { font-size: 13px; color: var(--muted); word-break: break-all; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--soft); }
.menu-pop svg { color: var(--muted); }
@media (max-width: 520px) { .user-menu .um-name { display: none; } .user-menu > summary { padding: 4px; } }

/* ---------- Site footer ---------- */
.site-footer { background: var(--navy); color: #c6cddb; padding-block: 56px 32px; margin-top: 96px; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot-grid a { text-decoration: none; color: #c6cddb; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #8f99ad; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Marketing sections ---------- */
.hero { position: relative; overflow: hidden; padding-block: 80px 72px; background: radial-gradient(1100px 480px at 50% -140px, #dcecff 0%, rgba(220, 236, 255, 0) 70%), var(--bg); }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--sky-ink); }
.soon-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-ink); background: var(--sky-soft); padding: 8px 15px; border-radius: 999px; }
.soon-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.hero-ticks span { display: inline-flex; align-items: center; gap: 7px; }
.hero-ticks svg { color: var(--sky); }
.section { padding-block: 92px; }
.section-soft { background: var(--soft); }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 17px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.step-n { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; color: var(--sky); letter-spacing: -0.04em; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }
.cat-tile { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .ci { width: 46px; height: 46px; border-radius: 14px; background: var(--sky-soft); color: var(--sky-ink); display: grid; place-items: center; }
.cat-tile b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.split-panel { border-radius: 32px; padding: 48px; display: grid; gap: 18px; align-content: start; }
.split-panel.light { background: var(--soft); }
.split-panel.dark { background: radial-gradient(600px 260px at 100% 0%, rgba(47,149,245,.28), rgba(47,149,245,0) 70%), var(--navy); color: #fff; }
.split-panel.dark h2 { color: #fff; }
.split-panel.dark .kicker { color: #8cc6ff; }
.split-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.split-panel li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.split-panel.dark li { color: #c6cddb; }
.split-panel li svg { color: var(--sky); margin-top: 3px; }
.split-panel.dark li svg { color: #8cc6ff; }
@media (max-width: 620px) { .split-panel { padding: 30px 22px; border-radius: 24px; } .section { padding-block: 68px; } .hero { padding-block: 52px 56px; } }

/* ---------- Designer cards ---------- */
.designer-card { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; min-width: 0; }
.designer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.designer-card .dc-cover { aspect-ratio: 16 / 10; max-width: 100%; background: var(--soft); overflow: hidden; display: grid; grid-template-columns: 2fr 1fr; gap: 2px; }
.designer-card .dc-cover img { width: 100%; height: 100%; object-fit: cover; }
.designer-card .dc-cover .dc-side { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; min-height: 0; }
.designer-card .dc-cover .dc-side > * { min-height: 0; background: var(--soft-2); }
.designer-card .dc-body { padding: 16px 18px 18px; display: flex; gap: 12px; align-items: center; }
.designer-card .dc-body > div > b { display: block; font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.designer-card .dc-body > div > span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.designer-card .dc-body > div { min-width: 0; }

/* ---------- Auth layout ---------- */
.auth-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: grid; place-items: center; padding: 48px 22px 64px; }
.auth-card { width: 100%; max-width: 460px; display: grid; gap: 26px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: clamp(30px, 4vw, 38px); font-weight: 800; letter-spacing: -0.035em; }
.auth-card .sub { color: var(--muted); margin-top: 8px; }
.auth-aside { position: relative; overflow: hidden; background: radial-gradient(700px 360px at 80% 10%, rgba(47,149,245,.35), rgba(47,149,245,0) 70%), var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-aside h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.auth-aside p { color: #c6cddb; max-width: 42ch; }
.aside-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.aside-gallery .ag { aspect-ratio: 1; max-width: 100%; border-radius: 18px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.aside-gallery .ag svg { width: 100%; height: 100%; }
.aside-gallery .ag:nth-child(2) { transform: translateY(18px); }
.aside-quote { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #c6cddb; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 980px) { .auth-shell { grid-template-columns: minmax(0, 1fr); } .auth-aside { display: none; } }

/* ---------- Panel (dashboard) layout ---------- */
.panel-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #fff calc(var(--sidebar) - 1px), var(--line) calc(var(--sidebar) - 1px), var(--line) var(--sidebar), var(--soft) var(--sidebar)); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; }
.sidebar .logo { padding: 4px 10px; }
.side-nav { display: grid; gap: 2px; }
.side-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 12px; margin: 10px 0 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.side-nav a.is-active { background: var(--sky-soft); color: var(--sky-ink); }
.side-nav a .count { margin-left: auto; font-size: 12px; font-weight: 800; background: var(--sky); color: #fff; border-radius: 999px; padding: 2px 8px; }
.side-nav a .soon { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--faint); }
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--soft); min-width: 0; }
.side-user > div > b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user > div > span { display: block; font-size: 12.5px; color: var(--muted); }
.side-user > div { min-width: 0; }
.panel-top { display: none; }
.panel-main { padding: 32px 40px 64px; min-width: 0; }
.panel-container { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.035em; }
.page-head p { color: var(--muted); margin-top: 6px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
@media (max-width: 980px) {
  .panel-shell { grid-template-columns: minmax(0, 1fr); background: var(--soft); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 70; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.is-open { transform: none; }
  .panel-top { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; align-items: center; justify-content: space-between; gap: 12px; height: 62px; padding-inline: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .panel-main { padding: 22px 16px 56px; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 27, 51, .4); z-index: 65; }
}

/* ---------- Stats ---------- */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 6px; min-width: 0; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.stat b { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--faint); }
.stat.is-alert { border-color: #bfe0ff; background: linear-gradient(180deg, #f5faff, #fff); }
.stat.is-alert b { color: var(--sky-ink); }

/* ---------- Progress / checklist ---------- */
.progress { height: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sky), #5fb2ff); transition: width .4s ease; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: transparent; flex: 0 0 auto; }
.checklist li.is-done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.is-done .cl-text { color: var(--muted); }
.checklist .cl-text { font-weight: 600; font-size: 15px; }
.checklist .cl-text small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.checklist a { margin-left: auto; }

/* ---------- Hero banner in panel ---------- */
.welcome { position: relative; overflow: hidden; border-radius: 26px; padding: 32px; background: radial-gradient(520px 240px at 100% 0%, rgba(47,149,245,.32), rgba(47,149,245,0) 70%), var(--navy); color: #fff; display: grid; gap: 14px; }
.welcome h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.welcome p { color: #c6cddb; max-width: 58ch; }
.welcome .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.welcome .btn-ghost:hover { border-color: #fff; }
@media (max-width: 620px) { .welcome { padding: 24px 20px; border-radius: 22px; } }

/* ---------- Status banner ---------- */
.status-banner { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; border: 1px solid; }
.status-banner .sb-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; }
.status-banner h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.status-banner p { font-size: 14.5px; }
.status-banner.sb-pending { background: #fffaf0; border-color: #f5dfb4; }
.status-banner.sb-pending .sb-ic { background: var(--warning-soft); color: var(--warning); }
.status-banner.sb-approved { background: #f4fbf7; border-color: #bfe6cf; }
.status-banner.sb-approved .sb-ic { background: var(--success-soft); color: var(--success); }
.status-banner.sb-rejected { background: #fff7f6; border-color: #f2c9c5; }
.status-banner.sb-rejected .sb-ic { background: var(--danger-soft); color: var(--danger); }
.status-banner.sb-draft { background: #f7fbff; border-color: #cfe5fd; }
.status-banner.sb-draft .sb-ic { background: var(--sky-soft); color: var(--sky-ink); }
.note-box { margin-top: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; border: 1px solid #f2c9c5; font-size: 14.5px; white-space: pre-line; }

/* ---------- Portfolio grid ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pf-item { position: relative; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); display: grid; min-width: 0; }
.pf-item .pf-img { aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--soft-2); }
.pf-item .pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pf-item:hover .pf-img img { transform: scale(1.03); }
.pf-item .pf-meta { padding: 12px 14px; background: #fff; display: grid; gap: 2px; }
.pf-item .pf-meta b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item .pf-meta span { font-size: 12.5px; color: var(--muted); }
.pf-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.pf-tools form { display: contents; }
.pf-tools button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.pf-tools button:hover { background: #fff; color: var(--sky-ink); }
.pf-tools button.danger:hover { color: var(--danger); }
.pf-tools button:disabled { opacity: .35; cursor: default; }
.pf-badge { position: absolute; top: 10px; left: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.gallery-grid figure > a, .gallery-grid figure > img { display: block; aspect-ratio: 4 / 3; background: var(--soft); }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid figcaption { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; background: #fff; font-size: 14px; }
.gallery-grid figcaption b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-grid figcaption span { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- Profile header ---------- */
.profile-hero { border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.profile-hero .ph-cover { height: 150px; background: radial-gradient(500px 200px at 20% 0%, rgba(47,149,245,.45), rgba(47,149,245,0) 70%), radial-gradient(400px 200px at 90% 100%, rgba(140,198,255,.3), rgba(140,198,255,0) 70%), var(--navy); }
.profile-hero .ph-body { padding: 18px 32px 28px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-hero .ph-body > .avatar { margin-top: -70px; }
.profile-hero .ph-info { flex: 1; min-width: 220px; padding-top: 4px; }
.profile-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.035em; }
@media (max-width: 620px) { .profile-hero .ph-body { padding: 14px 20px 22px; } .profile-hero .ph-cover { height: 110px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 18px; background: #fbfbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfe; }
.table .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table .who > div > b { display: block; font-weight: 700; }
.table .who > div > span { display: block; font-size: 13px; color: var(--muted); }
.table td.nums, .table td.nowrap { white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { background: var(--navy); color: #fff; }
.tabs a .n { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tabs a.is-active .n { background: rgba(255,255,255,.18); color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 42px; height: 44px; border-radius: 999px; }

/* ---------- Review cards (admin) ---------- */
.review-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.review-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.review-card .rc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.review-card .rc-thumbs > * { aspect-ratio: 1; max-width: 100%; background: var(--soft-2); }
.review-card .rc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.review-card .rc-info { min-width: 0; display: grid; gap: 6px; }
.review-card .rc-info b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.review-card .rc-info p { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .review-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Empty states ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 20px; }
.empty .em-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--sky-soft); color: var(--sky-ink); display: grid; place-items: center; }
.empty h3 { font-size: 19px; font-weight: 700; }
.empty p { color: var(--muted); max-width: 46ch; font-size: 15px; }

/* ---------- Definition list ---------- */
.dl { display: grid; gap: 0; margin: 0; }
.dl > div:first-child { padding-top: 0; }
.dl > div:last-child { padding-bottom: 0; }
.dl > div { display: grid; grid-template-columns: minmax(118px, 38%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dl dd.nowrap { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 520px) { .dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pager .pg { display: flex; gap: 6px; }

/* ---------- Modal (native dialog) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.modal::backdrop { background: rgba(15, 27, 51, .45); backdrop-filter: blur(2px); }
.modal-body { padding: 28px; display: grid; gap: 16px; }
.modal-body h3 { font-size: 21px; font-weight: 800; }

/* ---------- Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .rise-1 { animation-delay: .05s; } .rise-2 { animation-delay: .1s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .22s; }
  @keyframes rise { from { transform: translateY(10px); opacity: .001; } to { transform: none; opacity: 1; } }
}

.side-nav a[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.menu-close-sm { display: none; }
@media (max-width: 980px) { .menu-close-sm { display: inline-flex; } }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 24px; align-items: start; }
.panel-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .profile-layout, .panel-cols { grid-template-columns: minmax(0, 1fr); } }
.feat-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sky-soft); color: var(--sky-ink); display: grid; place-items: center; margin-bottom: 14px; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.add-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 720px) { .add-work { grid-template-columns: minmax(0, 1fr); } }
