@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap");

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar ----------------------------------- */
/* Webkit browsers (Chrome, Safari, Edge, Opera) */
.chat-list::-webkit-scrollbar,
.timeline::-webkit-scrollbar,
.info-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.chat-list::-webkit-scrollbar-track,
.timeline::-webkit-scrollbar-track,
.info-panel::-webkit-scrollbar-track {
  background: transparent;
}

.chat-list::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb,
.info-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0);
  border-radius: 3px;
}

.chat-list::-webkit-scrollbar-corner,
.timeline::-webkit-scrollbar-corner,
.info-panel::-webkit-scrollbar-corner {
  background: transparent;
}

/* Show scrollbar when near edge */
.chat-list.scrollbar-visible::-webkit-scrollbar-thumb,
.timeline.scrollbar-visible::-webkit-scrollbar-thumb,
.info-panel.scrollbar-visible::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1); 
}

.chat-list.scrollbar-visible::-webkit-scrollbar-thumb:hover,
.timeline.scrollbar-visible::-webkit-scrollbar-thumb:hover,
.info-panel.scrollbar-visible::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox */
.chat-list,
.timeline,
.info-panel {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.chat-list.scrollbar-visible,
.timeline.scrollbar-visible,
.info-panel.scrollbar-visible {
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Landing blank background ----------------------------------- */

html {
  background: #000;
}

.landing--blank {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  --edge-offset: clamp(24px, 7vw, 120px);
}

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

.galxe-bg {
  --frame-size: min(62vw, 640px);
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  animation: bgReveal 2.4s ease forwards;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 5%, rgba(2, 2, 4, 0.95) 0%, rgba(2, 2, 4, 0) 45%),
    radial-gradient(90% 70% at 70% 18%, rgba(135, 82, 255, 0.78), transparent 60%),
    radial-gradient(120% 85% at 58% 38%, rgba(255, 115, 175, 0.7), transparent 68%),
    radial-gradient(110% 80% at 35% 25%, rgba(177, 123, 255, 0.35), transparent 70%),
    radial-gradient(160% 120% at 20% 92%, rgba(12, 8, 13, 0.85), transparent 55%),
    radial-gradient(240% 160% at 95% 35%, rgba(6, 4, 10, 0.92), transparent 50%),
    radial-gradient(220% 140% at 86% 78%, rgba(5, 4, 8, 0.9), transparent 45%),
    radial-gradient(180% 160% at 55% 98%, rgba(6, 4, 8, 0.95), transparent 60%),
    linear-gradient(180deg, #040306 0%, #05040a 18%, #0b1524 32%, #101d2a 45%, #0c121e 58%, #05080f 70%, #010103 100%);
}

.social-bar {
  position: absolute;
  bottom: clamp(28px, 6vh, 80px);
  right: var(--edge-offset);
  display: flex;
  padding: 0;
  gap: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translateY(12px);
  animation: socialFade 1.4s ease forwards 1.3s;
}

.social-bar__item {
  position: relative;
  width: clamp(60px, 7vw, 82px);
  height: clamp(44px, 5.5vw, 46.38px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 200ms ease, transform 200ms ease;
}

.social-bar__item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-bar__item svg {
  width: clamp(11px, 1.4vw, 15px);
  height: clamp(11px, 1.4vw, 15px);
  transition: transform 200ms ease, filter 200ms ease;
}

.social-bar__item:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.social-bar__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* ========== LANDING RESPONSIVE ========== */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-copy {
    width: min(400px, 50vw);
  }
  
  .hero-nav {
    right: clamp(16px, 4vw, 32px);
  }
  
  .social-bar {
    right: clamp(16px, 4vw, 32px);
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .galxe-bg__title {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }
  
  .hero-copy {
    width: min(360px, 55vw);
  }
  
  .hero-nav__actions {
    gap: 0.4rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.4rem;
    font-size: 0.72rem;
  }
}

.galxe-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 65% 32%, rgba(255, 180, 130, 0.35), transparent 60%),
    radial-gradient(90% 80% at 78% 5%, rgba(150, 90, 255, 0.45), transparent 65%),
    radial-gradient(130% 70% at 40% 45%, rgba(255, 140, 220, 0.2), transparent 70%),
    radial-gradient(160% 120% at 25% 95%, rgba(20, 12, 20, 0.35), transparent 55%),
    radial-gradient(220% 160% at 90% 40%, rgba(8, 6, 12, 0.45), transparent 40%),
    radial-gradient(180% 160% at 80% 80%, rgba(6, 5, 9, 0.35), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.15;
  filter: blur(6px);
}

.galxe-bg::after {
  content: "";
  position: absolute;
  inset: -200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' seed='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.33;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.galxe-bg__frame {
  position: relative;
  grid-area: 1 / 1;
  width: var(--frame-size);
  height: var(--frame-size);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: scale(1.05);
  animation: frameReveal 1.6s ease forwards 0.6s;
}

.galxe-bg__frame-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.galxe-bg__frame-line--top,
.galxe-bg__frame-line--bottom {
  width: 100%;
  height: 1px;
}

.galxe-bg__frame-line--top {
  top: 15%;
}

.galxe-bg__frame-line--bottom {
  bottom: 15%;
}

.galxe-bg__frame-line--left,
.galxe-bg__frame-line--right {
  height: 100%;
  width: 1px;
}

.galxe-bg__frame-line--left {
  left: 15%;
}

.galxe-bg__frame-line--right {
  right: 15%;
}

.galxe-bg__title {
  grid-area: 1 / 1;
  position: relative;
  width: var(--frame-size);
  font-size: clamp(3.6rem, 12vw, 9.4rem);
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.6rem);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.galxe-bg__title span {
  display: block;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: letterRise 0.7s ease forwards;
}

.galxe-bg__title span:nth-child(1) {
  animation-delay: 1s;
}
.galxe-bg__title span:nth-child(2) {
  animation-delay: 1.1s;
}
.galxe-bg__title span:nth-child(3) {
  animation-delay: 1.2s;
}
.galxe-bg__title span:nth-child(4) {
  animation-delay: 1.3s;
}
.galxe-bg__title span:nth-child(5) {
  animation-delay: 1.4s;
}
.galxe-bg__title span:nth-child(6) {
  animation-delay: 1.5s;
}

.hero-copy {
  position: absolute;
  left: var(--edge-offset);
  bottom: clamp(28px, 6vh, 80px);
  z-index: 3;
  width: min(450px, 45vw);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #f7f7fb;
  opacity: 0;
  transform: translateY(30px);
  animation: copyFade 1.6s ease forwards 1.4s;
}

.hero-copy__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(247, 247, 251, 0.6);
  margin: 0;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 600;
}

.hero-copy__lead {
  margin: 0;
  line-height: 1.8;
  color: rgba(247, 247, 251, 0.75);
}

.hero-nav {
  position: fixed;
  top: clamp(16px, 3vh, 32px);
  right: var(--edge-offset);
  z-index: 5;
  opacity: 0;
  transform: translateY(-12px);
  animation: navFade 1.4s ease forwards 1s;
  padding: 0.5rem 1.2rem;
  margin: -0.5rem -1.2rem;
  /* Blur with horizontal fade mask */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  -webkit-mask: linear-gradient(90deg, 
    transparent 0%, 
    black 12%, 
    black 88%, 
    transparent 100%
  );
  mask: linear-gradient(90deg, 
    transparent 0%, 
    black 12%, 
    black 88%, 
    transparent 100%
  );
  transition: backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle gradient border frame - thin lines */
.hero-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: 
    /* Top line */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent 100%) top / 100% 1px no-repeat,
    /* Bottom line */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent 100%) bottom / 100% 1px no-repeat;
}

