/* BIDROOM — Park modal. A deliberately SIMPLE, Apple-clean flow that overlays
   any page regardless of that page's theme. Black & white, soft, friendly.
   One action at a time. Scoped with .pk- so it collides with nothing. */

.pk-scrim {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(20, 20, 22, 0.44); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Archivo", system-ui, sans-serif;
  cursor: default;
}
.pk-scrim.show { opacity: 1; }

.pk-card {
  width: 100%; max-width: 400px; background: #fff; color: #0b0b0c;
  border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  transform: translateY(10px) scale(0.98); transition: transform 0.26s cubic-bezier(.2,.9,.3,1);
  -webkit-font-smoothing: antialiased;
}
.pk-scrim.show .pk-card { transform: translateY(0) scale(1); }

.pk-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.pk-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8a8a8f; }
.pk-x {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f2f2f4; color: #3a3a3c;
  font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background 0.15s ease;
}
.pk-x:hover { background: #e6e6ea; }

.pk-body { padding: 8px 26px 28px; text-align: center; }
.pk-icon {
  width: 60px; height: 60px; margin: 8px auto 16px; border-radius: 18px;
  background: #0b0b0c; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700;
}
.pk-icon.ok { background: #0b0b0c; }
.pk-h { font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 8px; }
.pk-p { font-size: 14.5px; line-height: 1.5; color: #6a6a70; margin: 0 auto 22px; max-width: 30ch; }
.pk-p strong { color: #0b0b0c; font-weight: 600; }

.pk-btn {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px 18px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  font-family: inherit; transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.pk-btn + .pk-btn { margin-top: 10px; }
.pk-btn:active { transform: scale(0.985); }
.pk-btn-primary { background: #0b0b0c; color: #fff; }
.pk-btn-primary:hover { background: #26262a; }
.pk-btn-secondary { background: #f2f2f4; color: #0b0b0c; }
.pk-btn-secondary:hover { background: #e8e8ec; }
.pk-btn-text { background: none; color: #8a8a8f; font-size: 14px; font-weight: 500; padding: 10px; }
.pk-btn-text:hover { color: #0b0b0c; }
.pk-btn[disabled] { opacity: 0.5; cursor: default; }
.pk-btn .pk-spin {
  display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: pk-spin 0.7s linear infinite;
}
.pk-btn-secondary .pk-spin { border-color: rgba(0,0,0,0.2); border-top-color: #0b0b0c; }
@keyframes pk-spin { to { transform: rotate(360deg); } }

/* key chooser */
.pk-keys { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; text-align: left; }
.pk-key {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid #ececef; border-radius: 14px; padding: 13px 15px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pk-key:hover { border-color: #d5d5da; }
.pk-key.sel { border-color: #0b0b0c; background: #fafafa; }
.pk-key .kk-name { font-size: 15px; font-weight: 600; }
.pk-key .kk-sub { font-size: 12px; color: #8a8a8f; }
.pk-key .kk-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d0d0d5; flex: none; position: relative; }
.pk-key.sel .kk-radio { border-color: #0b0b0c; }
.pk-key.sel .kk-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0b0b0c; }

/* rewards readout (parked state) */
.pk-rewards { display: flex; gap: 10px; margin: 0 0 18px; }
.pk-reward { flex: 1; background: #f7f7f9; border-radius: 14px; padding: 14px 12px; }
.pk-reward .rv { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pk-reward .rl { font-size: 11px; color: #8a8a8f; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.03em; }

.pk-oslink { display: block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: #0b0b0c; text-decoration: none; }
.pk-oslink:hover { text-decoration: underline; }
.pk-foot { font-size: 12px; color: #a0a0a6; margin-top: 14px; line-height: 1.5; }
.pk-connect-alt { margin-top: 12px; }
.pk-connect-alt summary { font-size: 12.5px; color: #8a8a8f; cursor: pointer; list-style: none; }
.pk-connect-alt summary::-webkit-details-marker { display: none; }
.pk-connect-alt .pk-alt-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.pk-connect-alt button {
  font-family: inherit; font-size: 12px; border: 1px solid #ececef; background: #fff; color: #3a3a3c;
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.pk-connect-alt button:hover { border-color: #0b0b0c; }

.pk-check { animation: pk-pop 0.4s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes pk-pop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pk-scrim, .pk-card, .pk-check { transition: none; animation: none; }
  .pk-btn .pk-spin { animation: none; }
}
