/* ==========================================================================
   SUITCHANGE - P2P ATOMIC NFT SWAP TERMINAL (DARK OBSIDIAN EDITION)
   ========================================================================== */

:root {
  --bg-void: #05070B;
  --bg-surface: rgba(12, 16, 25, 0.88);
  --bg-elevated: #111723;
  --bg-card: #0D121C;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --emerald: #00E676;
  --emerald-soft: rgba(0, 230, 118, 0.14);
  --lime: #B4FF00;
  --lime-soft: rgba(180, 255, 0, 0.14);
  --cyan: #00F0FF;
  --danger: #FF4D6D;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html, body {
  min-height: 100%;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.full-w {
  width: 100%;
}

/* AMBIENT BACKGROUND */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.24;
  animation: orbDrift 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--emerald), transparent 70%);
}

.orb-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--lime), transparent 70%);
  animation-delay: -6s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 35%, transparent 80%);
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 28px) scale(1.08); }
}

/* HEADER */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.sc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.sc-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sc-brand-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sc-brand h1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #FFFFFF, #A7F3D0 60%, var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sc-pill-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.sc-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.sc-room-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.room-code-box {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  background: rgba(17, 23, 35, 0.9);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

.room-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

#room-code-display {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.sc-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* BUTTONS */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.sc-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.sc-btn-primary {
  background: linear-gradient(135deg, var(--emerald), #00C853);
  color: #03150B;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
}

.sc-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 230, 118, 0.38);
}

.sc-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.sc-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}

.sc-btn-lime-ghost {
  background: rgba(180, 255, 0, 0.09);
  border-color: rgba(180, 255, 0, 0.35);
  color: #E2FF8C;
}

.sc-btn-lime-ghost:hover:not(:disabled) {
  background: rgba(180, 255, 0, 0.18);
  border-color: rgba(180, 255, 0, 0.6);
}

.sc-btn-danger-ghost {
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.35);
  color: #FF8DA1;
}

.sc-btn-danger-ghost:hover:not(:disabled) {
  background: rgba(255, 77, 109, 0.2);
}

.sc-btn-confirm {
  height: 46px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--lime) 100%);
  color: #041309;
  box-shadow: 0 6px 28px rgba(0, 230, 118, 0.28);
}

.sc-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(180, 255, 0, 0.35);
}

.sc-btn-confirm.is-confirmed {
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.55);
  color: var(--emerald);
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.18);
}

.sc-btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 7px;
}

.sc-icon-btn {
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sc-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.sc-icon-btn.muted {
  color: var(--text-dim);
  opacity: 0.7;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #03150B;
}

.wallet-dot.connected {
  background: #03150B;
  box-shadow: 0 0 0 3px rgba(3, 21, 11, 0.28);
}

/* MAIN LAYOUT */
.sc-main {
  position: relative;
  z-index: 5;
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* STEPPER */
.sc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.step-item.active {
  color: var(--text-main);
}

.step-item.active .step-num {
  color: var(--emerald);
  border-color: rgba(0, 230, 118, 0.5);
  background: var(--emerald-soft);
}

.step-item.done {
  color: var(--emerald);
}

.step-item.done .step-num {
  background: var(--emerald);
  color: #03150B;
  border-color: var(--emerald);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-line.done {
  background: linear-gradient(90deg, var(--emerald), var(--lime));
}

/* TRADE ARENA */
.sc-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.vault-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vault-card.is-mine {
  border-color: rgba(0, 230, 118, 0.28);
}

.vault-card.is-approved {
  border-color: rgba(0, 230, 118, 0.62);
  box-shadow: 0 0 36px rgba(0, 230, 118, 0.12);
}

.vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.vault-id-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: 6px;
}

.vault-badge.badge-b {
  color: var(--lime);
  background: var(--lime-soft);
}

.vault-you-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.vault-status-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.vault-status-pill.ready {
  color: var(--emerald);
}

.vault-wallet-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-a {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.22), rgba(0, 240, 255, 0.14));
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--emerald);
}

