@media (max-width: 640px) {
  .hero-bg-img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
  }
}
/* Hide 'Active Deals' stat card if not enough space (portrait or small screens) */
@media (max-width: 1100px), (orientation: portrait) {
  .admin-stats .admin-stat-card:nth-child(3) {
    display: none !important;
  }
}
/* ===========================================================
   MyCryptoMM — Main Design System
   Theme: Dark Purple SaaS
   =========================================================== */

/* ─── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Background */
  --bg:          #05050a;
  --bg-alt:      #08080f;
  --bg-card:     rgba(255,255,255,0.03);
  --bg-card-s:   rgba(255,255,255,0.06);
  --bg-input:    rgba(255,255,255,0.05);

  /* Brand / Accent */
  --purple:      #7c3aed;
  --purple-l:    #9d4edd;
  --purple-ll:   #b06ef5;
  --purple-glow: rgba(124,58,237,0.3);
  --purple-dim:  rgba(124,58,237,0.12);

  /* Text */
  --txt:         #f0f0ff;
  --txt-2:       #a0a0b8;
  --txt-3:       #5c5c7a;

  /* Borders */
  --border:      rgba(124,58,237,0.18);
  --border-h:    rgba(124,58,237,0.45);

  /* Status */
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,0.12);
  --yellow:      #f59e0b;
  --yellow-dim:  rgba(245,158,11,0.12);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.12);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59,130,246,0.12);

  /* Typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Radius */
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-f:   9999px;

  /* Shadows */
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.55);
  --shadow-purple: 0 0 40px rgba(124,58,237,0.35), 0 0 80px rgba(124,58,237,0.12);
  --shadow-card:   0 2px 16px rgba(0,0,0,0.35);

  /* Transitions */
  --t: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 12% -8%, rgba(124,58,237,0.18), transparent 62%),
    radial-gradient(1000px 620px at 88% 0%, rgba(79,70,229,0.16), transparent 60%);
  background-size: auto, auto;
  background-position: 0 0, 0 0;
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: var(--r-f); }

/* ─── Selection ─────────────────────────────────────────────── */
::selection { background: var(--purple-dim); color: var(--txt); }

/* ─── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--txt);
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { color: var(--txt-2); }
a  { color: inherit; text-decoration: none; }

.gradient-text {
  background: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  background: linear-gradient(135deg, var(--purple-l), var(--purple-ll));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-f);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--t);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  color: #fff;
  box-shadow: 0 4px 20px var(--purple-glow);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124,58,237,0.5); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-card-s);
  color: var(--txt);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-h); background: var(--bg-card); }

.btn-outline {
  background: transparent;
  color: var(--purple-ll);
  border: 1px solid var(--border-h);
}
.btn-outline:hover { background: var(--purple-dim); }

.btn-ghost {
  background: transparent;
  color: var(--txt-2);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--txt); background: var(--bg-card-s); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-success {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
}
.btn-success:hover { background: rgba(16,185,129,0.2); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-s);
  border: 1px solid var(--border);
  color: var(--txt-2);
  cursor: pointer;
  transition: var(--t);
}
.btn-icon:hover { color: var(--txt); border-color: var(--border-h); }

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--t);
  pointer-events: none;
}
.card:hover { border-color: var(--border-h); }
.card:hover::before { opacity: 1; }

.card-glow { box-shadow: var(--shadow-purple); }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-f);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-purple  { background: var(--purple-dim); color: var(--purple-ll); border: 1px solid rgba(124,58,237,0.25); }
.badge-green   { background: var(--green-dim);  color: var(--green);     border: 1px solid rgba(16,185,129,0.25); }
.badge-yellow  { background: var(--yellow-dim); color: var(--yellow);    border: 1px solid rgba(245,158,11,0.25); }
.badge-red     { background: var(--red-dim);    color: var(--red);       border: 1px solid rgba(239,68,68,0.25); }
.badge-blue    { background: var(--blue-dim);   color: var(--blue);      border: 1px solid rgba(59,130,246,0.25); }
.badge-gray    { background: rgba(255,255,255,0.05); color: var(--txt-3); border: 1px solid rgba(255,255,255,0.1); }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt-2);
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--t);
  width: 100%;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--txt-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}
.form-select {
  appearance: none;
  border-radius: 999px;
  padding: 12px 44px 12px 16px;
  border-color: rgba(124,58,237,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c4b5fd' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(19,22,38,0.98), rgba(13,15,28,0.98));
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  cursor: pointer;
}
.form-select:hover {
  border-color: rgba(124,58,237,0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ddd6fe' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"), linear-gradient(180deg, rgba(22,25,42,1), rgba(15,17,32,1));
}
.form-select option { background: #1a1a2e; color: var(--txt); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--txt-3); }
.form-error { font-size: 0.78rem; color: var(--red); }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--txt-3); pointer-events: none; font-size: 0.9rem; }
.input-wrapper .form-input { padding-left: 40px; }

/* ─── Section Layout ─────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}
.section-sm { padding: 60px 0; }

/* ─── Decorated section backgrounds ─────────────────────────── */
.section-decorated {
  overflow: hidden;
}
.section-decorated > .container {
  position: relative;
  z-index: 1;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-ll);
  padding: 6px 14px;
  border-radius: var(--r-f);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 12px; }
