.code-card .ticket-help-button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 15px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b91e31;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ticket-help-button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e92d45;
  font-size: 12px;
  text-decoration: none;
}

.ticket-help-modal {
  width: min(900px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: #31170c;
  background: #fff8e9;
  box-shadow: 0 28px 90px rgba(53, 17, 46, .55);
}

.ticket-help-modal::backdrop {
  background: rgba(35, 9, 29, .72);
  backdrop-filter: blur(4px);
}

.ticket-help-modal[open] { animation: ticket-help-in .2s ease-out; }

.ticket-help-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: #fff;
  background: linear-gradient(110deg, #e92d45, #ff6d24);
}

.ticket-help-head span {
  color: #ffe13b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ticket-help-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -.03em;
}

.ticket-help-head button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  background: rgba(74, 10, 23, .2);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.ticket-help-body {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 360px);
  gap: 28px;
  max-height: calc(100vh - 112px);
  padding: 26px;
  overflow-y: auto;
}

.ticket-help-body section {
  align-self: center;
  font-size: 15px;
  line-height: 1.55;
}

.ticket-help-intro {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-left: 4px solid #ffcf2c;
  border-radius: 0 10px 10px 0;
  background: #fff1ca;
}

.ticket-help-body ol { margin: 0; padding-left: 22px; }
.ticket-help-body li { margin: 10px 0; padding-left: 4px; }

.ticket-help-format {
  margin: 20px 0 12px;
  padding: 16px;
  border: 2px dashed #e92d45;
  border-radius: 12px;
  text-align: center;
  background: #fff;
}

.ticket-help-format span {
  display: block;
  margin-bottom: 7px;
  color: #b91e31;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ticket-help-modal code {
  padding: 3px 6px;
  border-radius: 5px;
  color: #fff;
  background: #35112e;
  font-family: Jakarta, Arial, sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.ticket-help-example { margin: 0; }
.ticket-help-body figure { margin: 0; }

.ticket-help-body img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  background: #fff;
}

.ticket-help-body figcaption {
  margin-top: 8px;
  color: #755a50;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@keyframes ticket-help-in {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .ticket-help-body { grid-template-columns: 1fr; padding: 18px; }
  .ticket-help-head { padding: 16px 18px; }
  .ticket-help-head h2 { font-size: 21px; }
  .ticket-help-body img { max-height: none; }
}