.avatar-b {
  background: linear-gradient(135deg, rgba(180, 255, 0, 0.22), rgba(0, 230, 118, 0.12));
  border: 1px solid rgba(180, 255, 0, 0.4);
  color: var(--lime);
}

.vault-wallet-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vault-wallet-meta strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-wallet-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}

.online-dot.online {
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
}

/* NFT STAGE */
.nft-stage {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.nft-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 11, 0.45);
}

.empty-icon-ring {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.nft-empty-state p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.nft-empty-state small {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 240px;
  line-height: 1.45;
}

.nft-preview-card {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(5, 8, 14, 0.8);
  border: 1px solid var(--border-strong);
}

.nft-media-wrap {
  position: relative;
  width: 175px;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  background: #0A0F1A;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nft-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nft-col-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(5, 7, 11, 0.86);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: var(--emerald);
}

.nft-col-tag.mutant {
  border-color: rgba(180, 255, 0, 0.6);
  color: var(--lime);
}

.nft-rank-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(5, 7, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
}

.nft-lock-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 4px;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.92), rgba(180, 255, 0, 0.92));
  color: #03150B;
}

.nft-info-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.nft-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nft-title-row h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft-token-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  flex-shrink: 0;
}

.nft-contract-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.nft-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.trait-chip {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.trait-chip span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.trait-chip strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.vault-footer {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-actions {
  display: flex;
  gap: 8px;
}

.approval-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.approval-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
}

.approval-indicator.approved {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.approval-indicator.approved .approval-dot {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* CENTER ATOMIC CORE */
.atomic-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 20px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 24%, rgba(0, 230, 118, 0.09), rgba(12, 16, 25, 0.92) 65%);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  gap: 16px;
}

.reactor-visual {
  position: relative;
  width: 146px;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-svg {
  width: 100%;
  height: 100%;
}

.ring-outer {
  stroke: rgba(0, 230, 118, 0.25);
  stroke-width: 1.8;
  stroke-dasharray: 12 8;
  transform-origin: 90px 90px;
  animation: spinCW 18s linear infinite;
}

.ring-mid {
  stroke: rgba(180, 255, 0, 0.35);
  stroke-width: 2;
  stroke-dasharray: 34 14;
  transform-origin: 90px 90px;
  animation: spinCCW 11s linear infinite;
}

.ring-inner {
  stroke: rgba(0, 240, 255, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  transform-origin: 90px 90px;
  animation: spinCW 7s linear infinite;
}

.atomic-core.is-ready .ring-outer {
  stroke: rgba(0, 230, 118, 0.72);
  animation-duration: 7s;
}

.atomic-core.is-ready .ring-mid {
  stroke: rgba(180, 255, 0, 0.85);
  animation-duration: 4s;
}

.reactor-center-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.92);
  border: 1.5px solid rgba(0, 230, 118, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  box-shadow: 0 0 28px rgba(0, 230, 118, 0.22);
}

.reactor-center-icon svg {
  width: 24px;
  height: 24px;
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.core-status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.core-state-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(180, 255, 0, 0.35);
}

.core-status-block h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.core-status-block p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.48;
}

.core-cta-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.core-security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
}

.sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* LIVE P2P CHAT SECTION */
.sc-chat-section {
  position: relative;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sc-chat-section:not(.locked) {
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 36px rgba(0, 230, 118, 0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title-group h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.chat-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}

.sc-chat-section:not(.locked) .chat-live-dot {
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.chat-lock-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.sc-chat-section:not(.locked) .chat-lock-badge {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.chat-typing {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
}

.chat-locked-overlay {
  position: absolute;
  inset: 49px 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(8px);
}

.sc-chat-section:not(.locked) .chat-locked-overlay {
  display: none;
}

.chat-lock-card {
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lock-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.lock-glyph svg {
  width: 22px;
  height: 22px;
}

.chat-lock-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
}

.chat-lock-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.chat-messages {
  height: 220px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg-system {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 12px;
  border-radius: 99px;
  text-align: center;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  gap: 3px;
}

.chat-bubble-wrap.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-wrap.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.42;
  word-break: break-word;
}

.chat-bubble-wrap.mine .chat-bubble {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.22), rgba(0, 230, 118, 0.1));
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #ECFFF5;
  border-bottom-right-radius: 4px;
}

.chat-bubble-wrap.theirs .chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 0;
  flex-wrap: wrap;
}

.quick-chip {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  color: var(--text-main);
  border-color: rgba(0, 230, 118, 0.45);
  background: var(--emerald-soft);
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
}

.sc-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #070A11;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease;
}

.sc-input:focus {
  border-color: var(--emerald);
}

.mono-input {
  font-family: var(--font-mono);
}

/* MODALS */
.sc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 5, 10, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sc-modal {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  background: #0B101A;
  border: 1px solid var(--border-strong);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.sc-modal-sm {
  max-width: 400px;
}

.sc-modal-lg {
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
}

.modal-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.wallet-opt-btn:hover {
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.06);
  transform: translateY(-1px);
}

.opt-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  flex-shrink: 0;
}

.opt-icon.emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.4);
}

.opt-icon.lime {
  background: var(--lime-soft);
  color: var(--lime);
  border: 1px solid rgba(180, 255, 0, 0.4);
}

.opt-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.opt-copy strong {
  font-size: 13.5px;
}

.opt-copy span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.opt-arrow {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.join-room-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* NFT PICKER */
.picker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.picker-tab {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.picker-tab.active {
  background: var(--emerald-soft);
  border-color: rgba(0, 230, 118, 0.5);
  color: var(--emerald);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.picker-card {
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: #070A11;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  transition: all 0.16s ease;
}

.picker-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 230, 118, 0.16);
}

.picker-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0E1524;
  overflow: hidden;
}

.picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.picker-meta {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picker-meta strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-meta span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.custom-nft-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-nft-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-nft-form label span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.custom-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   CINEMATIC ATOMIC SWAP ANIMATION OVERLAY
   ========================================================================== */
.swap-cinematic {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 50% 45%, rgba(6, 20, 16, 0.96), rgba(3, 5, 9, 0.99));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInCine 0.3s ease;
}

@keyframes fadeInCine {
  from { opacity: 0; }
  to { opacity: 1; }
}

#swap-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cinematic-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 960px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cinematic-top-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

.telemetry-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulseDot 0.9s infinite;
}