.hero-nav.is-scrolled {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-nav.is-scrolled::before {
  opacity: 1;
}

.hero-nav__actions {
  display: flex;
  gap: 0.6rem;
}

.hero-copy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cta-button {
  position: relative;
  padding: 0.95rem 1.9rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-align: center;
  transition: transform 200ms ease, color 200ms ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  mix-blend-mode: screen;
}

.cta-button--secondary::before {
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-button--primary {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

.cta-button:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.cta-button:hover::before {
  border-color: rgba(255, 255, 255, 0.8);
}

.callout-button {
  position: relative;
  padding: 0.95rem 1.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 200ms ease, border-color 200ms ease;
}

.callout-button--accent {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(120deg, rgba(255, 173, 101, 0.3), rgba(255, 85, 190, 0.3));
}

.callout-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Mobile landscape / Small tablet */
@media (max-width: 768px) {
  .galxe-bg {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 80px;
  }
  
  .galxe-bg__frame {
    position: relative;
    width: 85vw;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1.2 / 1;
  }
  
  .galxe-bg__frame-line--top,
  .galxe-bg__frame-line--bottom {
    width: 70%;
    left: 15%;
  }
  
  .galxe-bg__frame-line--top {
    top: 10%;
  }
  
  .galxe-bg__frame-line--bottom {
    bottom: 10%;
  }

  .galxe-bg__frame-line--left,
  .galxe-bg__frame-line--right {
    height: 70%;
    top: 15%;
  }
  
  .galxe-bg__frame-line--left {
    left: 8%;
  }
  
  .galxe-bg__frame-line--right {
    right: 8%;
  }
  
  .galxe-bg__title {
    font-size: clamp(2.4rem, 12vw, 4rem);
    position: relative;
    width: auto;
  }
  
  /* Move hero-nav to top center */
  .hero-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-12px);
    animation: navFadeMobile 1.4s ease forwards 1s;
    padding: 0.45rem 1rem;
    margin: 0;
  }
  
  .hero-nav.is-scrolled {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .hero-nav__actions {
    gap: 0.5rem;
  }

  .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
  
  /* Hero copy adjustments */
  .hero-copy {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0 clamp(20px, 6vw, 40px);
    margin-top: auto;
    margin-bottom: clamp(100px, 18vh, 160px);
    text-align: center;
    align-items: center;
}

  .hero-copy h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .hero-copy__lead {
    font-size: 0.9rem;
  }

  .hero-copy__actions {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .cta-button {
    flex: 1;
    max-width: 160px;
  }
  
  /* Social bar at bottom center */
  .social-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
  }

  .social-bar__item {
    width: clamp(52px, 14vw, 70px);
    height: clamp(40px, 10vw, 50px);
  }

  .social-bar__item svg {
    width: clamp(14px, 3.5vw, 18px);
    height: clamp(14px, 3.5vw, 18px);
  }

  .social-bar__item:not(:last-child)::after {
    top: 18%;
    bottom: 18%;
  }
}

@keyframes navFadeMobile {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .galxe-bg__frame {
    width: 80vw;
    max-width: 320px;
  }
  
  .galxe-bg__frame-line--top,
  .galxe-bg__frame-line--bottom {
    width: 65%;
    left: 17.5%;
  }
  
  .galxe-bg__frame-line--left,
  .galxe-bg__frame-line--right {
    height: 65%;
    top: 17.5%;
  }
  
  .galxe-bg__title {
    font-size: clamp(2rem, 14vw, 3.2rem);
    gap: clamp(0.3rem, 2vw, 0.8rem);
  }
  
  .hero-nav__actions {
    gap: 0.35rem;
  }
  
  .cta-button {
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
  }
  
  .hero-copy {
    margin-bottom: clamp(90px, 16vh, 140px);
  }
  
  .hero-copy h2 {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  }
  
  .hero-copy__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
  }
  
  .hero-copy__lead {
    font-size: 0.85rem;
    line-height: 1.7;
  }
  
  .hero-copy__actions {
    gap: 0.5rem;
  }
  
  .cta-button {
    max-width: 140px;
  }
  
  .social-bar {
    bottom: 16px;
  }
  
  .social-bar__item {
    width: clamp(48px, 18vw, 60px);
    height: clamp(36px, 10vw, 44px);
  }
  
  .social-bar__item svg {
    width: clamp(12px, 4vw, 16px);
    height: clamp(12px, 4vw, 16px);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .galxe-bg__frame {
    width: 85vw;
    max-width: 280px;
  }
  
  .galxe-bg__frame-line {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .galxe-bg__frame-line--top,
  .galxe-bg__frame-line--bottom {
    width: 60%;
    left: 20%;
  }
  
  .galxe-bg__frame-line--left,
  .galxe-bg__frame-line--right {
    height: 60%;
    top: 20%;
  }
  
  .galxe-bg__title {
    font-size: clamp(1.8rem, 16vw, 2.6rem);
  }
  
  .hero-nav {
    top: 12px;
  }
  
  .hero-nav__actions {
    gap: 0.25rem;
  }
  
  .cta-button {
    padding: 0.55rem 0.85rem;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
  
  .hero-copy {
    padding: 0 16px;
    margin-bottom: clamp(80px, 14vh, 120px);
  }
  
  .hero-copy h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }
  
  .hero-copy__lead {
    font-size: 0.8rem;
  }
  
  .hero-copy__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  
  .cta-button {
    max-width: none;
    width: 100%;
  }
  
  .social-bar {
    bottom: 12px;
  }
  
  .social-bar__item {
    width: clamp(44px, 20vw, 56px);
    height: clamp(34px, 9vw, 40px);
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .galxe-bg__frame {
    width: 90vw;
    max-width: 240px;
  }
  
  .galxe-bg__frame-line {
    background: rgba(255, 255, 255, 0.12);
  }
  
  .galxe-bg__frame-line--top,
  .galxe-bg__frame-line--bottom {
    width: 55%;
    left: 22.5%;
  }
  
  .galxe-bg__frame-line--left,
  .galxe-bg__frame-line--right {
    height: 55%;
    top: 22.5%;
  }
  
  .galxe-bg__title {
    font-size: 1.6rem;
    gap: 0.25rem;
  }
  
  .hero-nav__actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }
  
  .cta-button {
    padding: 0.5rem 0.7rem;
    font-size: 0.55rem;
  }
  
  .hero-copy h2 {
    font-size: 1.1rem;
  }
  
  .social-bar__item {
    width: 42px;
    height: 32px;
  }
  
  .social-bar__item svg {
    width: 11px;
    height: 11px;
  }
}

.partners-section {
  position: relative;
  width: 100%;
  background:
    radial-gradient(160% 60% at 20% 0%, rgba(12, 8, 13, 0.85), transparent 55%),
    radial-gradient(180% 80% at 55% 0%, rgba(6, 4, 8, 0.95), transparent 60%),
    radial-gradient(220% 70% at 86% 0%, rgba(5, 4, 8, 0.9), transparent 45%),
    linear-gradient(180deg, #05040a 0%, #06050a 5%, #0a0708 12%, #120a06 22%, #1f0e05 32%, #2d1205 45%, #4a1f06 58%, #6a2a08 72%, #8a400a 86%, #a85a0c 100%);
  padding: clamp(72px, 12vw, 168px) 0 clamp(80px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  animation: partnersReveal 2.4s ease forwards;
}

.partners-section::after {
  content: "";
  position: absolute;
  inset: -200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' seed='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.33;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.partners-section__content {
  width: min(1280px, 100%);
  padding: 0 var(--edge-offset);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(40px, 5vw, 72px);
}

.partners-section__eyebrow {
  position: relative;
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(24px, 3vw, 40px);
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.partners-section__content.is-visible .partners-section__eyebrow {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.partners-section__eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: min(630px, 60vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
  transition: transform 1s ease 0.2s;
}

.partners-section__content.is-visible .partners-section__eyebrow::before {
  transform: translateX(-50%) scaleX(1);
}

.partners-section__logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.partners-section__logos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: min(630px, 60vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
  transition: transform 1s ease 0.6s;
}

.partners-section__content.is-visible .partners-section__logos::after {
  transform: translateX(-50%) scaleX(1);
}

.partners-section__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(36px, 7vw, 110px);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.5s ease;
}

.partners-section__content.is-visible .partners-section__logo {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.partners-section__logo:nth-child(1) { transition-delay: 0.1s; }
.partners-section__logo:nth-child(2) { transition-delay: 0.2s; }
.partners-section__logo:nth-child(3) { transition-delay: 0.3s; }
.partners-section__logo:nth-child(4) { transition-delay: 0.4s; }

.partners-section__logo img {
  height: 100%;
  width: auto;
  max-width: clamp(120px, 15vw, 180px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.partners-section__logo:hover img {
  opacity: 1;
  filter: drop-shadow(0 6px 24px rgba(255, 255, 255, 0.15));
}

@media (max-width: 720px) {
  .partners-section {
    padding: clamp(48px, 12vw, 96px) 0;
  }

  .partners-section__content {
    padding: 0 clamp(18px, 6vw, 32px);
    gap: clamp(32px, 8vw, 48px);
  }

  .partners-section__eyebrow {
    letter-spacing: 0.12em;
    font-size: clamp(0.65rem, 2.5vw, 0.8rem);
  }

  .partners-section__logos {
    gap: clamp(32px, 8vw, 56px);
  }

  .partners-section__logo {
    height: clamp(28px, 6vw, 36px);
  }

  .partners-section__logo img {
    max-width: clamp(90px, 22vw, 140px);
  }
}

/* About Block (inside partners-section) ------------------------- */
.about-block {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) var(--edge-offset) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

.about-block__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  max-width: 800px;
  margin: 0 auto;
}

.about-block__eyebrow {
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: rgba(255, 255, 255, 0.6);
}

.about-block__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.about-block__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

/* Flow Diagram (minimal style) */
.flow-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(32px, 4vw, 56px) 0;
}

.flow-diagram__line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.15) 15%, 
    rgba(255, 255, 255, 0.25) 50%, 
    rgba(255, 255, 255, 0.15) 85%, 
    transparent 100%
  );
  transform: translateY(-50%);
}

.flow-diagram__steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  gap: clamp(16px, 3vw, 32px);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.flow-step__marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  transition: all 0.3s ease;
}

.flow-step__marker::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flow-step__marker--active {
  border-color: rgba(255, 140, 50, 0.8);
  box-shadow: 0 0 20px rgba(255, 140, 50, 0.4);
}

.flow-step__marker--active::before {
  background: rgba(255, 140, 50, 0.8);
  opacity: 1;
}

.flow-step:hover .flow-step__marker {
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.flow-step:hover .flow-step__marker::before {
  opacity: 1;
}

.flow-step__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.flow-step__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.flow-step__title {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.flow-diagram__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.flow-diagram__badge span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Feature Cards v2 (minimal style) */
.about-block__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card-v2 {
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.4s ease;
}

.feature-card-v2:last-child {
  border-right: none;
}

.feature-card-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-v2:hover::before {
  opacity: 1;
}

.feature-card-v2__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
    justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, transform 0.3s ease;
}

.feature-card-v2:hover .feature-card-v2__icon {
  color: rgba(255, 180, 100, 0.9);
  transform: translateY(-2px);
}

.feature-card-v2__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card-v2 h3 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.feature-card-v2 p {
  margin: 0;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .about-block__features {
    grid-template-columns: 1fr;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-card-v2 {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-card-v2:last-child {
    border-bottom: none;
  }
}

/* About Block Scroll Animation - Each element triggers independently */
.about-block__header,
.about-block .flow-diagram,
.about-block__features,
.about-block__cta {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-block__header.is-visible,
.flow-diagram.is-visible,
.about-block__features.is-visible,
.about-block__cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
  .flow-diagram__steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .flow-step {
    flex: 0 0 45%;
  }

  .flow-diagram__line {
    display: none;
  }
}

@media (max-width: 600px) {
  .about-block {
    padding-top: clamp(40px, 8vw, 60px);
    gap: clamp(32px, 6vw, 48px);
  }

  .flow-step {
    flex: 0 0 100%;
  }

  .flow-step__title {
    white-space: normal;
  }
}

/* Token Section ------------------------------------------------- */
.landing--blank .token-section {
  position: relative;
  width: 100%;
  margin: -3px 0 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: 
    /* Чёрный в правом нижнем углу - сдвинут вниз */
    radial-gradient(ellipse 80% 55% at 100% 105%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 35%, transparent 55%),
    /* Затемнение снизу - только внизу */
    radial-gradient(ellipse 60% 45% at 80% 100%, rgba(5, 5, 8, 0.85) 0%, transparent 45%),
    /* Агрессивный диагональный переход - начинается ниже */
    linear-gradient(155deg, transparent 0%, transparent 50%, rgba(25, 22, 20, 0.6) 62%, #121214 78%, #0a0a0c 90%, #050508 100%),
    /* Вторая диагональ - начинается ниже */
    linear-gradient(195deg, transparent 0%, transparent 55%, rgba(20, 18, 16, 0.4) 68%, rgba(10, 10, 12, 0.5) 82%, transparent 98%),
    /* Базовый - увеличенная оранжевая зона сверху */
    linear-gradient(180deg, 
      #a85a0c 0%,
      #a85a0c 8%,
      #9a520b 14%,
      #8a480a 20%,
      #6a3808 28%,
      #4a2808 38%,
      #2a1808 50%,
      #1a1210 62%,
      #100c0c 74%,
      #0a0808 86%,
      #050505 100%
    );
  padding: clamp(80px, 12vw, 140px) 0 0;
  overflow: hidden;
  animation: partnersReveal 2.4s ease forwards;
}

.landing--blank .token-section::after {
  content: "";
  position: absolute;
  inset: -200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' seed='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.landing--blank .token-section__content {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--edge-offset);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Token Section - Ultra Simple */
.ts-token {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 0 clamp(48px, 8vw, 80px);
}

.ts-token__label {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ts-token__name {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: 1;
  letter-spacing: 0.35em;
  color: #ffffffbf;
  line-height: 1;
}

.ts-token__text {
  margin: clamp(20px, 4vw, 32px) 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.ts-token__link {
  display: inline-block;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.ts-token__link:hover {
  color: #fff;
}

/* Roadmap - Horizontal Track */
.ts-roadmap {
  padding: clamp(48px, 8vw, 80px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ts-roadmap__title {
  margin: 0 0 clamp(32px, 5vw, 48px);
  text-align: center;
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ts-roadmap__track {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.ts-roadmap__track::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.15) 10%,
    rgba(255, 255, 255, 0.15) 90%,
    transparent 100%
  );
}

.ts-roadmap__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 16px);
  position: relative;
}

.ts-roadmap__num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.ts-roadmap__step--done .ts-roadmap__num {
  background: rgba(255, 200, 100, 0.15);
  border-color: rgba(255, 200, 100, 0.3);
  color: rgba(255, 200, 100, 0.9);
}

.ts-roadmap__step:hover .ts-roadmap__num {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.ts-roadmap__name {
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: color 0.3s ease;
}

.ts-roadmap__desc {
  font-size: clamp(0.65rem, 0.9vw, 0.72rem);
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  line-height: 1.5;
  max-width: 140px;
  transition: color 0.3s ease;
}

.ts-roadmap__step:hover .ts-roadmap__name {
  color: rgba(255, 255, 255, 0.9);
}

.ts-roadmap__step:hover .ts-roadmap__desc {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.ts-footer {
  margin-top: clamp(120px, 18vw, 200px);
  padding-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(16px, 3vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 36px);
  text-align: center;
}

.ts-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ts-footer__logo {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
}

.ts-footer__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.ts-footer__links {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
}

.ts-footer__links a {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.ts-footer__links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.ts-footer__legal {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  margin-top: 1rem;
}

.ts-footer__legal a {
  font-size: clamp(0.65rem, 0.9vw, 0.75rem);
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.ts-footer__legal a:hover {
  color: var(--accent-gold);
}

.ts-footer__copy {
  margin: 0;
  font-size: clamp(0.65rem, 0.9vw, 0.72rem);
  color: rgba(255, 255, 255, 0.25);
}

/* Token Section Scroll Animation - Each element triggers independently */
.ts-token,
.ts-roadmap,
.ts-footer {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-token.is-visible,
.ts-roadmap.is-visible,
.ts-footer.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 700px) {
  .ts-token__name {
    font-size: clamp(2rem, 10vw, 3.5rem);
    letter-spacing: 0.2em;
  }
  
  .ts-roadmap__track {
    flex-direction: column;
    gap: clamp(20px, 4vw, 28px);
  }
  
  .ts-roadmap__track::before {
    display: none;
  }
  
  .ts-roadmap__step {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    text-align: left;
  }
  
  .ts-roadmap__num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    grid-row: span 2;
    align-self: start;
  }
  
  .ts-roadmap__name {
    text-align: left;
  }
  
  .ts-footer {
    margin-top: clamp(80px, 12vw, 120px);
  }
  
  .ts-footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 4vw, 24px);
  }
  
  .ts-roadmap__desc {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .landing--blank .token-section {
    padding: clamp(60px, 12vw, 100px) 0 0;
  }
}

@keyframes bgReveal {
  0% {
    filter: brightness(0) saturate(0);
    transform: scale(1.02);
  }
  70% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

@keyframes partnersReveal {
  0% {
    filter: brightness(0) saturate(0);
    transform: scale(1.02);
  }
  70% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

@keyframes lineExpand {
  0% {
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}

@keyframes textRevealUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(6px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes frameReveal {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes letterRise {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes socialFade {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copyFade {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navFade {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  /* Landing-inspired dark palette */
  --bg-root: #08070c;
  --surface-0: #0c0b10;
  --surface-1: #121118;
  --surface-2: #1a1820;
  --surface-3: #242129;
  --surface-contrast: #3a3642;
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --stroke-strong: rgba(255, 255, 255, 0.12);
  /* Orange accent from landing */
  --accent: #d4782a;
  --accent-muted: #e8a05c;
  --accent-soft: rgba(212, 120, 42, 0.18);
  --accent-glow: rgba(212, 120, 42, 0.35);
  --bg-rail: var(--surface-1);
  --bg-column: rgba(14, 13, 18, 0.98);
  --bg-chat: rgba(10, 9, 14, 0.98);
  --bg-panel: rgba(16, 15, 21, 0.98);
  --border: var(--stroke-soft);
  --border-strong: var(--stroke-strong);
  --text-primary: #f5f4f8;
  --text-muted: rgba(245, 244, 248, 0.7);
  --text-subtle: rgba(245, 244, 248, 0.4);
  --shadow-soft: 0 32px 70px rgba(0, 0, 0, 0.65);
  --shadow-float: 0 22px 44px rgba(0, 0, 0, 0.55);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg-root);
  color: var(--text-primary);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(212, 120, 42, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212, 120, 42, 0.05), transparent 50%),
    linear-gradient(180deg, #0a090e 0%, #08070c 50%, #060508 100%);
}

/* Grain texture overlay */
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.20;
  mix-blend-mode: overlay;
}

.app-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 96px minmax(280px, 340px) minmax(0, 1fr) minmax(260px, 320px);
  grid-template-rows: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.nav-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 1rem;
  background: var(--bg-rail);
  border-right: none;
  gap: 1.4rem;
}

/* Thin vertical line on the right with gradient fade */
.nav-rail::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.12) 20%, 
    rgba(255, 255, 255, 0.12) 80%, 
    transparent 100%
  );
}

.nav-rail__logo {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), opacity var(--transition);
}

.nav-rail__logo:hover {
  color: var(--accent-muted);
  opacity: 0.9;
}

.nav-rail__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.6rem;
}

.nav-rail__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.5rem;
  border-radius: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Subtle left accent line */
.nav-rail__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: transparent;
  transition: background var(--transition);
}

.nav-rail__item:hover {
  color: var(--text-primary);
}

.nav-rail__item:hover::before {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.nav-rail__item.is-active {
  color: var(--accent-muted);
}

.nav-rail__item.is-active::before {
  background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.nav-rail__icon {
  width: 26px;
  height: 26px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.nav-rail__label {
  font-size: 0.75rem;
  text-transform: capitalize;
}

.nav-rail__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.nav-rail__connect {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Thin frame lines with gradient fade */
.nav-rail__connect::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    /* Top */
    linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) top / 100% 1px no-repeat,
    /* Bottom */
    linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) bottom / 100% 1px no-repeat,
    /* Left */
    linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) left / 1px 100% no-repeat,
    /* Right */
    linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) right / 1px 100% no-repeat;
  transition: background var(--transition);
}

.nav-rail__connect .icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.nav-rail__connect:hover:not(:disabled) {
  color: var(--accent-muted);
}

.nav-rail__connect:hover:not(:disabled)::before {
  background: 
    /* Top */
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) top / 100% 1px no-repeat,
    /* Bottom */
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) bottom / 100% 1px no-repeat,
    /* Left */
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) left / 1px 100% no-repeat,
    /* Right */
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) right / 1px 100% no-repeat;
}

.nav-rail__connect:hover:not(:disabled) .icon {
  transform: rotate(-45deg);
}

/* Install app button - same style as reconnect */
.nav-rail__install {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-rail__install::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(255, 255, 255, 0.15) 30%, rgba(255, 255, 255, 0.15) 70%, transparent 90%) right / 1px 100% no-repeat;
  transition: background var(--transition);
}

.nav-rail__install .icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.nav-rail__install:hover:not(:disabled) {
  color: var(--accent-muted);
}

.nav-rail__install:hover:not(:disabled)::before {
  background: 
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.5) 30%, rgba(212, 120, 42, 0.5) 70%, transparent 90%) right / 1px 100% no-repeat;
}

.nav-rail__install:hover:not(:disabled) .icon {
  transform: translateY(2px);
}

/* Pulsing animation for install button */
@keyframes install-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 120, 42, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 120, 42, 0);
  }
}

.nav-rail__install.is-pulsing {
  animation: install-pulse 2s ease-in-out infinite;
}

.nav-rail__install.is-pulsing::before {
  background: 
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.3) 30%, rgba(212, 120, 42, 0.3) 70%, transparent 90%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 10%, rgba(212, 120, 42, 0.3) 30%, rgba(212, 120, 42, 0.3) 70%, transparent 90%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.3) 30%, rgba(212, 120, 42, 0.3) 70%, transparent 90%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 10%, rgba(212, 120, 42, 0.3) 30%, rgba(212, 120, 42, 0.3) 70%, transparent 90%) right / 1px 100% no-repeat;
}

