* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #080e1a;
  color: #dce6f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 2rem 1.2rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  letter-spacing: -0.01em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}
.app {
  max-width: 1280px;
  width: 100%;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  border-bottom: 1px solid #1a3a2a;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  background: linear-gradient(135deg, #42ff8c, #5eff5e);
  color: #080e1a;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(94, 255, 94, 0.25);
}
.logo-group h1 {
  font-weight: 550;
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #42ff8c, #5eff5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}
.card {
  background: #0d1a2d;
  border-radius: 30px;
  padding: 2rem;
  border: 1px solid #1a3a2a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: border 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: #3a805a;
  box-shadow: 0 14px 36px rgba(0,0,0,0.7);
}
.card-title {
  font-size: 1.4rem;
  font-weight: 550;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #c0f0da;
  letter-spacing: -0.02em;
}
.card-title span {
  background: #122240;
  padding: 0.15rem 0.9rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 400;
  color: #7ad0aa;
  border: 1px solid #1a5a3a;
}
.challenge-panel {
  background: #091428;
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  border: 1px solid #1a3a2a;
  margin: 0.8rem 0 1.4rem;
}
.question-text {
  font-size: 2.8rem;
  font-weight: 500;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #f0f5ff;
  word-break: break-word;
  letter-spacing: -0.02em;
  text-shadow: 0 0 8px rgba(120, 255, 180, 0.3);
}
.token-box {
  background: #081428;
  border-radius: 16px;
  padding: 0.9rem 1.4rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  border: 1px solid #1a3a2a;
  color: #b0f0d4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0.6rem 0;
  position: relative;
}
.copy-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #132540;
  border: 1px solid #2a7050;
  color: #a0e8c8;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: 0.15s;
  font-weight: 500;
}
.copy-btn:hover {
  background: #1f5a3a;
  border-color: #3aaa7a;
}
.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin: 1.2rem 0 0.4rem;
}
select, input, button {
  background: #0a1828;
  border: 1px solid #2a6a4a;
  color: #d0f8e8;
  padding: 0.7rem 1.2rem;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 450;
  transition: 0.15s;
  outline: none;
  font-family: inherit;
}
select {
  min-width: 110px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a0e8c8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
select:hover, input:hover {
  border-color: #3ab080;
}
select:focus, input:focus {
  border-color: #50d090;
  box-shadow: 0 0 0 2px rgba(80, 208, 144, 0.25);
}
button {
  background: linear-gradient(135deg, #4aff6b, #4dff6d);
  border: none;
  color: #080e1a;
  font-weight: 600;
  padding: 0.7rem 2rem;
  cursor: pointer;
  transition: 0.15s;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(77, 255, 109, 0.25);
}
button:hover {
  background: linear-gradient(135deg, #5cff7a, #5eff7a);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(77, 255, 109, 0.35);
}
button:active {
  transform: scale(0.97);
}
.btn-outline {
  background: transparent;
  border: 1px solid #2a6a4a;
  color: #aae8c0;
  box-shadow: none;
}
.btn-outline:hover {
  background: #102840;
  border-color: #3ab080;
}
.status-pill {
  background: #0f2040;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #8ae0b8;
  border: 1px solid #1a5a3a;
  display: inline-block;
}
.result-area {
  background: #081428;
  border-radius: 18px;
  padding: 1rem 1.4rem;
  border: 1px solid #1a3a2a;
  min-height: 68px;
  margin-top: 0.6rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c0f0d8;
}
.verified-token-box {
  background: #081428;
  border-radius: 16px;
  padding: 0.8rem 1.4rem;
  border-left: 4px solid #4aff6b;
  margin-top: 0.6rem;
}
.inline-code {
  background: #0a1a30;
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
  font-family: monospace;
  color: #a0f0c8;
  font-size: 0.9em;
}
.validator-area {
  background: #0a1828;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  border: 1px solid #1a3a2a;
  margin-top: 1.2rem;
}
.validator-area .flex-row {
  margin-top: 0.3rem;
}
.validator-area input {
  flex: 1;
  min-width: 160px;
}
.footnote {
  margin-top: 3.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #4a8a6a;
  border-top: 1px solid #1a4a2a;
  padding-top: 1.8rem;
}
.interactive-hint {
  font-size: 0.8rem;
  color: #5aaa8a;
  margin: 0.2rem 0 0.2rem 0.5rem;
}
.token-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  background: #0a1828;
  color: #8ae0b8;
}
.integration-section {
  background: #0d1a2d;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #1a3a2a;
  margin: 2rem 0;
}
.integration-section h2 {
  font-weight: 550;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
  color: #c0f0da;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
  margin: 1.5rem 0 2rem;
}
.step-card {
  background: #0a1828;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #1a3a2a;
  transition: border 0.2s;
}
.step-card:hover {
  border-color: #3a8060;
}
.step-card h3 {
  font-weight: 550;
  font-size: 1.1rem;
  color: #c0f0da;
  margin-bottom: 0.6rem;
}
.step-card p {
  color: #7ac8a8;
  font-size: 0.9rem;
  line-height: 1.6;
}
.step-card code {
  background: #0a1a30;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #a0f0c8;
}
.faq-section {
  background: #0d1a2d;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #1a3a2a;
  margin: 2rem 0;
}
.faq-item {
  border-bottom: 1px solid #1a4a2a;
  padding: 1.2rem 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h4 {
  font-weight: 550;
  color: #c0f0da;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.faq-item p {
  color: #6ac0a0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.code-snippet {
  background: #081428;
  border-radius: 16px;
  padding: 1rem 1.4rem;
  border: 1px solid #1a3a2a;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #c0f0d8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.6rem 0;
  position: relative;
  max-height: 400px;
  overflow-y: auto;
}
.code-snippet pre {
  margin: 0;
  color: #c0f0d8;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
.code-snippet .copy-btn {
  right: 12px;
  top: 10px;
}
.config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.config-row label {
  color: #7ac8a8;
  font-size: 0.85rem;
  font-weight: 500;
}
.lang-selector {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.lang-selector button {
  background: #0a1828;
  border: 1px solid #2a6a4a;
  color: #8ac8a8;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.15s;
}
.lang-selector button.active {
  background: #1a5a3a;
  border-color: #4aff6b;
  color: #080e1a;
  box-shadow: 0 0 10px rgba(74, 255, 107, 0.3);
}
.lang-selector button:hover {
  border-color: #4aff6b;
}
.top-header {
  text-align: center;
  padding: 0.5rem 0 1rem;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #42ff8c, #5eff5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
