.order-roulette-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.order-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 12px 30px;
  text-align: center;
}

.order-eyebrow,
.order-panel-kicker {
  margin: 0 0 8px;
  color: #6b5dd3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-hero-title {
  margin: 0;
  color: #202033;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.order-hero-subtitle {
  margin: 16px 0 10px;
  color: #4c4a65;
  font-size: 1.2rem;
  font-weight: 700;
}

.order-hero-description {
  max-width: 780px;
  margin: 0 auto;
  color: #68677c;
  line-height: 1.9;
}

.order-tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin: 0 auto 46px;
  padding: 22px;
  border: 1px solid #e3e1f4;
  border-radius: 24px;
  background: #fbfaff;
  box-shadow: 0 18px 50px rgba(55, 43, 113, 0.09);
}

.order-input-panel,
.order-result-panel {
  min-width: 0;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
}

.order-result-panel {
  border: 1px solid #ebe8ff;
}

.order-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.order-panel-heading h2 {
  margin: 0;
  color: #292642;
  font-size: 1.35rem;
}

.order-count-badge,
.order-result-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0edff;
  color: #5d4fbe;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-result-panel[data-state="success"] .order-result-status {
  background: #e5f8ed;
  color: #217448;
}

.order-result-panel[data-state="error"] .order-result-status {
  background: #fff0f0;
  color: #ad3b3b;
}

.order-input-label {
  display: block;
  margin-bottom: 8px;
  color: #34314f;
  font-weight: 700;
}

.order-input {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid #d8d5eb;
  border-radius: 12px;
  background: #fcfcff;
  color: #26243a;
  font: inherit;
  line-height: 1.7;
}

.order-input:focus {
  outline: 3px solid rgba(107, 93, 211, 0.16);
  border-color: #7568db;
}

.order-input-helper,
.order-result-description,
.order-result-summary {
  margin: 10px 0 0;
  color: #77758a;
  font-size: 0.9rem;
  line-height: 1.7;
}

.order-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.order-primary-button,
.order-secondary-button,
.order-copy-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.order-primary-button {
  background: #6254c5;
  color: #fff;
  box-shadow: 0 8px 18px rgba(98, 84, 197, 0.22);
}

.order-secondary-button,
.order-copy-button {
  border: 1px solid #d7d2ee;
  background: #fff;
  color: #51469e;
}

.order-copy-button {
  width: 100%;
  margin-top: 16px;
}

.order-primary-button:hover,
.order-secondary-button:hover,
.order-copy-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.order-primary-button:disabled,
.order-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.order-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0f0;
  color: #a83434;
  font-size: 0.9rem;
  line-height: 1.6;
}

.order-result-list {
  display: grid;
  gap: 9px;
  min-height: 258px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.order-result-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #e7e3f7;
  border-radius: 10px;
  background: #fcfbff;
  color: #2e2b48;
  font-weight: 600;
}

.order-result-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ece8ff;
  color: #5b4eb2;
  font-size: 0.84rem;
  font-weight: 800;
}

.order-section-title {
  margin: 0 0 22px;
  color: #27243f;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.4;
}

.order-usecases,
.order-howto,
.order-content-section,
.order-feature-section,
.order-examples-section,
.order-comparison-section,
.order-related-section,
.order-reference-section,
.order-faq-section {
  margin: 0 auto 48px;
}

.order-usecase-grid,
.order-example-grid,
.order-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-usecase-card,
.order-example-card,
.order-related-card {
  display: block;
  padding: 22px;
  border: 1px solid #e8e5f2;
  border-radius: 16px;
  background: #fff;
}

.order-usecase-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.order-usecase-card h3,
.order-example-card h3,
.order-related-card h3,
.order-step-list h3,
.order-faq-item h3 {
  margin: 0 0 8px;
  color: #332e55;
  font-size: 1.08rem;
}

.order-usecase-card p,
.order-example-card p,
.order-related-card p,
.order-step-list p,
.order-content-section p,
.order-faq-item p,
.order-reference-section li {
  margin: 0;
  color: #656379;
  line-height: 1.9;
}

.order-step-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-step-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-left: 4px solid #7668d5;
  border-radius: 0 12px 12px 0;
  background: #f7f5ff;
}

.order-step-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7668d5;
  color: #fff;
  font-weight: 800;
}

.order-check-list,
.order-note-list,
.order-reference-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35rem;
  color: #5f5c72;
  line-height: 1.8;
}

.order-check-list li::marker {
  color: #6d5fd1;
}

.order-example-card pre {
  margin: 12px 0;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: #f7f6fb;
  color: #484168;
  font: 0.94rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

.order-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e2ef;
  border-radius: 14px;
}

.order-comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.order-comparison-table th,
.order-comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #ebe8f2;
  color: #59566b;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.order-comparison-table th {
  background: #f7f5ff;
  color: #3a3563;
  font-weight: 700;
}

.order-related-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.order-related-card:hover {
  transform: translateY(-2px);
  border-color: #887be1;
}

.order-faq-list {
  display: grid;
  gap: 14px;
}

.order-faq-item {
  padding: 18px 20px;
  border: 1px solid #e8e5f2;
  border-radius: 14px;
  background: #fff;
}

.order-reference-section a {
  color: #574bb2;
}

@media (max-width: 820px) {
  .order-tool-shell,
  .order-usecase-grid,
  .order-example-grid,
  .order-related-grid {
    grid-template-columns: 1fr;
  }

  .order-tool-shell {
    padding: 12px;
  }

  .order-input-panel,
  .order-result-panel {
    padding: 20px;
  }

  .order-hero {
    padding-top: 36px;
  }
}

@media (max-width: 520px) {
  .order-roulette-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .order-panel-heading {
    display: block;
  }

  .order-count-badge,
  .order-result-status {
    display: inline-block;
    margin-top: 10px;
  }

  .order-tool-actions > button {
    width: 100%;
  }
}