.cinematic-arena {
  position: relative;
  width: 100%;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.swap-fly-card {
  position: absolute;
  width: 215px;
  border-radius: 18px;
  background: #0A101B;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  will-change: transform;
}

.swap-fly-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.fly-card-glow {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.55;
}

.emerald-glow {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.lime-glow {
  background: linear-gradient(135deg, var(--lime), var(--emerald));
}

.fly-card-meta {
  padding: 10px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.fly-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.fly-card-meta strong {
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-left {
  transform: translateX(-270px) rotateY(14deg) scale(0.95);
}

.card-right {
  transform: translateX(270px) rotateY(-14deg) scale(0.95);
}

/* Phase 1: Charging */
.cinematic-arena.phase-charging .card-left {
  transform: translateX(-235px) translateY(-10px) rotateY(22deg) scale(1.03);
}

.cinematic-arena.phase-charging .card-right {
  transform: translateX(235px) translateY(-10px) rotateY(-22deg) scale(1.03);
}

/* Phase 2: Orbital Crossover into Central Vortex */
.cinematic-arena.phase-crossing .card-left {
  animation: flyLeftToRight 1.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.cinematic-arena.phase-crossing .card-right {
  animation: flyRightToLeft 1.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes flyLeftToRight {
  0% {
    transform: translateX(-235px) translateY(-10px) rotateY(22deg) scale(1.03);
  }
  48% {
    transform: translateX(0px) translateY(-78px) rotateY(28deg) rotateZ(-8deg) scale(0.76);
  }
  100% {
    transform: translateX(260px) translateY(0px) rotateY(-8deg) scale(1);
  }
}

@keyframes flyRightToLeft {
  0% {
    transform: translateX(235px) translateY(-10px) rotateY(-22deg) scale(1.03);
  }
  48% {
    transform: translateX(0px) translateY(78px) rotateY(-28deg) rotateZ(8deg) scale(0.76);
  }
  100% {
    transform: translateX(-260px) translateY(0px) rotateY(8deg) scale(1);
  }
}

/* Phase 3: Landed */
.cinematic-arena.phase-landed .card-left {
  transform: translateX(260px) rotateY(-8deg) scale(1);
  border-color: var(--lime);
}

.cinematic-arena.phase-landed .card-right {
  transform: translateX(-260px) rotateY(8deg) scale(1);
  border-color: var(--emerald);
}

/* Central Vortex */
.cinematic-vortex {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vortex-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.v-r1 {
  inset: 0;
  border-top-color: var(--emerald);
  border-bottom-color: var(--lime);
  animation: spinCW 2.2s linear infinite;
}

.v-r2 {
  inset: 16px;
  border-left-color: var(--cyan);
  border-right-color: var(--emerald);
  animation: spinCCW 1.4s linear infinite;
}

.v-r3 {
  inset: 32px;
  border-top-color: #FFFFFF;
  border-bottom-color: var(--lime);
  animation: spinCW 0.9s linear infinite;
}

.cinematic-arena.phase-crossing .cinematic-vortex {
  transform: scale(1.28);
  transition: transform 0.45s ease;
}

.vortex-core {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.35), rgba(5, 7, 11, 0.95));
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  box-shadow: 0 0 42px rgba(0, 230, 118, 0.6);
}

.vortex-core svg {
  width: 30px;
  height: 30px;
}

/* SWAP RECEIPT */
.swap-receipt {
  width: 100%;
  max-width: 560px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(10, 16, 26, 0.92);
  border: 1px solid rgba(0, 230, 118, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 230, 118, 0.16);
  animation: receiptPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes receiptPop {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.receipt-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--emerald), var(--lime));
  color: #03150B;
}

.swap-receipt h2 {
  font-family: var(--font-display);
  font-size: 22px;
}

.receipt-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.receipt-hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.receipt-hash-row span {
  color: var(--text-dim);
  font-size: 10px;
}

.receipt-hash-row code {
  color: var(--emerald);
}

.receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* TOAST */
.sc-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 10px;
  background: #0F172A;
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

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

/* RESPONSIVE */
@media (max-width: 1180px) {
  .sc-header {
    flex-wrap: wrap;
  }
  .sc-room-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 1120px) {
  .sc-arena {
    grid-template-columns: 1fr;
  }
  .atomic-core {
    order: 3;
  }
}

@media (max-width: 680px) {
  .sc-main {
    padding: 14px;
  }
  .sc-stepper {
    overflow-x: auto;
    gap: 8px;
  }
  .nft-preview-card {
    grid-template-columns: 1fr;
  }
  .nft-media-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .swap-fly-card {
    width: 138px;
  }
  .card-left { transform: translateX(-102px) scale(0.92); }
  .card-right { transform: translateX(102px) scale(0.92); }
  .cinematic-arena.phase-charging .card-left { transform: translateX(-92px) translateY(-6px) scale(0.96); }
  .cinematic-arena.phase-charging .card-right { transform: translateX(92px) translateY(-6px) scale(0.96); }
  .cinematic-arena.phase-landed .card-left { transform: translateX(102px) scale(0.95); }
  .cinematic-arena.phase-landed .card-right { transform: translateX(-102px) scale(0.95); }
}
