/* Tailwind handles most utility styling; this file is for shared custom styles and subtle polish */
html, body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background-color: #020617;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* THEME SYSTEM */
:root {
  color-scheme: dark;
  --bg-page: #020617;
  --bg-panel: rgba(15,23,42,0.95);
  --bg-panel-soft: rgba(15,23,42,0.9);
  --bg-elevated: rgba(2,6,23,0.95);
  --border-subtle: rgba(51,65,85,0.9);
  --border-strong: rgba(30,64,175,0.85);
  --text-main: #e5e7eb;
  --text-soft: #cbd5f5;
  --text-muted: #94a3b8;
  --text-inverted: #020617;
  --shadow-strong: 0 18px 50px rgba(15,23,42,1);
  --shadow-soft: 0 12px 40px rgba(15,23,42,0.9);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f8fafc;
  --bg-panel: #ffffff;
  --bg-panel-soft: #f1f5f9;
  --bg-elevated: #ffffff;
  --border-subtle: rgba(100,116,139,0.3);
  --border-strong: rgba(14,165,233,0.5);
  --text-main: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --text-inverted: #ffffff;
  --shadow-strong: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
}

/* Apply theme colors */
body[data-theme-root] {
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* hero / dashboard background gradient container can opt‑in via [data-theme-bg] */
[data-theme-bg] {
  background-color: var(--bg-page);
}

/* Generic text helpers */
.section-title,
.panel-title,
.auth-title,
.about-copy,
.about-aside-title {
  color: var(--text-main);
}
.section-body,
.benefit-card p,
.feature-card p,
.feature-grid-card p,
.legal-card p,
.auth-subtitle,
.about-aside-body {
  color: var(--text-soft);
}

/* Glass / panels */
.glass-panel {
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  backdrop-filter: blur(18px);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(15,23,42,0.06);
}

/* Many components reused glass-panel defaults; remove duplicate definition below if present */
/* Basic typography reset to avoid unstyled look when Tailwind preflight is disabled */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}
p {
  margin: 0;
}
a {
  text-decoration: none;
}

/* Ensure Tailwind utility classes still work when used (via CDN build) */
[class*="flex"],
[class^="flex"] {
  box-sizing: border-box;
}
/* Base form field styling for native elements (outside Tailwind processing) */
input,
select,
textarea,
button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Make sure plain form controls (without utility classes) look designed
   and align visually with .field-input fields */
input:not([class]),
select:not([class]),
textarea:not([class]) {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: var(--text-main);
  width: 100%;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease-out;
  box-sizing: border-box;
}

/* Subtle hover to match glass/interactive feel */
input:not([class]):hover,
select:not([class]):hover,
textarea:not([class]):hover {
  border-color: var(--border-strong);
}

/* Placeholders */
input:not([class])::placeholder,
textarea:not([class])::placeholder {
  color: var(--text-muted);
}

/* Focus state mirrors .field-input focus */
input:not([class]):focus,
select:not([class]):focus,
textarea:not([class]):focus {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-panel);
  transform: translateY(-1px);
}

