body {
  font-family: 'Mona Sans', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 0 2rem;
  box-sizing: border-box;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  position: relative;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  text-decoration: none;
  z-index: 110;
}

.nav-logo img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4f46e5;
}

.hero-section {
  background: linear-gradient(90deg, #4f46e5 0%, #3b82f6 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-section .hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-section .hero-subtitle {
  font-size: 1.25rem;
  color: #e0e7ff;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.checker-container {
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: left;
}

#username-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.form-row #username-input {
  flex-grow: 1;
  width: 100%;
}

.form-row .btn-primary {
  flex-shrink: 0;
}

#username-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#username-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-primary {
  background-color: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-primary:disabled {
  background-color: #9ca3af;
  color: #e5e7eb;
  cursor: not-allowed;
}

#result {
  display: none;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  min-height: 1.5em;
  border: 1px solid #e5e7eb;
}

#result > p {
  margin: 0;
}

.result-ok {
  color: #166534;
  font-weight: 700;
}

.popularity-card {
  margin-top: 1.15rem;
  padding: 0.35rem 0.85rem 0.85rem;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  text-align: left;
  font-weight: 400;
  font-size: 1rem;
  box-sizing: border-box;
  width: 100%;
}

.popularity-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.15rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.popularity-summary-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.popularity-heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
}

.popularity-score {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: #166534;
  flex-shrink: 0;
}

.popularity-score span {
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

.popularity-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.popularity-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #4338ca;
  border-bottom: 2px solid #4338ca;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex-shrink: 0;
}

.popularity-card.is-collapsed .popularity-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.popularity-card.is-collapsed .popularity-body {
  display: none;
}

.generator-box {
  margin-top: 1rem;
}

.generator-box .popularity-scan,
.generator-box .generated-names {
  margin-top: 0;
}

.popularity-scan.is-compact .scan-steps {
  display: none;
}

.popularity-bars {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
}

.popularity-row {
  display: block;
  width: 100%;
}

.popularity-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.popularity-row-name {
  min-width: 0;
}

.popularity-row-pct {
  flex-shrink: 0;
  color: #4338ca;
}

.popularity-detail {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.35;
}

.popularity-track {
  display: block;
  width: 100%;
  height: 12px;
  background: #d1d5db;
  border-radius: 999px;
  overflow: hidden;
}

.popularity-fill {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #4f46e5;
  min-width: 4px;
}

.popularity-fill--high {
  background: #16a34a;
}

.popularity-fill--medium {
  background: #f59e0b;
}

.popularity-fill--low {
  background: #6b7280;
}

.popularity-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
}

.popularity-scan {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  text-align: left;
  font-weight: 400;
}

.scan-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #312e81;
}

.scan-status {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4338ca;
}

.scan-track {
  display: block;
  width: 100%;
  height: 12px;
  background: #d1d5db;
  border-radius: 999px;
  overflow: hidden;
}

.scan-fill {
  display: block;
  height: 12px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6);
  transition: width 0.12s linear;
}

.scan-wait {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scan-steps li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.35rem;
  font-size: 0.88rem;
  color: #9ca3af;
}

.scan-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}

.scan-steps li.is-active {
  color: #3730a3;
  font-weight: 600;
}

.scan-steps li.is-active::before {
  background: #4f46e5;
}

.scan-steps li.is-done {
  color: #166534;
}

.scan-steps li.is-done::before {
  background: #16a34a;
}

.generate-wrap {
  margin-top: 1rem;
}

.btn-generate-names {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-generate-names:hover {
  background: #4338ca;
}

.btn-generate-names:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-generate-more {
  width: 100%;
  appearance: none;
  border: 1px solid #4f46e5;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: #4338ca;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-generate-more:hover {
  background: #eef2ff;
}

.btn-generate-more:disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  background: #f9fafb;
}

.generated-names {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.generated-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #312e81;
}

.generated-sub {
  margin: 0.35rem 0 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
}

.name-play {
  margin: 0.85rem 0 0.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  background: #f5f7ff;
}

.play-length-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #312e81;
}

.play-length-value {
  font-size: 0.8rem;
  color: #4f46e5;
}

.play-slider-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.play-slider-row input[type="range"] {
  width: 100%;
  accent-color: #4f46e5;
  cursor: pointer;
}

.play-toggles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem 0.4rem;
  margin-top: 0.75rem;
}

.play-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 0;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #374151;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.play-toggle-text {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}

.play-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.play-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d1d5db;
  box-shadow: inset 0 1px 3px rgba(17, 24, 39, 0.12);
  transition: background 0.2s ease;
}

.play-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
  transition: transform 0.2s ease;
}

.play-toggle input:checked + .play-switch {
  background: #4f46e5;
}

.play-toggle input:checked + .play-switch::after {
  transform: translateX(18px);
}

.play-toggle input:focus-visible + .play-switch {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.play-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #312e81;
}

.play-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  background: #fff;
}

.play-field input:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}

.generated-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.generated-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #f8fafc;
}

.generated-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
  font-size: 0.9rem;
}

.generated-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.generated-name {
  font-weight: 800;
  color: #111827;
  word-break: break-all;
}

.generated-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
}

.generated-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

