:root {
  --pcore-accent: #141429;
  --pcore-text: #21233a;
  --pcore-muted: #6a6d7f;
  --pcore-border: #dfe1ea;
  --pcore-bg: #f5f6fb;
  --pcore-surface: #ffffff;
  --pcore-radius: 24px;
  --pcore-shadow: 0 24px 60px rgba(20, 20, 41, 0.08);
}

.pcore-wrap,
.pcore-modal,
.pcore-modal * {
  font-family: 'Poppins', sans-serif;
}

.pcore-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.pcore-card,
.pcore-modal-dialog {
  background: var(--pcore-surface);
  border: 1px solid var(--pcore-border);
  border-radius: var(--pcore-radius);
  box-shadow: var(--pcore-shadow);
}

.pcore-centered-card {
  width: min(980px, calc(100% - 24px));
  text-align: center;
  padding: 34px 28px;
}

.pcore-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f0f1f7;
  color: var(--pcore-accent);
  font-size: 14px;
  font-weight: 600;
}

.pcore-centered-card h2,
.pcore-modal-panel h3 {
  margin: 16px 0 12px;
  color: var(--pcore-text);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
}

.pcore-centered-card p,
.pcore-modal-panel p {
  margin: 0 0 20px;
  color: var(--pcore-muted);
  font-size: 16px;
}

.pcore-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pcore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid var(--pcore-border);
  background: #fff;
  color: var(--pcore-accent);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pcore-btn:hover {
  transform: translateY(-1px);
}

.pcore-btn-primary {
  background: var(--pcore-accent);
  border-color: var(--pcore-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(20, 20, 41, 0.22);
}

.pcore-btn-secondary {
  background: #eff0f5;
}

.pcore-btn-ghost {
  background: #fff;
}

.pcore-loggedin,
.pcore-inline-feedback,
.pcore-form-feedback {
  margin-top: 16px;
  color: var(--pcore-text);
}

.pcore-inline-feedback.is-error,
.pcore-form-feedback.is-error { color: #a12b35; }
.pcore-inline-feedback.is-success,
.pcore-form-feedback.is-success { color: #2b6a43; }

.pcore-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.pcore-modal.is-open { display: block; }

.pcore-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 41, 0.28);
}

.pcore-modal-dialog {
  position: relative;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  margin: 100px auto 0;
  padding: 28px;
  overflow: auto;
}

.pcore-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #f0f1f7;
  color: var(--pcore-accent);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.pcore-form-grid {
  display: grid;
  gap: 14px;
}
.pcore-form-grid-1 { grid-template-columns: 1fr; }
.pcore-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcore-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pcore-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--pcore-text);
  font-size: 15px;
  font-weight: 600;
}

.pcore-form input[type="text"],
.pcore-form input[type="email"],
.pcore-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--pcore-border);
  border-radius: 18px;
  background: #fff;
  color: var(--pcore-text);
  font-size: 16px;
  box-sizing: border-box;
}

.pcore-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pcore-checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid var(--pcore-border);
  border-radius: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.pcore-checkbox-card span,
.pcore-modal-panel table th,
.pcore-modal-panel table td {
  white-space: nowrap;
}

.pcore-form-actions {
  margin-top: 22px;
}

@media (max-width: 960px) {
  .pcore-form-grid-3,
  .pcore-form-grid-2,
  .pcore-rights-grid {
    grid-template-columns: 1fr;
  }
  .pcore-modal-dialog {
    width: calc(100vw - 16px);
    padding: 20px;
    margin-top: 100px;
  }
}


.pcore-wrap--access {
  min-height: 60vh;
  align-items: center;
}

.pcore-wrap--access .pcore-centered-card {
  max-width: 980px;
}