/* Install tooltip */
@keyframes tooltip-appear {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px) scale(0.95);
  }
  70% {
    transform: translateY(-50%) translateX(3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes tooltip-glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(212, 120, 42, 0);
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px 2px rgba(212, 120, 42, 0.3);
    border-color: rgba(212, 120, 42, 0.4);
  }
}

.install-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(32, 30, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.install-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.1);
}

.install-tooltip::after {
  content: "";
  position: absolute;
  right: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(32, 30, 38, 0.98);
}

.install-tooltip.is-visible {
  visibility: visible;
  animation: tooltip-appear 0.4s ease forwards, tooltip-glow 2s ease-in-out 0.5s infinite;
}

.install-tooltip__text {
  display: block;
  margin-bottom: 0.25rem;
}

.install-tooltip__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.install-tooltip__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-tooltip__close:hover {
  color: var(--text-primary);
}

.nav-rail__footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.9rem 1.7rem;
  background: var(--bg-column);
  border-right: none;
  backdrop-filter: blur(18px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.list-column::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Thin vertical line on the right with gradient fade */
.list-column::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.08) 20%, 
    rgba(255, 255, 255, 0.08) 80%, 
    transparent 100%
  );
}

.list-column__header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.list-column__profile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.list-column__nickname {
  font-size: 1rem;
  font-weight: 600;
}

.list-column__wallet {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Thin lines frame around profile card */
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    /* Top line with fade */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 15%, rgba(255, 255, 255, 0.15) 85%, transparent 100%) top / 100% 1px no-repeat,
    /* Bottom line with fade */
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 15%, rgba(255, 255, 255, 0.1) 85%, transparent 100%) bottom / 100% 1px no-repeat;
}

.profile-card__avatar {
  box-shadow: 0 12px 24px rgba(212, 120, 42, 0.2);
}

.profile-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.profile-card__wallet {
  font-size: 0.78rem;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-card__wallet-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-card__wallet-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.profile-card__status {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.profile-card__status-text {
  max-width: 120px;
  text-align: right;
  font-weight: 500;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffb85c;
  box-shadow: 0 0 6px rgba(255, 184, 92, 0.6);
}

.status-dot.is-online {
  background: #39f2ce;
  box-shadow: 0 0 6px rgba(57, 242, 206, 0.6);
}

.status-dot.is-offline {
  background: #ff5c5c;
  box-shadow: 0 0 6px rgba(255, 92, 92, 0.6);
}

.list-column__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-soft);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* removed share card styles */

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.search-field input {
  background: transparent;
  border: none;
  width: 100%;
  color: inherit;
  font-size: 0.9rem;
  outline: none;
}

.search-field--compact {
  max-width: 220px;
}

.search-field--accent {
  border: 1px solid rgba(212, 120, 42, 0.25);
  background: rgba(212, 120, 42, 0.08);
}

.list-column__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.sidebar__controls {
  margin-top: 0.5rem;
}

.primary-button--block {
  width: 100%;
}

.sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.4rem;
  flex: 1;
}