.section-subtitle { color: var(--txt-2); font-size: 1.05rem; max-width: 540px; }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ─── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-ll));
  border-radius: var(--r-f);
  margin: 16px 0;
}
.divider.center { margin: 16px auto; }

/* ─── Grid ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }

/* ─── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: var(--t);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(5,5,10,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: none;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: none;
}
.navbar-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.navbar-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--purple-ll));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  margin-left: auto;
  list-style: none;
}
.navbar-nav a {
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-2);
  transition: var(--t);
  display: block;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--txt); background: var(--bg-card-s); }
.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.navbar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
}
.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(8,8,15,0.98);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: absolute;
  top: 80px;
  left: 16px;
  right: 16px;
  backdrop-filter: blur(20px);
}
.navbar-mobile-menu.open { display: flex; }
.navbar-mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--txt-2);
  transition: var(--t);
  display: block;
}
.navbar-mobile-menu a:hover { color: var(--txt); background: var(--bg-card-s); }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
/* On very tall portrait screens, don't force fullscreen hero.
   This keeps the background in a horizontal framing instead of over-expanding vertically. */
@media (orientation: portrait) and (min-height: 900px) {
  .hero {
    min-height: clamp(620px, 82vh, 760px);
    padding: 100px 0 64px;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 92%;
  height: 92%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
@media (min-width: 1000px) {
  .hero-bg-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
  }
}
@media (max-width: 999px) {
  .hero-bg-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}
@media (orientation: portrait) {
  .hero-bg-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 38%, rgba(255,255,255,0) 72%),
    linear-gradient(90deg, rgba(5,5,10,0) 0%, rgba(5,5,10,0.02) 42%, rgba(5,5,10,0.16) 72%, rgba(5,5,10,0.3) 100%),
    linear-gradient(180deg, rgba(5,5,10,0.02) 0%, rgba(5,5,10,0.02) 52%, rgba(5,5,10,0.24) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--purple-ll);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1.5); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--purple-ll);
  padding: 8px 16px;
  border-radius: var(--r-f);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.hero-title {
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--txt-2);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt-3);
  font-size: 0.82rem;
}
.hero-trust-item i { color: var(--purple-ll); }
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.8s ease 0.3s both;
}
.hero-card-float {
  background: rgba(13,13,24,0.95);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow-purple);
  backdrop-filter: blur(10px);
  min-width: 280px;
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.5deg); }
}

