.prompt-box-card {
  background: var(--pbp-dark-bg);
  color: var(--pbp-dark-font);
  border: 1.5px solid var(--pbp-dark-border);
  border-radius: var(--pbp-radius);
  font-family: var(--pbp-font-family);
  font-size: var(--pbp-font-size);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  margin: 24px 0;
  overflow: hidden;
}
.pbp-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; }
.prompt-vs-controls { display: flex; gap: 7px; }
.prompt-vs-dot { width:12px; height:12px; border-radius:50%; }
.prompt-vs-dot.red { background:#ff5f56; }
.prompt-vs-dot.yellow { background:#ffbd2e; }
.prompt-vs-dot.green { background:#27c93f; }
.pbp-buttons-container { display: flex; gap: 10px; }
.pbp-copy-btn, .pbp-theme-toggle-btn {
  background: #23272e; color: #d4d4d4; border: 1px solid #444;
  border-radius: 7px; font-size: 14px; font-weight: 600;
  padding: 6px 14px; cursor: pointer; transition: background .15s, color .15s;
}
.pbp-copy-btn:hover, .pbp-theme-toggle-btn:hover { background: #374151; color: #fff; }
.prompt-box-content,
.prompt-box-content p,
.prompt-box-content ul,
.prompt-box-content ol,
.prompt-box-content li,
.prompt-box-content code {
  color: inherit !important;
  font-family: var(--pbp-font-family) !important;
  font-size: var(--pbp-font-size) !important;
  margin: 0 0 1em;
  line-height: 1.5;
}
.prompt-box-content { padding: 0 28px 24px 28px; word-break: break-word; }
.prompt-box-content ul,
.prompt-box-content ol { padding-left: 1.4em; }
.pbp-brace  { color: var(--pbp-dark-brace)  !important; font-weight: bold !important; }
.pbp-round  { color: var(--pbp-dark-round)  !important; font-weight: bold !important; }
.pbp-square { color: var(--pbp-dark-square) !important; font-weight: bold !important; }
.prompt-box-card.vs-light {
  background: var(--pbp-light-bg);
  color: var(--pbp-light-font);
  border-color: var(--pbp-light-border);
}
.prompt-box-card.vs-light .pbp-copy-btn, .prompt-box-card.vs-light .pbp-theme-toggle-btn {
  background: #fff; color: #232323; border-color: #ddd;
}
.prompt-box-card.vs-light .pbp-copy-btn:hover, .prompt-box-card.vs-light .pbp-theme-toggle-btn:hover {
  background: #e2e8f0; color: #111;
}
.prompt-box-card.vs-light .pbp-brace  { color: var(--pbp-light-brace) !important; }
.prompt-box-card.vs-light .pbp-round  { color: var(--pbp-light-round) !important; }
.prompt-box-card.vs-light .pbp-square { color: var(--pbp-light-square)!important; }

.pbp-lock-shell {
  position: relative;
  margin: 72px auto;
  width: 100%;
  max-width: 960px;
}
.pbp-style-enhanced {
  display: grid;
  justify-items: center;
}
.pbp-style-enhanced .pbp-lock-placeholder,
.pbp-style-enhanced .pbp-locker-ui {
  grid-area: 1 / 1;
  width: 100%;
}
.pbp-style-default .pbp-lock-placeholder {
  display: none;
}
.pbp-style-default .pbp-locker-ui {
  padding: 0;
}
.pbp-style-default .pbp-locker-stack {
  gap: 28px;
  align-items: stretch;
}
.pbp-style-default .pbp-locker-stack > * {
  width: 100%;
}
.pbp-style-default .pbp-locker-stack .td_block_wrap {
  margin: 0 auto;
}
.pbp-lock-shell + .pbp-lock-shell { margin-top: 96px; }
.pbp-lock-shell .tds-locked-content { display: none !important; }
.pbp-lock-shell > .tds-locked-content[hidden] { display: none !important; }
.pbp-lock-shell.pbp-unlocked .pbp-lock-placeholder,
.pbp-lock-shell.pbp-unlocked .pbp-locker-ui { display: none; }
.pbp-lock-shell.pbp-unlocked > .tds-locked-content { display: block !important; }
.pbp-lock-shell.pbp-unlocked { display: block; }

.pbp-style-enhanced .pbp-lock-placeholder {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(15,23,42,0.95), rgba(15,23,42,0.88));
  border: 1px solid rgba(148,163,184,0.25);
  padding: 84px 96px 110px;
  box-shadow: 0 48px 100px rgba(15,23,42,0.45);
  overflow: hidden;
  pointer-events: none;
}
.pbp-style-enhanced .pbp-lock-placeholder:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 15%, rgba(248,113,113,0.3), transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(96,165,250,0.28), transparent 50%),
    linear-gradient(135deg, rgba(67,56,202,0.28), transparent 60%);
  filter: blur(22px);
  opacity: 0.9;
}
.pbp-style-enhanced .pbp-placeholder-content {
  position: relative;
  filter: blur(7px);
  opacity: 0.78;
  color: rgba(226,232,240,0.9);
}
.pbp-style-enhanced .pbp-placeholder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.pbp-style-enhanced .pbp-placeholder-dots { display: flex; gap: 8px; }
.pbp-style-enhanced .pbp-placeholder-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(248,113,113,0.85);
  box-shadow: 0 0 10px rgba(248,113,113,0.4);
}
.pbp-style-enhanced .pbp-placeholder-dots span:nth-child(2) { background: rgba(253,224,71,0.85); }
.pbp-style-enhanced .pbp-placeholder-dots span:nth-child(3) { background: rgba(74,222,128,0.85); }
.pbp-style-enhanced .pbp-placeholder-buttons {
  display: flex;
  gap: 14px;
}
.pbp-style-enhanced .pbp-placeholder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(71,85,105,0.6);
  color: rgba(226,232,240,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.35);
}
.pbp-style-enhanced .pbp-placeholder-btn.light {
  text-transform: none;
  background: rgba(30,41,59,0.6);
  padding-left: 22px;
  padding-right: 22px;
}
.pbp-style-enhanced .pbp-placeholder-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pbp-style-enhanced .pbp-placeholder-paragraph,
.pbp-style-enhanced .pbp-placeholder-bar,
.pbp-style-enhanced .pbp-placeholder-tag {
  display: block;
  border-radius: 10px;
  background: rgba(148,163,184,0.28);
}
.pbp-style-enhanced .pbp-placeholder-paragraph {
  height: 28px;
  width: 82%;
}
.pbp-style-enhanced .pbp-placeholder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pbp-style-enhanced .pbp-placeholder-list li {
  position: relative;
  padding-left: 24px;
}
.pbp-style-enhanced .pbp-placeholder-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(226,232,240,0.9);
  box-shadow: 0 0 10px rgba(226,232,240,0.35);
}
.pbp-style-enhanced .pbp-placeholder-bar.wide { width: 72%; height: 18px; }
.pbp-style-enhanced .pbp-placeholder-bar.mid { width: 58%; height: 18px; }
.pbp-style-enhanced .pbp-placeholder-bar.short { width: 42%; height: 18px; }
.pbp-style-enhanced .pbp-placeholder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pbp-style-enhanced .pbp-placeholder-tag {
  height: 20px;
  width: 160px;
  background: rgba(34,197,94,0.28);
}
.pbp-style-enhanced .pbp-placeholder-meta .pbp-placeholder-tag:nth-child(2) {
  width: 200px;
  background: rgba(56,189,248,0.26);
}
.pbp-style-enhanced .pbp-placeholder-meta .pbp-placeholder-tag:nth-child(3) {
  width: 180px;
  background: rgba(251,191,36,0.28);
}