/* Native select arrow that matches dark UI */
select:not([class]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 52%,
    calc(100% - 9px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
  cursor: pointer;
}

/* Textareas */
textarea:not([class]) {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-image: linear-gradient(to right, #22d3ee, #0ea5e9, #a855f7);
  color: #020617;
  box-shadow: 0 15px 35px rgba(8,47,73,0.6);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}
.btn-primary:hover {
  background-image: linear-gradient(to right, #06b6d4, #38bdf8, #c084fc);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(8,47,73,0.9);
}
.btn-primary:focus-visible {
  outline: 2px solid rgba(34,211,238,0.8);
  outline-offset: 2px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(51,65,85,0.9);
  background-color: rgba(15,23,42,0.9);
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(15,23,42,0.8);
  cursor: pointer;
  transition: all 0.16s ease-out;
}
.btn-secondary:hover {
  border-color: rgba(34,211,238,0.7);
  color: #e0f2fe;
  background-color: rgba(15,23,42,1);
  transform: translateY(-1px);
}
.btn-secondary:focus-visible {
  outline: 2px solid rgba(34,211,238,0.7);
  outline-offset: 2px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(30,64,175,0.8);
  background-color: rgba(15,23,42,0.85);
  color: #cbd5f5;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.16s ease-out;
}
.btn-ghost:hover {
  border-color: rgba(56,189,248,0.7);
  color: #e0f2fe;
  background-color: rgba(15,23,42,1);
  transform: translateY(-1px);
}
.btn-ghost:focus-visible {
  outline: 2px solid rgba(56,189,248,0.7);
  outline-offset: 2px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(51,65,85,0.9);
  background-color: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease-out;
}
.btn-icon:hover {
  border-color: rgba(34,211,238,0.8);
  color: #bae6fd;
  transform: translateY(-1px);
}
.btn-icon:focus-visible {
  outline: 2px solid rgba(34,211,238,0.8);
  outline-offset: 2px;
}
/* Sections */
.section-shell {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 4rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .section-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .section-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.section-header-centered {
  align-items: center;
  text-align: center;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}
.section-title {
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--text-main);
}
@media (min-width: 640px) {
  .section-title {
    font-size: 2rem;
  }
}
.section-body {
  font-size: 0.9rem;
  color: var(--text-soft);
}
@media (min-width: 640px) {
  .section-body {
    font-size: 1rem;
  }
}
/* Cards & glassmorphism */
.feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(30,64,175,0.8);
  background-color: rgba(15,23,42,0.9);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
}
.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(56,189,248,0.6);
  background-color: rgba(8,47,73,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a5f3fc;
  margin-bottom: 0.75rem;
}
.feature-icon-alt {
  border-color: rgba(16,185,129,0.7);
  background-color: rgba(6,78,59,0.95);
  color: #6ee7b7;
}
.feature-icon-purple {
  border-color: rgba(168,85,247,0.7);
  background-color: rgba(76,29,149,0.95);
  color: #e9d5ff;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.feature-body {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.mini-stat {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 0.75rem;
}
.mini-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.mini-stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.25rem;
}
.mini-stat-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
/* Workflow */
.workflow-container {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 1.25rem;
  overflow: hidden;
}
.workflow-container::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 2rem;
  bottom: 2rem;
  border-left: 1px dashed var(--border-subtle);
}
.workflow-step {
  position: relative;
  padding-left: 3.25rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.workflow-badge {
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-strong);
  font-size: 0.7rem;
  color: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.workflow-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.workflow-content p {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.workflow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.workflow-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  font-size: 0.66rem;
  color: var(--text-main);
}
/* Benefits */
.benefit-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 1rem;
border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 1rem;
}
.benefit-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}
.benefit-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.benefit-card p {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}
/* Dot helpers */
.dot-emerald {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background-color: rgb(16 185 129);
}
.dot-cyan {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background-color: rgb(8 145 178);
}

/* Feature grid */
.feature-grid-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.feature-grid-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}
.feature-grid-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.feature-grid-card ul {
  margin-top: 0.5rem;
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.feature-grid-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(56,189,248,0.6);
  background-color: rgba(8,47,73,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a5f3fc;
  margin-bottom: 0.5rem;
}
.feature-grid-icon-alt {
  border-color: rgba(16,185,129,0.7);
  background-color: rgba(6,78,59,0.95);
  color: #6ee7b7;
}
.feature-grid-icon-purple {
  border-color: rgba(168,85,247,0.7);
  background-color: rgba(76,29,149,0.95);
  color: #e9d5ff;
}
/* Legal */
.legal-card {
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legal-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}
.legal-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.legal-card ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.legal-link {
  color: #0ea5e9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.legal-link:hover {
  color: #0284c7;
}
/* Forms */
.prota-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.form-row-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.field-input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-main);
  box-sizing: border-box;
  box-shadow: var(--shadow-soft);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease-out;
}
.field-input::placeholder {
  color: var(--text-muted);
}
.field-input-lg {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.82rem;
}
.field-input-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.field-input:focus {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-strong);
  background-color: var(--bg-panel);
  transform: translateY(-1px);
}
.field-hint {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
}
.checkbox-text {
  font-size: 0.7rem;
  color: var(--text-main);
}
.checkbox-input {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
}
.checkbox-input:checked {
  accent-color: #0ea5e9;
}
.link-underline {
  font-size: 0.75rem;
  color: #0ea5e9;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.link-underline:hover {
  color: #0284c7;
}
.radio-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  font-size: 0.7rem;
  color: var(--text-main);
  cursor: pointer;
}
.radio-chip input {
  display: none;
}
.radio-chip span {
  white-space: nowrap;
}
.radio-chip input:checked + span {
  color: #059669;
}
.radio-chip input:checked + span::before {
  content: "●";
  color: #16a34a;
  margin-right: 0.25rem;
}
.form-footer-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.form-assurance {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-assurance-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22,163,74,0.6);
  margin-top: 0.35rem;
}
.form-assurance-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-main);
}
.form-assurance-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}
/* Panel headings */
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
/* Transfer segment pills */
.segment-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.62rem;
  color: var(--text-main);
}
.segment-pill-active {
  border-color: rgba(34,197,94,0.7);
  color: #059669;
  background-color: rgba(22,163,74,0.15);
}
/* Progress animation */
@keyframes progressPulse {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(5%); opacity: 1; }
}
.animate-progress-pulse {
  animation: progressPulse 1.8s ease-in-out infinite;
}