/* ─── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--txt), var(--purple-ll));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--txt-3); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Features Cards ──────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-l));
  opacity: 0;
  transition: var(--t);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-h); box-shadow: var(--shadow-card); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--purple-ll);
  margin-bottom: 20px;
  transition: var(--t);
}
.feature-card:hover .feature-icon { background: var(--purple); color: #fff; box-shadow: 0 4px 20px var(--purple-glow); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--txt-2); line-height: 1.65; }

/* ─── How It Works ────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), transparent);
}
.step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  opacity: 0.5;
  transition: var(--t);
}
.step.active, .step:hover { opacity: 1; }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
  position: relative;
  z-index: 1;
}
.step-body h3 { font-size: 1rem; margin-bottom: 6px; }
.step-body p  { font-size: 0.875rem; color: var(--txt-2); }

/* ─── Crypto Table ────────────────────────────────────────────── */
.crypto-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.crypto-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
.crypto-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-s);
}
.crypto-table td {
  padding: 16px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--t);
}
.crypto-table tr:last-child td { border-bottom: none; }
.crypto-table tr:hover td { background: rgba(124,58,237,0.05); }
.crypto-coin {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crypto-coin-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card-s);
  flex-shrink: 0;
}
.crypto-coin-name { font-weight: 600; color: var(--txt); font-size: 0.9rem; }
.crypto-coin-sym  { font-size: 0.78rem; color: var(--txt-3); }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
}
.faq-item.open { border-color: var(--border-h); }
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--t);
  user-select: none;
}
.faq-question:hover { color: var(--purple-ll); }
.faq-icon {
  color: var(--purple-ll);
  font-size: 0.8rem;
  transition: var(--t);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--txt-2); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ─── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(79,70,229,0.1) 50%, rgba(124,58,237,0.08) 100%);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-l), transparent);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .navbar-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--txt-2); line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn {
  width: 38px; height: 38px;
  background: var(--bg-card-s);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2);
  text-decoration: none;
  transition: var(--t);
  font-size: 0.9rem;
}
.footer-social-btn:hover { color: var(--txt); border-color: var(--border-h); background: var(--purple-dim); }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--txt-2);
  transition: var(--t);
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--txt); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--txt-3);
}

/* ─── Alert / Toast ───────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(13,13,24,0.95);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  pointer-events: all;
  animation: toastIn 0.3s ease both;
}
.toast.removing { animation: toastOut 0.3s ease both; }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(20px); } }
.toast-icon  { font-size: 1rem; flex-shrink: 0; }
.toast-body  { flex: 1; font-size: 0.875rem; }
.toast-title { font-weight: 600; color: var(--txt); }
.toast-msg   { color: var(--txt-2); font-size: 0.82rem; }
.toast-close { background: none; border: none; color: var(--txt-3); cursor: pointer; font-size: 0.85rem; padding: 2px 4px; border-radius: 4px; }
.toast-close:hover { color: var(--txt); }

.toast-success { border-color: rgba(16,185,129,0.3); }
.toast-success .toast-icon { color: var(--green); }
.toast-error   { border-color: rgba(239,68,68,0.3); }
.toast-error .toast-icon   { color: var(--red); }
.toast-warning { border-color: rgba(245,158,11,0.3); }
.toast-warning .toast-icon { color: var(--yellow); }
.toast-info    { border-color: rgba(59,130,246,0.3); }
.toast-info .toast-icon    { color: var(--blue); }

/* ─── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: rgba(12,12,20,0.98);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-purple);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: none; }
.settings-modal-overlay {
  align-items: center;
  overflow: hidden;
}
.settings-modal-shell {
  margin: 0;
  max-height: calc(100vh - 56px);
  overflow: hidden;
}
.settings-modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.55) rgba(255,255,255,0.06);
}

.settings-modal-body::-webkit-scrollbar {
  width: 8px;
}

.settings-modal-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}

.settings-modal-body::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.55);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .settings-modal-overlay {
    padding: 12px;
  }

  .settings-modal-shell {
    width: 100%;
    max-width: 100% !important;
    max-height: calc(100vh - 24px);
    margin: 0;
    border-radius: 14px;
    padding: 16px;
  }

  .settings-modal-body {
    padding: 14px !important;
    gap: 14px !important;
    max-height: calc(100vh - 140px);
  }

  .settings-avatar-actions {
    width: 100%;
  }

  .settings-avatar-actions .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 132px;
  }

  .settings-soon-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg-card-s);
  border: none;
  border-radius: var(--r);
  color: var(--txt-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  font-size: 0.85rem;
}
.modal-close:hover { color: var(--txt); background: var(--red-dim); }
.modal-body { display: flex; flex-direction: column; gap: 20px; }
.modal-footer { display: flex; gap: 12px; margin-top: 24px; }
.modal-footer .btn { flex: 1; }

/* ─── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(79,70,229,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.auth-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.07;
  position: absolute;
  inset: 0;
}
.auth-card {
  background: rgba(10,10,18,0.95);
  border: 1px solid var(--border-h);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-purple);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .navbar-logo-icon { width: 48px; height: 48px; font-size: 1.4rem; margin: 0 auto 12px; }
.auth-logo h1 { font-size: 1.4rem; }
.auth-oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card-s);
  color: var(--txt-2);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  width: 100%;
}
.oauth-btn:hover { border-color: var(--border-h); color: var(--txt); }
.oauth-btn-google:hover { border-color: rgba(66,133,244,0.4); }
.oauth-btn-discord:hover { border-color: rgba(88,101,242,0.4); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--txt-3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-link { text-align: center; font-size: 0.875rem; color: var(--txt-2); }
.auth-link a { color: var(--purple-ll); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }
.recaptcha-hint { font-size: 0.75rem; color: var(--txt-3); text-align: center; }

/* ─── Dashboard Layout ────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--t);
  z-index: 100;
}
.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--txt-3);
  padding: 12px 12px 6px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt-2);
  text-decoration: none;
  transition: var(--t);
  position: relative;
}
.sidebar-link:hover { color: var(--txt); background: var(--bg-card-s); }
.sidebar-link.active {
  color: var(--txt);
  background: var(--purple-dim);
  border: 1px solid rgba(124,58,237,0.25);
}
.sidebar-link.active i { color: var(--purple-ll); }
.sidebar-link i { font-size: 0.9rem; width: 18px; }
.sidebar-badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-f);
}
.dashboard-main {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  min-height: calc(100vh - 70px);
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dashboard-page-title h2 { font-size: 1.5rem; }
.dashboard-page-title p { color: var(--txt-3); font-size: 0.875rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.stat-card:hover { border-color: var(--border-h); }
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.stat-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--txt-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
}
.stat-card-change.up   { color: var(--green); }
.stat-card-change.down { color: var(--red); }

/* ─── Deal Cards ──────────────────────────────────────────────── */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: var(--t);
  cursor: pointer;
}
.deal-card:hover { border-color: var(--border-h); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.deal-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.deal-id { font-family: monospace; font-size: 0.78rem; color: var(--txt-3); margin-top: 2px; }
.deal-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--txt-3); }
.deal-amount { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.deal-parties { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--txt-2); }
.deal-sep { color: var(--txt-3); }