.pbp-locker-ui {
  position: relative;
  width: 100%;
}
.pbp-style-enhanced .pbp-locker-ui {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 64px 0 72px;
}
.pbp-locker-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 10px;
  box-sizing: border-box;
}
.pbp-locker-stack > * {
  width: 100%;
}
.pbp-style-enhanced .pbp-locker-stack {
  gap: 0;
}
.pbp-style-enhanced .pbp-locker-stack > * {
  margin: 0;
}
.pbp-style-enhanced .pbp-locker-stack > :first-child {
  margin-bottom: 30px;
}
.pbp-style-enhanced .pbp-locker-stack > .tds-lc-separator {
  display: flex;
  justify-content: center;
}
.pbp-style-enhanced .pbp-locker-ui .tds-lc-separator {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 16px rgba(15,23,42,0.45);
}

.pbp-style-enhanced .pbp-locker-stack > * {
  max-width: 540px;
}
.pbp-style-enhanced .pbp-locker-stack .td_block_wrap {
  margin: 0;
}
.pbp-style-enhanced .pbp-locker-stack .tds-lc-separator {
  align-self: stretch;
}
.pbp-style-enhanced .pbp-locker-stack .tds_locker .tds-block-inner,
.pbp-style-enhanced .pbp-locker-stack .tds_locker_credits .tds-block-inner {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 48px 48px 54px;
  box-shadow: 0 40px 90px rgba(15,23,42,0.25);
  text-align: center;
  max-width: none;
}
.pbp-style-enhanced .pbp-locker-stack .tds-locker-title {
  margin-bottom: 18px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}
