/* ==========================================================================
   NESPL Portal — Public profile views + checkout
   Read-only profile pages (what candidates / recruiters actually see) and
   the membership payment flow. Built on the tokens in style.css.
   ========================================================================== */

/* Entrance — CSS-only, never gated on scroll position */
@keyframes pvRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pv-in { animation: pvRise .45s cubic-bezier(.2,.8,.2,1) both; }
.pv-in-1 { animation-delay: .05s; }
.pv-in-2 { animation-delay: .10s; }
.pv-in-3 { animation-delay: .15s; }
.pv-in-4 { animation-delay: .20s; }

/* ==========================================================================
   1. Profile header
   ========================================================================== */
.pv-cover {
  height: 190px; border-radius: var(--radius) var(--radius) 0 0; position: relative; overflow: hidden;
  background: var(--grad-blue);
}
.pv-cover.warm { background: linear-gradient(135deg,#f97316,#c2410c); }
.pv-cover.deep { background: linear-gradient(135deg,#6366f1,#4338ca); }
.pv-cover::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.pv-cover::before {
  content: ""; position: absolute; right: 90px; bottom: -110px; width: 210px; height: 210px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.pv-cover__tag {
  position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center; z-index: 2;
  color: rgba(255,255,255,.92); font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  padding: 0 1rem;
}

.pv-head { padding: 0 clamp(1.1rem, 3vw, 1.8rem) 1.4rem; display: flex; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; }
.pv-avatar {
  width: 116px; height: 116px; flex: 0 0 116px; border-radius: 26px; margin-top: -48px;
  background: var(--grad-blue); color: #fff; display: grid; place-items: center; position: relative; z-index: 3;
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem;
  border: 5px solid #fff; box-shadow: var(--shadow);
}
.pv-avatar.square { border-radius: 22px; }
.pv-head__body { flex: 1; min-width: 220px; padding-top: .6rem; }
.pv-head__body h1 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 .2rem; }
.pv-head__body .role { color: var(--blue-600); font-weight: 600; font-family: var(--font-display); font-size: .95rem; }
.pv-head__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .55rem; }
.pv-head__meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; color: var(--muted); }
.pv-head__acts { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .6rem; }

/* ==========================================================================
   2. Key/value info grid
   ========================================================================== */
.pv-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.pv-cell {
  padding: .95rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line);
  display: flex; gap: .75rem; align-items: flex-start;
}
.pv-cell__ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--blue-600); font-size: .95rem;
}
.pv-cell__k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pv-cell__v { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .93rem; word-break: break-word; }

/* ==========================================================================
   3. Section heading inside a profile
   ========================================================================== */