/* Transactions */
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 0.5rem 0.75rem;
}
/* Modals (used via JS) */
.prota-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(2,6,23,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.prota-modal {
  width: 100%;
  max-width: 24rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 1.25rem;
  box-shadow: var(--shadow-strong);
}
.prota-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.prota-modal-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.prota-modal-body {
  font-size: 0.78rem;
  color: var(--text-soft);
}
.prota-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
/* Address validation badges */
.badge-valid {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background-color: rgba(22,163,74,0.2);
  border: 1px solid rgba(34,197,94,0.7);
  color: #059669;
}
.badge-invalid {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background-color: rgba(248,113,113,0.16);
  border: 1px solid rgba(248,113,113,0.7);
  color: #dc2626;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background-color: rgba(251,191,36,0.16);
  border: 1px solid rgba(251,191,36,0.7);
  color: #d97706;
}

/* Wallet Connect Buttons */
.wallet-connect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.wallet-connect-btn:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-panel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.wallet-connect-btn:active {
  transform: translateY(0);
}

/* BTC address transaction list */
.btc-tx-summary {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  padding: 0.75rem 0.85rem;
}
.btc-tx-summary-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-main);
}
.btc-tx-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.btc-tx-list {
  margin-top: 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel-soft);
  max-height: 260px;
  overflow: auto;
}
.btc-tx-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.6fr) minmax(0, 0.6fr);
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}
.btc-tx-row:last-child {
  border-bottom: none;
}
.btc-tx-row span {
  display: block;
}
.btc-tx-row-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.btc-tx-row-value {
  font-size: 0.74rem;
  color: var(--text-main);
  word-break: break-all;
}
.btc-tx-row-in {
  color: #16a34a;
}
.btc-tx-row-out {
  color: #ea580c;
}
.btc-tx-empty {
  padding: 0.7rem 0.8rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
/* Auth / standalone form shells */
.auth-card {
  padding: 1.75rem 1.5rem 1.75rem;
border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .auth-card {
    padding: 1.75rem;
  }
}
.auth-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.auth-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.auth-submit {
  margin-top: 0.25rem;
}
.auth-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
/* About layout polish */
.about-copy {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .about-copy {
    font-size: 0.95rem;
  }
}
.about-copy > p + p {
  margin-top: 0.9rem;
}
.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(34,211,238,0.5);
  background-color: rgba(8,47,73,0.8);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cffafe;
}
.about-grid {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.75rem;
}
@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.about-aside {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}
.about-aside::before {
content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.15), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(168,85,247,0.15), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}
.about-aside-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.about-aside-icon {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 1.1rem;
  background-color: rgba(8,145,178,0.15);
  border: 1px solid rgba(56,189,248,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bae6fd;
}
.about-aside-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.about-aside-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}
.about-aside-image {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border-subtle);
}
.about-aside-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
}
.about-aside-body {
  position: relative;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-main);
}
.about-aside-caption {
  position: relative;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.about-aside-footer {
  position: relative;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.about-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.about-metric {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-panel);
  padding: 0.5rem 0.4rem;
  text-align: center;
}
.about-metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.about-metric-label {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.about-aside-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(22,163,74,0.18);
  border: 1px solid rgba(34,197,94,0.7);
  font-size: 0.65rem;
  color: #059669;
}
.about-aside-dot {
width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22,163,74,0.6);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .workflow-container::before {
    left: 24px;
    top: 30px;
    bottom: 30px;
  }

  .auth-card {
    padding-inline: 1.25rem;
  }

  .about-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* LIGHT THEME OVERRIDES */
:root[data-theme="light"] body {
  background-color: var(--bg-page);
}

:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .mini-stat,
:root[data-theme="light"] .workflow-container,
:root[data-theme="light"] .benefit-card,
:root[data-theme="light"] .feature-grid-card,
:root[data-theme="light"] .legal-card,
:root[data-theme="light"] .tx-row,
:root[data-theme="light"] .btc-tx-summary,
:root[data-theme="light"] .about-metric,
:root[data-theme="light"] .auth-card {
  border-color: var(--border-subtle);
  background-color: var(--bg-panel);
}

:root[data-theme="light"] .feature-icon,
:root[data-theme="light"] .feature-grid-icon {
  border-color: rgba(14,165,233,0.4);
  background-color: rgba(14,165,233,0.1);
  color: #0284c7;
}

:root[data-theme="light"] .feature-icon-alt,
:root[data-theme="light"] .feature-grid-icon-alt {
  border-color: rgba(16,185,129,0.4);
  background-color: rgba(16,185,129,0.1);
  color: #059669;
}

:root[data-theme="light"] .feature-icon-purple,
:root[data-theme="light"] .feature-grid-icon-purple {
  border-color: rgba(168,85,247,0.4);
  background-color: rgba(168,85,247,0.1);
  color: #9333ea;
}

:root[data-theme="light"] .feature-title,
:root[data-theme="light"] .mini-stat-value,
:root[data-theme="light"] .workflow-content h3,
:root[data-theme="light"] .benefit-card h3,
:root[data-theme="light"] .feature-grid-card h3,
:root[data-theme="light"] .legal-card h3,
:root[data-theme="light"] .panel-title,
:root[data-theme="light"] .prota-modal-title,
:root[data-theme="light"] .btc-tx-summary-header,
:root[data-theme="light"] .btc-tx-row-value,
:root[data-theme="light"] .auth-title,
:root[data-theme="light"] .about-copy,
:root[data-theme="light"] .about-aside-title,
:root[data-theme="light"] .about-aside-body,
:root[data-theme="light"] .about-aside-footer,
:root[data-theme="light"] .about-metric-value,
:root[data-theme="light"] .form-assurance-title,
:root[data-theme="light"] .checkbox-label,
:root[data-theme="light"] .checkbox-text,
:root[data-theme="light"] .benefit-icon,
:root[data-theme="light"] .segment-pill,
:root[data-theme="light"] .workflow-tags span,
:root[data-theme="light"] .radio-chip {
  color: var(--text-main);
}

:root[data-theme="light"] .feature-body,
:root[data-theme="light"] .mini-stat-label,
:root[data-theme="light"] .mini-stat-text,
:root[data-theme="light"] .workflow-content p,
:root[data-theme="light"] .benefit-card p,
:root[data-theme="light"] .feature-grid-card p,
:root[data-theme="light"] .feature-grid-card ul,
:root[data-theme="light"] .legal-card p,
:root[data-theme="light"] .legal-card ul,
:root[data-theme="light"] .prota-modal-body,
:root[data-theme="light"] .btc-tx-summary-meta,
:root[data-theme="light"] .btc-tx-row-label,
:root[data-theme="light"] .btc-tx-empty,
:root[data-theme="light"] .auth-subtitle,
:root[data-theme="light"] .auth-footer,
:root[data-theme="light"] .about-aside-eyebrow,
:root[data-theme="light"] .about-aside-caption,
:root[data-theme="light"] .about-metric-label,
:root[data-theme="light"] .field-label,
:root[data-theme="light"] .field-hint,
:root[data-theme="light"] .form-assurance-text {
  color: var(--text-muted);
}

:root[data-theme="light"] .field-input,
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .btn-icon,
:root[data-theme="light"] .radio-chip,
:root[data-theme="light"] .workflow-badge,
:root[data-theme="light"] .prota-modal,
:root[data-theme="light"] .btc-tx-list {
  border-color: var(--border-subtle);
  background-color: var(--bg-panel-soft);
  color: var(--text-main);
}

:root[data-theme="light"] .field-input:focus,
:root[data-theme="light"] .btn-secondary:hover,
:root[data-theme="light"] .btn-ghost:hover,
:root[data-theme="light"] .btn-icon:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-panel);
}

