@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090b;
  --surface: #121214;
  --surface-hover: #18181b;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.1); 
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

.fixed-glow {
  position: fixed;
  top: -20vh;
  left: 30vw;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 70%);
  opacity: 0.04;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.page-header {
  margin-bottom: 56px;
  max-width: 680px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.4s ease;
}

.lang-switch {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: #fff;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.method-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.method-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.method-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.method-button[aria-pressed="true"] {
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.method-button__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.method-button__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.method-button__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.method-button__ticker {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.method-button__meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-switch {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.network-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.network-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #fff;
}

.network-pill[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.details-row {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.address-block {
  margin-bottom: 24px;
}

.address-field {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.address-text {
  flex: 1;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: #fff;
  background: transparent;
  word-break: break-all;
  display: flex;
  align-items: center;
}

.btn-copy {
  border: none;
  background: var(--surface-hover);
  color: #fff;
  width: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 1px solid var(--border);
}

.btn-copy svg {
  width: 15px;
  height: 15px;
  display: block;
}

.btn-copy:hover {
  background: var(--border-hover);
}

.btn-copy:active {
  background: var(--border);
}

.btn-copy.is-copied {
  background: #fff;
  color: #000;
}

.btn-copy.is-error {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.btn-copy .icon-check {
  color: #16a34a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.description-block {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.description-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.warning-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(247, 147, 26, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.warning-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.qr-wrapper {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.qr-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.qr-wrapper img[hidden],
.qr-fallback[hidden] {
  display: none;
}

.qr-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 220px;
  padding: 18px;
}

.qr-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

.highlights-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 10px var(--accent-soft);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.highlight-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.noscript-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f87171;
  color: #111;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}

@media (max-width: 900px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .method-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .qr-card {
    max-width: 320px;
    margin: 0 auto 32px;
  }
  
  .highlights-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .method-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .container {
    padding: 40px 20px;
  }

  .page-title {
    font-size: 32px;
  }
  
  .details-card {
    padding: 20px;
  }

  .method-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlights-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .method-switch {
    grid-template-columns: 1fr;
  }
}