.sidebar-default {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-default::-webkit-scrollbar {
  display: none;
  min-height: 0;
}

[data-role="sidebar-default"][hidden] {
  display: none !important;
}

.profile-panel {
  flex: 1;
  gap: 1.2rem;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-panel::-webkit-scrollbar {
  display: none;
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-panel__card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.profile-panel__identity {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.profile-panel__name {
  font-size: 1.1rem;
  font-weight: 600;
}

.profile-panel__wallet {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.profile-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-panel__form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-panel__input {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.profile-panel__input:focus-within {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.profile-panel__input input {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  flex: 1;
  outline: none;
}

.profile-panel__prefix {
  color: var(--text-subtle);
  font-weight: 600;
}

.profile-panel__notice {
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.45;
}

.settings-panel {
  flex: 1;
  gap: 1rem;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.settings-panel::-webkit-scrollbar {
  display: none;
}

.settings-panel[hidden] {
  display: none !important;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px rgba(0, 0, 0, 0.3);
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.settings-option--logout {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.settings-option__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.settings-option__actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-option__title {
  font-weight: 600;
  font-size: 1rem;
}

.settings-option__description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.settings-toggle {
  position: relative;
  width: 2.75rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-toggle__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.settings-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #ffffff;
  transition: left 0.2s ease;
}

.settings-toggle input:checked + .settings-toggle__track {
  background: var(--accent);
}

.settings-toggle input:checked + .settings-toggle__track::after {
  left: calc(100% - 1rem - 4px);
}

.settings-toggle input:focus-visible + .settings-toggle__track {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Settings select dropdown */
.settings-select {
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.settings-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.1);
}

.settings-select:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-select option {
  background: #1a1a1f;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Settings tooltip */
.settings-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: help;
  position: relative;
  vertical-align: middle;
}

.settings-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 0.6rem 0.8rem;
  background: rgba(20, 18, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.settings-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 101;
}

.settings-tooltip:hover::after,
.settings-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.sidebar__section-title {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Thin line under section title */
.sidebar__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 100%
  );
}

.sidebar__security-note {
  margin: 0.6rem 0 0;
  font-size: 0.7rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

.chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--surface-2);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.chat-item:hover {
  border-color: rgba(212, 120, 42, 0.2);
  background: rgba(212, 120, 42, 0.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.chat-item.is-active {
  border-color: rgba(212, 120, 42, 0.5);
  background: linear-gradient(135deg, rgba(212, 120, 42, 0.15), rgba(60, 45, 35, 0.8));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.chat-item--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1.1rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  cursor: default;
}

.chat-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.chat-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item__preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chat-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  min-width: 44px;
}

.chat-item__time {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.chat-item__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-muted);
  box-shadow: none;
}

.chat-item__pin svg {
  width: 12px;
  height: 12px;
}

.badge {
  min-width: 20px;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-muted));
}

/* CHAT COLUMN ------------------------------------------------- */
.chat-column {
  display: flex;
  flex-direction: column;
  background: var(--bg-chat);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.chat-column__header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.8rem;
  border-bottom: none;
  background: transparent;
}

/* Thin bottom line with gradient fade */
.chat-column__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%
  );
}

.chat-column__contact {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.85rem;
  align-items: center;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.chat-column__contact.is-active {
  opacity: 1;
}

.chat-column__actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* Call button in chat header */
.chat-column__actions .call-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.chat-column__actions .call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.chat-column__actions .call-btn:active {
  transform: scale(0.95);
}

.chat-column__actions .call-btn svg {
  width: 18px;
  height: 18px;
  color: white;
  stroke-width: 2;
}

.chat-column__actions .call-btn[hidden] {
  display: none;
}

/* Mobile call button */
@media (max-width: 768px) {
  .chat-column__actions .call-btn {
    width: 32px;
    height: 32px;
  }
  
  .chat-column__actions .call-btn svg {
    width: 16px;
    height: 16px;
  }
}

.chat-column__body {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
}

.timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 1.8rem 2.3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.08), transparent 55%), var(--surface-1);
}

.timeline-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 2rem;
  pointer-events: none;
}

.timeline__day {
  align-self: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-subtle);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bubble {
  max-width: clamp(280px, 60%, 520px);
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(47, 48, 58, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  box-shadow: 0 16px 26px rgba(2, 3, 6, 0.65);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212, 120, 42, 0.25), rgba(140, 75, 25, 0.75));
  border-color: rgba(212, 120, 42, 0.35);
}

/* Token-only bubble: transparent, no padding, just the card */
.bubble--token-only {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 380px;
}

.bubble--token-only .pump-card {
  margin: 0;
  max-width: none;
}

.bubble--system {
  align-self: center;
  max-width: min(90%, 520px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  text-align: center;
  box-shadow: none;
  border-radius: 14px;
}

.bubble--system .bubble__text {
  font-weight: 600;
}

.bubble--nickname-change {
  background: rgba(153, 69, 255, 0.1);
  border: 1px dashed rgba(153, 69, 255, 0.4);
}

.bubble--nickname-change .bubble__text {
  font-weight: 500;
}

.bubble--nickname-change .nickname-old {
  color: var(--text-secondary);
}

.bubble--nickname-change .nickname-new {
  color: #9945ff;
  font-weight: 600;
}

/* Call message bubbles */
.bubble--call {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 12px 16px;
}

.bubble--call-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.bubble--call-missed {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.bubble__call-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bubble__call-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bubble--call-success .bubble__call-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.bubble--call-missed .bubble__call-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.bubble__call-icon svg {
  width: 18px;
  height: 18px;
}

.call-icon--outgoing {
  transform: rotate(45deg);
}

.call-icon--incoming {
  transform: rotate(-135deg);
}

.bubble__call-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bubble__call-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.bubble--call-missed .bubble__call-text {
  color: #ef4444;
}

.bubble__call-duration {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Mobile call bubbles */
@media (max-width: 480px) {
  .bubble--call {
    padding: 10px 14px;
  }
  
  .bubble__call-icon {
    width: 32px;
    height: 32px;
  }
  
  .bubble__call-icon svg {
    width: 16px;
    height: 16px;
  }
}

.bubble__text {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.bubble__text mark {
  background: rgba(57, 242, 206, 0.3);
  border-radius: 6px;
  padding: 0 3px;
}

.bubble__link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 120, 42, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
  word-break: break-all;
}

.bubble__link:hover {
  color: var(--accent-muted);
  border-bottom-color: var(--accent-muted);
}

.bubble--out .bubble__link {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.bubble--out .bubble__link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* Pump.fun Style Token Card */
.pump-card {
  --pump-pink: #ff6b9d;
  --pump-purple: #8b5cf6;
  --pump-dark: #1a1625;
  
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  background: linear-gradient(145deg, #2d1f3d 0%, #1a1428 50%, #1f1a2e 100%);
  border: 1px solid rgba(255, 107, 157, 0.25);
  border-radius: 16px;
  max-width: 360px;
  min-width: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(139, 92, 246, 0.15),
    0 0 40px rgba(255, 107, 157, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gradient glow overlay */
.pump-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 107, 157, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Grain texture */
.pump-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Outgoing message variant */
.bubble--out .pump-card {
  background: linear-gradient(145deg, #3d2847 0%, #281a33 50%, #2e1f3d 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Top section: avatar + info */
.pump-card__top {
  display: flex;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.pump-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pump-pink), var(--pump-purple));
  box-shadow: 0 2px 12px rgba(255, 107, 157, 0.3);
}

.pump-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pump-card__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pump-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pump-card__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pump-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.pump-card__change-main {
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
}

.pump-card__change-main.is-up {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.pump-card__change-main.is-down {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.pump-card__ticker {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.pump-card__mcap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.pump-card__mcap {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pump-card__mcap::before {
  content: "MC ";
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  vertical-align: middle;
}

.pump-card__changes {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.pump-card__changes span {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.12rem 0.3rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.pump-card__changes span.is-up {
  color: #4ade80;
}

.pump-card__changes span.is-down {
  color: #f87171;
}

/* Stats grid */
.pump-card__stats {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.pump-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.pump-card__stat-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}

.pump-card__stat-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.pump-card__stat-value .buy,
.pump-card__stat-value em.buy {
  color: #4ade80;
  font-style: normal;
}

.pump-card__stat-value .sell,
.pump-card__stat-value em.sell {
  color: #f87171;
  font-style: normal;
}

/* Bonding progress */
.pump-card__bonding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.pump-card__bonding-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.pump-card__bonding-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pump-pink), var(--pump-purple));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.5);
}

.pump-card__bonding-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  white-space: nowrap;
}

/* Footer */
.pump-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.pump-card__badges {
  display: flex;
  gap: 0.35rem;
}

.pump-card__badge {
  font-size: 0.58rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pump-card__badge--dex {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(139, 92, 246, 0.25));
  color: var(--pump-pink);
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.pump-card__badge--age {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.pump-card__socials {
  display: flex;
  gap: 0.4rem;
}

.pump-card__social {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.pump-card__social:hover {
  background: rgba(255, 107, 157, 0.2);
  color: var(--pump-pink);
  transform: translateY(-1px);
}

.pump-card__social svg {
  width: 12px;
  height: 12px;
}

.pump-card__open {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pump-pink);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pump-card__open:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: rgba(255, 107, 157, 0.4);
  transform: translateY(-1px);
}

.pump-card__open svg {
  width: 11px;
  height: 11px;
}

/* Link Preview Card */
.link-preview {
  display: flex;
  flex-direction: column;
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  max-width: 320px;
  transition: all 0.2s ease;
}

.link-preview:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.bubble--out .link-preview {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.12);
}

.bubble--out .link-preview:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-preview__image {
  width: 100%;
  max-height: 160px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.link-preview__image img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.link-preview__content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.link-preview__site {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.link-preview__favicon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.link-preview__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-preview__desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .link-preview {
    max-width: 100%;
  }
  
  .link-preview__image {
    max-height: 140px;
  }
  
  .link-preview__image img {
    max-height: 140px;
  }
}

/* Legacy token-preview - keeping for backwards compatibility */
.token-preview {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.85rem;
  max-width: 320px;
}

.bubble--out .token-preview {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

.token-preview__header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.token-preview__image-wrapper {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  position: relative;
}

.token-preview__image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.token-preview__image-fallback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.token-preview__name-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.token-preview__name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.token-preview__symbol-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.token-preview__symbol {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.token-preview__dex-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border-radius: 3px;
  font-weight: 500;
}

.token-preview__age-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 3px;
  font-weight: 500;
}

.token-preview__changes {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.token-preview__change {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.token-preview__change .label {
  font-size: 0.6rem;
  opacity: 0.7;
  font-weight: 500;
}

.token-preview__change--small {
  padding: 0.1rem 0.3rem;
  font-size: 0.65rem;
}

.token-preview__change.is-positive {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.token-preview__change.is-negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.token-preview__description {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.token-preview__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.token-preview__stats--txns {
  grid-template-columns: repeat(3, 1fr);
  border-top: none;
  padding-top: 0.3rem;
}

.token-preview__stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.token-preview__stat.is-buy .token-preview__stat-value {
  color: #22c55e;
}

.token-preview__stat.is-sell .token-preview__stat-value {
  color: #ef4444;
}

.token-preview__stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.token-preview__stat-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.token-preview__socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.token-preview__social {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.token-preview__social:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.token-preview__social svg {
  width: 14px;
  height: 14px;
}

.token-preview__progress {
  margin-top: 0.6rem;
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.token-preview__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.token-preview__progress-label {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.bubble__meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-end;
}

.bubble__meta--system {
  justify-content: center;
}

.bubble__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: capitalize;
}

.bubble__link {
  color: var(--accent);
  text-decoration: none;
}

.bubble__link:hover {
  text-decoration: underline;
}

.bubble__status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.bubble--out .bubble__status::before {
  background: var(--accent-soft);
}

/* Reaction styles */
.bubble {
  position: relative;
}

.bubble__reaction-btn {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-tertiary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.bubble--in .bubble__reaction-btn {
  right: auto;
  left: -32px;
}

.bubble:hover .bubble__reaction-btn {
  opacity: 0.7;
}

.bubble__reaction-btn:hover {
  opacity: 1 !important;
  background: var(--bg-hover);
  transform: translateY(-50%) scale(1.1);
}

.bubble__reaction-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.bubble__reactions {
  position: absolute;
  bottom: -18px;
  right: 4px;
  display: flex;
  gap: 3px;
  z-index: 5;
}

.bubble--in .bubble__reactions {
  right: auto;
  left: 4px;
}

.bubble--has-reactions {
  margin-bottom: 22px;
}

.reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.reaction-badge:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.reaction-badge--mine {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

.reaction-badge__emoji {
  font-size: 0.95rem;
  line-height: 1;
}

.reaction-badge__count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.reaction-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  transform: scale(0.9);
  transform-origin: bottom left;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.bubble--out .reaction-picker {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}

.reaction-picker.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.reaction-picker__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reaction-picker__btn:hover {
  background: var(--bg-hover);
  transform: scale(1.2);
}

/* Mobile adjustments for reactions */
@media (max-width: 768px) {
  .bubble__reaction-btn {
    right: -28px;
    width: 24px;
    height: 24px;
  }
  
  .bubble--in .bubble__reaction-btn {
    left: -28px;
  }
  
  .bubble__reaction-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .reaction-picker {
    padding: 6px 10px;
  }
  
  .reaction-picker__btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* Touch devices - always show reaction button */
@media (pointer: coarse) {
  .bubble__reaction-btn {
    opacity: 0.5;
  }
}

/* Swipe indicators for mobile */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 1;
}

.swipe-indicator svg {
  width: 20px;
  height: 20px;
}

.swipe-indicator--reply {
  background: rgba(57, 242, 206, 0.2);
  color: var(--accent-secondary);
}

.swipe-indicator--delete {
  background: rgba(255, 77, 77, 0.2);
  color: #ff4d4d;
}

.swipe-indicator.is-ready {
  transform: translateY(-50%) scale(1.2);
}

.swipe-indicator.is-ready.swipe-indicator--reply {
  background: rgba(57, 242, 206, 0.4);
}

.swipe-indicator.is-ready.swipe-indicator--delete {
  background: rgba(255, 77, 77, 0.4);
}

/* Message wrapper for swipe */
.message-wrap {
  position: relative;
}

.bubble__reply {
  align-self: stretch;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  padding-left: 0.75rem;
  margin-bottom: 0.1rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.bubble__reply[data-reply-id] {
  cursor: pointer;
}

.bubble__reply[data-reply-id]:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Highlight animation when scrolling to message */
.bubble--highlight {
  animation: highlight-pulse 1.5s ease-out;
}

@keyframes highlight-pulse {
  0% {
    background-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.bubble__reply-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.bubble__reply-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bubble__forward {
  align-self: stretch;
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  padding-left: 0.15rem;
}

.bubble__forward-bar {
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.bubble__forward-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.bubble__forward-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}


.composer {
  position: relative;
  border-top: none;
  padding: 1.2rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent;
}

/* Thin top line with gradient fade */
.composer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent 100%
  );
}

.composer__reply {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.composer__reply[hidden] {
  display: none !important;
}

.composer__reply-bar {
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--accent);
}

.composer__reply-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.composer__reply-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.composer__reply-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}

.composer__reply-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.composer__reply-close:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.composer__reply-close .icon {
  width: 12px;
  height: 12px;
}

.composer__input {
  width: 100%;
  min-height: 60px;
  max-height: 180px;
  resize: none;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-soft);
  background: var(--surface-2);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  scrollbar-width: none;
  outline: none;
}
.composer__input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.composer__input::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.composer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.composer__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.context-menu {
  position: fixed;
  min-width: 150px;
  background: rgba(32, 30, 38, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 9999;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

/* Grain texture overlay for context menu */
.context-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.20;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  border-radius: 6px;
}

/* Top line */
.context-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 70%, transparent 100%);
}

.context-menu[data-direction="out"] {
  background: rgba(38, 34, 48, 0.96);
}

.context-menu.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.context-menu[hidden] {
  display: none;
}

.context-menu button {
  position: relative;
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 1;
}

/* Bottom line for each button */
.context-menu button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent 100%);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.context-menu button:last-child::after {
  display: none;
}

.context-menu button:hover {
  color: var(--accent);
  background: rgba(212, 120, 42, 0.08);
}

.context-menu button:hover::after {
  opacity: 0;
}

.context-menu button.is-danger {
  color: #ff9eaa;
}

.context-menu button.is-danger:hover {
  color: #ffb0ba;
  background: rgba(255, 140, 160, 0.1);
}

.context-menu button.is-danger:hover::after {
  opacity: 0;
}

/* Push Notifications Modal */
.push-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.push-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.push-modal[hidden] {
  display: none;
}

.push-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.75);
  backdrop-filter: blur(8px);
}

.push-modal__panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s ease;
}

.push-modal.is-visible .push-modal__panel {
  transform: translateY(0) scale(1);
}

.push-modal__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bellRing 0.5s ease-in-out 0.3s;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-5deg); }
}

.push-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.push-modal__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.push-modal__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.push-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.push-modal__actions .ghost-button,
.push-modal__actions .primary-button {
  flex: 1;
  max-width: 140px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transition: background 0.2s ease;
}

.toggle-switch__slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: rgba(57, 242, 206, 0.3);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(22px);
  background: var(--accent-secondary);
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.forward-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 10, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.forward-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.forward-modal[hidden] {
  display: none;
}

.forward-modal__panel {
  width: min(520px, 90vw);
  max-height: 80vh;
  background: linear-gradient(165deg, rgba(18, 17, 24, 0.98), rgba(12, 11, 16, 0.98));
  border: 1px solid rgba(212, 120, 42, 0.15);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.forward-modal.is-visible .forward-modal__panel {
  transform: translateY(0);
}

.forward-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.forward-modal__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.forward-modal__subtitle {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.forward-modal__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
}

.forward-modal__search input {
  border: none;
  background: transparent;
  flex: 1;
  color: inherit;
  font-size: 0.95rem;
  outline: none;
}

.forward-modal__list {
  flex: 1;
  min-height: 200px;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.forward-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.forward-modal__selection {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.forward-modal__selection-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.forward-modal__selection-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.forward-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.forward-send {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.forward-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.forward-item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.forward-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.forward-item__name {
  font-weight: 600;
}

.forward-item__preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forward-modal__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.forward-close-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.forward-close-button .icon {
  width: 14px;
  height: 14px;
}

.forward-close-button--text {
  width: auto;
  height: auto;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
}

.forward-close-button:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

/* INFO PANEL -------------------------------------------------- */
.info-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.85rem;
  background: var(--bg-panel);
  border-left: none;
  backdrop-filter: blur(18px);
}

/* Thin vertical line on the left with gradient fade */
.info-panel::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.08) 20%, 
    rgba(255, 255, 255, 0.08) 80%, 
    transparent 100%
  );
}

.info-panel__section {
  position: relative;
  border-radius: 0;
  border: none;
  padding: 1.35rem 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Thin lines top and bottom for sections */
.info-panel__section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.1) 70%, 
    transparent 100%
  );
}

.info-panel__section--placeholder {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.info-panel__section--payment {
  gap: 0.8rem;
}

.info-panel__header {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.9rem;
  align-items: center;
}

.info-panel__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-panel__form input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.info-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-panel__subtitle {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin: 0.3rem 0 0;
}

.payment-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-field__control {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.payment-field__control:focus-within {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.payment-field__control input,
.payment-field__control select {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
}

.payment-field__control input {
  width: 100%;
  outline: none;
}

.payment-field__control select {
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.info-panel__notice {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Scanner Panel */
.info-panel--scanner {
  grid-column: 4;
  grid-row: 1;
  display: none;
}

.info-panel--scanner[hidden] {
  display: none !important;
}

.info-panel--scanner:not([hidden]) {
  display: flex;
}

@media (max-width: 1280px) {
  .info-panel--scanner {
    display: none !important;
  }
}

.scanner-panel__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.info-panel__about {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.info-panel__about:last-child {
  margin-bottom: 0;
}

.info-panel__about strong {
  color: var(--text-primary);
}

/* SHARED COMPONENTS ------------------------------------------ */
.avatar-button,
.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(212, 120, 42, 0.2);
  background: linear-gradient(135deg, rgba(212, 120, 42, 0.2), rgba(140, 75, 25, 0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  font-size: 1rem;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  user-select: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.avatar-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.contact-avatar--lg {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.contact-avatar--sm {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.ghost-button {
  position: relative;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  border: none;
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Thin lines top and bottom with fade */
.ghost-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 70%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.12) 70%, transparent 100%) bottom / 100% 1px no-repeat;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.ghost-button:hover:not(:disabled) {
  color: var(--accent-muted);
}

.ghost-button:hover:not(:disabled)::before {
  opacity: 1;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(212, 120, 42, 0.4) 30%, rgba(212, 120, 42, 0.4) 70%, transparent 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(212, 120, 42, 0.4) 30%, rgba(212, 120, 42, 0.4) 70%, transparent 100%) bottom / 100% 1px no-repeat;
}

.ghost-button--danger {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ff9ea9;
}

.ghost-button--danger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffbac2;
}

.ghost-button:disabled {
  opacity: 0.45;
  border-color: rgba(140, 91, 255, 0.25);
}

.ghost-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.ghost-icon-button:hover:not(:disabled) {
  background: rgba(140, 91, 255, 0.18);
  border-color: rgba(140, 91, 255, 0.55);
  transform: translateY(-1px);
}

.ghost-icon-button.is-active {
  border-color: rgba(140, 91, 255, 0.85);
  background: rgba(140, 91, 255, 0.2);
  box-shadow: var(--shadow-float);
}

/* Call button in chat header */
.ghost-icon-button.call-btn {
  color: var(--accent);
}

.ghost-icon-button.call-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.ghost-icon-button.call-btn svg {
  width: 18px;
  height: 18px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #b8621e 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 4px 16px var(--accent-soft);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
  background: linear-gradient(135deg, var(--accent-muted) 0%, var(--accent) 100%);
}

/* TOAST & OVERLAYS ------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  padding: 0.9rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(140, 91, 255, 0.4);
  background: rgba(18, 22, 34, 0.95);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.connect-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 13, 20, 0.6);
  backdrop-filter: blur(10px);
  z-index: 80;
}

.connect-overlay[hidden] {
  display: none !important;
}

.connect-overlay__panel[hidden] {
  display: none !important;
}

.connect-overlay__panel {
  width: min(360px, 90vw);
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connect-overlay__panel h1 {
  margin: 0;
  font-size: 1.6rem;
}

.connect-overlay__panel p {
  margin: 0;
  color: var(--text-muted);
}

.connect-overlay__button {
  margin-top: 0.5rem;
  align-self: center;
  padding-inline: 2.5rem;
}

/* ===== EMOJI PICKER CUSTOM STYLES ===== */
.picmo__popupContainer {
  z-index: 120 !important;
}

/* Main picker container - override all possible selectors */
.picmo__picker,
.picmo-picker,
[data-theme="dark"],
div[class*="picmo"] {
  --background-color: #151320 !important;
  --secondary-background-color: #1a1829 !important;
  --border-color: rgba(255, 255, 255, 0.1) !important;
  --category-tab-color: rgba(255, 255, 255, 0.5) !important;
  --category-tab-highlight-color: #9945ff !important;
  --category-tab-active-color: #9945ff !important;
  --text-color: #f0f0f0 !important;
  --secondary-text-color: rgba(255, 255, 255, 0.6) !important;
  --search-background-color: rgba(255, 255, 255, 0.06) !important;
  --search-focus-background-color: rgba(255, 255, 255, 0.1) !important;
  --search-placeholder-color: rgba(255, 255, 255, 0.4) !important;
  --search-icon-color: rgba(255, 255, 255, 0.4) !important;
  --hover-color: rgba(153, 69, 255, 0.2) !important;
  --focus-indicator-color: #9945ff !important;
  --focus-indicator-background-color: rgba(153, 69, 255, 0.2) !important;
}

/* Force background on picker */
.picmo__picker {
  background: #151320 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  overflow: visible !important;
  min-width: 320px !important;
}

/* Popup container sizing */
.picmo__popupContainer > div,
.picmo__popupContent {
  background: #151320 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  overflow: hidden !important;
}

/* Header/search area */
.picmo__header {
  background: #1a1829 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Search input */
.picmo__searchContainer input,
input[class*="search"] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #f0f0f0 !important;
}

.picmo__searchContainer input:focus {
  border-color: rgba(153, 69, 255, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(153, 69, 255, 0.2) !important;
  outline: none !important;
}

/* Category tabs bar */
.picmo__categoryButtons {
  background: #1a1829 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Category tab buttons */
.picmo__categoryButton,
button[class*="category"] {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.picmo__categoryButton:hover {
  background: rgba(153, 69, 255, 0.15) !important;
  color: #9945ff !important;
}

.picmo__categoryButton[aria-selected="true"],
.picmo__categoryButton.active {
  background: rgba(153, 69, 255, 0.2) !important;
  color: #9945ff !important;
}

/* Emoji grid area */
.picmo__content,
.picmo__emojiArea {
  background: #151320 !important;
}

/* Category headers */
.picmo__categoryName,
h2[class*="category"] {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
}

/* Emoji buttons */
.picmo__emoji,
button[class*="emoji"] {
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.picmo__emoji:hover,
button[class*="emoji"]:hover {
  background: rgba(153, 69, 255, 0.25) !important;
  transform: scale(1.15) !important;
}

/* Close button */
.picmo__closeButton,
button[aria-label="Close"] {
  color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
}

.picmo__closeButton:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* Scrollbar */
.picmo__content::-webkit-scrollbar,
.picmo__emojiArea::-webkit-scrollbar {
  width: 6px !important;
}

.picmo__content::-webkit-scrollbar-track,
.picmo__emojiArea::-webkit-scrollbar-track {
  background: transparent !important;
}

.picmo__content::-webkit-scrollbar-thumb,
.picmo__emojiArea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 3px !important;
}

.picmo__content::-webkit-scrollbar-thumb:hover,
.picmo__emojiArea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.onboarding {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 70;
  overflow-y: auto;
}

.onboarding[hidden] {
  display: none !important;
}

.onboarding__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 24, 0.78);
  backdrop-filter: blur(14px);
}

.onboarding__dialog {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 10vh auto;
  padding: 1.9rem;
  border-radius: 22px;
  border: 1px solid rgba(212, 120, 42, 0.25);
  background: linear-gradient(165deg, rgba(18, 16, 22, 0.98) 0%, rgba(12, 11, 16, 0.98) 100%);
  box-shadow: 
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(212, 120, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.onboarding__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding__header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.onboarding__step {
  display: none;
  flex-direction: column;
  gap: 1.1rem;
}

.onboarding__step.is-active {
  display: flex;
}

.onboarding__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.onboarding__form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.onboarding__form input {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1rem;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.share-card--onboarding {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 120, 42, 0.2);
  background: rgba(212, 120, 42, 0.08);
}

.share-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ICONS ------------------------------------------------------- */
.icon {
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.icon-chats {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M4 4h16v11H7l-3 3z"/></svg>');
}

.icon-contacts {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11a3 3 0 1 0-3-3a3 3 0 0 0 3 3Zm-8 0a3 3 0 1 0-3-3a3 3 0 0 0 3 3Zm8 2c-2.5 0-6 1.17-6 3v3h12v-3c0-1.83-3.5-3-6-3Zm-8 0c-1.96 0-6 1.12-6 3v3h8v-3c0-1.09.27-2.09.77-2.94A7.21 7.21 0 0 0 8 13Z"/></svg>');
}

.icon-favorites {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m12 17.27l-4.15 2.73l1.1-4.73L5 11.5l4.9-.42L12 6.5l2.1 4.58l4.9.42l-3.95 3.77l1.1 4.73Z"/></svg>');
}

.icon-profile {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 12a5 5 0 1 0-5-5a5 5 0 0 0 5 5Zm0 2c-3.87 0-7 2.13-7 4.75V21h14v-2.25C19 16.13 15.87 14 12 14Z"/></svg>');
}

.icon-settings {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M19.14 12.94c.04-.31.06-.63.06-.94s-.02-.63-.06-.94l2.03-1.58a.5.5 0 0 0 .12-.63l-1.92-3.32a.5.5 0 0 0-.6-.22l-2.39.96c-.51-.39-1.05-.72-1.63-.94l-.36-2.54a.5.5 0 0 0-.5-.43h-3.78a.5.5 0 0 0-.5.43l-.36 2.54c-.58.22-1.13.55-1.64.94l-2.38-.95a.5.5 0 0 0-.6.22L3.22 7.88a.5.5 0 0 0 .12.63l2.03 1.58c-.05.31-.07.64-.07.97s.03.66.07.97l-2.03 1.58a.5.5 0 0 0-.12.63l1.92 3.32a.5.5 0 0 0 .6.22l2.39-.96c.5.35 1.06.66 1.64.88l.36 2.54a.5.5 0 0 0 .5.43h3.78a.5.5 0 0 0 .5-.43l.36-2.54c.58-.22 1.12-.55 1.63-.94l2.39.96a.5.5 0 0 0 .6-.22l1.92-3.32a.5.5 0 0 0-.12-.63Zm-7.14 2.56a3.5 3.5 0 1 1 0-7a3.5 3.5 0 0 1 0 7Z"/></svg>');
}

.icon-scanner {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3 5v4h2V5h4V3H5a2 2 0 0 0-2 2Zm2 10H3v4a2 2 0 0 0 2 2h4v-2H5v-4Zm14 4h-4v2h4a2 2 0 0 0 2-2v-4h-2v4Zm0-16h-4v2h4v4h2V5a2 2 0 0 0-2-2ZM12 7a5 5 0 1 0 5 5a5 5 0 0 0-5-5Zm0 8a3 3 0 1 1 3-3a3 3 0 0 1-3 3Z"/></svg>');
}

.icon-wallet {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M20 6H4a2 2 0 0 0-2 2v10h20V8a2 2 0 0 0-2-2Zm-2 7a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 18 13Zm2-7V4H4v2Z"/></svg>');
}

.icon-reload {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6V3L8 7l4 4V8a4 4 0 1 1-4 4H6a6 6 0 1 0 6-6Z"/></svg>');
}

.icon-download {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M5 20h14v-2H5v2zm7-18v10.17l3.59-3.58L17 10l-5 5-5-5 1.41-1.41L12 12.17V2z"/></svg>');
}

.icon-trash {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M9 3v1H4v2h16V4h-5V3zm1 4v11h2V7zm-4 0v11h2V7zm8 0v11h2V7z"/></svg>');
}

.icon-search {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m15.5 14 5 5l-1.5 1.5l-5-5V14h1.5M11 16a5 5 0 1 1 5-5a5 5 0 0 1-5 5Z"/></svg>');
}

.icon-info {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 19a7 7 0 1 1 7-7a7 7 0 0 1-7 7Zm1-5v-4h-2v4Zm0-6V6h-2v2Z"/></svg>');
}

.icon-emoji {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 3a9 9 0 1 0 9 9a9 9 0 0 0-9-9Zm-3 6a1 1 0 1 1-1 1a1 1 0 0 1 1-1Zm6 6H9a3 3 0 0 1 6 0Zm0-5a1 1 0 1 1 1 1a1 1 0 0 1-1-1Z"/></svg>');
}

.icon-close {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m18.3 5.71l-6.29 6.29l-6.3-6.3l-1.41 1.42l6.29 6.29l-6.29 6.29l1.41 1.41l6.3-6.29l6.29 6.29l1.41-1.41L13.41 13l6.29-6.29z"/></svg>');
}

.icon-arrow-left {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20v-2z"/></svg>');
}

.icon-menu {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>');
}

/* =====================
   TOKEN SCANNER REPORT
   ===================== */

.bubble--scanner-system {
  background: var(--surface-2);
  max-width: 90%;
}

.bubble--scanner-report {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  max-width: 400px;
}

.scanner-report {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.9rem;
}

.scanner-report__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-report__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.scanner-report__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-report__title-block {
  flex: 1;
  min-width: 0;
}

.scanner-report__name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scanner-report__symbol {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scanner-report__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scanner-report__score--safe {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.scanner-report__score--caution {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.scanner-report__score--risky {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.scanner-report__score--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.scanner-report__score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.scanner-report__score-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scanner-report__market {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-report__price {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.scanner-report__price strong {
  color: var(--text-primary);
}

.scanner-report__change {
  font-size: 0.85rem;
  font-weight: 600;
}

.scanner-report__change--positive {
  color: #10b981;
}

.scanner-report__change--negative {
  color: #ef4444;
}

.scanner-report__stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scanner-report__stats strong {
  color: var(--text-secondary);
}

.scanner-report__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-report__flag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.scanner-report__flag--ok {
  color: #10b981;
}

.scanner-report__flag--warn {
  color: #f59e0b;
}

.scanner-report__section {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-report__section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.scanner-report__holders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scanner-report__holder-addr {
  font-family: var(--font-mono);
}

.scanner-report__holder-pct {
  color: var(--text-secondary);
}

.scanner-report__clusters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scanner-report__cluster {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scanner-report__cluster-reason {
  color: #f59e0b;
  font-style: italic;
}

.scanner-report__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scanner-report__social-link {
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s ease;
}

.scanner-report__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.scanner-report__footer {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.scanner-report__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.scanner-report__status {
  text-transform: capitalize;
}

.scanner-report__buttons {
  display: flex;
  gap: 8px;
}

.scanner-report__btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scanner-report__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Share Modal */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.share-modal__content {
  position: relative;
  background: var(--surface-1);
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.share-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.share-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.share-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.share-modal__close:hover {
  color: var(--text-primary);
}

.share-modal__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
}

.share-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.share-modal__item:hover {
  background: var(--surface-2);
}

.share-modal__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.share-modal__name {
  font-size: 0.95rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner-report__full-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.scanner-report__full-link:hover {
  text-decoration: underline;
}

.scanner-report__holder-idx {
  color: var(--text-muted);
  width: 24px;
  flex-shrink: 0;
}

.scanner-report__holder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 8px;
}

.scanner-report__holder--hidden {
  display: none;
}

.scanner-report__expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 6px;
}

.scanner-report__expand-btn:hover {
  text-decoration: underline;
}

/* Mobile back button - REMOVED, using close button instead */
.mobile-back-btn {
  display: none !important;
}

/* Mobile bottom navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0));
  background: var(--bg-rail);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  flex: 1;
  max-width: 80px;
}

.mobile-nav__item:active {
  transform: scale(0.95);
}

.mobile-nav__item.is-active {
  color: var(--accent);
}

.mobile-nav__item .icon {
  width: 22px;
  height: 22px;
}

.mobile-nav__label {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Mobile Info Button */
.mobile-info-btn {
  display: none;
}

/* Mobile Info Sheet (Bottom Sheet) */
.mobile-info-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-info-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-info-sheet__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--surface-1);
  border-radius: 20px 20px 0 0;
  padding: 0.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-info-sheet[data-visible="true"] .mobile-info-sheet__panel {
  transform: translateY(0);
}

.mobile-info-sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
}

.mobile-info-sheet__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.mobile-info-sheet__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.mobile-info-sheet__meta {
  flex: 1;
  min-width: 0;
}

.mobile-info-sheet__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.mobile-info-sheet__pubkey {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-info-sheet__section {
  padding: 0.75rem 0;
}

.mobile-info-sheet__section--payment {
  /* Hidden on mobile - Send SOL not supported via deeplinks */
  display: none;
}

.mobile-info-sheet__section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.mobile-info-sheet__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.mobile-info-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-info-sheet__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-info-sheet__field input {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.mobile-info-sheet__field input:focus {
  outline: none;
  border-color: var(--accent);
}

.mobile-info-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.mobile-info-sheet__action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.mobile-info-sheet__action:hover,
.mobile-info-sheet__action:active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.mobile-info-sheet__action .icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.mobile-info-sheet__action--danger {
  color: #ff6b6b;
}

.mobile-info-sheet__action--danger:hover,
.mobile-info-sheet__action--danger:active {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.mobile-info-sheet__payment {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mobile-info-sheet__payment input,
.mobile-info-sheet__payment select {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.mobile-info-sheet__payment input:focus,
.mobile-info-sheet__payment select:focus {
  outline: none;
  border-color: var(--accent);
}

.mobile-info-sheet__recipient {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.icon-more {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z"/></svg>');
}

.icon-copy {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
}

.icon-trash {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>');
}

.icon-clear {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 16h2V8h-2v8zm0-14v2H8v2H6V4c0-1.1.9-2 2-2h8zM6 8v2h2V8H6zm0 4v2h2v-2H6zm0 4v2h2v-2H6zm14-8v2h-2V8h2zm0 4v2h-2v-2h2zm0 4v2h-2v-2h2zM8 18h2v2H8v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z"/></svg>');
}

/* RESPONSIVE -------------------------------------------------- */
@media (max-width: 1280px) {
  .app-layout {
    grid-template-columns: 96px minmax(260px, 300px) minmax(0, 1fr);
  }
  .info-panel {
    display: none;
  }
}

@media (max-width: 1040px) {
  .app-layout {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .list-column {
    position: fixed;
    inset: 0;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 40;
    box-shadow: var(--shadow-soft);
  }
  .list-column.is-visible {
    transform: translateX(0);
  }
  .chat-column__header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-field--compact {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-layout {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .nav-rail {
    display: none;
  }
  
  /* Show mobile bottom navigation */
  .mobile-nav {
    display: flex;
  }
  
  /* Mobile: show list-column by default, hide when chat is active */
  .list-column {
    position: fixed;
    inset: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0));
    max-width: none;
    transform: translateX(0);
    z-index: 40;
    transition: transform 220ms ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* When chat is active, hide list and show chat */
  .app-layout.chat-active .list-column {
    transform: translateX(-100%);
  }
  
  .chat-column {
    position: fixed;
    inset: 0;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 45;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .app-layout.chat-active .chat-column {
    transform: translateX(0);
  }
  
  /* Hide mobile nav when chat is active */
  .mobile-nav.is-hidden {
    display: none;
  }
  
  /* Back button removed - using close button instead */
  
  /* Adjust chat header for mobile */
  .chat-column__header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1rem;
  }
  
  /* Hide search in header on mobile */
  .search-field--compact {
    display: none;
  }
  
  /* Adjust composer for mobile */
  .composer {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  }
  
  /* Adjust timeline padding */
  .timeline {
    padding: 1rem;
    overflow-x: hidden;
  }
  
  /* Adjust bubble max-width for mobile */
  .bubble {
    max-width: 85%;
  }
  
  /* Info panel always hidden on mobile */
  .info-panel {
    display: none;
  }
  
  /* Adjust profile card for mobile */
  .profile-card {
    padding: 1rem;
  }
  
  /* Adjust search field for mobile */
  .search-field--accent {
    padding: 0.6rem 1rem;
  }
  
  /* Adjust sidebar section for mobile */
  .sidebar__section {
    padding: 1rem;
  }
  
  /* Adjust chat list for mobile */
  .chat-list {
    padding-bottom: 1rem;
  }
  
  /* Show mobile info button */
  .mobile-info-btn {
    display: flex;
  }
  
  /* Show mobile info sheet when not hidden */
  .mobile-info-sheet:not([hidden]) {
    display: block;
  }
  
  /* Make contact header clickable on mobile */
  .chat-column__contact {
    cursor: pointer;
  }
}

/* Landing (Galxe inspired) ----------------------------------- */

body.landing.landing--galxe {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, rgba(103, 80, 255, 0.4), transparent 55%),
    radial-gradient(circle at 80% 0, rgba(17, 207, 255, 0.35), transparent 50%), #03030a;
  color: #f6f7fb;
  overflow-x: hidden;
}

.landing--galxe .landing-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.landing-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.landing-aurora--one {
  background: radial-gradient(circle at 15% 15%, rgba(120, 255, 214, 0.35), transparent 60%);
}

.landing-aurora--two {
  background: radial-gradient(circle at 85% 5%, rgba(255, 143, 234, 0.35), transparent 55%);
}

.landing--galxe {
  padding: 0 2.5rem 2.8rem;
  position: relative;
}

.landing--galxe .landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.6rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 15, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing--galxe .landing-logo {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
}

.landing--galxe .landing-nav__links {
  display: flex;
  gap: 1.2rem;
  color: rgba(246, 247, 251, 0.74);
  font-weight: 500;
}

.landing--galxe .landing-nav__links a {
  position: relative;
  padding-bottom: 0.25rem;
}

.landing--galxe .landing-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--transition), transform var(--transition);
}

.landing--galxe .landing-nav__links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.landing--galxe .landing-nav__actions {
  display: flex;
  gap: 0.8rem;
}

.landing--galxe .ghost-button--light {
  border-color: rgba(246, 247, 251, 0.35);
  color: #f6f7fb;
}

.landing--galxe .landing-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding-top: 3rem;
}

.landing--galxe .hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.4rem;
  padding: 3rem;
  border-radius: 42px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.95), rgba(217, 225, 255, 0.95));
  color: #0b0f1f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 45px 90px rgba(3, 4, 9, 0.55);
}

.landing--galxe .hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing--galxe .hero__loop {
  display: flex;
  gap: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(11, 15, 30, 0.45);
  overflow: hidden;
  position: relative;
}

.landing--galxe .hero__loop span {
  white-space: nowrap;
  animation: heroLoop 18s linear infinite;
}

@keyframes heroLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.landing--galxe .hero__lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(11, 15, 30, 0.72);
}

.landing--galxe .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing--galxe .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.landing--galxe .hero__stats article {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: rgba(11, 15, 30, 0.04);
  border: 1px solid rgba(11, 15, 30, 0.08);
}

.landing--galxe .hero__stats span {
  font-size: 1.9rem;
  font-weight: 700;
}

.landing--galxe .hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.landing--galxe .hero-screen {
  border-radius: 28px;
  padding: 1.6rem;
  background: rgba(12, 13, 25, 0.95);
  color: rgba(246, 247, 251, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px rgba(2, 2, 6, 0.65);
}

.landing--galxe .hero-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(246, 247, 251, 0.8);
}

.landing--galxe .pill {
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing--galxe .pill--green {
  background: rgba(100, 255, 210, 0.16);
  color: #61ffdb;
}

.landing--galxe .hero-screen__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing--galxe .hero-screen__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing--galxe .hero-screen__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing--galxe .hero-widget {
  border-radius: 28px;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: #f6f7fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.landing--galxe .hero-widget__label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(246, 247, 251, 0.65);
}

.landing--galxe .hero-widget h3 {
  margin: 0.4rem 0;
  font-size: 2rem;
}

.landing--galxe .hero-widget__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing--galxe .hero-widget__tags span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

.landing--galxe .metric-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.landing--galxe .metric-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.landing--galxe .metric-card span {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.landing--galxe .brand-strip {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing--galxe .brand-strip__logos {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  font-weight: 600;
  color: rgba(246, 247, 251, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.landing--galxe .suite .section-heading p {
  color: rgba(246, 247, 251, 0.72);
}

.landing--galxe .suite__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.landing--galxe .suite-card {
  border-radius: 24px;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 247, 251, 0.92);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.landing--galxe .suite-card__stat strong {
  font-size: 1.6rem;
  display: block;
}

.landing--galxe .grid-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.landing--galxe .grid-split__panel {
  border-radius: 28px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing--galxe .grid-split__panel--dark {
  background: rgba(10, 10, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(246, 247, 251, 0.85);
}

.landing--galxe .grid-split__list,
.landing--galxe .stack-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing--galxe .identity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  align-items: center;
}

.landing--galxe .identity__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.landing--galxe .identity__badges span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

.landing--galxe .identity__card {
  border-radius: 28px;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing--galxe .identity__card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: rgba(246, 247, 251, 0.78);
}

.landing--galxe .token {
  border-radius: 38px;
  padding: 2.8rem;
  background: rgba(8, 8, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px rgba(1, 1, 3, 0.65);
}

.landing--galxe .token__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.landing--galxe .token__stats article {
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing--galxe .token__grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.landing--galxe .roadmap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.landing--galxe .roadmap__grid article {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing--galxe .roadmap__phase {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: rgba(246, 247, 251, 0.65);
}

.landing--galxe .cta {
  border-radius: 34px;
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(163, 109, 255, 0.25), rgba(84, 171, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.landing--galxe .cta__actions {
  display: flex;
  gap: 0.8rem;
}

.landing--galxe .landing-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(246, 247, 251, 0.7);
}

.landing--galxe .landing-footer__links {
  display: flex;
  gap: 1rem;
}

.landing--galxe .section-heading h2 {
  margin: 0.3rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.landing--galxe .section-heading p {
  color: rgba(246, 247, 251, 0.72);
  max-width: 760px;
  line-height: 1.7;
}

.landing--galxe .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(246, 247, 251, 0.6);
}

@media (max-width: 1040px) {
  .landing--galxe {
    padding: 0 1.4rem 1.6rem;
  }

  .landing--galxe .landing-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .landing--galxe .landing-nav__links {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .landing--galxe .hero {
    padding: 2.2rem;
  }
}

@media (max-width: 720px) {
  .landing--galxe .landing-nav__actions {
    width: 100%;
    justify-content: center;
  }

  .landing--galxe .hero {
    padding: 1.8rem;
  }

  .landing--galxe .hero__stats {
    grid-template-columns: 1fr;
  }

  .landing--galxe .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Landing v2 -------------------------------------------------- */

body.landing {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04040a;
  color: #0c0f1e;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing--aurora {
  padding: 0 2.5rem 2.5rem;
  position: relative;
}

.landing-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.6;
}

.landing-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.landing-gradient--one {
  background: radial-gradient(circle at 20% 20%, rgba(133, 170, 255, 0.35), transparent 55%);
}

.landing-gradient--two {
  background: radial-gradient(circle at 80% 10%, rgba(255, 141, 225, 0.35), transparent 50%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.6rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-logo {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f6f7fb;
}

.landing-nav__links {
  display: flex;
  gap: 1.2rem;
  color: rgba(246, 247, 251, 0.72);
  font-weight: 500;
}

.landing-nav__links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.landing-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #f6f7fb;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.landing-nav__links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.landing-nav__actions {
  display: flex;
  gap: 0.75rem;
}

.ghost-button--light {
  border-color: rgba(246, 247, 251, 0.35);
  color: #f6f7fb;
}

.landing-main {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding-top: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 3.2rem;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(223, 217, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 45px 90px rgba(6, 7, 19, 0.35);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.hero__lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(12, 15, 30, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__stats li {
  flex: 1 1 150px;
  min-width: 150px;
  padding: 0.9rem 1.2rem;
  border-radius: 20px;
  background: rgba(12, 15, 30, 0.05);
  border: 1px solid rgba(12, 15, 30, 0.08);
}

.hero__stats span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel {
  border-radius: 26px;
  padding: 1.8rem;
  background: rgba(20, 21, 35, 0.92);
  color: rgba(247, 247, 251, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 35px 80px rgba(4, 4, 9, 0.55);
}

.panel__messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.bubble-demo {
  padding: 0.65rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.bubble-demo--system {
  background: rgba(163, 109, 255, 0.18);
  border-radius: 20px;
}

.bubble-demo--reply {
  border-left: 3px solid var(--accent);
}

.panel--card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: rgba(247, 247, 251, 0.8);
}

.section-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.flow-card {
  padding: 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 15, 30, 0.08);
  box-shadow: 0 35px 70px rgba(12, 15, 30, 0.18);
}

.chip-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-row span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 15, 30, 0.12);
  font-size: 0.85rem;
  color: rgba(12, 15, 30, 0.75);
}

.flow-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.flow-gallery article {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(15, 15, 24, 0.75);
  color: rgba(247, 247, 251, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-stack,
.section-dual,
.section-token,
.section-roadmap,
.section-cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(12, 15, 30, 0.7);
}

.list-check li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--accent);
}

.security-panel {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(16, 16, 28, 0.85);
  color: rgba(247, 247, 251, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-token {
  background: rgba(9, 9, 18, 0.92);
  color: rgba(247, 247, 251, 0.92);
  border-radius: 38px;
  padding: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px rgba(2, 2, 6, 0.65);
}

.section-token .section-heading p {
  color: rgba(247, 247, 251, 0.72);
}

.token-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.token-highlight article {
  border-radius: 20px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.token-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.token-grid article {
  border-radius: 20px;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.section-cta {
  background: linear-gradient(135deg, rgba(163, 109, 255, 0.18), rgba(94, 161, 255, 0.18));
  padding: 2.4rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #0c0f1e;
}

.landing-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(247, 247, 251, 0.7);
}

.landing-footer__links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 1040px) {
  .landing--aurora {
    padding: 0 1.4rem 1.6rem;
  }

  .landing-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .landing-nav__links {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 2.3rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 1.8rem;
  }

  .landing-nav__actions {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    flex-direction: column;
  }

  .panel {
    padding: 1.4rem;
  }

  .section-token {
    padding: 2rem;
  }
}

/* Landing ----------------------------------------------------- */

body.landing {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #f7f4ff, #f0ecff 30%, transparent 55%),
    linear-gradient(180deg, #fdfdff 0%, #080812 90%);
  color: #0d1020;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 2.8rem 2.8rem;
  position: relative;
  overflow-x: hidden;
}

.landing-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.7;
}

.landing-sheen,
.landing-dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.landing-sheen {
  background: radial-gradient(circle at 70% 10%, rgba(148, 210, 255, 0.45), transparent 55%);
}

.landing-dust {
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='1' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 42px rgba(23, 15, 45, 0.08);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 16, 32, 0.06);
}

.landing-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0d1020;
}

.landing-nav__links {
  display: inline-flex;
  gap: 1.4rem;
  font-weight: 500;
  color: rgba(13, 16, 32, 0.7);
}

.landing-nav__links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.landing-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #0d1020;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.landing-nav__links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.landing-nav__actions {
  display: inline-flex;
  gap: 0.75rem;
}

.ghost-button--light {
  border-color: rgba(13, 16, 32, 0.18);
  color: #0d1020;
}

.landing-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
  padding-top: 3rem;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(218, 207, 255, 0.95));
  border-radius: 38px;
  padding: 3.5rem;
  box-shadow: 0 50px 100px rgba(18, 17, 43, 0.15);
  border: 1px solid rgba(13, 16, 32, 0.08);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.split-logo {
  display: inline-flex;
  gap: 0.35rem;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.split-logo span {
  display: inline-block;
  transition: transform 1.2s ease, opacity 1.2s ease, filter 1.2s ease;
  transform: translate(0, 0) rotate(0deg);
}

.split-logo span.is-scattered {
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  opacity: 0.55;
  filter: blur(1px);
}

.hero__copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0.8rem 0;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(13, 16, 32, 0.75);
}

.hero__copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(13, 16, 32, 0.75);
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.1rem;
}

.hero__pills span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 16, 32, 0.06);
  border: 1px solid rgba(13, 16, 32, 0.08);
  font-size: 0.85rem;
  color: #0d1020;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero__meta {
  font-size: 0.92rem;
  color: rgba(13, 16, 32, 0.6);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(13, 16, 32, 0.07);
  border: 1px solid rgba(13, 16, 32, 0.08);
}

.hero-metrics span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-metrics p {
  margin: 0.2rem 0 0;
  color: rgba(13, 16, 32, 0.6);
  font-size: 0.9rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.hero__preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-shell {
  width: 320px;
  border-radius: 30px;
  padding: 1.7rem;
  background: linear-gradient(160deg, #1f1f2d, #2a2b3f);
  color: rgba(247, 247, 251, 0.95);
  box-shadow: 0 30px 70px rgba(10, 8, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-shell header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.preview-shell header strong {
  color: #fff;
  font-size: 1.05rem;
}

.status-chip {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(61, 244, 178, 0.15);
  color: #42f1b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-feed {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.preview-card {
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.preview-card--reply {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.preview-card--system {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(163, 109, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 600;
}

.preview-card--system a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.preview-shell footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.landing-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing-section--duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.section-heading h2 {
  margin: 0.4rem 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.section-heading p {
  color: rgba(13, 16, 32, 0.65);
  max-width: 780px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 60px rgba(13, 16, 32, 0.08);
  border: 1px solid rgba(13, 16, 32, 0.08);
}

.feature-card p {
  color: rgba(13, 16, 32, 0.64);
  line-height: 1.6;
}

.highlight-grid {
  gap: 1.4rem;
}

.highlight-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.highlight-mosaic article {
  padding: 1.3rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 40px rgba(13, 16, 32, 0.08);
}

.highlight-mosaic article span {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.highlight-mosaic article h3 {
  margin: 0.5rem 0 0.25rem;
}

.highlight-mosaic article p {
  color: rgba(13, 16, 32, 0.64);
  margin: 0;
  line-height: 1.6;
}

.stack {
  gap: 2.6rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.stack-grid article {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1.3rem;
  border: 1px solid rgba(13, 16, 32, 0.08);
  box-shadow: 0 24px 50px rgba(13, 16, 32, 0.08);
}

.stack-grid p {
  color: rgba(13, 16, 32, 0.64);
  line-height: 1.55;
}

.landing-section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

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

.security-list li {
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(13, 16, 32, 0.08);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 36px rgba(13, 16, 32, 0.08);
}

.security-list p {
  margin: 0.35rem 0 0;
  color: rgba(13, 16, 32, 0.64);
}

.token-section {
  background: rgba(12, 12, 20, 0.9);
  color: #f7f7fb;
  padding: 3rem;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.token-section .section-heading p {
  color: rgba(247, 247, 251, 0.75);
}

.token-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-highlight p {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(247, 247, 251, 0.6);
}

.token-highlight h3 {
  margin-top: 0.4rem;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.claim-card {
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 24, 0.75);
}

.claim-card p {
  color: rgba(247, 247, 251, 0.75);
  line-height: 1.6;
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(13, 16, 32, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.roadmap li {
  padding-left: 1.4rem;
  position: relative;
}

.roadmap li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(163, 109, 255, 0.2);
}

.roadmap__phase {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(13, 16, 32, 0.7);
}

.roadmap p {
  margin: 0.35rem 0 0;
  color: rgba(13, 16, 32, 0.7);
}

.landing-cta {
  background: linear-gradient(135deg, rgba(163, 109, 255, 0.15), rgba(98, 125, 255, 0.18));
  padding: 2.4rem;
  border-radius: 32px;
  border: 1px solid rgba(13, 16, 32, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.4rem;
  color: #0d1020;
}

.landing-cta__actions {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.landing-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 16, 32, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(13, 16, 32, 0.7);
}

.landing-footer__links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  body.landing {
    padding: 0 1.2rem 1.5rem;
  }

  .landing-nav {
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
  }

  .landing-nav__links {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 2.2rem;
  }

  .preview-shell {
    width: 100%;
  }

  .landing-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Landing blank overrides ------------------------------------- */

body.landing.landing--blank {
  background: #000;
  padding: 0;
  margin: 0;
  color: #f7f7fb;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
}

/* PWA Install Modal (Firefox/Safari) */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.install-modal__content {
  position: relative;
  background: rgba(32, 30, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  color: var(--text-primary);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.install-modal__content h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.install-modal__content p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.install-modal__content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-primary);
}

.install-modal__content ol li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.install-modal__content ol li strong {
  color: var(--accent);
}

.install-modal__alt {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.install-modal__alt a {
  color: var(--accent);
  text-decoration: underline;
}

.install-modal__close {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.install-modal__close:hover {
  background: var(--accent-muted);
}

/* Confirm Dialog Modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.confirm-modal__content {
  position: relative;
  background: rgba(32, 30, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.confirm-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.confirm-modal__message {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.confirm-modal__actions {
  display: flex;
  gap: 0.75rem;
}

.confirm-modal__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.confirm-modal__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.confirm-modal__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.confirm-modal__btn--confirm {
  background: #ff6b6b;
  color: #fff;
}

.confirm-modal__btn--confirm:hover {
  background: #ff5252;
}

/* Password Modal */
.password-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.password-modal__content {
  position: relative;
  background: rgba(32, 30, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.password-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.password-modal__message {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.password-modal__field {
  margin-bottom: 0.75rem;
}

.password-modal__input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.password-modal__input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.password-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.password-modal__error {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 107, 107, 0.15);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 0.8rem;
}

.password-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.password-modal__btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.password-modal__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.password-modal__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.password-modal__btn--confirm {
  background: var(--accent);
  color: #fff;
}

.password-modal__btn--confirm:hover {
  background: var(--accent-hover);
}

/* Hide PWA install option on mobile devices */
@media (max-width: 768px), (pointer: coarse) {
  [data-role="install-app-option"],
  [data-action="install-app"] {
    display: none !important;
  }
}

/* ============================================
   VOICE MESSAGES
   ============================================ */

/* Voice Record Button */
.composer__voice-btn {
  flex-shrink: 0;
}

.composer__voice-btn:hover {
  color: var(--accent, #d4782a);
}

/* Hide voice button when there's text in input */
.composer:has(.composer__input:not(:placeholder-shown)) .composer__voice-btn {
  display: none;
}

/* Recording Panel */
.voice-recording {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-elevated, #252530);
  border-radius: 24px;
  animation: voice-recording-appear 0.2s ease-out;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  box-sizing: border-box;
}

.voice-recording[hidden] {
  display: none !important;
}

@keyframes voice-recording-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

.voice-recording__cancel,
.voice-recording__send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.voice-recording__cancel {
  background: rgba(255, 100, 100, 0.15);
  color: #ff6464;
}

.voice-recording__cancel:hover {
  background: rgba(255, 100, 100, 0.25);
}

.voice-recording__send {
  background: var(--accent, #d4782a);
  color: white;
}

.voice-recording__send:hover {
  filter: brightness(1.1);
}

.voice-recording__cancel svg,
.voice-recording__send svg {
  width: 20px;
  height: 20px;
}

.voice-recording__indicator {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.voice-recording__dot {
  width: 10px;
  height: 10px;
  background: #ff4444;
  border-radius: 50%;
  animation: voice-recording-pulse 1s ease-in-out infinite;
}

@keyframes voice-recording-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.voice-recording__time {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #fff);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Composer in recording mode */
.composer--recording .composer__input,
.composer--recording .composer__toolbar,
.composer--recording .composer__reply {
  opacity: 0.3;
  pointer-events: none;
}

/* Voice Bubble */
.bubble--voice {
  min-width: 200px;
  max-width: 280px;
}

.voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.voice-player__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent, #d4782a);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.voice-player__btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.voice-player__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.voice-player__btn svg {
  width: 18px;
  height: 18px;
}

.voice-player__spinner {
  animation: voice-spinner 1s linear infinite;
}

@keyframes voice-spinner {
  to { transform: rotate(360deg); }
}

/* Legacy progress bar (kept for compatibility) */
.voice-player__progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}

.bubble--in .voice-player__progress {
  background: rgba(0, 0, 0, 0.2);
}

.voice-player__progress-bar {
  height: 100%;
  background: var(--accent, #d4782a);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Waveform canvas */
.voice-player__waveform {
  flex: 1;
  height: 28px;
  cursor: pointer;
  border-radius: 4px;
  touch-action: none; /* Prevent scroll during seek */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.voice-recording__waveform {
  flex: 1;
  height: 32px;
  min-width: 0; /* Allow shrinking */
}

.voice-player__duration {
  font-size: 12px;
  color: inherit;
  opacity: 0.7;
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Voice bubble meta row */
.bubble__meta--voice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  align-self: stretch;
  width: 100%;
}

.voice-player__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  font-weight: 500;
}

.bubble__time-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.6;
}

/* Mobile adjustments for voice */
@media (max-width: 768px) {
  .voice-recording {
    padding: 10px 14px;
    width: 95%;
    max-width: 350px;
  }
  
  .bubble--voice {
    min-width: 180px;
    max-width: 240px;
  }
}