.pbp-style-enhanced .pbp-locker-stack .tds-under-title-msg {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}
.pbp-style-enhanced .pbp-locker-stack .tds-info {
  margin-bottom: 0;
}
.pbp-style-enhanced .pbp-locker-stack .tds-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c8cff, #9c6cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 18px 42px rgba(124,140,255,0.45);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  width: auto;
  min-width: 220px;
  margin: 0 auto;
}
.pbp-style-enhanced .pbp-locker-stack .tds-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(124,140,255,0.5);
}
.pbp-style-enhanced .pbp-locker-stack .tds-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.pbp-style-enhanced .pbp-locker-stack .tds-after-btn-text {
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}
.pbp-style-enhanced .pbp-locker-stack .tds-checkbox {
  margin-top: 26px;
  font-size: 13px;
  color: #52525b;
}
.pbp-style-enhanced .pbp-locker-stack .tds-checkbox label {
  justify-content: flex-start;
  gap: 12px;
}
.pbp-style-enhanced .pbp-locker-stack .tds-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cbd5f5;
  background: #fff;
}
.pbp-style-enhanced .pbp-locker-stack .tds-checkbox input:checked + label .tds-check:after {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.pbp-style-enhanced .pbp-locker-stack .tds-check-title {
  color: #4b5563;
  line-height: 1.5;
}
.pbp-style-enhanced .pbp-locker-stack .tds-check-title a {
  color: #2563eb;
}
.pbp-style-enhanced .pbp-locker-stack .tds-check-title a:hover {
  color: #1d4ed8;
}
.pbp-style-enhanced .pbp-locker-stack .tds-messages {
  border-radius: 8px;
  box-shadow: none;
}
.pbp-style-enhanced .pbp-locker-ui .tds-lc-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  margin: 30px auto;
}
.pbp-style-enhanced .pbp-locker-ui .tds-lc-separator:before,
.pbp-style-enhanced .pbp-locker-ui .tds-lc-separator:after {
  content: "";
  display: block;
  height: 1px;
  width: 82px;
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(15,23,42,0.45);
}

@media (max-width: 1024px) {
  .pbp-lock-placeholder {
    padding: 72px 64px 96px;
  }
  .pbp-style-enhanced .pbp-locker-ui { padding: 52px 0 60px; }
  .pbp-style-enhanced .pbp-locker-stack .tds_locker .tds-block-inner,
  .pbp-style-enhanced .pbp-locker-stack .tds_locker_credits .tds-block-inner {
    padding: 44px 40px 50px;
  }
}

@media (max-width: 768px) {
  .pbp-lock-shell { margin: 48px auto; }
  .pbp-lock-placeholder {
    padding: 56px 32px 80px;
    border-radius: 20px;
  }
  .pbp-placeholder-header { flex-direction: column; gap: 18px; }
  .pbp-placeholder-buttons { width: 100%; justify-content: flex-end; }
  .pbp-style-enhanced .pbp-locker-stack { padding: 0 10px; }
  .pbp-style-enhanced .pbp-locker-ui { padding: 44px 0 52px; gap: 30px; }
  .pbp-style-enhanced .pbp-locker-stack .tds_locker .tds-block-inner,
  .pbp-style-enhanced .pbp-locker-stack .tds_locker_credits .tds-block-inner {
    padding: 40px 28px 46px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .pbp-lock-placeholder {
    padding: 48px 24px 64px;
    border-radius: 18px;
  }
  .pbp-placeholder-header { align-items: flex-start; }
  .pbp-placeholder-buttons {
    justify-content: flex-start;
    gap: 10px;
  }
  .pbp-placeholder-btn { font-size: 12px; padding: 5px 14px; }
  .pbp-placeholder-paragraph { width: 92%; height: 24px; }
  .pbp-placeholder-bar.wide { width: 86%; }
  .pbp-placeholder-bar.mid { width: 72%; }
  .pbp-placeholder-bar.short { width: 58%; }
  .pbp-placeholder-meta { gap: 10px; }
  .pbp-placeholder-tag { width: 130px; }
  .pbp-style-enhanced .pbp-locker-stack { padding: 0 10px; }
  .pbp-style-enhanced .pbp-locker-ui { padding: 36px 0 44px; gap: 26px; }
  .pbp-style-enhanced .pbp-locker-ui .tds-lc-separator {
    font-size: 11px;
    letter-spacing: 0.24em;
    gap: 10px;
    padding: 0 16px;
  }
  .pbp-style-enhanced .pbp-locker-ui .tds-lc-separator:before,
  .pbp-style-enhanced .pbp-locker-ui .tds-lc-separator:after {
    width: 52px;
  }
}
