/* ============================================================================
   Profile gate — "Kjo veçori kërkon një profil" (kj-profile-gate.php).
   Doc: docs/features/profile-gate.md · Test: tests/kj-profile-gate.test.php

   Built on the same dialog system as the "Vlerëso këtë kompani" handoff
   (rate.css): navy 55 % + 6px blur backdrop, 600px white dialog, r28, 40px
   close at 16/16, 96px coral disc, 24/800 Plus Jakarta Sans title, Mulish
   body, scale-in / pop motion; phones get a bottom sheet (< 640px).
   Measured on the operator's screenshot (1.5x): option cards r16 with 52px
   r14 icon tiles, a coral "E REKOMANDUAR" pill, a coral text link below.
   Colours are the handoff's design-system subset, scoped as --kjg-*.
   ========================================================================== */

@keyframes kjGateFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kjGateIn   { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kjGatePop  { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.kj-gate-ov {
  --kjg-coral-50: #FFF1F2;
  --kjg-coral-100: #FFE0E3;
  --kjg-coral-300: #FFA3AA;
  --kjg-coral-600: #FE616C;
  --kjg-coral-700: #E04A55;
  --kjg-gray-100: #EEF1F6;
  --kjg-surface-muted: #F1F4F9;
  --kjg-text-strong: #0B1B33;
  --kjg-text-muted: #5B6B84;
  --kjg-navy: #041E42;
  --kjg-border-subtle: #E6EAF1;
  --kjg-ease-out: cubic-bezier(.2, .8, .2, 1);
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 30, 66, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.kj-gate-ov.is-open { display: flex; animation: kjGateFade .25s both; }
body.kj-gate-lock { overflow: hidden; }

.kj-gate {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: auto;
  padding: 32px 28px 26px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(4, 30, 66, .45);
  color: var(--kjg-text-strong);
  font-family: var(--kj-font-mulish, 'Mulish', system-ui, sans-serif);
  line-height: 1.4;
  text-align: center;
  animation: kjGateIn .32s var(--kjg-ease-out) both;
}

.kj-gate__x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--kjg-border-subtle);
  border-radius: 50%;
  background: #fff;
  color: var(--kjg-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.kj-gate__x svg { display: block; }
.kj-gate__x:hover { background: var(--kjg-surface-muted); }

.kj-gate__disc {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--kjg-coral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kjGatePop .5s var(--kjg-ease-out) both;
}
.kj-gate__disc > svg { display: block; opacity: .85; }

.kj-gate__h {
  margin: 0 0 8px;
  font-family: var(--kj-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--kjg-navy);
  text-wrap: balance;
}
.kj-gate__sub {
  max-width: 460px;
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kjg-text-muted);
  text-wrap: pretty;
}

.kj-gate__opts { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.kj-gate__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--kjg-border-subtle);
  border-radius: 16px;
  background: #fff;
  color: var(--kjg-text-strong);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--kjg-ease-out);
}
.kj-gate__opt:hover {
  border-color: var(--kjg-coral-300);
  box-shadow: 0 6px 18px rgba(4, 30, 66, .12);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--kjg-text-strong);
}
.kj-gate__opt:focus-visible { outline: none; border-color: var(--kjg-coral-300); box-shadow: 0 0 0 4px rgba(254, 97, 108, .18); }
.kj-gate__ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kjg-gray-100);
  color: var(--kjg-navy);
}
.kj-gate__ico--cv { background: var(--kjg-coral-50); color: var(--kjg-coral-600); }
.kj-gate__ico svg { display: block; }
.kj-gate__txt { flex: 1; min-width: 0; }
.kj-gate__txt b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--kjg-navy); }
.kj-gate__txt small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--kjg-text-muted); }
.kj-gate__pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--kjg-coral-50);
  color: var(--kjg-coral-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kj-gate__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--kjg-coral-600);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.kj-gate__login:hover { text-decoration: underline; color: var(--kjg-coral-700); }
.kj-gate__login:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(254, 97, 108, .18); }

/* ---- phones: bottom sheet; the pill rides on the card's top edge ---------- */
@media (max-width: 639px) {
  .kj-gate-ov { padding: 0; align-items: flex-end; }
  .kj-gate { max-height: 94vh; border-radius: 24px 24px 0 0; padding: 26px 18px 20px; }
  .kj-gate__disc { width: 80px; height: 80px; margin-bottom: 14px; }
  .kj-gate__h { font-size: 22px; padding: 0 36px; }
  .kj-gate__sub { font-size: 14px; margin-bottom: 20px; }
  .kj-gate__opts { gap: 16px; }
  .kj-gate__opt { gap: 14px; padding: 16px 14px; }
  .kj-gate__ico { width: 46px; height: 46px; border-radius: 12px; }
  .kj-gate__txt b { font-size: 15px; }
  .kj-gate__txt small { font-size: 13px; }
  .kj-gate__pill { position: absolute; top: -11px; right: 14px; height: 22px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .kj-gate-ov.is-open, .kj-gate, .kj-gate__disc { animation: none; }
  .kj-gate__opt { transition: none; }
  .kj-gate__opt:hover { transform: none; }
}