/* ─── Table ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.875rem;
}
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-s);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: var(--t);
  color: var(--txt-2);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(124,58,237,0.04); }
.table td.primary { color: var(--txt); font-weight: 500; }

/* ─── Deal Stage Indicator ────────────────────────────────────── */
.stage-steps {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-f);
  padding: 6px;
  overflow: hidden;
}
.stage-step {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--r-f);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--txt-3);
  transition: var(--t);
  position: relative;
  white-space: nowrap;
}
.stage-step.done { color: var(--green); }
.stage-step.current {
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  color: #fff;
  box-shadow: 0 2px 12px var(--purple-glow);
}

/* ─── Deal Chat ───────────────────────────────────────────────── */
.deal-layout {
  display: flex;
  height: calc(100vh - 70px);
  margin-top: 70px;
}
.deal-chat  { flex: 1; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.deal-panel { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; }
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.2s ease;
}
.message.own { flex-direction: row-reverse; }
.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.message-bubble {
  max-width: 65%;
  background: var(--bg-card-s);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.message.own .message-bubble {
  background: var(--purple-dim);
  border-color: rgba(124,58,237,0.35);
  color: var(--txt);
}
.message-meta { font-size: 0.72rem; color: var(--txt-3); margin-top: 4px; }
.message-system {
  display: flex;
  justify-content: center;
}
.message-system .message-bubble {
  background: rgba(10,10,20,0.8);
  border-color: var(--border);
  border-radius: var(--r-f);
  max-width: 100%;
  color: var(--txt-2);
  font-size: 0.82rem;
  text-align: center;
}
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-f);
  padding: 10px 16px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: var(--t);
}
.chat-input:focus { border-color: var(--purple); }
.chat-typing { padding: 4px 20px 0; font-size: 0.78rem; color: var(--txt-3); font-style: italic; min-height: 0; line-height: 1.3; }