.btn-inline-check {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inline-check:hover {
  background: #4338ca;
}

.btn-inline-check.btn-full-score {
  background: #15803d;
}

.btn-inline-check.btn-full-score:hover {
  background: #166534;
}

.generated-row.is-available {
  border-color: #86efac;
  background: #f0fdf4;
}

.generated-row.is-available .generated-status {
  color: #15803d;
}

.generated-row.is-taken {
  border-color: #fecaca;
  background: #fef2f2;
}

.generated-row.is-taken .generated-status {
  color: #b91c1c;
}

.generated-row.is-checking {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.generated-row.is-error .generated-status {
  color: #c2410c;
}

.remote-play-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #eef2ff;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 400;
}

.remote-play-card h3 {
  margin: 0 0 0.85rem;
  color: #312e81;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.remote-play-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.remote-play-field > span {
  grid-column: 1 / -1;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 700;
}

.remote-play-field code {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.remote-play-copy {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.remote-play-copy:hover {
  background: #4338ca;
}

.remote-play-note {
  margin: 0.85rem 0 0;
  color: #4b5563;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .generated-row {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "rank info"
      "status check";
  }

  .generated-rank { grid-area: rank; }
  .generated-info { grid-area: info; }
  .generated-status { grid-area: status; }
  .btn-inline-check { grid-area: check; justify-self: end; }
}

.result-taken,
.result-error {
  color: #b91c1c;
  font-weight: 700;
}

.result-warn {
  color: #c2410c;
  font-weight: 700;
}

.info-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .info-section {
    grid-template-columns: 1fr 1fr;
  }
}

.info-section h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-section p + h2 {
  margin-top: 2.25rem;
}

.info-section h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.info-section h3:first-child {
  margin-top: 0;
}

.info-section p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1.05rem;
}

.info-section ul {
  color: #4b5563;
  line-height: 1.6;
  padding-left: 1.25rem;
}

.content-panel {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  width: 100%;
}

.content-panel--center {
  text-align: center;
}

.content-panel--center .page-heading {
  font-size: 2rem;
  margin-top: 0;
}

.content-panel--center .page-lead {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.content-panel--center .btn-primary {
  margin-top: 1rem;
}

.status-panel {
  max-width: 900px;
}

.token-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.token-status-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
}

.token-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.token-status-heading h3 {
  margin: 0;
  color: #1f2937;
}

.token-status-badge {
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

.token-status-badge--ok {
  background: #dcfce7;
  color: #166534;
}

.token-status-badge--bad {
  background: #fee2e2;
  color: #991b1b;
}

.token-status-details {
  margin: 1.25rem 0 0;
}

.token-status-details div + div {
  border-top: 1px solid #f1f5f9;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.token-status-details dt {
  color: #64748b;
  font-size: 0.85rem;
}

.token-status-details dd {
  color: #1f2937;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

.emphasis-danger {
  font-weight: bold;
  color: #b91c1c;
}

.contact-email-box {
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

.contact-email-box a {
  color: #4f46e5;
  text-decoration: none;
}

.contact-email-box a:hover {
  text-decoration: underline;
}

.site-footer {
  background-color: #f3f4f6;
  color: #374151;
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.1fr);
    gap: 2.5rem;
  }
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.footer-brand .footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-brand p {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

@media (min-width: 700px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .footer-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 0.45rem;
}

.footer-col a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-col a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.footer-disclaimer-block {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.footer-disclaimer-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}

.footer-disclaimer-block p {
  margin: 0 0 0.75rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-disclaimer-block p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
  color: #6b7280;
}

.recent-searches-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.recent-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.05rem;
}

.recent-search-item:last-child {
  border-bottom: none;
}

.search-time {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
  margin-left: 1rem;
  flex-shrink: 0;
}

.icon-check {
  color: #28a745;
  font-weight: bold;
  margin-right: 0.5rem;
}

.icon-cross {
  color: #dc3545;
  font-weight: bold;
  margin-right: 0.5rem;
}

.recent-search-item > span:first-child {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.validation-rules {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.rule {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.25rem;
  transition: color 0.2s;
  color: #333;
}

.rule .icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  margin-right: 0.6rem;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1rem;
  color: #6b7280;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.rule .icon::before {
  content: '\2014';
  position: relative;
  top: -1px;
}

.rule.invalid {
  color: #b91c1c;
}

.rule.invalid .icon {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}

.rule.invalid .icon::before {
  content: '\00d7';
  top: 0;
}

.rule.valid {
  color: #166534;
}

.rule.valid .icon {
  color: white;
  background-color: #28a745;
  border-color: #28a745;
}

.rule.valid .icon::before {
  content: '\2713';
  top: 0;
}

.btn-spinner {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.burger-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 6px;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  z-index: 110;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #4b5563;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.burger-button.is-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-button.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-button.is-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger-button {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 100;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    margin: 0;
    padding: 1.25rem 2rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .token-status-grid {
    grid-template-columns: 1fr;
  }

  .token-status-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.guide-panel .guide-breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.guide-panel .guide-breadcrumb a {
  color: #4f46e5;
  text-decoration: none;
}

.guide-panel .guide-breadcrumb a:hover {
  text-decoration: underline;
}

.guide-intro {
  font-size: 1.1rem !important;
  color: #374151 !important;
  margin-bottom: 1.5rem !important;
}

.guide-panel h3 {
  margin-top: 2.25rem;
}

.guide-panel p {
  margin-bottom: 0.9rem;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .guide-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
}

.guide-card strong {
  color: #312e81;
  font-size: 1.05rem;
}

.guide-card span {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}

.guide-name-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
  padding-left: 0 !important;
  margin: 1rem 0 1.5rem;
}

.guide-name-list code {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.95rem;
}

.guide-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.guide-cta .btn-primary,
.guide-inline-cta .btn-primary {
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .site-header {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.15rem;
  }

  .hero-section .hero-title {
    font-size: 1.75rem;
  }

  .form-row {
    flex-direction: column;
  }
}