.pv-h {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.pv-h i { color: var(--blue-600); }
.pv-h .count { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ==========================================================================
   4. Timeline (experience / education / projects)
   ========================================================================== */
.tl { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl > li { position: relative; padding-bottom: 1.4rem; }
.tl > li:last-child { padding-bottom: 0; }
.tl > li::before {
  content: ""; position: absolute; left: -1.6rem; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--blue-500);
}
.tl > li.now::before { background: var(--grad-green); border-color: transparent; box-shadow: 0 0 0 4px var(--green-soft); }
.tl h6 { margin: 0 0 .15rem; font-size: .97rem; }
.tl .org { color: var(--blue-600); font-weight: 600; font-size: .88rem; font-family: var(--font-display); }
.tl .when { font-size: .8rem; color: var(--muted); margin-top: .15rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.tl p { margin: .55rem 0 0; font-size: .89rem; color: var(--body); line-height: 1.6; }

/* ==========================================================================
   5. Skill chips with level
   ========================================================================== */
.sk-wrap { display: flex; flex-wrap: wrap; gap: .55rem; }
.sk {
  display: inline-flex; align-items: center; gap: .5rem; padding: .48rem .55rem .48rem .9rem;
  border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--blue-700); font-family: var(--font-display); font-weight: 600; font-size: .85rem;
}
.sk small {
  background: #fff; border-radius: 999px; padding: .12rem .5rem; font-size: .7rem;
  color: var(--muted); font-weight: 600; border: 1px solid var(--blue-100);
}
.sk.plain { background: var(--surface-2); border-color: var(--line); color: var(--body); }

/* ==========================================================================
   6. People (leadership team)
   ========================================================================== */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 1rem; }
.person { text-align: center; }
.person__pic {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto .65rem; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  border: 3px solid #fff; box-shadow: var(--shadow-xs); overflow: hidden;
}
.person__pic.o { background: var(--grad-orange); }
.person__pic.g { background: var(--grad-green); }
.person__pic.i { background: linear-gradient(135deg,#6366f1,#4338ca); }
.person h6 { margin: 0 0 .1rem; font-size: .89rem; }
.person small { color: var(--muted); font-size: .78rem; display: block; line-height: 1.35; }

/* ==========================================================================
   7. Job openings
   ========================================================================== */
.job {
  display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s;
  flex-wrap: wrap;
}
.job:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.job__ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); font-size: 1.05rem;
}
.job__body { flex: 1; min-width: 160px; }
.job__body h6 { margin: 0 0 .18rem; font-size: .93rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .79rem; color: var(--muted); }
.job__meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* ==========================================================================
   8. Benefits + gallery + social
   ========================================================================== */
.bens { display: flex; flex-wrap: wrap; gap: .7rem; }
.ben {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 12px;
  background: var(--green-soft); border: 1px solid #bbf7d0; color: #15803d;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
}
.ben i { font-size: 1.05rem; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.gal__i {
  aspect-ratio: 4/3; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--blue-400); font-size: 1.5rem; overflow: hidden;
  transition: transform .2s;
}
.gal__i:hover { transform: scale(1.02); }
.gal__i.wide { grid-column: span 2; }

/* The tiles are scoped to .socials on purpose: style.css already uses a bare
   .soc as the *container* of the landing-page footer icons, and every
   stylesheet is loaded globally in this SPA. Unscoped, these rules would
   shrink that container to a 42px box. */
.socials { display: flex; flex-wrap: wrap; gap: .55rem; }
.socials .soc {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem;
  border: 1px solid var(--line); background: #fff; color: var(--body); transition: .2s;
}
.socials .soc:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.socials .soc.fb:hover { background: #1877f2; }
.socials .soc.tw:hover { background: #0f172a; }
.socials .soc.ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.socials .soc.li:hover { background: #0a66c2; }
.socials .soc.yt:hover { background: #ff0000; }

/* ==========================================================================
   9. Sidebar "More information" list
   ========================================================================== */
/* Scoped to the list form. style.css styles a bare .kv as a single flex row
   (<div class="kv"><span>…</span><b>…</b></div>) and other screens use it that
   way; matching .kv here would flatten those rows, since this file loads
   later. The reset of display/border still applies to the <ul> itself, which
   would otherwise inherit that row layout. */
ul.kv { list-style: none; margin: 0; padding: 0; display: block; border-bottom: 0; }
ul.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
ul.kv li:last-child { border-bottom: none; }
ul.kv .k { color: var(--muted); flex: 0 0 auto; }
ul.kv .v { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-align: right; word-break: break-word; }

/* CTA card */
.cta-card {
  border-radius: var(--radius); padding: 1.5rem; color: #fff; text-align: center;
  background: var(--grad-orange); position: relative; overflow: hidden;
}
.cta-card::after {
  content: ""; position: absolute; left: -50px; bottom: -60px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta-card h6 { color: #fff; margin: 0 0 .5rem; position: relative; z-index: 2; }
.cta-card p { color: rgba(255,255,255,.9); font-size: .87rem; margin: 0 0 1rem; position: relative; z-index: 2; }
.cta-card .btn { position: relative; z-index: 2; }

/* ==========================================================================
   10. Checkout — standalone shell
   ========================================================================== */
.co-top {
  background: #fff; border-bottom: 1px solid var(--line); padding: .9rem clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.co-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.co-logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-size: .95rem; }

.co-wrap { max-width: 1060px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 3rem; }
.co-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start; }
.co-grid > * { min-width: 0; }

/* Steps */
.steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.step__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--muted);
}
.step.on { color: var(--blue-700); }
.step.on .step__n { background: var(--grad-blue); border-color: transparent; color: #fff; }
.step.done .step__n { background: var(--grad-green); border-color: transparent; color: #fff; }
.step.done { color: #15803d; }
.step__bar { flex: 1; height: 2px; background: var(--line); min-width: 18px; border-radius: 2px; }

/* Summary rows */
.sum { list-style: none; margin: 0; padding: 0; }
.sum li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; font-size: .92rem; color: var(--body); }
.sum li + li { border-top: 1px dashed var(--line); }
.sum li b { font-family: var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.sum li.disc { color: #15803d; }
.sum li.disc b { color: #15803d; }
.sum li.total {
  border-top: 2px solid var(--line); margin-top: .3rem; padding-top: .95rem;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.sum li.total b { font-size: 1.3rem; }

/* Promo */
.promo { display: flex; gap: .55rem; }
.promo input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-msg { display: flex; align-items: center; gap: .4rem; font-size: .82rem; margin-top: .55rem; font-weight: 500; }
.promo-msg.err { color: var(--red); }
.promo-msg.ok  { color: #15803d; }
.promo-applied {
  display: flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .55rem .8rem;
  background: var(--green-soft); border: 1px solid #bbf7d0; border-radius: 10px; font-size: .84rem; color: #15803d;
}
.promo-applied button { margin-left: auto; border: none; background: none; color: #15803d; cursor: pointer; font-size: .8rem; text-decoration: underline; }

/* ==========================================================================
   11. Payment methods
   ========================================================================== */
.pm-list { display: flex; flex-direction: column; gap: .6rem; }
.pm {
  display: flex; align-items: center; gap: .85rem; padding: .95rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: .18s;
}
.pm:hover { border-color: var(--blue-400); background: var(--blue-50); }
.pm input { position: absolute; opacity: 0; width: 0; height: 0; }
.pm__ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--blue-600); font-size: 1.1rem;
  transition: .18s;
}
.pm__body { flex: 1; min-width: 0; }
.pm__body b { display: block; font-family: var(--font-display); font-size: .93rem; color: var(--ink); }
.pm__body small { color: var(--muted); font-size: .78rem; }
.pm__dot {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; transition: .18s;
}
.pm__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: transparent; transition: .18s; }
.pm.on { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.pm.on .pm__ico { background: var(--grad-blue); border-color: transparent; color: #fff; }
.pm.on .pm__dot { border-color: var(--blue-500); }
.pm.on .pm__dot::after { background: var(--blue-500); }
.pm input:focus-visible ~ .pm__dot { box-shadow: var(--ring); }

/* Amount banner */
.amt {
  border-radius: var(--radius-sm); padding: 1.2rem; text-align: center; margin-bottom: 1.2rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.amt small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: .2rem; }
.amt b { font-family: var(--font-display); font-size: 1.9rem; color: var(--blue-700); font-variant-numeric: tabular-nums; }

/* Card visual */
.card-face {
  border-radius: 16px; padding: 1.3rem; color: #fff; margin-bottom: 1.3rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #3b82f6);
  box-shadow: 0 14px 34px rgba(30,58,138,.3);
}
.card-face::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.card-face__chip {
  width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg,#fde68a,#f59e0b); margin-bottom: 1.1rem;
}
.card-face__no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.12rem; letter-spacing: .09em;
  margin-bottom: 1rem; position: relative; z-index: 2;
}
.card-face__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .76rem; position: relative; z-index: 2; }
.card-face__row small { display: block; opacity: .7; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.card-face__row span { font-family: var(--font-display); font-weight: 600; font-size: .86rem; }

.pay-panel { display: none; }
.pay-panel.on { display: block; animation: pvRise .3s cubic-bezier(.2,.8,.2,1) both; }

/* Trust strip */
.trust { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; }
.trust span { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .pv-cover { height: 150px; }
  .pv-avatar { width: 92px; height: 92px; flex-basis: 92px; margin-top: -38px; font-size: 1.7rem; }
}

@media (max-width: 700px) {
  .pv-head { gap: .9rem; }
  .pv-head__acts { width: 100%; }
  .pv-head__acts .btn { flex: 1 1 auto; }
  .people { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal__i.wide { grid-column: span 2; }
  .promo { flex-direction: column; }
  .promo .btn { width: 100%; }
  .kv li { flex-direction: column; gap: .15rem; }
  .kv .v { text-align: left; }
  .amt b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pv-in, .pay-panel.on { animation: none; }
  .job:hover, .gal__i:hover, .soc:hover { transform: none; }
}
