:root {
  --bg: #101935;
  --text: #f2f7ff;
  --muted: #c0cee2;
  --line: rgba(139, 181, 255, 0.38);
  --accent: #4d7dff;
  --accent-2: #63c2ff;
  --accent-soft: #7fbbff;
  --card: rgba(34, 46, 82, 0.78);
  --radius: 18px;
  --shadow: 0 22px 60px rgba(4, 10, 28, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(132, 184, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(99, 194, 255, 0.15), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle at 20% 20%, #5c95ff, transparent 70%);
  opacity: 0.45;
}

.orb-b {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -200px;
  background: radial-gradient(circle at 45% 30%, #6fc9ff, transparent 68%);
  opacity: 0.32;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 32%, black 35%, transparent 100%);
}

.shell {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: rgba(18, 31, 56, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  justify-self: start;
}

.brand-logo {
  width: clamp(34px, 3.2vw, 42px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 15px rgba(116, 89, 255, 0.55));
}

.nav-center {
  display: flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 0.6rem;
}

.nav-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
}

.nav-link-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.42rem 0.24rem;
  border-radius: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-link-direct:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-link-direct.active {
  color: #dff0ff;
  opacity: 1;
}

.dropdown-toggle.active {
  color: #dff0ff;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  padding: 0.42rem 0.24rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.dropdown-toggle:hover {
  color: #ffffff;
  opacity: 1;
}

.caret {
  color: #cfc4ff;
  font-size: 0.85rem;
}

.dropdown-menu {
  display: grid;
  gap: 0.45rem;
  position: absolute;
  z-index: 1100;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, 88vw);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(149, 128, 255, 0.38);
  background: rgba(23, 34, 64, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 0.45rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 0.75rem 0.8rem;
  color: var(--text);
  background: rgba(30, 44, 78, 0.62);
  border: 1px solid rgba(149, 128, 255, 0.35);
}

.dropdown-item:hover {
  border-color: rgba(139, 181, 255, 0.62);
  background: rgba(37, 54, 92, 0.74);
}

.dropdown-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.dropdown-desc {
  color: #b6c2d4;
  font-size: 0.86rem;
  line-height: 1.4;
}

.dropdown-link {
  color: #c7b8ff;
  font-size: 0.83rem;
  font-weight: 600;
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1.18fr 0.9fr;
  align-items: stretch;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid rgba(149, 128, 255, 0.35);
  background: rgba(18, 26, 40, 0.72);
  border-radius: 999px;
}

.hero-mark img {
  width: 22px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.hero-mark span {
  font-size: 0.78rem;
  color: #c9d7f5;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  color: #b7a8ff;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.78rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #f3f6ff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(116, 89, 255, 0.34);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.social-proof {
  color: #89a1ba;
  font-size: 0.92rem;
  margin-top: 1.35rem;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #cce8ff;
}

.ticket-logo {
  width: clamp(38px, 5.2vw, 46px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 16px rgba(116, 89, 255, 0.55));
}

.chat-row {
  background: rgba(15, 17, 37, 0.78);
  border: 1px solid rgba(149, 128, 255, 0.22);
  border-radius: 14px;
  padding: 0.82rem;
  margin-top: 0.65rem;
}

.chat-row p {
  margin: 0.55rem 0 0;
  color: #d5e8ff;
  font-size: 0.93rem;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-user {
  color: #07263a;
  background: #98e2ff;
}

.badge-bot {
  color: #1f145f;
  background: #d2c3ff;
}

.badge-owner {
  color: #2e1d00;
  background: #ffe29d;
}

.stats {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  border: 1px solid rgba(149, 128, 255, 0.26);
  border-radius: 14px;
  background: rgba(15, 24, 36, 0.8);
  padding: 1rem;
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.32rem;
  font-family: "Space Grotesk", sans-serif;
  color: #d7cbff;
}

.stat-card p {
  margin: 0.3rem 0 0;
  color: #9db0c6;
  font-size: 0.9rem;
}

.overview-section {
  padding-top: 2.2rem;
}

.overview-lead {
  margin-top: 0.85rem;
}

.overview-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
  border: 1px solid rgba(149, 128, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(20, 19, 42, 0.72);
  padding: 1.15rem;
}

.overview-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.about-main {
  padding-top: 1rem;
}

.about-hero {
  padding: 3rem 0 1.8rem;
}

.about-hero h1 {
  margin: 0.55rem 0 0.8rem;
  max-width: 19ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.05;
}

.about-trust {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.3rem;
}

.trust-chip {
  margin: 0;
  border: 1px solid rgba(149, 128, 255, 0.32);
  background: rgba(19, 20, 44, 0.74);
  border-radius: 16px;
  padding: 0.7rem 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #d8e4ff;
}

.trust-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.ui-icon {
  width: 16px;
  height: 16px;
  stroke: #cdbfff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.about-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-info-card {
  border: 1px solid rgba(149, 128, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(18, 19, 42, 0.74);
  padding: 1.2rem;
}

.card-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(149, 128, 255, 0.35);
  background: rgba(25, 26, 55, 0.62);
  display: grid;
  place-items: center;
}

.card-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.card-logo .ui-icon {
  width: 19px;
  height: 19px;
  stroke: #d7cbff;
}

.about-info-card h2 {
  margin: 0.75rem 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.about-info-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.feature-list-section {
  padding-top: 0.8rem;
}

.inline-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inline-list span {
  border: 1px solid rgba(149, 128, 255, 0.25);
  border-radius: 12px;
  padding: 0.78rem 0.72rem;
  background: rgba(18, 19, 38, 0.72);
  color: #cfddf5;
  font-size: 0.88rem;
  text-align: center;
}

.mini-feature-card {
  border: 1px solid rgba(149, 128, 255, 0.25);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(18, 19, 38, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mini-feature-card img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.mini-feature-card .ui-icon {
  width: 15px;
  height: 15px;
  stroke: #cdbfff;
}

.mini-feature-card span {
  border: 0;
  padding: 0;
  background: transparent;
}

.capability-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card {
  border: 1px solid rgba(149, 128, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(19, 20, 42, 0.76);
  padding: 1.1rem;
}

.capability-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.card-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.card-head img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.card-head .ui-icon {
  width: 16px;
  height: 16px;
  stroke: #cabaff;
}

.card-head h3 {
  margin: 0;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
}

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

.story-card {
  border: 1px solid rgba(149, 128, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(16, 18, 39, 0.72);
  padding: 1.2rem;
}

.story-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.story-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1rem;
  color: #d6e3ff;
}

.story-card p {
  margin: 0;
  color: var(--muted);
}

.quote-block {
  border: 1px solid rgba(149, 128, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(17, 19, 43, 0.78);
  padding: 1.35rem;
}

.quote-block p {
  margin: 0;
  color: #e7eeff;
  font-size: 1.06rem;
}

.quote-block span {
  display: block;
  margin-top: 0.7rem;
  color: #b4c4dd;
  font-size: 0.9rem;
}

.terms-main {
  padding-top: 1rem;
}

.terms-hero {
  padding: 2.7rem 0 1.4rem;
}

.terms-hero h1 {
  margin: 0.6rem 0 0.75rem;
  max-width: 20ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.terms-tags {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.terms-tag {
  margin: 0;
  border: 1px solid rgba(149, 128, 255, 0.32);
  border-radius: 14px;
  background: rgba(17, 19, 42, 0.75);
  padding: 0.75rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.terms-tag .ui-icon {
  width: 15px;
  height: 15px;
}

.notice-card {
  border-radius: var(--radius);
  border: 1px solid rgba(149, 128, 255, 0.35);
  background: rgba(19, 20, 44, 0.76);
  padding: 1.1rem;
}

.notice-card p {
  margin: 0.55rem 0 0;
  color: #d0dcf2;
}

.notice-card.critical {
  border-color: rgba(255, 108, 122, 0.6);
  background: linear-gradient(155deg, rgba(88, 20, 30, 0.78), rgba(47, 13, 21, 0.82));
}

.notice-card.critical p {
  color: #ffd8de;
}

.terms-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.terms-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(149, 128, 255, 0.32);
  background: rgba(17, 18, 41, 0.78);
  padding: 1.08rem 1.08rem 1.12rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.terms-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(149, 128, 255, 0.1), rgba(149, 128, 255, 0.75), rgba(149, 128, 255, 0.1));
}

.terms-card:hover {
  transform: translateY(-3px);
  border-color: rgba(149, 128, 255, 0.58);
  box-shadow: 0 14px 30px rgba(8, 10, 27, 0.5);
}

.terms-card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.terms-card li {
  font-size: 0.93rem;
}

.terms-card h3 {
  font-size: 1.03rem;
}

.terms-card.critical {
  border-color: rgba(255, 142, 165, 0.34);
}

.terms-card.warning {
  border-color: rgba(255, 204, 122, 0.34);
}

.terms-card.info {
  border-color: rgba(119, 196, 255, 0.34);
}

.terms-card.authority {
  border-color: rgba(170, 150, 255, 0.34);
}

.rules-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-card {
  border: 1px solid rgba(149, 128, 255, 0.28);
  border-radius: 14px;
  background: rgba(16, 18, 39, 0.74);
  padding: 0.82rem;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.rule-card span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(149, 128, 255, 0.4);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #d9cdff;
  background: rgba(23, 25, 53, 0.78);
}

.rule-card p {
  margin: 0.05rem 0 0;
  color: #c2d1e8;
  font-size: 0.91rem;
}

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

.highlight-card {
  border: 1px solid rgba(149, 128, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(19, 20, 42, 0.8);
  padding: 1.12rem;
}

.highlight-card ul {
  margin: 0.62rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.48rem;
}

.highlight-card.critical {
  border-color: rgba(255, 145, 170, 0.36);
}

.highlight-card.info {
  border-color: rgba(119, 196, 255, 0.36);
}

.section {
  padding: 3rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-family: "Space Grotesk", sans-serif;
}

.cards {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.step {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 20, 31, 0.77);
  padding: 1.1rem;
}

.step span {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(149, 128, 255, 0.55);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-top .ui-icon {
  width: 17px;
  height: 17px;
  stroke: #cabaff;
}

.step h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 22, 34, 0.72);
  color: var(--text);
  cursor: pointer;
  padding: 1rem 1rem 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.4rem 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(149, 128, 255, 0.52);
  background: rgba(16, 25, 40, 0.82);
}

.faq-item:focus-visible {
  outline: 2px solid rgba(89, 162, 255, 0.8);
  outline-offset: 2px;
}

.faq-item.open {
  border-color: rgba(149, 128, 255, 0.62);
  background: rgba(19, 28, 46, 0.88);
}

.faq-question {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.plus {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(149, 128, 255, 0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  color: #c8bdff;
  background: rgba(30, 34, 64, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-item.open .plus {
  transform: rotate(180deg);
  border-color: rgba(149, 128, 255, 0.7);
  color: #ece3ff;
}

.faq-answer {
  grid-column: 1 / -1;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  opacity: 0;
  transition: max-height 0.28s ease, margin-top 0.28s ease, opacity 0.22s ease;
}

.faq-item.open .faq-answer {
  max-height: 180px;
  margin-top: 0.45rem;
  opacity: 1;
}

.cta {
  margin: 2.2rem auto 4rem;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(149, 128, 255, 0.36);
  padding: 2.1rem 1rem;
  background: linear-gradient(160deg, rgba(116, 89, 255, 0.22), rgba(89, 162, 255, 0.2));
}

.cta h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

.cta p {
  color: #def2ff;
  margin: 0.7rem auto 1.2rem;
  max-width: 58ch;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 18, 0.8);
  padding: 1rem 0 2rem;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: #aac0d7;
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-brand img {
  width: 22px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(149, 128, 255, 0.2);
  color: #8fa5bf;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.tool-page .reveal {
  opacity: 1;
  transform: none;
}

.tool-main {
  padding-bottom: 4rem;
}

.tool-hero {
  padding: 4.2rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.tool-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 1.04;
  margin: 0.35rem 0 1rem;
}

.tool-hero-icon {
  width: clamp(88px, 12vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 181, 255, 0.36);
  border-radius: 18px;
  background: rgba(30, 44, 78, 0.58);
  box-shadow: var(--shadow);
}

.tool-hero-icon .ui-icon {
  width: 48%;
  height: 48%;
  color: #9fd8ff;
}

.tool-grid,
.transcript-layout {
  display: grid;
  gap: 1rem;
}

.tool-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.transcript-layout {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  align-items: start;
}

.tool-panel {
  border: 1px solid rgba(139, 181, 255, 0.3);
  border-radius: 18px;
  background: rgba(23, 34, 64, 0.68);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.tool-panel-wide {
  min-height: 100%;
}

.tool-panel-head,
.transcript-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-panel h2,
.transcript-preview h2 {
  margin: 0.15rem 0 0;
  font-size: 1.28rem;
}

.tool-kicker,
.tool-note,
.tool-row span,
.wallet-address-box span,
.transcript-ticket span,
.transcript-ticket small,
.transcript-preview-head p,
.transcript-message span {
  color: #aebdd0;
}

.tool-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(112, 205, 255, 0.38);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #dff5ff;
  background: rgba(64, 152, 218, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tool-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.tool-stat,
.wallet-address-box,
.tool-row,
.transcript-message,
.transcript-ticket {
  border: 1px solid rgba(149, 128, 255, 0.24);
  border-radius: 14px;
  background: rgba(30, 44, 78, 0.56);
}

.tool-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
}

.tool-stat span,
.tool-note {
  font-size: 0.84rem;
}

.tool-stat strong {
  font-size: clamp(1.05rem, 1.5vw, 1.42rem);
}

.wallet-address-box {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
}

.wallet-address-box code {
  color: #ecf7ff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tool-note {
  margin: 0.8rem 0 0;
}

.tool-list,
.transcript-ticket-list,
.transcript-chat {
  display: grid;
  gap: 0.65rem;
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.82rem;
}

.tool-row div {
  display: grid;
  gap: 0.12rem;
}

.tool-row div:last-child {
  text-align: right;
}

.transcript-ticket {
  width: 100%;
  color: var(--text);
  font: inherit;
  text-align: left;
  display: grid;
  gap: 0.18rem;
  padding: 0.82rem;
  cursor: pointer;
}

.transcript-ticket:hover,
.transcript-ticket.active {
  border-color: rgba(139, 181, 255, 0.66);
  background: rgba(37, 54, 92, 0.78);
}

.transcript-preview {
  min-height: 470px;
}

.transcript-search-form {
  display: grid;
  gap: 0.82rem;
}

.transcript-search-form .wallet-text-button {
  justify-content: center;
}

.transcript-page .transcript-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.1rem;
}

.transcript-page .transcript-sidebar {
  position: sticky;
  top: 96px;
}

.transcript-page .tool-panel {
  border-color: rgba(143, 169, 188, 0.24);
  border-radius: 14px;
  background: rgba(16, 25, 41, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  padding: clamp(0.95rem, 1.8vw, 1.2rem);
}

.transcript-page .tool-hero .lead {
  max-width: 56ch;
}

.transcript-page .tool-panel h2,
.transcript-page .transcript-preview h2 {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.16rem;
}

.transcript-page .transcript-search-form {
  gap: 0.9rem;
}

.transcript-page .transcript-search-form .transaction-field {
  gap: 0.36rem;
}

.transcript-page .transcript-search-form .transaction-field > span {
  color: #c4d2e1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.transcript-page .transcript-search-form .transaction-field input,
.transcript-page .transcript-search-form .transaction-select-button {
  min-height: 42px;
  border-color: rgba(143, 169, 188, 0.3);
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.84);
  font-size: 0.96rem;
}

.transcript-page .transcript-field-help {
  margin-top: 0.05rem;
  color: #95a8bc;
  font-size: 0.74rem;
  line-height: 1.42;
  display: block;
  overflow-wrap: anywhere;
}

.transcript-page .transcript-field-help code {
  color: #d6e4f3;
  background: rgba(83, 106, 138, 0.18);
  border: 1px solid rgba(143, 169, 188, 0.28);
  border-radius: 7px;
  padding: 0.06rem 0.34rem;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.transcript-page .transcript-search-form .transaction-field input::placeholder {
  color: #7f93a9;
}

.transcript-page .transcript-search-form .transaction-field input:focus,
.transcript-page .transcript-search-form .transaction-select-button:focus-visible {
  border-color: rgba(136, 169, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(136, 169, 255, 0.14);
}

.transcript-page #transcriptSearchButton {
  margin-top: 0.2rem;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.transcript-page .transcript-preview {
  min-height: 430px;
  display: grid;
  align-content: start;
}

.transcript-page .transcript-preview-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(143, 169, 188, 0.16);
}

.transcript-page .transcript-preview-head h2 {
  font-size: 1.22rem;
}

.transcript-page .transcript-preview-head p {
  color: #b8c8d8;
}

.transcript-page .transcript-chat {
  gap: 0.72rem;
}

.transcript-page .transcript-message {
  border-color: rgba(143, 169, 188, 0.24);
  background: rgba(20, 32, 52, 0.72);
  padding: 0.94rem;
}

.transcript-page .transcript-message div strong {
  color: #e7f0fb;
  font-size: 0.86rem;
}

.transcript-page .transcript-message p {
  margin-top: 0.34rem;
  color: #d4e2f2;
  line-height: 1.45;
  font-size: 0.92rem;
}

.transcript-page .wallet-status-badge {
  font-size: 0.74rem;
}

.fee-main {
  padding-bottom: 4.2rem;
}

body.fee-page {
  background:
    radial-gradient(900px 440px at 78% 4%, rgba(99, 194, 255, 0.18), transparent 64%),
    linear-gradient(180deg, #14234a 0%, #101a36 44%, #07121f 100%);
}

.fee-page .orb {
  display: none;
}

.fee-page .grid {
  opacity: 0.58;
  mask-image: linear-gradient(to bottom, black 0%, black 58%, transparent 100%);
}

.fee-page .nav-wrap {
  background: rgba(17, 30, 55, 0.96);
  backdrop-filter: none;
}

.fee-hero {
  padding: 3.15rem 0 1.35rem;
}

.fee-hero .lead {
  max-width: 60ch;
}

.fee-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 1.35rem;
  align-items: start;
  min-width: 0;
}

.fee-layout > * {
  min-width: 0;
}

.fee-calculator-card,
.fee-result-card {
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(18, 31, 51, 0.98), rgba(7, 15, 27, 0.96));
  border-color: rgba(151, 190, 215, 0.32);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.fee-calculator-card {
  position: relative;
  z-index: 5;
}

.fee-panel-title {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.fee-panel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(136, 169, 255, 0.32);
  border-radius: 13px;
  background: rgba(77, 125, 255, 0.17);
  color: #b9d7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fee-panel-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.fee-panel-icon-result {
  color: #9df7db;
  border-color: rgba(137, 240, 209, 0.3);
  background: rgba(137, 240, 209, 0.13);
}

.fee-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 0.42rem;
  margin-bottom: 1.1rem;
  padding: 0.34rem;
  border: 1px solid rgba(143, 169, 188, 0.22);
  border-radius: 14px;
  background: rgba(7, 15, 27, 0.76);
}

.fee-mode-tabs button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #b8c8d8;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.fee-mode-tabs .ui-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.fee-mode-tabs button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fee-mode-tabs button:hover,
.fee-mode-tabs button.active {
  color: #f2f7ff;
  border-color: rgba(136, 169, 255, 0.42);
  background: rgba(77, 125, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fee-form {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.fee-form.fee-form-swap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fee-form .transaction-field[hidden] {
  display: none !important;
}

.fee-form .transaction-field.is-hidden {
  display: none !important;
}

.fee-form .transaction-field {
  position: relative;
  gap: 0.48rem;
}

.fee-form .transaction-field > span {
  color: #c4d2e1;
  font-size: 0.78rem;
  font-weight: 800;
}

.fee-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(143, 169, 188, 0.3);
  border-radius: 14px;
  background: rgba(7, 15, 27, 0.82);
  color: #f2f7ff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 0 0.95rem;
  outline: 0;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.fee-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fee-form input:hover {
  border-color: rgba(136, 169, 255, 0.44);
  background-color: rgba(12, 22, 36, 0.92);
}

.fee-form input:focus {
  border-color: rgba(136, 169, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(136, 169, 255, 0.15);
}

.fee-select {
  position: relative;
  z-index: 2;
}

.fee-select.open {
  z-index: 30;
}

.fee-select-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(143, 169, 188, 0.3);
  border-radius: 14px;
  background: rgba(7, 15, 27, 0.82);
  color: #f2f7ff;
  font: inherit;
  cursor: pointer;
  padding: 0.44rem 0.72rem 0.44rem 0.52rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.fee-select-button:hover,
.fee-select.open .fee-select-button {
  border-color: rgba(136, 169, 255, 0.56);
  background: rgba(11, 24, 41, 0.95);
}

.fee-select-button:focus-visible {
  outline: 0;
  border-color: rgba(136, 169, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(136, 169, 255, 0.16);
}

.fee-select-button-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  flex: 1;
}

.fee-select-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(136, 169, 255, 0.28);
  border-radius: 10px;
  background: rgba(77, 125, 255, 0.12);
  color: #c9dcff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
}

.fee-select-icon .ui-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.fee-select-copy {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
  text-align: left;
}

.fee-select-copy strong {
  max-width: 100%;
  color: #f2f7ff;
  font-size: 0.92rem;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fee-select-copy small {
  color: #8fa5bf;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fee-select-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #c4d2e1;
  border-bottom: 2px solid #c4d2e1;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.fee-select.open .fee-select-caret {
  transform: rotate(225deg) translateY(-1px);
}

.fee-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.42rem);
  z-index: 40;
  max-height: 184px;
  overflow-y: auto;
  border: 1px solid rgba(136, 169, 255, 0.38);
  border-radius: 14px;
  background: rgb(12, 22, 36);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  padding: 0.34rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px) scale(0.98);
  transform-origin: top;
  transition: opacity 0.12s ease, transform 0.12s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 169, 255, 0.45) rgba(10, 18, 30, 0.8);
}

.fee-select-menu::-webkit-scrollbar {
  width: 8px;
}

.fee-select-menu::-webkit-scrollbar-track {
  background: rgba(10, 18, 30, 0.82);
  border-radius: 999px;
}

.fee-select-menu::-webkit-scrollbar-thumb {
  background: rgba(136, 169, 255, 0.42);
  border: 2px solid rgba(10, 18, 30, 0.82);
  border-radius: 999px;
}

.fee-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 169, 255, 0.62);
}

.fee-select.open .fee-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fee-select-menu button {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #dce8f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.42rem;
  font: inherit;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.fee-select-menu button:hover,
.fee-select-menu button[aria-selected="true"] {
  border-color: rgba(136, 169, 255, 0.3);
  background: rgba(77, 125, 255, 0.16);
}

.fee-select.disabled .fee-select-button {
  cursor: not-allowed;
  color: #9aaabc;
  border-color: rgba(143, 169, 188, 0.16);
  background: rgba(10, 18, 30, 0.55);
}

.fee-validation {
  position: relative;
  z-index: 1;
  margin: 1.05rem 0 0;
  min-height: 50px;
  border: 1px solid rgba(143, 169, 188, 0.2);
  border-radius: 14px;
  background: rgba(20, 32, 52, 0.68);
  color: #c7d8ea;
  padding: 0.78rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.fee-validation[data-state="valid"] {
  border-color: rgba(112, 205, 255, 0.38);
  color: #dcf5ff;
}

.fee-validation[data-state="warning"] {
  border-color: rgba(255, 204, 122, 0.42);
  color: #ffe1aa;
}

.fee-validation[data-state="invalid"] {
  border-color: rgba(255, 108, 122, 0.42);
  color: #ffd8de;
}

.status-pill[data-status="valid"] {
  border-color: rgba(112, 205, 255, 0.5);
  background: rgba(64, 152, 218, 0.2);
}

.status-pill[data-status="warning"] {
  border-color: rgba(255, 204, 122, 0.46);
  background: rgba(255, 204, 122, 0.14);
  color: #ffe1aa;
}

.status-pill[data-status="invalid"] {
  border-color: rgba(255, 108, 122, 0.48);
  background: rgba(255, 108, 122, 0.14);
  color: #ffd8de;
}

.fee-result-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
}

.fee-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 125, 255, 0), rgba(137, 240, 209, 0.72), rgba(99, 194, 255, 0));
}

.fee-result-top {
  position: relative;
  display: grid;
  gap: 0.62rem;
}

.fee-result-top strong {
  display: block;
  margin-top: 0.22rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.fee-result-top p {
  margin: 0;
  color: #b8c8d8;
}

.fee-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.fee-result-box {
  border: 1px solid rgba(143, 169, 188, 0.21);
  border-radius: 14px;
  background: rgba(10, 18, 30, 0.62);
  padding: 1.05rem;
  animation: none;
}

.fee-result-box.highlight {
  border-color: rgba(136, 169, 255, 0.48);
  background: linear-gradient(145deg, rgba(77, 125, 255, 0.22), rgba(20, 32, 52, 0.72));
}

.fee-result-box span {
  display: block;
  color: #aebdd0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fee-result-box strong {
  display: block;
  margin-top: 0.42rem;
  color: #f2f7ff;
  font-size: clamp(1.08rem, 1.65vw, 1.38rem);
  overflow-wrap: anywhere;
}

.fee-small-note {
  margin: 0;
  border: 1px solid rgba(143, 169, 188, 0.17);
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.42);
  color: #aebdd0;
  padding: 0.68rem 0.78rem;
  font-size: 0.86rem;
}

@keyframes fee-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .transcript-page .transcript-layout {
    grid-template-columns: 1fr;
  }

  .transcript-page .transcript-sidebar {
    position: static;
  }

  .transcript-page .transcript-preview {
    min-height: 0;
  }

  .fee-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 860px) {
  .fee-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-form.fee-form-exchange,
  .fee-form.fee-form-swap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-method-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .transcript-page .tool-panel {
    border-radius: 12px;
    padding: 0.9rem;
  }

  .transcript-page .tool-panel h2,
  .transcript-page .transcript-preview h2 {
    font-size: 1.05rem;
  }

  .transcript-page .transcript-search-form .transaction-field > span {
    font-size: 0.78rem;
  }

  .transcript-page .transcript-search-form .transaction-field input {
    min-height: 40px;
    font-size: 0.92rem;
  }

  .transcript-page .transcript-field-help {
    font-size: 0.71rem;
  }

  .transcript-page #transcriptSearchButton {
    min-height: 40px;
    font-size: 0.92rem;
  }

  .fee-form,
  .fee-form.fee-form-exchange,
  .fee-form.fee-form-swap,
  .fee-result-grid {
    grid-template-columns: 1fr;
  }

  .fee-page .fee-hero {
    padding: 2.25rem 0 1.05rem;
  }

  .fee-layout {
    gap: 0.82rem;
    width: 100%;
    max-width: calc(100vw - 1rem);
    overflow: hidden;
  }

  .fee-calculator-card,
  .fee-result-card {
    border-radius: 14px;
    width: 100%;
    max-width: calc(100vw - 1rem);
    min-width: 0;
  }

  .fee-panel-title {
    gap: 0.58rem;
  }

  .fee-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .fee-panel-icon .ui-icon {
    width: 18px;
    height: 18px;
  }

  .fee-mode-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: calc(100vw - 3.5rem);
    gap: 0.24rem;
    padding: 0.24rem;
    border-radius: 12px;
  }

  .fee-mode-tabs button,
  .fee-form input,
  .fee-select-button {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .fee-mode-tabs button {
    gap: 0.18rem;
    padding: 0 0.18rem;
    font-size: 0.74rem;
  }

  .fee-mode-tabs .ui-icon {
    width: 13px;
    height: 13px;
  }

  .fee-select-copy small {
    display: none;
  }

  .fee-select-icon {
    width: 30px;
    height: 30px;
  }

  .fee-result-box {
    padding: 0.82rem;
  }

  .fee-page .tool-hero h1 {
    max-width: 11ch;
    font-size: clamp(1.64rem, 7.2vw, 1.95rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .fee-page .tool-hero > div:first-child {
    min-width: 0;
    max-width: 100%;
  }

  .fee-page .tool-hero .lead {
    font-size: 0.94rem;
    max-width: 33ch;
    overflow-wrap: anywhere;
  }

  .fee-page .nav-center {
    gap: 0.2rem;
  }

  .fee-page .nav-link-direct {
    min-width: 0;
    font-size: 0.8rem;
  }

  .fee-page .nav-link-direct span {
    font-size: 0;
  }

  .fee-page .nav-link-direct span::after {
    content: "Guide";
    font-size: 0.8rem;
  }

  .fee-page .fee-calculator-card,
  .fee-page .fee-result-card {
    overflow: hidden;
  }
}

.transcript-preview-head p {
  margin: 0.28rem 0 0;
}

.transcript-message {
  padding: 0.86rem;
}

.transcript-message div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.transcript-message p {
  margin: 0.38rem 0 0;
  color: #dce8f7;
}

.wallet-app {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  grid-template-areas:
    "balance status"
    "summary queue"
    "holds queue"
    "transactions transactions";
  gap: 1rem;
}

.wallet-balance-panel,
.wallet-status-panel,
.wallet-card {
  border: 1px solid rgba(139, 181, 255, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34, 48, 86, 0.92), rgba(18, 31, 56, 0.78)),
    rgba(23, 34, 64, 0.7);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.wallet-balance-panel {
  grid-area: balance;
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: start;
  background:
    radial-gradient(circle at 92% 8%, rgba(137, 240, 209, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(35, 54, 96, 0.95), rgba(16, 25, 53, 0.86));
}

.wallet-status-panel {
  grid-area: status;
}

.wallet-summary-card {
  grid-area: summary;
}

.wallet-holds-card {
  grid-area: holds;
}

.wallet-queue-card {
  grid-area: queue;
}

.wallet-transactions-card {
  grid-area: transactions;
}

.wallet-balance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-balance-top strong {
  display: block;
  margin-top: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.wallet-balance-top span:last-child,
.wallet-action-feedback {
  color: #89f0d1;
  font-size: 0.9rem;
  font-weight: 700;
}

.wallet-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.wallet-value-card {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(137, 240, 209, 0.2);
  border-radius: 14px;
  background: rgba(5, 13, 30, 0.2);
  padding: 0.78rem;
}

.wallet-value-card span {
  color: #aebdd0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-value-card strong {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.wallet-value-card small {
  color: #90a2b8;
  font-size: 0.74rem;
}

.wallet-ops-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.wallet-ops-strip article {
  display: grid;
  gap: 0.24rem;
  border: 1px solid rgba(139, 181, 255, 0.24);
  border-radius: 14px;
  background: rgba(10, 19, 42, 0.34);
  padding: 0.82rem;
}

.wallet-ops-strip span {
  color: #9badc4;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-ops-strip strong {
  font-size: 0.96rem;
}

.status-pill.up {
  border-color: rgba(137, 240, 209, 0.42);
  color: #9df7db;
}

.status-pill.down {
  border-color: rgba(255, 176, 176, 0.34);
  color: #ffb0b0;
  background: rgba(255, 176, 176, 0.1);
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.wallet-actions button,
.wallet-filter-bar button {
  border: 1px solid rgba(139, 181, 255, 0.32);
  border-radius: 12px;
  background: rgba(30, 44, 78, 0.66);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.62rem 0.45rem;
  cursor: pointer;
}

.wallet-actions button:hover,
.wallet-actions button.active,
.wallet-filter-bar button:hover,
.wallet-filter-bar button.active {
  border-color: rgba(137, 240, 209, 0.62);
  background: rgba(45, 76, 92, 0.82);
}

.wallet-action-feedback {
  margin: 0.72rem 0 0;
}

.wallet-status-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.wallet-status-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgba(149, 128, 255, 0.24);
  border-radius: 14px;
  background: rgba(30, 44, 78, 0.52);
  padding: 0.76rem;
}

.wallet-status-list span,
.wallet-hold span,
.wallet-queue-item span,
.wallet-transaction span {
  color: #aebdd0;
  font-size: 0.82rem;
}

.wallet-hold-list,
.wallet-queue-list,
.wallet-transactions-card .tool-list {
  display: grid;
  gap: 0.66rem;
}

.wallet-hold,
.wallet-queue-item,
.wallet-transaction {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(149, 128, 255, 0.24);
  border-radius: 14px;
  background: rgba(30, 44, 78, 0.56);
  padding: 0.82rem;
}

.wallet-hold {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wallet-queue-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wallet-transaction {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.wallet-hold div,
.wallet-queue-item div,
.wallet-transaction div:not(.wallet-token-mark) {
  display: grid;
  gap: 0.12rem;
}

.wallet-hold div:last-child,
.wallet-queue-item div:last-child,
.wallet-transaction div:last-child {
  text-align: right;
}

.wallet-token-mark {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #061320;
  background: linear-gradient(135deg, #89f0d1, #f3c66b);
  font-size: 0.78rem;
  font-weight: 800;
}

.wallet-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wallet-filter-bar button {
  padding: 0.45rem 0.58rem;
}

.wallet-dashboard-page {
  --wallet-bg: #080d13;
  --wallet-rail: #0d131b;
  --wallet-panel: #141a22;
  --wallet-panel-2: #101720;
  --wallet-line: rgba(205, 214, 224, 0.14);
  --wallet-text: #f5f7fa;
  --wallet-muted: #9aa7b5;
  --wallet-accent: #88a9ff;
  --wallet-accent-2: #88a9ff;
  --wallet-warm: #88a9ff;
  background: var(--wallet-bg);
  color: var(--wallet-text);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

.wallet-dashboard-page .site-bg,
.wallet-dashboard-page .top-nav,
.wallet-dashboard-page .footer {
  display: none;
}

.wallet-frame {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  overflow-x: hidden;
  background: var(--wallet-bg);
  transition: grid-template-columns 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-sidebar-hidden .wallet-frame {
  grid-template-columns: 0 minmax(0, 1fr);
}

.wallet-sidebar-hidden .wallet-side {
  border-right-color: transparent;
  opacity: 0;
  padding-inline: 0;
  pointer-events: none;
  transform: translateX(-18px);
  visibility: hidden;
}

.wallet-side {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  border-right: 1px solid rgba(143, 169, 188, 0.14);
  overflow: hidden;
  background: var(--wallet-rail);
  padding: 1.25rem 0.85rem;
  transform: translateX(0);
  transition:
    opacity 220ms ease,
    padding 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 260ms;
  will-change: transform, opacity;
}

.wallet-side-brand,
.wallet-side-nav a,
.wallet-side-bottom a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wallet-text);
  text-decoration: none;
}

.wallet-side-brand {
  border-bottom: 1px solid rgba(143, 169, 188, 0.16);
  padding: 0 0.7rem 1rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-dashboard-page .ui-icon {
  stroke: currentColor;
}

.wallet-side-nav {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.12rem;
  scrollbar-color: rgba(136, 169, 255, 0.38) transparent;
  scrollbar-width: thin;
}

.wallet-side-nav::-webkit-scrollbar {
  width: 6px;
}

.wallet-side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-side-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(136, 169, 255, 0.3);
}

.wallet-side-nav a,
.wallet-side-bottom a {
  position: relative;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.48rem 0.72rem;
  color: #d8e3ec;
  font-size: 0.9rem;
  font-weight: 750;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.wallet-side-nav a:hover,
.wallet-side-nav a.active,
.wallet-side-bottom a:hover {
  background: rgba(136, 169, 255, 0.12);
  border-color: rgba(136, 169, 255, 0.18);
  color: #f9fdff;
}

.wallet-side-nav a:hover,
.wallet-side-bottom a:hover {
  transform: translateX(2px);
}

.wallet-side-nav a.active {
  background: rgba(136, 169, 255, 0.16);
  box-shadow: inset 3px 0 0 var(--wallet-accent-2), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.wallet-side-bottom {
  display: grid;
  gap: 0.18rem;
  border-top: 1px solid rgba(143, 169, 188, 0.16);
  padding-top: 0.8rem;
}

.wallet-side-bottom > span {
  color: var(--wallet-muted);
  font-size: 0.84rem;
  padding: 0.35rem 0.75rem 0;
}

.wallet-main {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding: 1.4rem clamp(1rem, 2.2vw, 2rem) 2.4rem;
}

.wallet-topbar,
.wallet-topbar-title,
.wallet-topbar-actions,
.wallet-mini-pills,
.wallet-table-head {
  display: flex;
  align-items: center;
}

.wallet-topbar {
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  border: 1px solid rgba(143, 169, 188, 0.14);
  border-radius: 16px;
  background: rgba(20, 20, 22, 0.72);
  padding: 0.45rem;
  backdrop-filter: blur(14px);
}

.wallet-topbar-title {
  gap: 0.9rem;
  padding-left: 0.7rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-topbar-title::before {
  display: none;
}

.wallet-topbar-actions {
  gap: 0.7rem;
}

.wallet-icon-button,
.wallet-sidebar-toggle,
.wallet-currency-toggle,
.wallet-currency-toggle button,
.wallet-quick-actions button {
  border: 1px solid rgba(143, 169, 188, 0.24);
  border-radius: 12px;
  background: rgba(30, 30, 34, 0.94);
  color: var(--wallet-text);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.wallet-sidebar-toggle {
  position: relative;
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.wallet-sidebar-toggle::after {
  content: "";
  position: absolute;
  right: -0.55rem;
  width: 1px;
  height: 20px;
  background: var(--wallet-line);
}

.wallet-sidebar-toggle .ui-icon {
  width: 17px;
  height: 17px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-sidebar-toggle:active {
  transform: scale(0.96);
}

.wallet-sidebar-hidden .wallet-sidebar-toggle .ui-icon {
  transform: rotate(180deg);
}

.wallet-icon-button {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wallet-icon-button .ui-icon {
  width: 16px;
  height: 16px;
}

.wallet-icon-button.is-loading .ui-icon {
  animation: wallet-spin 0.8s linear infinite;
}

.wallet-currency-toggle {
  min-height: 40px;
  display: inline-flex;
  gap: 0.22rem;
  padding: 0.22rem;
}

.wallet-currency-toggle button {
  min-width: 54px;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #bbb7af;
  cursor: pointer;
  font-size: 0.82rem;
}

.wallet-currency-toggle button:hover,
.wallet-currency-toggle button.active {
  background: var(--wallet-accent);
  color: #0d1117;
}

.wallet-page-head {
  margin-top: 1.9rem;
}

.wallet-page-head h1,
.wallet-table-head h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.wallet-page-head p,
.wallet-table-head p,
.wallet-panel-head small {
  margin: 0.25rem 0 0;
  color: var(--wallet-muted);
  font-size: 0.88rem;
}

.wallet-overview-card,
.wallet-panel,
.wallet-table-card {
  border: 1px solid var(--wallet-line);
  border-radius: 18px;
  background: var(--wallet-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.wallet-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(320px, 1fr);
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.45rem;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.wallet-total > span,
.wallet-panel-head > span {
  display: block;
  color: #b9c8d6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wallet-total {
  position: relative;
  z-index: 1;
}

.wallet-total > strong {
  display: block;
  margin-top: 0.2rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.wallet-mini-pills {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.wallet-mini-pills span {
  border: 1px solid rgba(143, 169, 188, 0.14);
  border-radius: 999px;
  background: rgba(7, 12, 17, 0.42);
  color: #a7b6c4;
  padding: 0.24rem 0.62rem;
  font-size: 0.76rem;
}

.wallet-mini-pills strong {
  color: #ffffff;
}

.wallet-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.wallet-asset-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(143, 169, 188, 0.18);
  border-radius: 16px;
  background: var(--wallet-panel-2);
  padding: 1.15rem;
}

.wallet-asset-card span:not(.wallet-dot) {
  color: #bccbda;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wallet-asset-card strong {
  display: block;
  margin-top: 0.15rem;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.03em;
}

.wallet-dot {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #a8b8d8;
  box-shadow: 0 0 0 5px rgba(168, 184, 216, 0.08);
}

.wallet-dot.teal {
  background: var(--wallet-accent-2);
  box-shadow: 0 0 0 5px rgba(136, 169, 255, 0.12);
}

.wallet-dot.blue {
  background: #d8dce3;
  box-shadow: 0 0 0 5px rgba(216, 220, 227, 0.1);
}

.wallet-dot.silver {
  width: 14px;
  background: var(--wallet-accent);
  box-shadow: 0 0 0 6px rgba(138, 164, 200, 0.12);
}

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

.wallet-panel {
  min-height: 252px;
  padding: 1.35rem;
}

.wallet-price-list,
.wallet-quick-actions {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.wallet-price-list {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.wallet-price-list article {
  display: grid;
  gap: 0.48rem;
  border: 1px solid rgba(143, 169, 188, 0.12);
  border-radius: 14px;
  background: rgba(7, 12, 17, 0.34);
  padding: 0.9rem;
}

.wallet-price-list span {
  color: #adbdcc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.wallet-price-list strong {
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.04em;
}

.wallet-quick-actions button {
  min-height: 42px;
  cursor: pointer;
}

.wallet-quick-actions button:hover,
.wallet-sidebar-toggle:hover,
.wallet-icon-button:hover {
  border-color: rgba(136, 169, 255, 0.5);
  background: rgba(136, 169, 255, 0.12);
}

.wallet-quick-actions button:disabled,
.wallet-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wallet-address-line {
  display: block;
  margin-top: 0.9rem;
  color: #cfefff;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.wallet-address-line:empty {
  display: none;
}

.wallet-table-card {
  margin-top: 1.1rem;
  overflow: hidden;
  border-color: rgba(205, 214, 224, 0.22);
}

.wallet-table-head {
  justify-content: space-between;
  gap: 1rem;
  min-height: 104px;
  padding: 1.45rem 1.55rem 1.35rem;
}

.wallet-table-wrap {
  width: 100%;
  overflow-x: visible;
  border-top: 1px solid rgba(143, 169, 188, 0.14);
}

.wallet-table-card table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.wallet-table-card th,
.wallet-table-card td {
  border-bottom: 1px solid rgba(143, 169, 188, 0.11);
  padding: 1rem 1.55rem;
  text-align: left;
  color: #c8d4df;
  font-size: 0.88rem;
  vertical-align: middle;
}

.wallet-table-card th {
  color: #ccd7e2;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.wallet-table-card td.positive {
  color: #00e68a;
  font-weight: 800;
}

.wallet-table-card td.negative {
  color: #ff5969;
  font-weight: 800;
}

.wallet-flow,
.wallet-status-badge,
.wallet-tx-chip,
.wallet-view-link {
  display: inline-flex;
  align-items: center;
}

.wallet-flow {
  min-height: 28px;
  gap: 0.46rem;
  color: #f3f8ff;
  font-weight: 850;
  border-radius: 999px;
  padding: 0.16rem 0.58rem 0.16rem 0.44rem;
  border: 1px solid rgba(130, 155, 183, 0.24);
  background: rgba(130, 155, 183, 0.1);
  white-space: nowrap;
}

.wallet-flow-arrow {
  width: 1.03rem;
  height: 1.03rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.64rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-type-in .wallet-flow-arrow {
  color: #00f09a;
  background: rgba(0, 230, 138, 0.24);
}

.wallet-type-out .wallet-flow-arrow {
  color: #ff8f9e;
  background: rgba(255, 89, 105, 0.22);
}

.wallet-flow.wallet-type-in {
  border-color: rgba(0, 230, 138, 0.28);
  background: rgba(0, 230, 138, 0.11);
  color: #6afcbf;
}

.wallet-flow.wallet-type-out {
  border-color: rgba(255, 106, 128, 0.28);
  background: rgba(255, 106, 128, 0.11);
  color: #ff9bab;
}

.wallet-amount-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  line-height: 1.15;
}

.wallet-amount-main span {
  border: 1px solid rgba(205, 214, 224, 0.18);
  border-radius: 999px;
  color: #dce4ed;
  font-size: 0.68rem;
  padding: 0.02rem 0.32rem;
}

.wallet-status-badge {
  min-height: 28px;
  gap: 0.42rem;
  border-radius: 999px;
  padding: 0.16rem 0.62rem 0.16rem 0.34rem;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.wallet-status-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-status-badge.received,
.wallet-status-badge.confirmed {
  border: 1px solid rgba(0, 230, 138, 0.28);
  background: rgba(0, 230, 138, 0.14);
  color: #00e68a;
}

.wallet-status-badge.received .wallet-status-icon,
.wallet-status-badge.confirmed .wallet-status-icon {
  background: rgba(0, 230, 138, 0.22);
  color: #00f09a;
}

.wallet-status-badge.sent {
  border: 1px solid rgba(111, 181, 255, 0.3);
  background: rgba(111, 181, 255, 0.14);
  color: #7bc4ff;
}

.wallet-status-badge.sent .wallet-status-icon {
  background: rgba(111, 181, 255, 0.24);
  color: #99d4ff;
}

.wallet-status-badge.processing,
.wallet-status-badge.pending {
  border: 1px solid rgba(247, 190, 77, 0.28);
  background: rgba(247, 190, 77, 0.12);
  color: #f7be4d;
}

.wallet-status-badge.processing .wallet-status-icon,
.wallet-status-badge.pending .wallet-status-icon {
  background: rgba(247, 190, 77, 0.24);
  color: #ffd683;
}

.wallet-status-badge.failed {
  border: 1px solid rgba(255, 89, 105, 0.32);
  background: rgba(255, 89, 105, 0.12);
  color: #ff6b7b;
}

.wallet-status-badge.failed .wallet-status-icon {
  background: rgba(255, 89, 105, 0.24);
  color: #ff8b97;
}

.wallet-tx-chip {
  min-height: 30px;
  max-width: 100%;
  border: 1px solid rgba(205, 214, 224, 0.16);
  border-radius: 10px;
  background: rgba(7, 12, 17, 0.48);
  color: #cad6e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1;
  overflow: hidden;
  padding: 0.26rem 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 30px;
  border: 1px solid rgba(138, 164, 200, 0.26);
  border-radius: 8px;
  background: rgba(138, 164, 200, 0.12);
  color: #d9e5f4;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  padding: 0.22rem 0.62rem;
  white-space: nowrap;
}

.wallet-view-link:hover {
  border-color: rgba(138, 164, 200, 0.46);
  background: rgba(138, 164, 200, 0.18);
  color: #ffffff;
}

.wallet-view-link.wallet-view-link-plain {
  min-width: 78px;
}

.wallet-empty-row {
  text-align: center !important;
  color: #87919f !important;
}

.wallet-text-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid rgba(143, 169, 188, 0.18);
  border-radius: 11px;
  background: rgba(16, 23, 32, 0.82);
  color: #d7e2ee;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 0.82rem;
  transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.wallet-text-button:hover {
  border-color: rgba(136, 169, 255, 0.48);
  background: rgba(136, 169, 255, 0.12);
}

.wallet-text-button:active {
  transform: translateY(1px);
}

.wallet-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.wallet-text-button.is-loading .ui-icon {
  animation: wallet-spin 0.8s linear infinite;
}

.page-enter {
  animation: wallet-page-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wallet-stagger {
  animation: wallet-stagger-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--enter-index, 0) * 70ms + 20ms);
}

.wallet-overview-card,
.wallet-panel,
.wallet-table-card,
.transaction-filter-card,
.transaction-list-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.wallet-overview-card:hover,
.wallet-panel:hover,
.wallet-table-card:hover,
.transaction-filter-card:hover,
.transaction-list-card:hover {
  border-color: rgba(136, 169, 255, 0.24);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.page-enter:nth-of-type(2) {
  animation-delay: 70ms;
}

.transaction-filter-card,
.transaction-list-card {
  border: 1px solid rgba(205, 214, 224, 0.14);
  border-radius: 18px;
  background: var(--wallet-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.transaction-filter-card {
  position: relative;
  z-index: 8;
  overflow: visible;
  margin-top: 1.55rem;
  padding: clamp(1rem, 1.7vw, 1.55rem);
}

.transaction-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.transaction-filter-head > div {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.transaction-filter-head h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  letter-spacing: -0.03em;
}

.transaction-filter-head .ui-icon,
.wallet-text-button .ui-icon,
.wallet-view-link .ui-icon {
  width: 16px;
  height: 16px;
}

.transaction-filters {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) repeat(2, minmax(170px, 1fr)) minmax(180px, 0.9fr);
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.transaction-field {
  min-width: 0;
  display: grid;
  gap: 0.46rem;
}

.transaction-field > span {
  color: #aebbc8;
  font-size: 0.84rem;
  font-weight: 700;
}

.transaction-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(143, 169, 188, 0.22);
  border-radius: 11px;
  background: #101720;
  color: var(--wallet-text);
  color-scheme: dark;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
  padding: 0 0.82rem;
  transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.transaction-field input[type="date"] {
  cursor: pointer;
  padding-right: 0.55rem;
}

.transaction-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(72%) sepia(12%) saturate(431%) hue-rotate(174deg) brightness(92%) contrast(87%);
  opacity: 0.9;
}

.transaction-field input[type="date"]::-webkit-datetime-edit {
  color: #eef5ff;
}

.transaction-field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.transaction-field input:hover {
  border-color: rgba(136, 169, 255, 0.42);
  background-color: #121b26;
}

.transaction-field input:focus {
  border-color: rgba(136, 169, 255, 0.66);
  box-shadow: 0 0 0 2px rgba(136, 169, 255, 0.14);
}

.transaction-select {
  position: relative;
}

.transaction-select-button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(143, 169, 188, 0.22);
  border-radius: 11px;
  background: #101720;
  color: var(--wallet-text);
  cursor: pointer;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
  padding: 0 0.82rem;
  text-align: left;
  transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.transaction-select-button::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: #9dadbd;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 170ms ease, background-color 170ms ease;
}

.transaction-select.open .transaction-select-button::after {
  transform: rotate(180deg);
}

.transaction-select-button:hover,
.transaction-select.open .transaction-select-button {
  border-color: rgba(136, 169, 255, 0.48);
  background: #121b26;
}

.transaction-select-button:focus-visible {
  border-color: rgba(136, 169, 255, 0.66);
  box-shadow: 0 0 0 2px rgba(136, 169, 255, 0.14);
}

.transaction-select-menu {
  position: absolute;
  inset: calc(100% + 0.34rem) 0 auto 0;
  z-index: 25;
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(143, 169, 188, 0.24);
  border-radius: 12px;
  background: #0e151f;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  padding: 0.28rem;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top;
  transition: opacity 160ms ease, transform 160ms ease;
}

.transaction-select.open .transaction-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.transaction-select-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e8f0f9;
  cursor: pointer;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 0.72rem;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.transaction-select-menu button:hover,
.transaction-select-menu button[aria-selected="true"] {
  background: rgba(136, 169, 255, 0.16);
  color: #ffffff;
}

.transaction-list-card {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  overflow: hidden;
  padding: 1.45rem;
}

.transaction-list-card > p {
  margin: 0 0 1rem;
  color: #b7c4d0;
  font-size: 0.9rem;
}

.transaction-table-wrap {
  overflow-x: visible;
  border: 1px solid rgba(143, 169, 188, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 21, 31, 0.86), rgba(8, 13, 20, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.transaction-list-card table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.transaction-list-card th,
.transaction-list-card td {
  border-bottom: 1px solid rgba(143, 169, 188, 0.11);
  padding: 1rem 0.78rem;
  text-align: left;
  color: #c8d4df;
  font-size: 0.86rem;
  vertical-align: middle;
}

.transaction-list-card th {
  color: #ccd9e6;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: rgba(109, 142, 191, 0.07);
}

.transaction-list-card tr {
  animation: wallet-row-enter 240ms ease both;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.transaction-list-card tbody tr:hover {
  background: rgba(136, 169, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(136, 169, 255, 0.1), inset 0 -1px 0 rgba(136, 169, 255, 0.1);
}

.transaction-list-card tr:last-child td {
  border-bottom: 0;
}

.transaction-list-card th:nth-child(1),
.transaction-list-card td:nth-child(1) {
  width: 24%;
}

.transaction-list-card th:nth-child(2),
.transaction-list-card td:nth-child(2),
.transaction-list-card th:nth-child(3),
.transaction-list-card td:nth-child(3) {
  width: 12%;
}

.transaction-list-card th:nth-child(4),
.transaction-list-card td:nth-child(4),
.transaction-list-card th:nth-child(5),
.transaction-list-card td:nth-child(5) {
  width: 13%;
}

.transaction-list-card th:nth-child(6),
.transaction-list-card td:nth-child(6) {
  width: 15%;
}

.transaction-list-card th:nth-child(7),
.transaction-list-card td:nth-child(7) {
  width: 11%;
}

.transaction-list-card .wallet-tx-cell {
  min-width: 0;
}

.wallet-type-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 0.16rem 0.58rem 0.16rem 0.44rem;
  white-space: nowrap;
}

.wallet-type-pill.wallet-type-in {
  border: 1px solid rgba(0, 230, 138, 0.3);
  background: rgba(0, 230, 138, 0.11);
  color: #6afcbf;
}

.wallet-type-pill.wallet-type-out {
  border: 1px solid rgba(255, 106, 128, 0.32);
  background: rgba(255, 106, 128, 0.11);
  color: #ff9bab;
}

.wallet-type-pill > span[aria-hidden="true"] {
  width: 1.03rem;
  height: 1.03rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.64rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-type-pill.wallet-type-in > span[aria-hidden="true"] {
  background: rgba(0, 230, 138, 0.22);
  color: #00f09a;
}

.wallet-type-pill.wallet-type-out > span[aria-hidden="true"] {
  background: rgba(255, 106, 128, 0.22);
  color: #ff9bab;
}

.wallet-ltc-amount {
  color: #eef5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
}

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

@keyframes wallet-page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wallet-stagger-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wallet-row-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3.2rem;
  }

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

  .cards,
  .steps,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .about-trust {
    grid-template-columns: 1fr;
  }

  .terms-tags,
  .terms-grid,
  .rules-grid,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

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

  .capability-grid,
  .story-grid,
  .about-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.65rem;
  }

  .nav-center,
  .nav-right {
    justify-self: stretch;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .faq-answer,
  .plus,
  .wallet-frame,
  .wallet-side,
  .wallet-sidebar-toggle,
  .wallet-sidebar-toggle .ui-icon,
  .wallet-dashboard-page::before,
  .page-enter,
  .wallet-stagger,
  .transaction-list-card tr,
  .fee-result-box {
    animation: none;
    transition: none;
  }
}

/* Homepage cleanup and spacing system */
.home-page {
  --home-surface: rgba(31, 44, 76, 0.86);
  --home-surface-soft: rgba(34, 49, 83, 0.78);
  --home-border: rgba(139, 181, 255, 0.34);
}

.home-page .site-bg .grid {
  opacity: 0.55;
}

.home-page .orb-a {
  opacity: 0.42;
}

.home-page .orb-b {
  opacity: 0.34;
}

.home-page .shell {
  width: min(1180px, calc(100% - 2.4rem));
}

.home-page .top-nav {
  padding: 1.15rem 0 0.5rem;
}

.home-page .nav-wrap {
  border-radius: 18px;
  padding: 0.68rem 0.9rem;
}

.home-page .home-main {
  display: grid;
  gap: clamp(2.8rem, 5.2vw, 4.8rem);
  padding-top: 0.85rem;
}

.home-page .hero {
  padding: 2.35rem 0 0.2rem;
  gap: clamp(1.75rem, 3.9vw, 3.1rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
}

.home-page .hero-copy {
  display: grid;
  gap: 1.1rem;
}

.home-page .hero h1 {
  margin: 0.3rem 0 0.45rem;
  font-size: clamp(2.15rem, 4.2vw, 3.8rem);
}

.home-page .lead {
  max-width: 60ch;
  line-height: 1.76;
}

.home-page .hero-actions {
  margin-top: 0.2rem;
}

.home-page .social-proof {
  margin-top: 0.1rem;
}

.home-page .hero-card {
  display: grid;
  gap: 0.82rem;
  padding: 1.4rem;
  background: var(--home-surface);
  border-color: var(--home-border);
}

.home-page .hero-card h2 {
  margin-bottom: 0;
}

.home-page .chat-row {
  margin-top: 0;
  padding: 0.95rem;
  background: rgba(11, 16, 32, 0.88);
}

.home-page .stats {
  margin-top: 0;
  gap: 1.1rem;
}

.home-page .stat-card {
  background: var(--home-surface-soft);
  border-color: var(--home-border);
  padding: 1.2rem 1rem;
}

.home-page .section {
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.home-page .section-head {
  margin-bottom: 0;
  max-width: 700px;
}

.home-page .cards,
.home-page .steps,
.home-page .faq-list {
  margin-top: 0;
  gap: 1.1rem;
}

.home-page .feature-card,
.home-page .step,
.home-page .faq-item {
  background: var(--home-surface-soft);
  border-color: var(--home-border);
}

.home-page .feature-card,
.home-page .step {
  padding: 1.34rem;
}

.home-page .step h3 {
  margin-top: 0.75rem;
}

.home-page .faq-item {
  gap: 0.62rem 1.05rem;
  padding: 1.1rem 1.08rem 1.02rem;
}

.home-page .faq-item .plus {
  width: 30px;
  height: 30px;
}

.home-page .faq-answer {
  grid-column: 1 / -1;
}

.home-page .cta {
  margin: 0.35rem auto 3.8rem;
  padding: 2.5rem 1.3rem;
  border-color: rgba(149, 128, 255, 0.42);
}

.home-page .footer {
  padding: 1.25rem 0 2rem;
}

@media (max-width: 960px) {
  .home-page .shell {
    width: min(1180px, calc(100% - 1.6rem));
  }

  .home-page .home-main {
    gap: 2.25rem;
  }

  .home-page .hero {
    padding-top: 1.6rem;
    gap: 1.45rem;
  }

  .home-page .section {
    gap: 0.95rem;
  }
}

@media (max-width: 620px) {
  .home-page .home-main {
    gap: 1.9rem;
    padding-top: 0.45rem;
  }

  .home-page .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.2rem;
    gap: 1rem;
  }

  .home-page .hero-copy {
    gap: 0.95rem;
  }

  .home-page .hero h1 {
    font-size: clamp(2rem, 11vw, 2.85rem);
    line-height: 1.08;
  }

  .home-page .hero-card {
    width: 100%;
    max-width: 100%;
  }

  .home-page .stats,
  .home-page .cards,
  .home-page .steps,
  .home-page .faq-list {
    gap: 0.88rem;
  }

  .home-page .hero-card,
  .home-page .feature-card,
  .home-page .step,
  .home-page .faq-item {
    border-radius: 14px;
  }

  .home-page .cta {
    margin-bottom: 2.8rem;
    padding: 2.02rem 1rem;
  }
}

/* Other pages cleanup and spacing */
.about-page .shell,
.terms-page .shell,
.guide-page .shell,
.policy-page .shell {
  width: min(1180px, calc(100% - 2.4rem));
}

.about-page .top-nav,
.terms-page .top-nav,
.guide-page .top-nav,
.policy-page .top-nav {
  padding: 1.1rem 0 0.45rem;
}

.about-page .nav-wrap,
.terms-page .nav-wrap,
.guide-page .nav-wrap,
.policy-page .nav-wrap {
  border-radius: 18px;
  padding: 0.68rem 0.9rem;
}

.about-page .about-main,
.terms-page .terms-main,
.guide-page .guide-main,
.policy-page .policy-main-v3 {
  padding-top: 0.8rem;
  display: grid;
  gap: clamp(1.8rem, 3.8vw, 3rem);
}

.about-page .section,
.terms-page .section,
.guide-page .section {
  padding: 0;
}

.about-page .about-hero,
.terms-page .terms-hero,
.guide-page .guide-hero {
  padding: 1.6rem 0 0;
}

.about-page .about-trust,
.terms-page .terms-tags {
  margin-bottom: 0;
  gap: 0.9rem;
}

.about-page .about-info-grid,
.about-page .capability-grid,
.about-page .story-grid,
.terms-page .terms-grid,
.terms-page .rules-grid,
.terms-page .highlights-grid,
.guide-page .guide-rules-grid,
.guide-page .guide-split,
.guide-page .guide-steps-grid,
.guide-page .guide-commands {
  gap: 1rem;
}

.about-page .about-info-card,
.about-page .capability-card,
.about-page .story-card,
.about-page .quote-block,
.terms-page .notice-card,
.terms-page .terms-card,
.terms-page .rule-card,
.terms-page .highlight-card,
.guide-page .guide-meta-card,
.guide-page .guide-callout,
.guide-page .guide-rule-card,
.guide-page .guide-panel,
.guide-page .guide-step,
.guide-page .guide-command {
  border-radius: 16px;
  padding: 1.12rem;
  background: rgba(33, 47, 82, 0.75);
  border-color: rgba(139, 181, 255, 0.34);
}

.about-page .about-info-card p,
.about-page .capability-card p,
.about-page .story-card p,
.terms-page .terms-card li,
.terms-page .rule-card p,
.terms-page .highlight-card li,
.guide-page .guide-rule-card p,
.guide-page .guide-panel p,
.guide-page .guide-panel li,
.guide-page .guide-step p,
.guide-page .guide-command p {
  line-height: 1.6;
}

.about-page .inline-list {
  gap: 0.85rem;
}

.about-page .mini-feature-card {
  padding: 0.86rem 0.72rem;
}

.terms-page .terms-card {
  padding: 1.18rem 1.15rem;
}

.terms-page .terms-card ul,
.terms-page .highlight-card ul {
  gap: 0.58rem;
}

.terms-page .rule-card {
  padding: 0.95rem 0.9rem;
}

.guide-page .guide-rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-page .guide-callout h2 {
  line-height: 1.3;
}

.guide-page .guide-command code {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(121, 144, 210, 0.35);
  background: rgba(22, 30, 61, 0.72);
}

.policy-page .policy-main-v3 .policy-v3-hero {
  padding: 1.6rem 0 0;
  gap: 1.15rem;
}

.policy-page .policy-main-v3 .policy-v3-layout {
  gap: 1.2rem;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
}

.policy-page .policy-main-v3 .policy-v3-content {
  display: grid;
  gap: 1rem;
}

.policy-page .policy-main-v3 .policy-v3-section {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(61, 102, 168, 0.35);
  background: rgba(8, 22, 45, 0.6);
}

.policy-page .policy-main-v3 .policy-v3-section header {
  margin-bottom: 0.85rem;
}

.policy-page .policy-main-v3 .policy-rule-card {
  gap: 0.82rem;
  padding: 0.82rem 0.94rem;
}

.policy-page .policy-main-v3 .policy-rule-card h3 {
  font-size: 1.03rem;
}

.policy-page .policy-main-v3 .policy-rule-card p {
  line-height: 1.56;
}

.policy-page .policy-main-v3 .policy-v3-end {
  margin-top: 0;
}

@media (max-width: 960px) {
  .about-page .shell,
  .terms-page .shell,
  .guide-page .shell,
  .policy-page .shell {
    width: min(1180px, calc(100% - 1.6rem));
  }

  .about-page .about-main,
  .terms-page .terms-main,
  .guide-page .guide-main,
  .policy-page .policy-main-v3 {
    gap: 1.9rem;
  }

  .about-page .about-trust,
  .terms-page .terms-tags,
  .guide-page .guide-rules-grid,
  .terms-page .rules-grid,
  .terms-page .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .about-page .about-main,
  .terms-page .terms-main,
  .guide-page .guide-main,
  .policy-page .policy-main-v3 {
    gap: 1.6rem;
    padding-top: 0.5rem;
  }

  .about-page .about-hero,
  .terms-page .terms-hero,
  .guide-page .guide-hero,
  .policy-page .policy-main-v3 .policy-v3-hero {
    padding-top: 1.1rem;
  }

  .about-page .about-info-card,
  .about-page .capability-card,
  .about-page .story-card,
  .terms-page .notice-card,
  .terms-page .terms-card,
  .terms-page .rule-card,
  .terms-page .highlight-card,
  .guide-page .guide-meta-card,
  .guide-page .guide-callout,
  .guide-page .guide-rule-card,
  .guide-page .guide-panel,
  .guide-page .guide-step,
  .guide-page .guide-command,
  .policy-page .policy-main-v3 .policy-v3-section,
  .policy-page .policy-main-v3 .policy-rule-card {
    border-radius: 14px;
  }
}

/* Exchanger policies v2 layout */
.policy-main {
  padding-top: 1rem;
}

.policy-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
}

.policy-back-link {
  display: inline-block;
  color: #c4d5ee;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.policy-back-link:hover {
  color: #e3eeff;
}

.side-card {
  padding: 0;
  background: transparent;
}

.side-card + .side-card {
  border-top: 1px solid rgba(101, 128, 178, 0.25);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.side-label {
  margin: 0;
  color: #7f93b1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
}

.side-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.side-list li {
  display: flex;
  align-items: center;
  color: #aebfd7;
  font-size: 1rem;
}

.side-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: inherit;
  text-decoration: none;
}

.side-list a:hover {
  color: #d8e8ff;
}

.side-list .dot {
  margin-right: 0.62rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot.critical {
  background: #ff495f;
}

.dot.important {
  background: #ffb117;
}

.dot.standard {
  background: #3d8dff;
}

.policy-layout-main {
  min-width: 0;
}

.policy-toolbar {
  margin-bottom: 0.45rem;
}

.policy-toolbar input {
  width: 100%;
  border: 1px solid rgba(73, 120, 192, 0.75);
  border-radius: 14px;
  padding: 0.88rem 1rem;
  background: rgba(11, 21, 43, 0.9);
  color: #d8e7fc;
  font-size: 1.02rem;
}

.policy-results {
  margin: 0 0 1rem;
  color: #8ea5c4;
  font-size: 0.95rem;
}

.policy-group.section {
  padding: 1.35rem 0 0;
}

.policy-group .section-head {
  margin-bottom: 0.9rem;
}

.policy-group .section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.2rem 0 0;
  color: #f2f6ff;
  font-size: clamp(1.38rem, 2.3vw, 2rem);
}

.group-badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.group-badge.critical {
  color: #ffafbb;
  border-color: rgba(255, 111, 132, 0.48);
  background: rgba(97, 20, 35, 0.42);
}

.group-badge.important {
  color: #ffd592;
  border-color: rgba(255, 186, 90, 0.46);
  background: rgba(95, 55, 17, 0.38);
}

.group-badge.standard {
  color: #a8cbff;
  border-color: rgba(110, 163, 255, 0.45);
  background: rgba(30, 61, 114, 0.36);
}

.policy-group .lead {
  max-width: none;
  color: #9ab1cf;
}

.policy-rules-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.policy-rule-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(49, 78, 125, 0.72);
  border-radius: 14px;
  background: rgba(13, 28, 55, 0.78);
  padding: 0.72rem 0.9rem;
}

.policy-rule-card .rule-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.03rem;
  font-weight: 700;
  border: 1px solid rgba(255, 99, 120, 0.42);
  color: #ffc3cc;
  background: rgba(64, 26, 42, 0.42);
}

.policy-rule-card.standard .rule-num {
  border-color: rgba(93, 156, 255, 0.45);
  color: #b7d3ff;
  background: rgba(24, 52, 95, 0.45);
}

.policy-rule-card.important .rule-num {
  border-color: rgba(255, 180, 84, 0.45);
  color: #ffd49b;
  background: rgba(95, 58, 20, 0.4);
}

.policy-rule-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f0f6ff;
  line-height: 1.35;
}

.policy-rule-card .rule-penalty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 91, 113, 0.45);
  background: rgba(89, 16, 31, 0.52);
  color: #ffb9c4;
  border-radius: 10px;
  padding: 0.22rem 0.58rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.policy-rule-card.standard .rule-penalty {
  border-color: rgba(88, 154, 255, 0.5);
  background: rgba(20, 56, 107, 0.5);
  color: #b3d1ff;
}

.policy-rule-card.important .rule-penalty {
  border-color: rgba(255, 182, 83, 0.48);
  background: rgba(100, 60, 17, 0.48);
  color: #ffd7a4;
}

.rule-toggle {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.rule-toggle::before {
  content: "";
  position: absolute;
  inset: 6px 4px 4px 6px;
  border-right: 2px solid #88a2c6;
  border-bottom: 2px solid #88a2c6;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.policy-rule-card.open .rule-toggle::before {
  transform: rotate(-135deg);
  inset: 7px 4px 3px 6px;
}

.policy-rule-card p {
  display: none;
  grid-column: 2 / 5;
  margin: 0.2rem 0 0.1rem;
  color: #a9bed9;
  font-size: 0.93rem;
}

.policy-rule-card.open p {
  display: block;
}

@media (max-width: 1080px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .policy-rule-card {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
  }

  .policy-rule-card .rule-penalty {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 0.15rem;
  }

  .policy-rule-card h3 {
    font-size: 0.98rem;
  }

  .policy-rule-card p {
    grid-column: 1 / 4;
  }
}

/* Fresh exchanger policies design */
.policy-main-v3 {
  padding: 1.2rem 0 3rem;
}

.policy-main-v3 .policy-v3-hero {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: start;
  margin-bottom: 1.2rem;
}

.policy-main-v3 .policy-v3-hero h1 {
  margin: 0.45rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.05;
  max-width: 17ch;
}

.policy-main-v3 .policy-v3-meta {
  display: grid;
  gap: 0.8rem;
}

.policy-main-v3 .policy-v3-meta article {
  border: 1px solid rgba(79, 138, 233, 0.35);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(155deg, rgba(13, 31, 62, 0.9), rgba(8, 23, 49, 0.86));
}

.policy-main-v3 .policy-v3-meta span {
  display: block;
  color: #81b7ff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.policy-main-v3 .policy-v3-meta p {
  margin: 0.32rem 0 0;
  color: #d5e7ff;
  font-size: 0.95rem;
}

.policy-main-v3 .policy-v3-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

.policy-main-v3 .policy-v3-side {
  position: sticky;
  top: 96px;
  align-self: start;
}

.policy-main-v3 .policy-v3-home {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #d6e7ff;
  font-weight: 600;
}

.policy-main-v3 .policy-v3-home:hover {
  color: #ffffff;
}

.policy-main-v3 .policy-v3-panel {
  border: 1px solid rgba(66, 111, 180, 0.3);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(11, 27, 52, 0.9), rgba(9, 20, 40, 0.86));
  padding: 0.92rem;
  margin-bottom: 0.9rem;
}

.policy-main-v3 .policy-v3-panel.compact p {
  margin: 0;
  color: #9db7da;
  font-size: 0.91rem;
  line-height: 1.5;
}

.policy-main-v3 .panel-title {
  margin: 0;
  color: #84a7d4;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.policy-main-v3 .panel-list {
  margin: 0.82rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.policy-main-v3 .panel-list li {
  color: #bdd1ea;
  font-size: 0.95rem;
}

.policy-main-v3 .panel-list a {
  text-decoration: none;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: inherit;
}

.policy-main-v3 .panel-list a:hover {
  color: #f1f7ff;
}

.policy-main-v3 .panel-list.plain li {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.policy-main-v3 .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.policy-main-v3 .dot.critical {
  background: #ff5f70;
}

.policy-main-v3 .dot.important {
  background: #ffbe40;
}

.policy-main-v3 .dot.standard {
  background: #56a4ff;
}

.policy-main-v3 .policy-v3-content {
  min-width: 0;
}

.policy-main-v3 .policy-v3-search input {
  width: 100%;
  border: 1px solid rgba(77, 132, 216, 0.5);
  border-radius: 13px;
  background: rgba(9, 26, 52, 0.82);
  color: #d8e8ff;
  padding: 0.82rem 0.92rem;
  font-size: 1rem;
}

.policy-main-v3 .policy-v3-results {
  margin: 0.45rem 0 0.9rem;
  color: #8ba9cf;
  font-size: 0.9rem;
}

.policy-main-v3 .policy-v3-section {
  margin-bottom: 1.35rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}

.policy-main-v3 .policy-v3-section header {
  margin-bottom: 0.72rem;
}

.policy-main-v3 .policy-v3-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  color: #f2f7ff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-main-v3 .policy-v3-section p {
  margin: 0.36rem 0 0;
  color: #96b0d2;
  font-size: 0.96rem;
}

.policy-main-v3 .group-badge {
  border-radius: 999px;
  font-size: 0.73rem;
  padding: 0.19rem 0.52rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.policy-main-v3 .group-badge.critical {
  color: #ffb0be;
  background: rgba(113, 24, 40, 0.42);
  border-color: rgba(255, 122, 140, 0.5);
}

.policy-main-v3 .group-badge.important {
  color: #ffd99a;
  background: rgba(103, 59, 13, 0.4);
  border-color: rgba(255, 191, 87, 0.45);
}

.policy-main-v3 .group-badge.standard {
  color: #b9d6ff;
  background: rgba(28, 66, 118, 0.42);
  border-color: rgba(100, 160, 255, 0.5);
}

.policy-main-v3 .policy-rules-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

.policy-main-v3 .policy-rule-card {
  border: 1px solid rgba(60, 98, 155, 0.5);
  border-radius: 14px;
  background: rgba(9, 24, 49, 0.86);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 20px;
  gap: 0.72rem;
  align-items: center;
  padding: 0.72rem 0.86rem;
}

.policy-main-v3 .rule-num {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffd2da;
  border: 1px solid rgba(255, 131, 147, 0.45);
  background: rgba(100, 30, 44, 0.34);
}

.policy-main-v3 .policy-rule-card.important .rule-num {
  color: #ffe0ad;
  border-color: rgba(255, 193, 97, 0.5);
  background: rgba(105, 63, 18, 0.35);
}

.policy-main-v3 .policy-rule-card.standard .rule-num {
  color: #c4dbff;
  border-color: rgba(117, 170, 255, 0.55);
  background: rgba(29, 68, 120, 0.38);
}

.policy-main-v3 .policy-rule-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #f4f8ff;
}

.policy-main-v3 .rule-penalty {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 0.2rem 0.56rem;
  font-size: 0.79rem;
  white-space: nowrap;
  color: #ffbecc;
  border: 1px solid rgba(255, 111, 132, 0.45);
  background: rgba(109, 21, 39, 0.4);
}

.policy-main-v3 .policy-rule-card.important .rule-penalty {
  color: #ffd9a4;
  border-color: rgba(255, 191, 92, 0.45);
  background: rgba(104, 61, 12, 0.38);
}

.policy-main-v3 .policy-rule-card.standard .rule-penalty {
  color: #bad7ff;
  border-color: rgba(106, 165, 255, 0.45);
  background: rgba(24, 61, 108, 0.4);
}

.policy-main-v3 .rule-toggle {
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.policy-main-v3 .rule-toggle::before {
  content: "";
  position: absolute;
  inset: 4px 3px 3px 4px;
  border-right: 2px solid #86a5cf;
  border-bottom: 2px solid #86a5cf;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.policy-main-v3 .policy-rule-card.open .rule-toggle::before {
  transform: rotate(-135deg);
  inset: 5px 3px 2px 4px;
}

.policy-main-v3 .policy-rule-card p {
  display: none;
  margin: 0.08rem 0 0;
  color: #9db9dc;
  font-size: 0.9rem;
  line-height: 1.45;
  grid-column: 2 / 5;
}

.policy-main-v3 .policy-rule-card.open p {
  display: block;
}

.policy-main-v3 .policy-v3-end {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-main-v3 .policy-v3-note {
  border-radius: 14px;
  border: 1px solid rgba(69, 114, 181, 0.4);
  padding: 0.9rem;
  background: rgba(10, 27, 52, 0.78);
}

.policy-main-v3 .policy-v3-note h3 {
  margin: 0;
  font-size: 1rem;
}

.policy-main-v3 .policy-v3-note p {
  margin: 0.4rem 0 0;
  color: #adc2de;
  font-size: 0.9rem;
}

.policy-main-v3 .policy-v3-note.danger {
  border-color: rgba(255, 125, 142, 0.45);
}

.policy-main-v3 .policy-v3-note.safe {
  border-color: rgba(117, 177, 255, 0.45);
}

@media (max-width: 1080px) {
  .policy-main-v3 .policy-v3-hero {
    grid-template-columns: 1fr;
  }

  .policy-main-v3 .policy-v3-layout {
    grid-template-columns: 1fr;
  }

  .policy-main-v3 .policy-v3-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .policy-main-v3 .policy-rule-card {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .policy-main-v3 .rule-penalty {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 0.1rem;
  }

  .policy-main-v3 .policy-rule-card p {
    grid-column: 1 / 4;
  }

  .policy-main-v3 .policy-v3-end {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .policy-main-v3 .policy-v3-hero h1 {
    max-width: 100%;
  }

  .policy-main-v3 .policy-v3-panel {
    padding: 0.78rem;
  }

  .policy-main-v3 .panel-list li {
    font-size: 0.89rem;
  }

  .policy-main-v3 .policy-rule-card {
    padding: 0.66rem 0.72rem;
    gap: 0.56rem;
  }

  .policy-main-v3 .policy-rule-card h3 {
    font-size: 0.93rem;
  }
}

/* Exchanger Guide */
.guide-main {
  padding-top: 1rem;
}

.guide-hero {
  padding: 2.8rem 0 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.92fr;
  align-items: start;
}

.guide-hero h1 {
  margin: 0.55rem 0 0.72rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.95rem, 4.15vw, 3.4rem);
  line-height: 1.05;
  max-width: 18ch;
}

.guide-meta {
  display: grid;
  gap: 0.7rem;
}

.guide-meta-card {
  border: 1px solid rgba(109, 146, 228, 0.35);
  border-radius: 14px;
  background: rgba(17, 24, 53, 0.8);
  padding: 0.78rem 0.88rem;
}

.guide-meta-card h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.98rem;
}

.guide-meta-card p {
  margin: 0.42rem 0 0;
  color: #b6c7de;
  font-size: 0.9rem;
}

.guide-callout {
  border: 1px solid rgba(255, 108, 122, 0.6);
  border-radius: var(--radius);
  padding: 1.02rem;
  background: linear-gradient(150deg, rgba(88, 20, 30, 0.78), rgba(48, 14, 21, 0.82));
}

.guide-callout h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
}

.guide-callout p {
  margin: 0.58rem 0 0;
  color: #ffd1d8;
}

.guide-callout a {
  color: #ffdfe4;
  font-weight: 700;
}

.guide-rules-grid {
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.guide-rule-card {
  border: 1px solid rgba(139, 155, 210, 0.3);
  border-radius: 14px;
  background: rgba(15, 21, 46, 0.76);
  padding: 0.88rem;
}

.guide-rule-card h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}

.guide-rule-card p {
  margin: 0.45rem 0 0;
  color: #b8c7dd;
  font-size: 0.9rem;
}

.guide-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.guide-panel {
  border: 1px solid rgba(120, 139, 201, 0.3);
  border-radius: var(--radius);
  background: rgba(15, 20, 43, 0.78);
  padding: 1rem;
}

.guide-panel h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.08rem;
}

.guide-panel p,
.guide-panel li {
  color: #b2c4de;
}

.guide-panel ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.guide-steps-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-step {
  border: 1px solid rgba(120, 138, 199, 0.28);
  border-radius: 14px;
  background: rgba(14, 19, 41, 0.78);
  padding: 0.92rem;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 0.65rem;
}

.guide-step span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid rgba(126, 147, 212, 0.45);
  color: #d8e7ff;
  background: rgba(25, 34, 72, 0.72);
}

.guide-step h3 {
  margin: 0;
  font-size: 1rem;
}

.guide-step p {
  margin: 0.35rem 0 0;
  color: #b5c7e0;
  font-size: 0.9rem;
}

.guide-commands {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-command {
  border: 1px solid rgba(109, 147, 224, 0.3);
  border-radius: 14px;
  background: rgba(14, 20, 44, 0.76);
  padding: 0.86rem;
}

.guide-command code {
  font-size: 0.92rem;
  color: #d8d0ff;
}

.guide-command p {
  margin: 0.4rem 0 0;
  color: #b3c4dc;
  font-size: 0.89rem;
}

@media (max-width: 1100px) {
  .guide-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .guide-hero,
  .guide-split,
  .guide-steps-grid,
  .guide-commands {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .guide-rules-grid {
    grid-template-columns: 1fr;
  }
}

.policy-main {
  padding-top: 1rem;
}

.policy-hero {
  padding: 2.7rem 0 1.4rem;
}

.policy-hero h1 {
  margin: 0.6rem 0 0.75rem;
  max-width: 18ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.95rem, 4.3vw, 3.6rem);
  line-height: 1.05;
}

.policy-warning {
  margin-bottom: 1rem;
}

.policy-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.policy-pill {
  margin: 0;
  border: 1px solid rgba(149, 128, 255, 0.32);
  border-radius: 14px;
  background: rgba(17, 19, 42, 0.75);
  padding: 0.78rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.policy-overview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.policy-panel {
  border: 1px solid rgba(149, 128, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(18, 19, 42, 0.76);
  padding: 1.1rem;
}

.policy-panel h2 {
  margin: 0 0 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.24rem;
}

.policy-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: #cad8ee;
}

.policy-panel.do {
  border-color: rgba(122, 217, 172, 0.28);
}

.policy-panel.dont {
  border-color: rgba(255, 143, 168, 0.3);
}

.policy-toolbar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0;
}

.policy-toolbar input {
  flex: 1;
  border: 1px solid rgba(149, 128, 255, 0.35);
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: rgba(15, 17, 37, 0.72);
  color: #d7e2f8;
  font-family: "Sora", sans-serif;
}

.policy-toolbar input::placeholder {
  color: #9eb0ca;
}

.policy-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  align-items: start;
  margin-bottom: 1rem;
}

.policy-sidebar {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 0.25rem 0 0;
}

.side-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.side-card + .side-card {
  border-top: 1px solid rgba(149, 128, 255, 0.2);
  padding-top: 1.25rem;
}

.side-label {
  margin: 0;
  color: #8ea3c0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.side-list {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.side-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: #b7c6dc;
  font-size: 1.01rem;
  line-height: 1.35;
}

.side-severity {
  border-top: 0;
  padding-top: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot.critical {
  background: #ff596f;
}

.dot.important {
  background: #ffb11a;
}

.dot.standard {
  background: #3f8cff;
}

.policy-chips {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.chip {
  border: 1px solid rgba(149, 128, 255, 0.27);
  border-radius: 11px;
  padding: 0.6rem 0.7rem;
  background: rgba(16, 18, 40, 0.72);
  color: #cfddf2;
  font-size: 0.88rem;
  text-align: center;
}

.policy-severity {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.policy-severity article {
  margin: 0;
  border: 1px solid rgba(149, 128, 255, 0.28);
  border-radius: 12px;
  background: rgba(17, 19, 40, 0.74);
  padding: 0.75rem;
}

.policy-severity p {
  margin: 0.4rem 0 0;
  color: #a9bbd4;
  font-size: 0.86rem;
}

.sev {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.sev.critical {
  background: rgba(255, 141, 168, 0.2);
  color: #ffbad0;
}

.sev.important {
  background: rgba(255, 206, 124, 0.2);
  color: #ffd89a;
}

.sev.standard {
  background: rgba(135, 186, 255, 0.2);
  color: #c6e0ff;
}

.policy-rules-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.policy-rule-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(149, 128, 255, 0.28);
  border-radius: 14px;
  background: rgba(17, 19, 42, 0.76);
  padding: 0.95rem;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.policy-rule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(149, 128, 255, 0.35);
}

.policy-rule-card > span {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(149, 128, 255, 0.42);
  background: rgba(25, 27, 57, 0.75);
  display: grid;
  place-items: center;
  color: #decfff;
  font-size: 0.82rem;
  font-weight: 700;
  grid-row: 1 / span 2;
}

.policy-rule-card h3 {
  margin: 0;
  font-size: 0.98rem;
  grid-column: 2;
  line-height: 1.3;
}

.policy-rule-card p {
  margin: 0.28rem 0 0;
  color: #bdcde5;
  font-size: 0.92rem;
  grid-column: 2;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.policy-rule-card.critical {
  border-color: rgba(255, 144, 168, 0.34);
}

.policy-rule-card.critical::before {
  background: rgba(255, 144, 168, 0.72);
}

.policy-rule-card.important {
  border-color: rgba(255, 203, 122, 0.34);
}

.policy-rule-card.important::before {
  background: rgba(255, 203, 122, 0.72);
}

.policy-rule-card.standard {
  border-color: rgba(122, 185, 255, 0.34);
}

.policy-rule-card.standard::before {
  background: rgba(122, 185, 255, 0.72);
}

.policy-end-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.policy-end-grid p {
  margin: 0.6rem 0 0;
  color: #c5d4ea;
}

@media (max-width: 960px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }

  .policy-meta,
  .policy-overview-grid,
  .policy-severity,
  .policy-end-grid,
  .policy-rules-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .policy-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .policy-chips {
    grid-template-columns: 1fr;
  }
}

/* Final mobile hardening for all public pages. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.home-page *,
.policy-page *,
.terms-page *,
.guide-page *,
.about-page *,
.tool-page * {
  min-width: 0;
}

@media (max-width: 960px) {
  .tool-grid,
  .transcript-layout,
  .tool-hero {
    grid-template-columns: 1fr;
  }

  .transcript-page .transcript-sidebar {
    position: static;
  }

  .wallet-app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "balance"
      "summary"
      "status"
      "queue"
      "holds"
      "transactions";
  }

  .tool-hero-icon {
    display: none;
  }

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

  .wallet-value-grid {
    grid-template-columns: 1fr;
  }

  .wallet-ops-strip {
    grid-template-columns: 1fr;
  }

  .wallet-transactions-card .tool-panel-head {
    display: grid;
  }

  .wallet-filter-bar {
    justify-content: flex-start;
  }

}

@media (max-width: 720px) {
  .home-page .shell,
  .about-page .shell,
  .terms-page .shell,
  .guide-page .shell,
  .policy-page .shell,
  .tool-page .shell {
    width: min(100% - 1rem, 1180px);
  }

  .home-page .nav-wrap,
  .about-page .nav-wrap,
  .terms-page .nav-wrap,
  .guide-page .nav-wrap,
  .policy-page .nav-wrap,
  .tool-page .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.72rem;
    border-radius: 22px;
    padding: 0.82rem 0.9rem;
  }

  .home-page .brand,
  .about-page .brand,
  .terms-page .brand,
  .guide-page .brand,
  .policy-page .brand,
  .tool-page .brand,
  .home-page .nav-center,
  .about-page .nav-center,
  .terms-page .nav-center,
  .guide-page .nav-center,
  .policy-page .nav-center,
  .tool-page .nav-center {
    justify-self: center;
  }

  .home-page .nav-center,
  .about-page .nav-center,
  .terms-page .nav-center,
  .guide-page .nav-center,
  .policy-page .nav-center,
  .tool-page .nav-center {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .home-page .nav-right,
  .about-page .nav-right,
  .terms-page .nav-right,
  .guide-page .nav-right,
  .policy-page .nav-right,
  .tool-page .nav-right {
    display: none;
  }

  .home-page .dropdown-menu,
  .about-page .dropdown-menu,
  .terms-page .dropdown-menu,
  .guide-page .dropdown-menu,
  .policy-page .dropdown-menu,
  .tool-page .dropdown-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 8.4rem);
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-height: calc(100dvh - 9.2rem);
    overflow-y: auto;
    transform: translateY(-6px);
  }

  .home-page .dropdown.open .dropdown-menu,
  .about-page .dropdown.open .dropdown-menu,
  .terms-page .dropdown.open .dropdown-menu,
  .guide-page .dropdown.open .dropdown-menu,
  .policy-page .dropdown.open .dropdown-menu,
  .tool-page .dropdown.open .dropdown-menu {
    transform: translateY(0);
  }

  .policy-main-v3 .policy-v3-hero,
  .policy-main-v3 .policy-v3-layout,
  .guide-page .guide-hero,
  .guide-page .guide-split,
  .guide-page .guide-steps-grid,
  .guide-page .guide-commands,
  .terms-page .terms-grid,
  .terms-page .rules-grid,
  .terms-page .highlights-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-main-v3 .policy-v3-side,
  .policy-main-v3 .policy-v3-content,
  .policy-main-v3 .policy-v3-section,
  .policy-main-v3 .policy-rule-card,
  .terms-page .terms-card,
  .terms-page .rule-card,
  .terms-page .highlight-card,
  .guide-page .guide-rule-card,
  .guide-page .guide-panel,
  .guide-page .guide-step,
  .guide-page .guide-command {
    width: 100%;
    max-width: 100%;
  }

  .policy-main-v3 .policy-v3-side {
    position: static;
  }

  .policy-main-v3 .policy-v3-section h2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    line-height: 1.12;
  }

  .policy-main-v3 .policy-rule-card {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: start;
    gap: 0.58rem;
    padding: 0.72rem;
  }

  .policy-main-v3 .rule-num {
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
  }

  .policy-main-v3 .policy-rule-card h3 {
    grid-column: 2;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .policy-main-v3 .rule-penalty {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .policy-main-v3 .rule-toggle {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 22px;
    height: 34px;
  }

  .policy-main-v3 .policy-rule-card p {
    grid-column: 1 / -1;
  }

  .policy-page .policy-main-v3 .policy-v3-hero,
  .policy-page .policy-main-v3 .policy-v3-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-page .policy-main-v3 .policy-v3-side,
  .policy-page .policy-main-v3 .policy-v3-content,
  .policy-page .policy-main-v3 .policy-v3-section,
  .policy-page .policy-main-v3 .policy-rule-card {
    width: 100%;
    max-width: 100%;
  }

  .policy-page .policy-main-v3 .policy-v3-side {
    position: static;
  }

  .policy-page .policy-main-v3 .policy-v3-section h2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    line-height: 1.12;
  }

  .policy-page .policy-main-v3 .policy-rule-card {
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: start;
    gap: 0.58rem;
    padding: 0.72rem;
  }

  .policy-page .policy-main-v3 .rule-num {
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
  }

  .policy-page .policy-main-v3 .policy-rule-card h3 {
    grid-column: 2;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .policy-page .policy-main-v3 .rule-penalty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 0;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
    place-items: initial;
    font-weight: 700;
  }

  .policy-page .policy-main-v3 .rule-toggle {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 22px;
    height: 34px;
  }

  .policy-page .policy-main-v3 .policy-rule-card p {
    grid-column: 1 / -1;
  }

  .guide-page .guide-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .guide-page .guide-command code,
  .terms-page code,
  .policy-page code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .home-page .top-nav,
  .about-page .top-nav,
  .terms-page .top-nav,
  .guide-page .top-nav,
  .policy-page .top-nav,
  .tool-page .top-nav {
    padding-top: 0.65rem;
  }

  .home-page .nav-link-direct,
  .about-page .nav-link-direct,
  .terms-page .nav-link-direct,
  .guide-page .nav-link-direct,
  .policy-page .nav-link-direct,
  .tool-page .nav-link-direct,
  .home-page .dropdown-toggle,
  .about-page .dropdown-toggle,
  .terms-page .dropdown-toggle,
  .guide-page .dropdown-toggle,
  .policy-page .dropdown-toggle,
  .tool-page .dropdown-toggle {
    font-size: 0.86rem;
  }

  .home-page .dropdown-menu,
  .about-page .dropdown-menu,
  .terms-page .dropdown-menu,
  .guide-page .dropdown-menu,
  .policy-page .dropdown-menu,
  .tool-page .dropdown-menu {
    top: calc(env(safe-area-inset-top, 0px) + 8rem);
    left: 0.5rem;
    right: 0.5rem;
    max-height: calc(100dvh - 8.8rem);
  }

  .fee-page .nav-center {
    gap: 0.2rem;
  }

  .fee-page .nav-link-direct {
    flex: 1 1 7.5rem;
    justify-content: center;
    min-width: 0;
    font-size: 0.8rem;
  }

  .fee-page .dropdown-toggle {
    font-size: 0.8rem;
  }

  .fee-page .nav-link-direct span {
    font-size: 0;
    white-space: normal;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .fee-page .nav-link-direct span::after {
    content: "Guide";
    font-size: 0.8rem;
  }

  .tool-stats {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    padding: 0.86rem;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .tool-row div:last-child {
    text-align: left;
  }

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

  .wallet-transaction {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .wallet-transaction div:last-child {
    grid-column: 2;
    text-align: left;
  }

  .wallet-hold {
    grid-template-columns: 1fr;
  }

  .wallet-hold div:last-child {
    text-align: left;
  }

  .wallet-token-mark {
    width: 38px;
    border-radius: 12px;
  }

  .policy-main-v3 .policy-v3-section,
  .policy-main-v3 .policy-v3-panel,
  .terms-page .terms-card,
  .terms-page .rule-card,
  .guide-page .guide-panel,
  .guide-page .guide-command {
    padding: 0.86rem;
  }

  .policy-main-v3 .policy-rule-card {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    padding: 0.64rem;
    gap: 0.5rem;
  }

  .policy-page .policy-main-v3 .policy-rule-card {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    padding: 0.64rem;
    gap: 0.5rem;
  }

  .policy-main-v3 .rule-num {
    width: 32px;
    height: 32px;
  }

  .policy-page .policy-main-v3 .rule-num {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 900px) {
  .home-page .hero,
  .policy-page .policy-main-v3 .policy-v3-hero,
  .policy-page .policy-main-v3 .policy-v3-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-page .hero-card,
  .policy-page .policy-main-v3 .policy-v3-side,
  .policy-page .policy-main-v3 .policy-v3-content,
  .policy-page .policy-main-v3 .policy-v3-section,
  .policy-page .policy-main-v3 .policy-rule-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .policy-page .policy-main-v3 .policy-v3-side {
    position: static !important;
  }
}

@media (max-width: 980px) {
  .wallet-frame {
    grid-template-columns: 1fr;
  }

  .wallet-side {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 169, 188, 0.14);
  }

  .wallet-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-side-bottom {
    display: none;
  }

  .wallet-overview-card,
  .wallet-grid-row {
    grid-template-columns: 1fr;
  }

  .wallet-asset-row {
    grid-template-columns: 1fr;
  }

  .wallet-table-card {
    margin-top: 1.4rem;
  }
}

@media (max-width: 760px) {
  .wallet-dashboard-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(5, 8, 12, 0.58);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 220ms ease;
    visibility: visible;
  }

  .wallet-sidebar-hidden::before {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .wallet-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(82vw, 310px);
    height: 100dvh;
    border-right: 1px solid var(--wallet-line);
    border-bottom: 0;
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.38);
    opacity: 1;
    padding: 1.25rem 0.85rem;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .wallet-sidebar-hidden .wallet-side {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-104%);
    visibility: hidden;
  }
}

@media (max-width: 1180px) {
  .wallet-grid-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .policy-page .policy-main-v3 .policy-rule-card {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    align-items: start !important;
  }

  .policy-page .policy-main-v3 .rule-num {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }

  .policy-page .policy-main-v3 .policy-rule-card h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .policy-page .policy-main-v3 .rule-penalty {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .policy-page .policy-main-v3 .rule-toggle {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
  }

  .policy-page .policy-main-v3 .policy-rule-card p {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 620px) {
  .wallet-side {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .wallet-side-brand {
    padding: 0 0.25rem 0.75rem;
  }

  .wallet-side-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    overflow: visible;
    padding-bottom: 0.1rem;
  }

  .wallet-side-nav a {
    white-space: normal;
  }

  .wallet-main {
    padding: 1rem;
  }

  .wallet-topbar,
  .wallet-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-topbar-actions {
    width: 100%;
  }

  .wallet-currency-toggle {
    width: 100%;
  }

  .wallet-currency-toggle button {
    flex: 1;
  }

  .wallet-page-head {
    margin-top: 1.3rem;
  }

  .wallet-overview-card {
    min-height: 0;
    padding: 1rem;
  }

  .wallet-total > strong {
    font-size: 2rem;
  }

  .wallet-asset-row {
    grid-template-columns: 1fr;
  }

  .wallet-panel {
    min-height: 0;
    padding: 1rem;
  }

  .wallet-price-list {
    grid-template-columns: 1fr;
  }

  .wallet-table-card th,
  .wallet-table-card td {
    padding: 0.82rem 1rem;
  }

  .wallet-table-wrap {
    overflow-x: visible;
  }

  .wallet-table-card table,
  .wallet-table-card thead,
  .wallet-table-card tbody,
  .wallet-table-card tr,
  .wallet-table-card td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wallet-table-card thead {
    display: none;
  }

  .wallet-table-card tr {
    border-bottom: 1px solid rgba(236, 238, 242, 0.12);
    padding: 0.75rem 0;
  }

  .wallet-table-card td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.75rem;
    border-bottom: 0;
    padding: 0.52rem 1rem;
    overflow-wrap: anywhere;
  }

  .wallet-table-card td::before {
    content: attr(data-label);
    color: #98948e;
    font-weight: 800;
  }

  .wallet-amount-main,
  .wallet-flow {
    justify-content: flex-start;
  }

  .wallet-tx-chip {
    max-width: 100%;
  }

  .wallet-empty-row {
    display: block !important;
    padding: 1.25rem 1rem !important;
  }

  .wallet-empty-row::before {
    content: "";
    display: none;
  }
}

@media (max-width: 1180px) {
  .transaction-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transaction-list-card {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  .transaction-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .transaction-filter-head .wallet-text-button {
    width: 100%;
    justify-content: center;
  }

  .transaction-filters {
    grid-template-columns: 1fr;
  }

  .transaction-table-wrap {
    overflow-x: visible;
  }

  .transaction-list-card table,
  .transaction-list-card thead,
  .transaction-list-card tbody,
  .transaction-list-card tr,
  .transaction-list-card td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .transaction-list-card thead {
    display: none;
  }

  .transaction-list-card tr {
    border-bottom: 1px solid rgba(143, 169, 188, 0.13);
    padding: 0.75rem 0;
  }

  .transaction-list-card td {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 0.75rem;
    border-bottom: 0;
    padding: 0.52rem 0.75rem;
    overflow-wrap: anywhere;
  }

  .transaction-list-card td::before {
    content: attr(data-label);
    color: #96a5b3;
    font-weight: 850;
  }

  .transaction-list-card td[data-label="Open"] .wallet-view-link {
    justify-self: start;
  }

  .transaction-list-card .wallet-empty-row {
    display: block !important;
    padding: 1.2rem 0.75rem !important;
  }

  .transaction-list-card .wallet-empty-row::before {
    content: "";
    display: none;
  }
}
