:root {
  --psd-bg: #0B0F14;
  --psd-surface: rgba(255, 255, 255, 0.04);
  --psd-border: rgba(255, 255, 255, 0.08);
  --psd-primary: #6D4CFF;
  --psd-accent: #1DE9FF;
  --psd-text: #F5F7FA;
  --psd-muted: rgba(245, 247, 250, 0.7);
  --psd-success: #00E676;
  --psd-warning: #FFB020;
  --psd-danger: #FF5252;
  --psd-radius: 14px;
}

.psd-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--psd-text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 14px;
}
.psd-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 233, 255, 0.35);
}
.psd-btn--primary {
  background: var(--psd-primary);
  border: 1px solid rgba(109, 76, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(109, 76, 255, 0.3), 0 12px 28px rgba(109, 76, 255, 0.35);
  color: #FFFFFF;
  font-weight: 700;
}
.psd-btn--primary:hover {
  border-color: rgba(109, 76, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(109, 76, 255, 0.5), 0 14px 30px rgba(109, 76, 255, 0.45);
}
.psd-btn--full {
  display: block;
  width: 100%;
  text-align: center;
}
.psd-btn--full + .psd-modal {
  width: 100%;
}

.psd-note {
  padding: 12px 14px;
  border: 1px solid var(--psd-border);
  background: var(--psd-surface);
  border-radius: var(--psd-radius);
  color: rgba(245, 247, 250, 0.85);
}

.psd-modal {
  position: relative;
}
.psd-modal__panel {
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--psd-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0B0F14;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.psd-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.psd-modal__title {
  font-weight: 700;
  color: var(--psd-text);
}
.psd-modal__close {
  background: transparent;
  border: 0;
  color: var(--psd-muted);
  font-size: 18px;
  cursor: pointer;
}

.psd-field {
  display: block;
  margin: 10px 0;
}
.psd-field span {
  display: block;
  font-size: 12px;
  color: var(--psd-muted);
  margin-bottom: 6px;
}
.psd-field input,
.psd-field select,
.psd-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0E131A;
  color: var(--psd-text);
  padding: 10px 12px;
}
.psd-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--psd-muted) 50%), linear-gradient(135deg, var(--psd-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.psd-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.psd-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.psd-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 250, 0.85);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.psd-tab.is-active {
  background: rgba(109, 76, 255, 0.25);
  border-color: rgba(109, 76, 255, 0.45);
}

.psd-card {
  border: 1px solid var(--psd-border);
  background: var(--psd-surface);
  border-radius: var(--psd-radius);
  padding: 14px;
  color: var(--psd-text);
  margin-bottom: 10px;
}
.psd-card--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.psd-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.psd-card__title {
  font-weight: 800;
}
.psd-card__subhead {
  margin-top: 14px;
  font-weight: 800;
  color: rgba(245, 247, 250, 0.9);
}
.psd-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.psd-meta {
  margin-top: 8px;
  color: var(--psd-muted);
  font-size: 13px;
}
.psd-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.psd-card.is-read {
  opacity: 0.6;
}

.psd-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(29, 233, 255, 0.25);
  background: rgba(29, 233, 255, 0.12);
  color: rgba(245, 247, 250, 0.95);
  font-size: 12px;
}
.psd-pill--warn {
  border-color: rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.12);
  color: #FFE7B2;
}

.psd-events .psd-event {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--psd-border);
  background: rgba(11, 15, 20, 0.35);
  color: var(--psd-muted);
  margin-top: 8px;
  font-size: 12px;
  word-break: break-word;
}

.psd-toast {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.psd-toast.is-ok {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(0, 230, 118, 0.12);
}
.psd-toast.is-bad {
  border-color: rgba(255, 82, 82, 0.45);
  background: rgba(255, 82, 82, 0.12);
}
.psd-tc {
  margin-top: 10px;
  font-size: 12px;
  color: var(--psd-muted);
}
.psd-note a {
  color: var(--psd-accent);
}

.psd-notif {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--psd-text);
  text-decoration: none;
}
.psd-notif__icon {
  font-size: 14px;
}
.psd-notif__count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--psd-primary);
  color: var(--psd-bg);
  font-size: 12px;
  font-weight: 800;
}

.psd-counter {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 12px;
  padding-top: 12px;
}