/* ─── Deal Actions Panel ─────────────────────────────────────── */
.action-group { display: flex; flex-direction: column; gap: 10px; }
.action-title { font-size: 0.95rem; font-weight: 700; color: var(--txt); display: flex; align-items: center; gap: 8px; }
.action-title i { color: var(--purple-ll); }
.action-desc  { font-size: 0.875rem; color: var(--txt-2); line-height: 1.55; }
.copy-wrap    { display: flex; align-items: center; gap: 8px; }
.copy-wrap .form-input { font-family: var(--font-mono); font-size: 0.78rem; }
.role-cards   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.role-card-title { font-size: 0.875rem; font-weight: 700; }
.role-card-sub   { font-size: 0.75rem; color: var(--txt-3); }
.role-card.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.spinner-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--txt-2); padding: 10px 0; }
.amount-display {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--txt), var(--purple-ll));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 4px 0;
}
.status-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r); font-size: 0.875rem; font-weight: 600; }
.status-row.confirmed { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.25); }
.status-row.pending   { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(245,158,11,0.25); }
.fee-display { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; font-size: 1rem; font-weight: 700; margin: 6px 0; }
.fee-choice-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-addr-short { font-family: var(--font-mono); font-size: 0.78rem; background: var(--bg-card-s); padding: 6px 10px; border-radius: var(--r); color: var(--purple-ll); word-break: break-all; }
/* ─── Admin ───────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  padding: 24px 16px;
}
.admin-main { margin-left: 240px; flex: 1; padding: 32px; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 100px;
}
.faq-sidebar-cta { margin-top: 28px; }
.faq-sidebar-stat {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--r-l);
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.18);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-ll);
  line-height: 1;
}
.faq-stat-label {
  font-size: 0.78rem;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 200ms;
}
.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.faq-item.open { background: rgba(124,58,237,0.04); }
.faq-question {
  padding: 22px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.faq-question:hover .faq-q-text { color: var(--purple-ll); }
.faq-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--purple-ll);
  letter-spacing: 0.08em;
  opacity: 0.5;
  flex-shrink: 0;
  width: 24px;
  transition: opacity 200ms;
}
.faq-item.open .faq-num { opacity: 1; }
.faq-q-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--txt);
  transition: color 200ms;
}
.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-ll);
  font-size: 0.68rem;
  transition: background 200ms, transform 260ms, border-color 200ms;
}
.faq-item.open .faq-toggle {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 4px 22px 38px;
  color: var(--txt-2);
  font-size: 0.9rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar { position: static; }
}
.page-loader-overlay {
  inset: 0;
  z-index: 9999;
  background: rgba(5,5,10,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-loader .text { color: var(--txt-2); font-size: 0.875rem; }

/* ─── Utility ─────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--txt-3); }
.text-success { color: var(--green); }
.text-error   { color: var(--red); }
.text-warning { color: var(--yellow); }
.text-purple  { color: var(--purple-ll); }
.text-sm      { font-size: 0.82rem; }
.text-xs      { font-size: 0.75rem; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.mt-auto      { margin-top: auto; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.w-full       { width: 100%; }
.hidden       { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.separator { width: 100%; height: 1px; background: var(--border); }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: none; }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ─── Skeleton Loader ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-s) 50%, var(--bg-card) 100%);
  background-size: 500px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.09) 45%, rgba(255, 255, 255, 0.02) 100%),
    radial-gradient(circle at 12% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(circle at 84% 78%, rgba(59, 130, 246, 0.18), transparent 58%),
    rgba(4, 5, 10, 0.58);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.page-loading-overlay::before {
  content: '';
  position: absolute;
  inset: -40% -50%;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.25) 48%, transparent 68%);
  transform: translateX(-45%);
  animation: pageReflectSweep 1.35s ease-in-out infinite;
}

.page-loading .page-loading-overlay {
  opacity: 1;
}

@keyframes pageReflectSweep {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(50%) translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-visual  { display: none; }
  .sidebar { display: none; }
  .dashboard-main {
    display: block;
    margin-left: 0;
    width: 100%;
    padding: 20px 16px;
  }
  .deal-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 70px);
  }
  .deal-chat {
    min-height: 58vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .deal-panel { width: 100%; }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .navbar-nav, .navbar-actions .btn-ghost { display: none; }
  .navbar-mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-banner    { padding: 40px 24px; }
  .auth-card     { padding: 28px 20px; }
  .modal         { padding: 24px 20px; }
  .section-header { margin-bottom: 36px; }
  .hero-subtitle,
  .section-subtitle,
  .testimonial-text,
  .faq-answer-inner,
  .footer-bottom,
  .hero-trust-item { overflow-wrap: anywhere; }
  .testimonial-author {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .faq-question {
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .navbar { padding: 0 16px; }
  .container { padding: 0 16px; }
  .container-sm, .container-lg { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .hero-actions,
  .hero-trust { gap: 12px; }
  .hero-actions .btn-xl,
  .btn-xl {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }
  .section-label {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .faq-answer-inner { padding-left: 28px; }
  .stat-item { min-width: 100%; }
}

.market-chat-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
}

.market-msg-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e9d5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.market-msg-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.32);
}

.market-chat-popup.open {
  display: block;
}

.market-hidden {
  display: none !important;
}

.market-chat-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(3px);
}

.market-chat-popup-panel {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - 94px);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  border: 1px solid rgba(124, 58, 237, 0.26);
  background: linear-gradient(180deg, rgba(12, 14, 26, 0.98), rgba(9, 11, 22, 0.97));
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.market-chat-captcha-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 14, 0.74);
  backdrop-filter: blur(3px);
  z-index: 2;
}

.market-chat-captcha-card {
  width: min(420px, calc(100vw - 48px));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.26);
  background: linear-gradient(180deg, rgba(12, 14, 26, 0.98), rgba(9, 11, 22, 0.97));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.market-chat-captcha-card #marketChatCaptchaWidget {
  margin-top: 12px;
  min-height: 78px;
}

.market-chat-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(124, 58, 237, 0.06);
}

.market-chat-popup-sub {
  color: var(--txt-3);
  font-size: 0.78rem;
  margin-top: 3px;
}

.market-chat-popup-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.market-chat-popup-list {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.market-chat-popup-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--txt);
  padding: 10px 12px;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 10px;
  align-items: center;
}

.market-chat-popup-item:hover {
  background: rgba(124, 58, 237, 0.07);
  border-color: rgba(124, 58, 237, 0.22);
}

.market-chat-popup-item.active {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.13);
}

.market-chat-popup-item-avatar {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  color: var(--purple-ll);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  align-self: center;
}

.market-chat-popup-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.dm-thread-avatar {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.18);
  color: var(--purple-ll);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dm-thread-avatar img {
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.market-chat-popup-item-avatar img {
  display: block;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.market-chat-popup-item-top,
.market-chat-popup-item-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.market-chat-popup-item-top span,
.market-chat-popup-item-mid,
.market-chat-popup-item-bot span {
  font-size: 0.77rem;
  color: var(--txt-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.market-chat-popup-item-top strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.market-chat-popup-item-mid {
  margin-top: 2px;
  margin-bottom: 1px;
  font-size: 0.78rem;
  color: var(--purple-ll);
  opacity: 0.75;
}

.market-chat-popup-unread {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
}

.market-chat-popup-thread {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.market-chat-popup-thread-head,
.market-chat-popup-compose {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-chat-popup-messages {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.market-chat-popup-row {
  display: flex;
}

.market-chat-popup-row.mine {
  justify-content: flex-end;
}

.market-chat-popup-bubble {
  max-width: min(82%, 560px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.market-chat-popup-row.mine .market-chat-popup-bubble {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.42);
  border-bottom-right-radius: 4px;
}

.market-chat-popup-row:not(.mine) .market-chat-popup-bubble {
  border-bottom-left-radius: 4px;
}

.market-chat-popup-meta {
  color: var(--txt-3);
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.market-chat-popup-image {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-chat-popup-typing {
  min-height: 18px;
  padding: 0 12px;
  color: #facc15;
  font-size: 0.78rem;
}

.market-chat-popup-compose textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--txt);
  border-radius: 10px;
  padding: 10px;
}

.market-chat-popup-compose-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: end;
}

.market-chat-popup-tool {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--txt-2);
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.market-chat-popup-tool:hover {
  color: var(--purple-ll);
  border-color: var(--border-h);
}

.market-chat-popup-input-wrap {
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  min-height: 42px;
  padding: 0 10px;
}

.market-chat-popup-input-wrap textarea {
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  min-height: 22px;
  max-height: 120px;
  padding: 10px 0;
  resize: none;
  line-height: 1.45;
  box-shadow: none;
}

.market-chat-popup-input-wrap textarea:focus {
  outline: none;
}

.market-chat-popup-compose-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.market-skeleton-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
}

.market-skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.market-skeleton-line.w-30 { width: 30%; }
.market-skeleton-line.w-45 { width: 45%; }
.market-skeleton-line.w-60 { width: 60%; }
.market-skeleton-line.w-80 { width: 80%; }

.market-chat-loading {
  display: grid;
  gap: 8px;
  align-content: start;
}

@media (max-width: 980px) {
  .market-chat-popup-panel {
    top: 72px;
    max-height: calc(100vh - 86px);
  }
  .market-chat-popup-body {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }
  .market-chat-popup-list {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