:root[data-theme="light"] .checkbox-input,
:root[data-theme="light"] .segment-pill,
:root[data-theme="light"] .workflow-tags span,
:root[data-theme="light"] .form-footer-row {
  border-color: var(--border-subtle);
}

:root[data-theme="light"] .about-pill {
  border-color: rgba(14,165,233,0.3);
  background-color: rgba(14,165,233,0.1);
  color: #0284c7;
}

:root[data-theme="light"] .about-aside-icon {
  border-color: rgba(14,165,233,0.3);
  background-color: rgba(14,165,233,0.1);
  color: #0284c7;
}

:root[data-theme="light"] .about-aside-image,
:root[data-theme="light"] .about-aside-footer {
  border-color: var(--border-subtle);
}

:root[data-theme="light"] .workflow-container::before,
:root[data-theme="light"] .btc-tx-row {
  border-color: var(--border-subtle);
}

:root[data-theme="light"] .prota-modal-backdrop {
  background-color: rgba(15,23,42,0.3);
}

:root[data-theme="light"] .glass-panel {
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0,0,0,0.02);
}

:root[data-theme="light"] .field-input,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .prota-modal {
  box-shadow: var(--shadow-soft);
}

:root[data-theme="light"] .workflow-badge {
  border-color: rgba(14,165,233,0.4);
  color: #0284c7;
}
