:root {
  --pk-auth-ink: #111827;
  --pk-auth-muted: #667085;
  --pk-auth-line: #d9e2ee;
  --pk-auth-paper: #ffffff;
  --pk-auth-soft: #f7fafc;
  --pk-auth-brand: #0b746d;
  --pk-auth-brand-2: #0ea5a0;
  --pk-auth-danger: #c2410c;
}

body.pk-auth-open {
  overflow: hidden;
}

.pk-user-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pk-user-btn {
  border: 1px solid var(--pk-auth-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pk-auth-ink);
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .06);
  white-space: nowrap;
}

.pk-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pk-auth-brand), var(--pk-auth-brand-2));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.pk-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pk-user-label {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 6000;
  width: min(280px, calc(100vw - 28px));
  display: none;
  border: 1px solid var(--pk-auth-line);
  border-radius: 18px;
  background: #fff;
  color: var(--pk-auth-ink);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.pk-user-entry.is-open .pk-user-menu {
  display: block;
}

.pk-user-menu-head {
  padding: 16px;
  border-bottom: 1px solid var(--pk-auth-line);
}

.pk-user-menu-head strong,
.pk-user-menu-head span {
  display: block;
}

.pk-user-menu-head span {
  color: var(--pk-auth-muted);
  margin-top: 3px;
  font-size: 12px;
  word-break: break-word;
}

.pk-user-menu button,
.pk-user-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: var(--pk-auth-ink);
  text-decoration: none;
  padding: 13px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.pk-user-menu button:hover,
.pk-user-menu a:hover {
  background: #f8fafc;
}

.pk-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  padding: 18px;
}

.pk-auth-modal.is-open {
  display: grid;
}

.pk-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(12px);
}

.pk-auth-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  margin: auto;
  border: 1px solid #d9e2ee;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .32);
}

.pk-auth-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  min-height: 560px;
}

.pk-auth-brand-panel {
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 160, .23), transparent 16rem),
    linear-gradient(155deg, #0f172a 0%, #122033 62%, #093b3b 100%);
  color: #fff;
}

.pk-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 8px 11px;
  color: #c8fff8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pk-auth-brand-panel h2 {
  margin: 24px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .96;
  letter-spacing: -.055em;
}

.pk-auth-brand-panel p {
  margin: 0;
  color: #d7e3ef;
  font-size: 15px;
  line-height: 1.7;
}

.pk-auth-benefits {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.pk-auth-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eff6ff;
  font-weight: 750;
}

.pk-auth-benefits span::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(14, 165, 160, .28);
  color: #8df9ed;
  flex: 0 0 auto;
}

.pk-auth-form-panel {
  padding: clamp(22px, 4vw, 36px);
}

.pk-auth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pk-auth-top h3 {
  margin: 0;
  color: var(--pk-auth-ink);
  font-size: 28px;
  letter-spacing: -.035em;
}

.pk-auth-top p {
  margin: 5px 0 0;
  color: var(--pk-auth-muted);
  line-height: 1.5;
}

.pk-auth-close {
  border: 1px solid var(--pk-auth-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pk-auth-ink);
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
}

.pk-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--pk-auth-line);
  border-radius: 999px;
  background: #f8fafc;
  margin-bottom: 16px;
}

.pk-auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.pk-auth-tab.is-active {
  background: #fff;
  color: var(--pk-auth-brand);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

.pk-auth-pane {
  display: none;
}

.pk-auth-pane.is-active {
  display: grid;
  gap: 12px;
}

.pk-auth-field {
  display: grid;
  gap: 6px;
}

.pk-auth-field label {
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pk-auth-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd6e6;
  border-radius: 13px;
  background: #fff;
  color: var(--pk-auth-ink);
  padding: 11px 13px;
  font: inherit;
  outline: none;
}

.pk-auth-input:focus {
  border-color: var(--pk-auth-brand-2);
  box-shadow: 0 0 0 4px rgba(14, 165, 160, .13);
}

.pk-phone-row {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(180px, 1fr);
  gap: 8px;
}

.pk-country-select {
  cursor: pointer;
  font-weight: 800;
  color: #1f2937;
}

.pk-auth-primary,
.pk-auth-secondary {
  min-height: 46px;
  border-radius: 13px;
  padding: 11px 15px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pk-auth-primary {
  border: 1px solid var(--pk-auth-brand);
  background: linear-gradient(135deg, var(--pk-auth-brand), var(--pk-auth-brand-2));
  color: #fff;
  box-shadow: 0 16px 32px rgba(14, 116, 109, .20);
}

.pk-auth-secondary {
  border: 1px solid var(--pk-auth-line);
  background: #fff;
  color: var(--pk-auth-ink);
}

.pk-auth-google {
  min-height: 48px;
  border: 1px solid #cbd6e6;
  border-radius: 13px;
  background: #fff;
  color: var(--pk-auth-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pk-auth-google::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #2563eb;
  font-weight: 950;
}

.pk-auth-note {
  color: var(--pk-auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pk-auth-status {
  min-height: 22px;
  color: var(--pk-auth-muted);
  font-size: 13px;
  font-weight: 750;
}

.pk-auth-status.error {
  color: var(--pk-auth-danger);
}

.pk-auth-status.success {
  color: var(--pk-auth-brand);
}

.pk-auth-recaptcha {
  min-height: 1px;
}

.pk-ad-shell {
  width: 100%;
}

.pk-google-ad,
.pk-ad-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 90px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 116, 109, .08), rgba(245, 158, 11, .08)),
    #ffffff;
  color: #64748b;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pk-ad-placeholder strong {
  display: block;
  margin-top: 4px;
  color: #334155;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.pk-house-ad small {
  display: block;
  margin-top: 6px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .pk-auth-grid {
    grid-template-columns: 1fr;
  }

  .pk-auth-brand-panel {
    min-height: auto;
  }

  .pk-user-label {
    max-width: 92px;
  }
}

@media (max-width: 640px) {
  .pk-auth-modal {
    padding: 8px;
  }

  .pk-auth-panel {
    border-radius: 20px;
  }

  .pk-auth-tabs {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .pk-auth-tab {
    border-radius: 12px;
  }

  .pk-phone-row {
    grid-template-columns: 1fr;
  }

  .pk-user-label {
    display: none;
  }
}
