@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');/* Default light theme variables */
:root {
  --global-header-height: 0px;
  --bg: #ffffff;
  --card: #e1e5f2;
  --border: #bfdbf7;
  --muted: #507a8c;
  --text: #022b3a;
  --accent: #1f7a8c;
  --accent-light: #4a97b0;
  --accent-muted: #a8c5d4;
  --success: #10b981;
  --danger: #ef4444;
  --warn: #bfdbf7;
  /* RGB values for rgba usage */
  --bg-rgb: 255, 255, 255;
  --card-rgb: 225, 229, 242;
  --border-rgb: 191, 219, 247;
  --text-rgb: 2, 43, 58;
  --accent-rgb: 31, 122, 140;
  --accent-light-rgb: 74, 151, 176;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RGB copies for use with rgba(var(--...-rgb), a) */
:root {
  --bg-rgb: 26, 15, 46; /* fallback dark */
  --card-rgb: 45, 27, 71;
  --text-rgb: 241, 245, 249;
  --accent-rgb: 232, 77, 92;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --card: #e1e5f2;
  --border: #bfdbf7;
  --muted: #507a8c;
  --text: #022b3a;
  --accent: #1f7a8c;
  --accent-light: #4a97b0;
  --accent-muted: #a8c5d4;
  --success: #10b981;
  --danger: #ef4444;
  --warn: #bfdbf7;
  /* RGB values for rgba usage */
  --bg-rgb: 255, 255, 255;
  --card-rgb: 225, 229, 242;
  --border-rgb: 191, 219, 247;
  --text-rgb: 2, 43, 58;
  --accent-rgb: 31, 122, 140;
  --accent-light-rgb: 74, 151, 176;
}

html[data-theme="light"] {
  --bg-rgb: 255, 255, 255;
  --card-rgb: 225, 229, 242;
  --text-rgb: 2, 43, 58;
  --accent-rgb: 31, 122, 140;
}

html[data-theme="dark"] {
  --bg: #1a0f2e;
  --card: #2d1b47;
  --border: #3d2a5a;
  --muted: #9a8fb5;
  --text: #f1f5f9;
  --accent: #e84d5c;
  --accent-light: #f08070;
  --accent-muted: #a84b7c;
  --success: #10b981;
  --danger: #ef4444;
  --warn: #f08070;
  /* RGB values for rgba usage */
  --bg-rgb: 26, 15, 46;
  --card-rgb: 45, 27, 71;
  --border-rgb: 61, 42, 90;
  --text-rgb: 241, 245, 249;
  --accent-rgb: 232, 77, 92;
  --accent-light-rgb: 240, 128, 112;
}

html[data-theme="dark"] {
  --bg-rgb: 26, 15, 46;
  --card-rgb: 45, 27, 71;
  --text-rgb: 241, 245, 249;
  --accent-rgb: 232, 77, 92;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

#root {
  width: 100%;
  min-height: 100vh;
}

a {
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: inherit;
}

a:hover {
  color: var(--accent);
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: transparent;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(var(--text-rgb), 0.05);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top-right, rgba(var(--accent-rgb), 0.1), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-4px);
}

.card-title {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--accent-light);
}

.card-change {
  font-size: 14px;
  margin-top: 8px;
  transition: var(--transition);
}

.card-change.positive {
  color: var(--success);
}

.card-change.negative {
  color: var(--danger);
}

.panel {
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(var(--text-rgb), 0.05);
  animation: slideInUp 0.6s ease-out;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 18px;
}

.panel.error {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

/* Mobile performance mode: reduce expensive compositing and continuous animation */
@media (max-width: 768px) {
  .site-header,
  .site-header.scrolled,
  .sidebar,
  .mobile-bottom-nav,
  .theme-fab,
  .panel,
  .card,
  .help-section,
  .support-chat-shell {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .main-content,
  .dashboard-page,
  .settings-page,
  .help-page,
  .markets-page,
  .transactions-page {
    animation: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

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

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }
}
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Sit behind UI features but above plain background */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Disable transition to avoid vibration on route changes */
  transition: none;
  will-change: transform;
}

/* Dark theme - use screen blend mode for particles */
.particle-background.dark {
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Light theme - visible behind content with proper blending */
.particle-background.light {
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.particle-background svg {
  width: 100%;
  height: 100%;
  min-width: 700px;
  min-height: 400px;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .particle-background {
    display: none;
  }
}
/* Header Styles */
.site-header {
  background: rgba(var(--card-rgb), 0.4);
  backdrop-filter: blur(0px);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  width: 100%;
}

.site-header.scrolled {
  background: rgba(var(--card-rgb), 0.7);
  backdrop-filter: blur(25px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 0 24px;
}

.brand {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.brand:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  margin-left: 40px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  margin-left: 24px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav-login {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 12px !important;
}

.nav-login:hover::after {
  width: 0;
}

.nav-signup {
  background: var(--accent);
  color: white !important;
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 8px !important;
}

.nav-signup:hover {
  opacity: 0.9;
}

.nav-signup:hover::after {
  width: 0;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  margin-left: 24px;
  font-size: 14px;
  transition: var(--transition);
  padding: 0;
  font-family: inherit;
}

.theme-toggle:hover {
  color: var(--accent);
}

/* hide the mobile-only support button by default; show on small screens */
.mobile-support {
  display: none;
}

.mobile-auth-buttons {
  display: none;
  gap: 8px;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .brand {
    font-size: 14px;
  }

  .brand-logo {
    height: 52px;
    width: 52px;
  }

  .brand span {
    font-size: 12px;
  }

  /* hide header nav on mobile - navigation provided by bottom nav */
  .nav {
    display: none !important;
  }

  /* show the mobile support icon when nav is hidden */
  .mobile-support {
    display: inline-flex;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 10px;
  }

  /* show mobile auth buttons for non-logged-in users */
  .mobile-auth-buttons {
    display: flex;
  }

  .nav a {
    margin-left: 12px;
    font-size: 11px;
  }

  .theme-toggle {
    margin-left: 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* Make brand take available space so name can fill header */
  .brand {
    font-size: 16px;
    gap: 10px;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    white-space: normal;
  }

  /* Slightly larger logo on mobile to balance the text */
  .brand-logo {
    height: 48px;
    width: 48px;
  }

  /* Show the brand name and make it prominent */
  .brand span {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 96px);
  }

  .nav {
    display: none !important;
  }

  .nav a {
    margin-left: 8px;
    font-size: 10px;
  }

  .theme-toggle {
    margin-left: 8px;
    font-size: 10px;
  }

  .mobile-auth-buttons {
    gap: 6px;
  }

  .mobile-auth-buttons a {
    padding: 4px 10px !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
}
.sidebar {
  width: 210px;
  background: rgba(var(--card-rgb), 0.7);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(var(--text-rgb), 0.1);
  padding: 24px 0;
  position: fixed;
  left: 0;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(var(--text-rgb), 0.05);
  transition: var(--transition);
  /* ensure sidebar always layers above other sticky elements like the testimonies banner */
  z-index: 200;
}

.sidebar-link {
  display: block;
  padding: 12px 24px;
  color: var(--muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: var(--transition);
  position: relative;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-light);
  transform: translateX(4px);
}

.sidebar-link.active {
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-light);
  box-shadow: inset 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.sidebar-link.active::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    width: 100%;
    position: fixed;
    left: 0;
    top: 70px;
    height: auto;
    max-height: calc(100vh - 70px);
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
    z-index: 50;
  }

  .sidebar.open {
    display: block;
  }

  .sidebar-link {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .sidebar-link {
    padding: 8px 12px;
    font-size: 11px;
  }
}

.sidebar-divider {
  height: 1px;
  background: rgba(var(--text-rgb), 0.1);
  margin: 12px 24px;
}
/* ─────────────────────────────────────────────────────────
   MOBILE BOTTOM NAV — Floating Glass Pill
───────────────────────────────────────────────────────── */

/* Hide when chat is fullscreen */
body.mobile-chat-messages-view .mobile-bottom-nav {
  display: none !important;
}

/* ── SHELL ── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  pointer-events: all;
  animation: navSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navSlideUp {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── INNER BAR ── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 58px;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* ── NAV ITEMS ── */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  height: 100%;
  padding: 6px 4px;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* ── ACTIVE GLOW PILL BACKGROUND ── */
.nav-item::before {
  content: '';
  position: absolute;
  inset: 5px 6px;
  background: rgba(var(--accent-rgb), 0.13);
  border-radius: 18px;
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active::before {
  opacity: 1;
  transform: scale(1);
}

/* ── ACTIVE TOP ACCENT BAR ── */
.nav-item::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 20px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* ── ICON ── */
.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active .nav-icon-wrap {
  transform: translateY(-1px) scale(1.1);
}

.nav-item.active .nav-icon-wrap svg {
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.55));
}

/* ── LABEL ── */
.nav-label {
  display: none;
}

/* ── STATES ── */
.nav-item.active {
  color: var(--accent);
}

.nav-item:not(.active):hover {
  color: var(--text);
}

.nav-item:active .nav-icon-wrap {
  transform: scale(0.86);
}

/* ── HIDE ON DESKTOP ── */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* ── VERY SMALL SCREENS ── */
@media (max-width: 380px) {
  .mobile-bottom-nav {
    padding: 0 8px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .nav-inner {
    height: 56px;
  }

  .nav-label {
    font-size: 9px;
  }
}
.theme-fab {
  position: fixed;
  right: 18px;
  bottom: 78px; /* above mobile bottom nav */
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--card-rgb), 0.75);
  color: var(--text);
  border: 1px solid rgba(var(--text-rgb), 0.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}

.theme-fab:active { transform: translateY(-1px); }

.theme-fab .icon { display: inline-flex; align-items:center; justify-content:center; }

/* small screens adjust so it doesn't overlap bottom nav */
@media (max-width: 480px) {
  .theme-fab { right: 12px; bottom: 72px; width:48px; height:48px; }
}

.prompts-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 2000;
  max-width: 380px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.prompt-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(var(--text-rgb), 0.12);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.prompt-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.prompt-content {
  flex: 1;
  min-width: 0;
}

.prompt-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.prompt-message {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 5px;
  word-break: break-word;
}

.prompt-time {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.prompt-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-size: 14px;
  margin-top: -1px;
}

.prompt-close:hover {
  background: rgba(var(--text-rgb), 0.08);
  color: var(--text);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .prompts-container {
    top: 72px;
    right: 12px;
    left: 12px;
    max-width: none;
    width: auto;
  }
}
/* Floating Chat Component Styles */
.floating-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
}

.chat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent, #007bff), var(--accent-hover, #0056b3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.chat-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.unread-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error, #dc3545);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.floating-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1001;
  padding: 20px;
}

.floating-chat-container {
  background: var(--bg-primary, #ffffff);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: chatSlideUp 0.3s ease-out;
}

.floating-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e0e0e0);
  background: var(--bg-secondary, #f8f9fa);
}

.floating-chat-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.chat-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary, #666);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chat-close:hover {
  background: var(--bg-hover, #e9ecef);
  color: var(--text-primary, #333);
}

.floating-chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-content {
  text-align: center;
  max-width: 250px;
}

.welcome-content h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.welcome-content p {
  margin: 0 0 16px 0;
  color: var(--text-secondary, #666);
  font-size: 14px;
}

.start-chat-btn {
  background: var(--accent, #007bff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.start-chat-btn:hover:not(:disabled) {
  background: var(--accent-hover, #0056b3);
}

.start-chat-btn:disabled {
  background: var(--disabled, #ccc);
  cursor: not-allowed;
}

.chat-error {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: var(--error, #dc3545);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: messageSlideIn 0.3s ease-out;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.admin {
  align-self: flex-start;
  align-items: flex-start;
}

.message-content {
  background: var(--user-message-bg, #007bff);
  color: white;
  padding: 8px 12px;
  border-radius: 16px;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.admin .message-content {
  background: var(--admin-message-bg, #f1f3f4);
  color: var(--text-primary, #333);
}

.message-time {
  font-size: 10px;
  color: var(--text-muted, #999);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-message.user .message-time {
  text-align: right;
}

.chat-message.typing .message-content {
  padding: 10px 14px;
}

.typing-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary, #666);
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border, #e0e0e0);
  background: var(--bg-primary, #ffffff);
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input input:focus {
  border-color: var(--accent, #007bff);
}

.chat-input input:disabled {
  background: var(--disabled-bg, #f8f9fa);
  cursor: not-allowed;
}

.chat-input button {
  background: var(--accent, #007bff);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-input button:hover:not(:disabled) {
  background: var(--accent-hover, #0056b3);
}

.chat-input button:disabled {
  background: var(--disabled, #ccc);
  cursor: not-allowed;
}

/* Animations */
@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .floating-chat-button {
    bottom: 16px;
    right: 16px;
  }

  .chat-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .unread-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .floating-chat-overlay {
    padding: 16px;
  }

  .floating-chat-container {
    max-width: none;
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    max-height: none;
    border-radius: 8px;
  }

  .floating-chat-header {
    padding: 12px 16px;
  }

  .floating-chat-header h4 {
    font-size: 14px;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-input {
    padding: 12px;
  }

  .chat-input input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Dark theme support */
[data-theme="dark"] .floating-chat-container {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-hover: #3d3d3d;
  --border: #404040;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --user-message-bg: #007bff;
  --admin-message-bg: #2d2d2d;
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --disabled: #6c757d;
  --disabled-bg: #2d2d2d;
  --error: #dc3545;
}
/* ChatBox Component Styles */
.chatbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.chatbox-container {
  background: var(--bg-primary, #ffffff);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  height: 80vh;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.chatbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e0e0e0);
  background: var(--bg-secondary, #f8f9fa);
}

.chatbox-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.chatbox-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary, #666);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chatbox-close:hover {
  background: var(--bg-hover, #e9ecef);
  color: var(--text-primary, #333);
}

.chatbox-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbox-start {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chatbox-welcome {
  text-align: center;
  max-width: 300px;
}

.chatbox-welcome h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.chatbox-welcome p {
  margin: 0 0 20px 0;
  color: var(--text-secondary, #666);
  font-size: 14px;
}

.chatbox-start-btn {
  background: var(--accent, #007bff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chatbox-start-btn:hover:not(:disabled) {
  background: var(--accent-hover, #0056b3);
  transform: translateY(-1px);
}

.chatbox-start-btn:disabled {
  background: var(--disabled, #ccc);
  cursor: not-allowed;
  transform: none;
}

.chatbox-status {
  margin: 12px 0 0 0;
  font-size: 12px;
  color: var(--warning, #ffc107);
}

.chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbox-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: messageSlideIn 0.3s ease-out;
}

.chatbox-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chatbox-message.admin {
  align-self: flex-start;
  align-items: flex-start;
}

.chatbox-message-content {
  background: var(--user-message-bg, #007bff);
  color: white;
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatbox-message.admin .chatbox-message-content {
  background: var(--admin-message-bg, #f1f3f4);
  color: var(--text-primary, #333);
}

.chatbox-message-time {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 4px;
  padding: 0 4px;
}

.chatbox-message.user .chatbox-message-time {
  text-align: right;
}

.chatbox-message.typing .chatbox-message-content {
  padding: 12px 16px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary, #666);
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.chatbox-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border, #e0e0e0);
  background: var(--bg-primary, #ffffff);
  align-items: flex-end;
}

.chatbox-input textarea {
  flex: 1;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 34px;
  max-height: 72px;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.3;
}

.chatbox-input textarea:focus {
  border-color: var(--accent, #007bff);
}

.chatbox-input textarea:disabled {
  background: var(--disabled-bg, #f8f9fa);
  cursor: not-allowed;
}

.chatbox-input button {
  background: var(--accent, #007bff);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chatbox-input button:hover:not(:disabled) {
  background: var(--accent-hover, #0056b3);
}

.chatbox-input button:disabled {
  background: var(--disabled, #ccc);
  cursor: not-allowed;
}

.chatbox-notification {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success, #28a745);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: notificationSlideDown 0.3s ease-out;
  z-index: 1001;
}

/* Animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

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

/* Mobile Styles */
@media (max-width: 768px) {
  .chatbox-container {
    width: 95%;
    height: 90vh;
    max-height: none;
    border-radius: 8px;
  }

  .chatbox-header {
    padding: 12px 16px;
  }

  .chatbox-header h3 {
    font-size: 16px;
  }

  .chatbox-messages {
    padding: 12px;
  }

  .chatbox-input {
    padding: 8px 10px;
  }

  .chatbox-input textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 32px;
    max-height: 64px;
  }
}

/* Dark theme support */
[data-theme="dark"] .chatbox-container {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-hover: #3d3d3d;
  --border: #404040;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --user-message-bg: #007bff;
  --admin-message-bg: #2d2d2d;
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --disabled: #6c757d;
  --disabled-bg: #2d2d2d;
  --warning: #ffc107;
  --success: #198754;
}/* ─── Hide on mobile when on markets page ─────────────── */
@media (max-width: 768px) {
  body.markets-page .testimonies-banner {
    display: none;
  }
}

/* ─── Banner wrapper ──────────────────────────────────────── */
.testimonies-banner {
  position: sticky;
  top: var(--global-header-height, 0px);
  z-index: 900;
  background:transparent;
  border-top:    1px solid rgba(var(--border-rgb, 148, 163, 184), 0.26);
  border-bottom: 1px solid rgba(var(--border-rgb, 148, 163, 184), 0.22);
  overflow: hidden;
}

.testimonies-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 100%;
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Shell — single unified flex row ───────────────────── */
.testimonies-banner-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2px 14px;
}

/* ─── Individual card ─────────────────────────────────────── */
.testimonies-banner-item {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg,
    rgba(var(--card-rgb, 20, 25, 36), 0.85),
    rgba(var(--card-rgb, 20, 25, 36), 0.55)
  );
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  animation: testimony-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Card header row (kicker + stars) ────────────────── */
.testimonies-banner-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.testimonies-banner-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f59e0b;
}

.testimonies-banner-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.testimonies-banner-rating {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.testimonies-banner-item-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Pop-in keyframe ─────────────────────────────────────── */
@keyframes testimony-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Mobile ≤ 940px ──────────────────────────────────────── */
@media (min-width: 941px) {
  .testimonies-banner-shell {
    justify-content: flex-end;
  }

  .testimonies-banner-item {
    flex: 0 0 clamp(260px, 35vw, 480px);
  }
}

@media (max-width: 940px) {
  .testimonies-banner-shell {
    gap: 10px;
    padding: 0 12px;
  }
}

/* ─── Small mobile ≤ 560px ────────────────────────────────── */
@media (max-width: 560px) {
  .testimonies-banner-shell {
    padding: 0 10px;
    gap: 8px;
  }

  .testimonies-banner-item {
    padding: 10px 11px;
    border-radius: 10px;
  }
}
/* Main Layout Styles */
.banner-wrap { display: contents; }

@media (max-width: 768px) {
  .banner-hide-mobile { display: none; }
}

.app-wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
  padding-top: 102px;
  margin-top: 0;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .app-wrapper {
    flex-direction: column;
    min-height: calc(100vh - 70px);
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  .main-content {
    margin-left: 0;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    padding-bottom: 80px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 8px;
    padding-bottom: 72px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    box-sizing: border-box;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Landing Page Header Styles */
.landing-header {
  background: rgba(var(--card-rgb), 0.15);
  backdrop-filter: blur(0px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0 !important;
  width: 100%;
}

.landing-header.scrolled {
  background: rgba(var(--card-rgb), 0.45);
  backdrop-filter: blur(20px);
}

.landing-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  padding: 0 24px;
}

.landing-header .brand {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-header .brand-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

.landing-header .brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.landing-header .brand:hover {
  opacity: 0.8;
}

.landing-header .nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  margin-left: 40px;
  justify-content: flex-end;
}

.landing-header .nav a {
  color: var(--muted);
  margin-left: 24px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-size: 14px;
  font-weight: 500;
}

.landing-header .nav a:hover {
  color: var(--accent);
}

.landing-header .nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.landing-header .nav a:hover::after {
  width: 100%;
}

.landing-header .nav-login {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 12px !important;
}

.landing-header .nav-login:hover::after {
  width: 0;
}

.landing-header .nav-signup {
  background: var(--accent);
  color: white !important;
  padding: 6px 14px;
  border-radius: 6px;
  margin-left: 8px !important;
}

.landing-header .nav-signup:hover {
  opacity: 0.9;
}

.landing-header .nav-signup:hover::after {
  width: 0;
}

.landing-header .theme-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  margin-left: 24px;
  font-size: 14px;
  transition: var(--transition);
  padding: 0;
  font-family: inherit;
}

.landing-header .theme-toggle:hover {
  color: var(--accent);
}

/* Auth buttons for non-logged in users */
.landing-header-auth-buttons {
  display: flex;
  gap: 8px;
}

.landing-header-auth-buttons a {
  text-decoration: none;
  transition: var(--transition);
  border-radius: 6px;
}

.landing-header .landing-auth-login {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  font-size: 14px;
}

.landing-header .landing-auth-login:hover {
  background: var(--accent);
  color: white !important;
}

.landing-header .landing-auth-signup {
  background: var(--accent);
  color: white !important;
  padding: 6px 14px;
  font-size: 14px;
}

.landing-header .landing-auth-signup:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .landing-header .container {
    min-height: auto;
    flex-wrap: wrap;
  }

  .landing-header .brand {
    font-size: 14px;
  }

  .landing-header .brand-logo {
    height: 52px;
    width: 52px;
  }

  .landing-header .brand span {
    font-size: 12px;
  }

  /* hide header nav on mobile - show auth buttons instead */
  .landing-header .nav {
    display: none !important;
  }

  .landing-header .nav a {
    margin-left: 12px;
    font-size: 11px;
  }

  .landing-header .theme-toggle {
    margin-left: 12px;
    font-size: 12px;
  }

  .landing-header-auth-buttons {
    gap: 6px;
  }

  .landing-header .landing-auth-login,
  .landing-header .landing-auth-signup {
    padding: 4px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* Make brand take available space */
  .landing-header .brand {
    font-size: 16px;
    gap: 10px;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    white-space: normal;
  }

  .landing-header .brand-logo {
    height: 48px;
    width: 48px;
  }

  .landing-header .brand span {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 96px);
  }

  .landing-header .nav {
    display: none !important;
  }

  .landing-header .nav a {
    margin-left: 8px;
    font-size: 10px;
  }

  .landing-header .theme-toggle {
    margin-left: 8px;
    font-size: 10px;
  }

  .landing-header-auth-buttons {
    gap: 6px;
  }

  .landing-header .landing-auth-login,
  .landing-header .landing-auth-signup {
    padding: 4px 10px !important;
    font-size: 11px !important;
  }
}
/* ============================================================
   LANDING PAGE - MODERN PROFESSIONAL DESIGN
   ============================================================ */

:root {
  --primary: #6366f1;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --dark: #0f172a;
  --light: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   GLOBAL ANIMATIONS
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-30px) rotateX(10deg); }
}

@keyframes float-delay-1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-35px); }
}

@keyframes float-delay-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-25px); }
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(-20px, -30px) scale(1.05); }
}

@keyframes chart-animate {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   BASE STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   BACKGROUND EFFECTS
   ============================================================ */

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(236, 72, 153, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  top: -100px;
  left: -100px;
  animation: blob 20s infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  bottom: -100px;
  right: -100px;
  animation: blob 25s infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ec4899, #06b6d4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob 30s infinite;
  animation-delay: 5s;
}

/* Header is now shared (see layout/Header.css) */

/* Landing page uses the shared Header component */

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   LANDING CONTENT
   ============================================================ */

.landing-content {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  pointer-events: none;
}

.grid-bg {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(99, 102, 241, 0.1) 25%, rgba(99, 102, 241, 0.1) 26%, transparent 27%, transparent 74%, rgba(99, 102, 241, 0.1) 75%, rgba(99, 102, 241, 0.1) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(99, 102, 241, 0.1) 25%, rgba(99, 102, 241, 0.1) 26%, transparent 27%, transparent 74%, rgba(99, 102, 241, 0.1) 75%, rgba(99, 102, 241, 0.1) 76%, transparent 77%, transparent);
  background-size: 80px 80px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-left {
  animation: slide-in-left 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text);
  animation: fade-in-up 0.8s ease-out 0.1s both;
}

.hero-title br {
  display: block;
}

.hero-desc {
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.hero-trust {
  font-size: 13px;
  color: var(--text-light);
  animation: fade-in-up 0.8s ease-out 0.4s both;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.hero-trust p {
  margin: 0;
  line-height: 1.8;
}

.hero-right {
  animation: slide-in-right 0.8s ease-out;
  position: relative;
  height: 500px;
}

.hero-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.floating-box {
  position: absolute;
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  animation: float 5s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-box:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg);
}

.box-1 {
  top: 20px;
  left: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.box-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation: float-delay-1 6s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(99, 102, 241, 0.05));
}

.box-3 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: float-delay-2 7s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(6, 182, 212, 0.05));
}

.box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.box-icon {
  font-size: 32px;
  animation: pulse 2s ease-in-out infinite;
}

.box-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.box-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.animated-chart {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-svg {
  width: 90%;
  height: 60%;
  filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.1));
}

.chart-svg polyline {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: chart-animate 2s ease-out forwards;
  stroke-dasharray: 1000;
  opacity: 0.8;
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: linear-gradient(135deg, white, rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  animation: fade-in-up 0.8s ease-out;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.stat-card h3 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features-section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
  animation: fade-in-up 0.8s ease-out;
}

.section-logo {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fade-in-up 0.8s ease-out both;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   HIGHLIGHT SECTION
   ============================================================ */

.highlight-section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
  margin: 0 0 0 0;
  animation: fade-in-up 0.8s ease-out;
}

.highlight-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.highlight-text h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}

.highlight-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.highlight-list {
  list-style: none;
  margin-bottom: 32px;
}

.highlight-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text);
  font-weight: 500;
}

.highlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.highlight-visual {
  position: relative;
  height: 400px;
}

.card-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.showcase-item {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.item-1 {
  width: 280px;
  height: 180px;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  animation: float 4s ease-in-out infinite;
}

.item-2 {
  width: 300px;
  height: 200px;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
  animation: float 5s ease-in-out infinite 0.5s backwards;
  z-index: 2;
}

.item-3 {
  width: 260px;
  height: 170px;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(6, 182, 212, 0.1));
  animation: float 6s ease-in-out infinite 1s backwards;
}

/* ============================================================
   TESTIMONIES SECTION
   ============================================================ */

.testimonies-section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(6, 182, 212, 0.03));
}

.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimony-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  animation: fade-in-up 0.8s ease-out both;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.testimony-card:nth-child(1) { animation-delay: 0.1s; }
.testimony-card:nth-child(2) { animation-delay: 0.2s; }
.testimony-card:nth-child(3) { animation-delay: 0.3s; }

.testimony-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  background: linear-gradient(135deg, white, rgba(99, 102, 241, 0.02));
}

.stars {
  font-size: 14px;
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.message {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  flex: 1;
}

.testimony-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.author-title {
  font-size: 12px;
  color: var(--text-light);
  margin: 4px 0 0 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  overflow: hidden;
  animation: fade-in-up 0.8s ease-out both;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--primary);
}

.arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.arrow.open {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  animation: fade-in-up 0.3s ease-out;
  border-top: 1px solid var(--border);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */

.newsletter-section {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  margin: 0 24px;
  color: white;
  text-align: center;
  animation: fade-in-up 0.8s ease-out;
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-section p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn {
  white-space: nowrap;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */

.final-cta {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
  margin: 0;
  animation: fade-in-up 0.8s ease-out;
}

.final-cta h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}

.final-cta p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--dark);
  color: white;
  padding: 60px 24px 20px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.scroll-animate {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out both;
}

.scroll-animate.visible {
  animation: fade-in-up 0.8s ease-out forwards;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 16px 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-right {
    height: 350px;
  }

  .floating-box {
    width: 110px;
    height: 110px;
    font-size: 12px;
  }

  .box-icon {
    font-size: 28px;
  }

  .box-value {
    font-size: 14px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .highlight-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .highlight-text h2 {
    font-size: 28px;
  }

  .highlight-visual {
    height: 300px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    gap: 30px;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 480px) {
  .hero-section {
    padding: 110px 16px 40px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-right {
    height: 280px;
  }

  .floating-box {
    width: 90px;
    height: 90px;
    padding: 12px;
  }

  .box-icon {
    font-size: 24px;
  }

  .box-value {
    font-size: 13px;
  }

  .box-label {
    font-size: 10px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 13px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .highlight-section {
    padding: 60px 16px;
  }

  .highlight-text h2 {
    font-size: 24px;
  }

  .highlight-list li {
    padding: 10px 0;
    padding-left: 24px;
    font-size: 13px;
  }

  .stats-section {
    gap: 16px;
    padding: 40px 16px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-card h3 {
    font-size: 24px;
  }

  .stat-card p {
    font-size: 12px;
  }

  .pricing-section {
    padding: 60px 16px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .pricing-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .pricing-card h3 {
    font-size: 18px;
  }

  .amount {
    font-size: 36px;
  }

  .testimonies-section {
    padding: 60px 16px;
  }

  .testimony-card {
    padding: 20px;
  }

  .message {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .author-name {
    font-size: 12px;
  }

  .author-title {
    font-size: 11px;
  }

  .faq-section {
    padding: 60px 16px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-question {
    padding: 16px;
    font-size: 13px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 12px;
  }

  .newsletter-section {
    padding: 50px 16px;
    margin: 0 16px;
    border-radius: 16px;
  }

  .newsletter-section h2 {
    font-size: 24px;
  }

  .newsletter-section p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .newsletter-form input {
    min-width: 100%;
    font-size: 13px;
    padding: 10px 14px;
  }

  .final-cta {
    padding: 50px 16px;
  }

  .final-cta h2 {
    font-size: 24px;
  }

  .final-cta p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .site-footer {
    padding: 40px 16px 12px;
  }

  .footer-content {
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .footer-bottom {
    font-size: 11px;
    padding-top: 16px;
  }

  .orb {
    filter: blur(50px);
    opacity: 0.2;
  }
}

/* ============================================================
   EXTRA SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .amount {
    font-size: 28px;
  }

  .hero-badge {
    font-size: 11px;
  }
}
/* LoginPage Styles */

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, var(--card) 100%);
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(var(--card-rgb), 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(var(--text-rgb), 0.05);
  backdrop-filter: blur(10px);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.login-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.error-banner {
  background: rgba(var(--danger), 0.1);
  border: 1px solid rgba(var(--danger), 0.3);
  border-radius: 6px;
  padding: 0.875rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease-out;
}

.error-banner p {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  padding-right: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.password-toggle svg {
  flex-shrink: 0;
}

.password-toggle:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-input {
  padding: 0.875rem;
  border: 1px solid rgba(var(--text-rgb), 0.2);
  border-radius: 6px;
  background: rgba(var(--text-rgb), 0.05);
  backdrop-filter: blur(5px);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  padding-right: 40px;
}

.form-input::placeholder {
  color: rgba(var(--text-rgb), 0.5);
}

.form-input:focus {
  outline: none;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--text-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(var(--text-rgb), 0.03);
  color: rgba(var(--text-rgb), 0.5);
}

.login-button {
  padding: 0.875rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
  padding-top: 1.5rem;
}

.demo-text {
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.forgot-link,
.signup-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.forgot-link:hover,
.signup-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.separator {
  color: var(--muted);
  margin: 0 4px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 1.4rem;
  }

  .form-input,
  .login-button {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

/* Light theme support */
html[data-theme="light"] .login-card {
  background: rgba(var(--card-rgb), 0.98);
}
.signup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.signup-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
}

.signup-card h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.signup-card .subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 14px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-focus-bg);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
}

.form-checkbox input[type='checkbox'] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
}

.form-checkbox a {
  color: var(--accent);
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 118, 239, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signin-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.signin-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.signin-link a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--error-bg, #fee);
  color: var(--error, #c00);
  border-left: 4px solid var(--error, #c00);
}

.alert-success {
  background: var(--success-bg, #efe);
  color: var(--success, #060);
  border-left: 4px solid var(--success, #060);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .signup-card {
    padding: 28px 20px;
  }

  .signup-card h1 {
    font-size: 24px;
  }

  .form-group input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-primary {
    padding: 12px 16px;
    font-size: 15px;
  }
}
.verify-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.verify-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
}

.verify-header {
  text-align: center;
  margin-bottom: 32px;
}

.verify-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 16px;
}

.verify-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-focus-bg);
}

.email-display {
  padding: 12px 14px;
  background: rgba(11, 118, 239, 0.05);
  border: 1px solid rgba(11, 118, 239, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
}

.email-display strong {
  color: var(--accent);
  font-weight: 600;
}

.btn {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 118, 239, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.link-btn:hover {
  opacity: 0.8;
}

.verify-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.verify-footer p {
  margin: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--error-bg, #fee);
  color: var(--error, #c00);
  border-left: 4px solid var(--error, #c00);
}

.alert-success {
  background: var(--success-bg, #efe);
  color: var(--success, #060);
  border-left: 4px solid var(--success, #060);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .verify-card {
    padding: 28px 20px;
  }

  .verify-card h1 {
    font-size: 24px;
  }

  .form-group input {
    font-size: 16px;
  }

  .btn-primary {
    padding: 12px 16px;
  }
}
.mobile-portfolio-carousel {
  display: block; /* force visible for testing */
  position: relative;
  width: 100%;
  height: 240px;
  margin-bottom: 30px;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden; /* clip off-screen cards so only active card shows */
}

/* Single card - no scrolling */
.single-card {
  width: 100%;
  height: 220px;
  margin-right: 0;
}

/* each slide is positioned with horizontal stacking appearance */
.carousel-card {
  --blur-amount: 20px; /* customizable blur intensity */
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 220px; /* explicit card height */
  margin-right: 12px; /* gap between slides */
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.55) 0%, rgba(var(--bg-rgb), 0.55) 100%);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  outline: none !important;
  transition: all 300ms ease;
  flex-shrink: 0; /* prevent card from shrinking in flex context */
}

/* Credit card background SVG styling */
.carousel-card .credit-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
  filter: brightness(1.15) contrast(1.1);
}

/* Animated portfolio background SVG */
.carousel-card .portfolio-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 16px;
}



html[data-theme="light"] .carousel-card {
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.8) 0%, rgba(var(--bg-rgb), 0.8) 100%);
}



/* content layout */
.carousel-card .card-content {
  width: 100%;
  color: var(--text);
  overflow: visible;
}

.carousel-card .card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.card-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  text-align: center;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.2px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
}

.stat-value.positive { color: var(--success); }
.stat-value.negative { color: var(--danger); }

/* Card 1: Balance + 24h (legacy styles kept) */
.card-balance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  padding: 8px 0;
}

/* Modern metallic first-card styling */
.card-balance-modern {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 18px 12px;
}

.card-balance-modern .balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.card-balance-modern .balance-label {
  font-size: 11px;
  color: rgba(var(--text-rgb), 0.55);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.balance-amount {
  font-size: clamp(26px, 10vw, 56px);
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Metallic gradient text */
.metallic {
  background: linear-gradient(135deg, #f9fafb 0%, #cbd5e1 35%, #94a3b8 65%, #6b7280 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 18px rgba(107,114,128,0.12);
}

/* Light theme override for metallic - teal metallic effect */
html[data-theme="light"] .metallic {
  background: linear-gradient(135deg, #4a97b0 0%, #1f7a8c 50%, #0d4a5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(31, 122, 140, 0.2);
}

/* Bold metallic change badge */
.change-badge.metallic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(99,102,241,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}

.change-badge.metallic.positive { color: #10b981; border-color: rgba(16,185,129,0.12); box-shadow: 0 6px 18px rgba(16,185,129,0.06); }
.change-badge.metallic.negative { color: #ef4444; border-color: rgba(239,68,68,0.12); box-shadow: 0 6px 18px rgba(239,68,68,0.06); }

.change-badge .change-arrow { font-size: 12px; transform: translateY(-1px); }
.change-badge .change-text { font-weight: 900; font-size: 16px; }
.change-badge .change-label { font-size: 10px; color: rgba(var(--text-rgb), 0.55); margin-left: 6px; }

.change-section {
  text-align: center;
  animation: slideUp 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms both;
}

.change-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  backdrop-filter: blur(8px);
  background: rgba(var(--card-rgb), 0.05);
}

.change-badge.positive {
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.change-badge.negative {
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.change-arrow {
  font-size: 18px;
  font-weight: 900;
}

.change-label {
  font-size: 10px;
  color: rgba(var(--text-rgb), 0.5);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Card 2: Portfolio Value + Positions */
.card-portfolio-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 16px 8px;
}

.portfolio-stat {
  text-align: center;
  flex: 1;
  animation: scaleIn 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.portfolio-stat.portfolio-main {
  animation-delay: 80ms;
}

.portfolio-stat.portfolio-secondary {
  animation-delay: 160ms;
}

.portfolio-icon {
  font-size: 28px;
  margin-bottom: 6px;
  display: block;
  animation: bounce 1.2s ease-in-out infinite;
}

.portfolio-stat.portfolio-secondary .portfolio-icon {
  animation-delay: 0.2s;
}

.portfolio-label {
  font-size: 10px;
  color: rgba(var(--text-rgb), 0.55);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portfolio-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.2), transparent);
}

/* Card 3: Chart */
.card-chart-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 8px;
  animation: fadeIn 500ms ease-in-out;
}

/* Two-column layout for second card */
.card-portfolio-two-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  overflow: visible; /* keep parent visible while constraining child */
}

.portfolio-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-right {
  flex: 0 0 auto;
  min-width: min(180px, 42%);
  max-width: 55%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Allow floatings coins to show */
  overflow: visible;
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(var(--card-rgb), 0.02), rgba(var(--card-rgb), 0.0));
}

.composition-chart {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.composition-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.composition-ring-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.composition-ring-track {
  fill: none;
  stroke: rgba(var(--text-rgb), 0.12);
  stroke-width: 9;
}

.composition-ring-segment {
  transition: stroke-dasharray 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.composition-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.composition-center-coin {
  font-size: 10px;
  font-weight: 700;
  color: rgba(var(--text-rgb), 0.72);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  max-width: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composition-center-pct {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.composition-legend {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}

.composition-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 8px;
  background: rgba(var(--card-rgb), 0.18);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.composition-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.composition-coin {
  font-size: 9px;
  font-weight: 600;
  color: rgba(var(--text-rgb), 0.74);
  text-transform: uppercase;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composition-pct {
  font-size: 9px;
  font-weight: 700;
  color: rgba(var(--text-rgb), 0.56);
}

.composition-empty {
  color: var(--muted);
  font-size: 12px;
}

.portfolio-value {
  font-size: clamp(20px, 7vw, 32px);
  font-weight: 900;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-positions {
  font-size: 18px;
  font-weight: 800;
  color: rgba(var(--text-rgb), 0.7);
  margin-top: 6px;
}

/* Ensure chart is properly sized and centered */
.portfolio-right svg { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.portfolio-right svg > * { vector-effect: non-scaling-stroke; }



/* dots at the bottom center, inside the card */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  z-index: 20;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0;
  transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.carousel-dots .dot.active {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4), inset 0 1px 2px rgba(var(--card-rgb), 0.2);
  transform: scale(1.2);
}



/* Ensure active card is visually on top and fully visible */
.carousel-card.active {
  filter: none !important;
  opacity: 1 !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 6px 20px rgba(var(--accent-rgb),0.15);
}

/* show mobile carousel and fix layout on small screens */
@media (max-width: 768px) {
  .mobile-portfolio-carousel { 
    display: block;
    height: auto;
    aspect-ratio: 16/9;
  }
  .carousel-card {
    height: 100%;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes float-futuristic {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-3px) scale(1.005);
  }
  50% {
    transform: translateY(-1px) scale(1);
  }
  75% {
    transform: translateY(-3px) scale(1.005);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes coin-float {
  0%, 100% {
    transform: translateX(0px) translateY(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateX(0.5px) translateY(-1px);
    opacity: 0.8;
  }
}


/* ── LOCAL SCOPE VARS ─────────────────────────────────────────── */

.dash {
  --gold:  #f5a623;
  --blue:  #3b82f6;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --r:     12px;
  --t:     0.18s ease;
  --card2: #241540;
}

/* ── LAYOUT ───────────────────────────────────────────────────── */

.dash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── ERROR / WARNING BANNERS ─────────────────────────────────── */

.dash-error-panel {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-warning-banner {
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dash-retry-btn {
  padding: 5px 12px;
  background: rgba(var(--accent-rgb),0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t);
}

.dash-retry-btn:hover { background: rgba(var(--accent-rgb),0.25); }

/* ── TOP BAR ──────────────────────────────────────────────────── */

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-greeting { display: flex; flex-direction: column; gap: 2px; }

.dash-greeting-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.dash-greeting-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }

.dash-greeting-name span { color: var(--accent); }

.dash-topbar-actions { display: flex; gap: 10px; }

.dash-topbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}

.dash-topbtn:hover { border-color: var(--accent); color: var(--accent); }

.dash-topbtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.dash-topbtn.primary:hover { opacity: 0.88; }

/* ── MOBILE-ONLY COMPONENTS (hidden on desktop) ──────────────── */

.mobile-portfolio-carousel,
.mobile-action-buttons {
  display: none;
}

/* ── HERO STRIP ───────────────────────────────────────────────── */

.dash-hero {
  background: linear-gradient(135deg, var(--card) 0%, #1e1238 60%, #2a1040 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dash-hero-left { display: flex; flex-direction: column; gap: 10px; }

.dash-hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}

.dash-hero-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: heroLabelPulse 2s infinite;
}

@keyframes heroLabelPulse {
  0%,100% { box-shadow: 0 0 6px var(--success); }
  50%      { box-shadow: 0 0 14px var(--success), 0 0 24px var(--success); }
}

.dash-hero-value {
  font-size: 44px; font-weight: 900;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  letter-spacing: -2px; color: var(--text); line-height: 1;
}

.dash-hero-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.dash-hero-change {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700; font-family: var(--mono);
}

.dash-hero-change.up { background: rgba(16,185,129,0.12); color: var(--success); }

.dash-hero-change.dn { background: rgba(239,68,68,0.12);  color: var(--danger); }

.dash-hero-period { font-size: 12px; color: var(--muted); font-weight: 500; }

.dash-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.dash-hero-chart { width: 200px; height: 60px; opacity: 0.7; }

.dash-hero-stats { display: flex; gap: 24px; }

.dash-hero-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.dash-hero-stat-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }

.dash-hero-stat-val { font-size: 16px; font-weight: 800; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }

/* ── STAT CARDS ───────────────────────────────────────────────── */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.dash-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color var(--t), transform var(--t);
}

.dash-stat-card:hover { border-color: rgba(var(--accent-rgb),0.4); transform: translateY(-2px); }

.dash-stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--r) var(--r) 0 0;
}

.dash-stat-card.c-green::after { background: linear-gradient(90deg, var(--success), transparent); }

.dash-stat-card.c-red::after   { background: linear-gradient(90deg, var(--danger),  transparent); }

.dash-stat-card.c-gold::after  { background: linear-gradient(90deg, var(--gold),    transparent); }

.dash-stat-card.c-blue::after  { background: linear-gradient(90deg, var(--blue),    transparent); }

.dash-stat-top { display: flex; align-items: flex-start; justify-content: space-between; }

.dash-stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.dash-stat-card.c-green .dash-stat-icon { background: rgba(16,185,129,0.12); color: var(--success); }

.dash-stat-card.c-red   .dash-stat-icon { background: rgba(239,68,68,0.12);  color: var(--danger); }

.dash-stat-card.c-gold  .dash-stat-icon { background: rgba(245,166,35,0.12); color: var(--gold); }

.dash-stat-card.c-blue  .dash-stat-icon { background: rgba(59,130,246,0.12); color: var(--blue); }

.dash-stat-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.badge-up  { background: rgba(16,185,129,0.15); color: var(--success); }

.badge-dn  { background: rgba(239,68,68,0.15);  color: var(--danger); }

.badge-neu { background: rgba(var(--accent-rgb),0.1); color: var(--muted); }

.dash-stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }

.dash-stat-val   { font-size: 24px; font-weight: 800; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; color: var(--text); line-height: 1; }

.dash-stat-sub   { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ── MAIN GRID ────────────────────────────────────────────────── */

.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  align-items: start;
}

.dash-left-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ── PANEL ────────────────────────────────────────────────────── */

.dash-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }

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

.dash-panel-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

.dash-panel-title svg { color: var(--muted); }

.dash-panel-link {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer;
  transition: color var(--t);
}

.dash-panel-link:hover { color: var(--accent); }

/* ── HOLDINGS ─────────────────────────────────────────────────── */

.dash-holding-cols {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px 80px 80px;
  gap: 8px; padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.dash-col-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }

.dash-col-lbl:not(:first-child) { text-align: right; }

.dash-holding-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 100px 80px 80px;
  align-items: center; gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t); cursor: pointer;
}

.dash-holding-row:last-child { border-bottom: none; }

.dash-holding-row:hover { background: rgba(255,255,255,0.03); }

.dash-holding-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }

.dash-h-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; flex-shrink: 0; }

.dash-h-names { min-width: 0; }

.dash-h-sym  { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.2; }

.dash-h-name { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-h-price { font-size: 13px; font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }

.dash-h-val   { font-size: 13px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }

.dash-h-chg   { font-size: 12px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 3px 8px; border-radius: 6px; justify-self: end; width: fit-content; }

.dash-h-chg.up { color: var(--success); background: rgba(16,185,129,0.1); }

.dash-h-chg.dn { color: var(--danger);  background: rgba(239,68,68,0.1); }

.dash-holdings-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── ACTIVITY ─────────────────────────────────────────────────── */

.dash-activity-list { padding: 8px 0; }

.dash-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--t); cursor: pointer;
}

.dash-activity-item:last-child { border-bottom: none; }

.dash-activity-item:hover { background: rgba(255,255,255,0.03); }

.dash-act-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.dash-act-icon.deposit  { background: rgba(16,185,129,0.12); color: var(--success); }

.dash-act-icon.withdraw { background: rgba(239,68,68,0.12);  color: var(--danger); }

.dash-act-icon.trade    { background: rgba(59,130,246,0.12);  color: var(--blue); }

.dash-act-icon.pending  { background: rgba(245,166,35,0.12);  color: var(--gold); }

.dash-act-info { flex: 1; min-width: 0; }

.dash-act-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }

.dash-act-badge { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 1px 7px; border-radius: 20px; }

.badge-completed { background: rgba(16,185,129,0.15); color: var(--success); }

.badge-pending   { background: rgba(245,166,35,0.15);  color: var(--gold); }

.badge-failed    { background: rgba(239,68,68,0.15);   color: var(--danger); }

.dash-act-date   { font-size: 11px; color: var(--muted); margin-top: 1px; }

.dash-act-amount { font-size: 14px; font-weight: 800; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; flex-shrink: 0; }

.dash-act-amount.pos { color: var(--success); }

.dash-act-amount.neg { color: var(--danger); }

.dash-act-amount.neu { color: var(--text); }

/* ── RIGHT COLUMN ─────────────────────────────────────────────── */

.dash-right-col { display: flex; flex-direction: column; gap: 16px; }

/* Quick Actions */

.dash-quick-actions { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }

.dash-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }

.dash-qa-btn { background: var(--card); border: none; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: background var(--t); }

.dash-qa-btn:hover { background: var(--card2); }

.dash-qa-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

.dash-qa-btn:nth-child(1) .dash-qa-icon { background: rgba(16,185,129,0.12); color: var(--success); }

.dash-qa-btn:nth-child(2) .dash-qa-icon { background: rgba(239,68,68,0.12);  color: var(--danger); }

.dash-qa-label { font-size: 12px; font-weight: 700; color: var(--text); }

/* Allocation */

.dash-allocation { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }

.dash-alloc-count { font-size: 11px; color: var(--muted); }

.dash-alloc-body  { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }

.dash-alloc-row   { display: flex; flex-direction: column; gap: 4px; }

.dash-alloc-top   { display: flex; justify-content: space-between; align-items: center; }

.dash-alloc-name  { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text); }

.dash-alloc-dot   { width: 8px; height: 8px; border-radius: 50%; }

.dash-alloc-pct   { font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--muted); }

.dash-alloc-bar-bg   { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }

.dash-alloc-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* Performance */

.dash-perf-card  { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }

.dash-perf-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

.dash-perf-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.dash-perf-item  { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }

.dash-perf-item-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }

.dash-perf-item-val { font-size: 15px; font-weight: 800; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.dash-perf-item-val.up   { color: var(--success); }

.dash-perf-item-val.dn   { color: var(--danger); }

.dash-perf-item-val.gold { color: var(--gold); }

.dash-perf-item-val.text { color: var(--text); }

/* ── TABLET ────────────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 900px) {
  .dash-holding-row  { grid-template-columns: 1fr 0 80px 70px; }
  .dash-holding-cols { grid-template-columns: 1fr 0 80px 70px; }
  .dash-h-price, .dash-col-lbl:nth-child(2) { display: none; }
}

/* ── MOBILE ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .dash { padding: 16px 14px 80px; gap: 16px; }
  .dash-hero { display: none; }
  .dash-topbar-actions { display: none; }
  .dash-greeting-name { font-size: 18px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat-val { font-size: 20px; }
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-right-col { flex-direction: column; }
  .dash-holding-row  { grid-template-columns: 1fr 0 120px 6px; }
  .dash-holding-cols { grid-template-columns: 1fr 0 120px 6px; }
  .dash-h-price, .dash-col-lbl:nth-child(2) { display: none; }
  .mobile-portfolio-carousel { display: block; }
  .mobile-action-buttons     { display: flex; }
}

svg { vertical-align: middle; }

/* Mobile-only components hidden by default (show via media queries) */

.mobile-portfolio-card,
.mobile-action-buttons,
.mobile-portfolio-carousel {
  display: none;
}

@media (max-width: 768px) {
  .mobile-portfolio-carousel {
    display: block;
  }
}

.dashboard-page h1 {
  font-size: 28px;
  margin: 0 0 24px 0;
  color: var(--text);
}

.dashboard-page h2 {
  font-size: 22px;
  margin: 0 0 16px 0;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* Table Wrapper */

.table-wrapper {
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(var(--text-rgb), 0.05);
  animation: slideInUp 0.6s ease-out;
  max-width: 100%;
  box-sizing: border-box;
}

.table-header {
  background: rgba(var(--accent-rgb), 0.08);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
}

.table-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

thead tr {
  background: rgba(251, 191, 36, 0.05);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

th {
  padding: 12px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  word-wrap: break-word;
}

td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  transition: var(--transition);
  color: var(--text);
  word-wrap: break-word;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(251, 191, 36, 0.08);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Collapsible Tables */

.holdings-table-wrapper,
.trades-table-wrapper {
  overflow: hidden;
  max-height: 250px;
  transition: max-height 0.3s ease;
}

.holdings-table-wrapper.expanded,
.trades-table-wrapper.expanded {
  max-height: none;
}

/* Tabs */

.tabs {
  display: flex;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  margin-bottom: 24px;
  gap: 0;
}

.tab-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.tab-btn:hover {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* Status Pills */

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.status-required {
  background: rgba(var(--warn-rgb), 0.15);
  color: var(--warn);
}

.status-submitted {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.status-confirmed,
.status-success {
  background: rgba(var(--success), 0.1);
  color: var(--success);
}

.status-pending {
  background: rgba(var(--warn-rgb), 0.15);
  color: var(--warn);
}

.status-failed,
.status-error {
  background: rgba(var(--danger), 0.1);
  color: var(--danger);
}

/* Form Styles */

.form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.form label span {
  margin-bottom: 8px;
  transition: var(--transition);
  color: var(--text);
}

.form input,
.form textarea,
.form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(var(--text-rgb), 0.2);
  background: rgba(var(--text-rgb), 0.05);
  backdrop-filter: blur(5px);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button Styles */

.btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  background: rgba(var(--accent-rgb), 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.2);
}

.btn-secondary {
  background: #334155;
  color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .dashboard-page {
    padding-bottom: 80px;
  }

  .dashboard-page h1 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .dashboard-page h2 {
    font-size: 18px;
  }

  /* Hide desktop cards on mobile */
  .cards-grid {
    display: none;
  }

  /* Show mobile portfolio card */
  .mobile-portfolio-card {
    display: block;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
  }

  .portfolio-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
  }

  .mobile-portfolio-card > div {
    position: relative;
    z-index: 10;
  }

  /* Mobile action buttons */
  .mobile-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: var(--accent-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
  }

  .action-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--accent);
  }

  .action-btn svg {
    stroke: var(--accent-light);
    transition: all 0.3s;
  }

  .action-btn:hover svg {
    stroke: var(--accent);
  }

  table {
    font-size: 11px;
  }

  th, td {
    padding: 8px 10px;
  }

  .form {
    max-width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .tabs {
    margin-bottom: 16px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .table-header {
    padding: 12px 16px;
  }

  .table-header h3 {
    font-size: 16px;
    margin: 0;
  }

  .holdings-table-wrapper,
  .trades-table-wrapper {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .dashboard-page h1 {
    font-size: 18px;
  }

  .dashboard-page h2 {
    font-size: 16px;
  }

  table {
    font-size: 10px;
  }

  th, td {
    padding: 13px 8px;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .table-header {
    padding: 10px 12px;
  }

  .table-header h3 {
    font-size: 14px;
  }

  .form label {
    font-size: 12px;
  }

  .form input,
  .form select {
    padding: 8px 10px;
    font-size: 12px;
  }

  .btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .mobile-action-buttons {
    gap: 10px;
  }

  .action-btn {
    padding: 10px;
    font-size: 11px;
  }

  /* Reduce See More / secondary buttons on very small screens (override inline styles) */
  .table-header .btn.btn-secondary {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MarketsPageNew — Terminal Split-Panel  (v3 — polished)
   Matches the approved market-page-design-v2.html prototype.
   Uses app theme variables from index.css.
═══════════════════════════════════════════════════════════════ */

/* ── PAGE WRAPPER ────────────────────────────────────────────────
   Break out of main-content 32px padding; fixed height so the
   terminal can manage its own scroll internally.                  */
.mkt-page {
  --mkt-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  --mkt-t: 0.16s ease;
  margin: -32px -32px 0 -32px;
  height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

/* ── TICKER TAPE ─────────────────────────────────────────────── */
.mkt-ticker-wrap {
  height: 36px;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.mkt-ticker-wrap::before,
.mkt-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.mkt-ticker-wrap::before { left: 0;  background: linear-gradient(to right, var(--card), transparent); }
.mkt-ticker-wrap::after  { right: 0; background: linear-gradient(to left,  var(--card), transparent); }
.mkt-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: mkt-ticker-scroll 40s linear infinite;
}
.mkt-ticker-track:hover { animation-play-state: paused; }
@keyframes mkt-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mkt-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--mkt-mono);
}
.mkt-tick-sym             { color: var(--text);    font-weight: 700; letter-spacing: .3px; }
.mkt-tick-price           { color: var(--muted); }
.mkt-tick-chg.up          { color: var(--success); font-weight: 700; }
.mkt-tick-chg.dn          { color: var(--danger);  font-weight: 700; }

/* ── TERMINAL GRID ───────────────────────────────────────────── */
.mkt-terminal {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   LEFT — SCANNER
══════════════════════════════════════════════════════════════ */
.mkt-scanner {
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: filter 0.25s ease;
}
/* .mkt-scanner--dimmed is mobile-only — see @media (max-width: 900px) */

.mkt-scanner-head { padding: 14px 16px 0; flex-shrink: 0; }

.mkt-scanner-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 10px;
}

.mkt-live-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: mkt-pulse 2s infinite;
}
@keyframes mkt-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--success); }
  50%       { box-shadow: 0 0 12px var(--success), 0 0 20px var(--success); }
}

.mkt-search-wrap         { position: relative; margin-bottom: 12px; }
.mkt-search-wrap svg     { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mkt-search-wrap input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 8px 32px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--mkt-t);
}
.mkt-search-wrap input::placeholder { color: var(--muted); }
.mkt-search-wrap input:focus        { border-color: var(--accent); }

.mkt-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.mkt-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--mkt-t);
  white-space: nowrap;
  font-family: inherit;
}
.mkt-chip:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--text); }
.mkt-chip.on {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
}

.mkt-sort-row {
  display: grid;
  grid-template-columns: 1fr 80px 64px;
  gap: 4px;
  padding: 6px 16px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  flex-shrink: 0;
}
.mkt-sort-row span               { cursor: pointer; user-select: none; transition: color var(--mkt-t); }
.mkt-sort-row span:not(:first-child) { text-align: right; }
.mkt-sort-row span:hover         { color: var(--text); }
.mkt-sort-row span.active        { color: var(--accent); }
.mkt-sort-arr                    { margin-left: 3px; opacity: .4; font-size: 9px; }
.mkt-sort-arr.on                 { opacity: 1; }

.mkt-coin-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.mkt-coin-list::-webkit-scrollbar       { width: 4px; }
.mkt-coin-list::-webkit-scrollbar-track { background: transparent; }
.mkt-coin-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.mkt-coin-row {
  display: grid;
  grid-template-columns: 1fr 80px 64px;
  gap: 4px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background var(--mkt-t);
  border-left: 2px solid transparent;
  align-items: center;
}
.mkt-coin-row:hover    { background: rgba(var(--text-rgb), 0.04); }
.mkt-coin-row.selected {
  background: rgba(var(--accent-rgb), 0.08);
  border-left-color: var(--accent);
}

.mkt-cr-info  { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mkt-cr-icon  {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.mkt-cr-names { min-width: 0; }
.mkt-cr-sym   { font-size: 12.5px; font-weight: 800; color: var(--text); line-height: 1.2; }
.mkt-cr-name  { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mkt-cr-price {
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--mkt-mono);
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mkt-cr-chg {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--mkt-mono);
  text-align: right;
  padding: 3px 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.mkt-cr-chg.up { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.mkt-cr-chg.dn { color: var(--danger);  background: rgba(239, 68, 68, 0.1); }

.mkt-list-loading { padding: 8px 14px; }
.mkt-row-skeleton {
  height: 46px; border-radius: 6px;
  background: linear-gradient(90deg, var(--border) 0%, var(--card) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: mkt-shimmer 1.5s infinite;
  margin-bottom: 4px;
}
@keyframes mkt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mkt-list-error {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.mkt-list-error button {
  margin-top: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 7px;
  color: var(--accent);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--mkt-t);
}
.mkt-list-error button:hover { background: rgba(var(--accent-rgb), 0.22); }
.mkt-list-empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }

.mkt-scanner-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.mkt-scanner-foot strong { color: var(--text); }
.mkt-foot-live {
  display: flex; align-items: center; gap: 5px;
  font-weight: 600; color: var(--success); font-size: 11px;
}

/* ══════════════════════════════════════════════════════════════
   RIGHT — DETAIL PANEL
══════════════════════════════════════════════════════════════ */
.mkt-detail {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}
.mkt-detail::-webkit-scrollbar       { width: 5px; }
.mkt-detail::-webkit-scrollbar-track { background: transparent; }
.mkt-detail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

.mkt-no-sel {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--muted);
}
.mkt-no-sel-icon { font-size: 48px; opacity: .2; }
.mkt-no-sel p    { font-size: 14px; font-weight: 600; }
.mkt-no-sel span { font-size: 12px; opacity: .7; }

.mkt-sheet-handle { display: none; }

.mkt-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.mkt-back-btn {
  display: none;
  align-items: center; gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all var(--mkt-t);
  flex-shrink: 0;
}
.mkt-back-btn:hover { color: var(--text); border-color: var(--accent); }

.mkt-detail-coin  { display: flex; align-items: center; gap: 14px; }
.mkt-detail-icon  {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.mkt-detail-coin h1 {
  font-size: 22px; font-weight: 800;
  color: var(--text); line-height: 1; margin-bottom: 3px;
}
.mkt-dsub { font-size: 12px; color: var(--muted); font-weight: 600; }

.mkt-det-price-area { text-align: right; }
.mkt-det-price {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--mkt-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
}
.mkt-det-change {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 5px;
  font-size: 13px; font-weight: 700;
  font-family: var(--mkt-mono);
}
.mkt-det-change.up { color: var(--success); }
.mkt-det-change.dn { color: var(--danger); }
.mkt-det-pill      { padding: 2px 8px; border-radius: 5px; font-size: 11.5px; }
.mkt-det-change.up .mkt-det-pill { background: rgba(16, 185, 129, 0.12); }
.mkt-det-change.dn .mkt-det-pill { background: rgba(239, 68, 68, 0.12); }
.mkt-det-7d        { font-size: 11.5px; color: var(--muted); }

.mkt-chart-area { padding: 0 28px; flex-shrink: 0; }
.mkt-chart-tabs { display: flex; gap: 2px; margin: 18px 0 12px; }
.mkt-chart-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 7px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all var(--mkt-t);
}
.mkt-chart-tab:hover { color: var(--text); border-color: rgba(var(--text-rgb), 0.3); }
.mkt-chart-tab.on {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
}
.mkt-chart-canvas {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.mkt-chart-canvas svg { display: block; width: 100%; height: 200px; }
.mkt-chart-overlay {
  position: absolute;
  top: 12px; left: 16px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mkt-mono);
  pointer-events: none;
}

.mkt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 28px 0;
  flex-shrink: 0;
}
.mkt-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.mkt-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-light, var(--accent)), transparent);
}
.mkt-sc-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); margin-bottom: 6px;
}
.mkt-sc-val {
  font-size: 15px; font-weight: 700;
  font-family: var(--mkt-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.mkt-sc-sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.mkt-pressure-section { padding: 18px 28px 0; flex-shrink: 0; }
.mkt-pressure-label {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.mkt-pressure-label span:first-child { color: var(--success); }
.mkt-pressure-label span:last-child  { color: var(--danger); }
.mkt-pressure-track {
  height: 8px;
  background: var(--danger);
  border-radius: 20px; overflow: hidden;
}
.mkt-pressure-fill {
  height: 100%;
  background: var(--success);
  border-radius: 20px;
  transition: width 1s ease;
}
.mkt-pressure-pcts {
  display: flex; justify-content: space-between;
  margin-top: 5px;
  font-size: 11px; font-family: var(--mkt-mono); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mkt-pressure-pcts .buy  { color: var(--success); }
.mkt-pressure-pcts .sell { color: var(--danger); }

.mkt-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 28px 0;
  flex-shrink: 0;
}
.mkt-metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.mkt-mc-head {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin-bottom: 10px;
}
.mkt-range-bar {
  position: relative; height: 4px;
  background: var(--border); border-radius: 4px;
  margin: 6px 0 4px;
}
.mkt-range-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--success), var(--accent-light, var(--accent)));
  border-radius: 4px;
}
.mkt-range-thumb {
  position: absolute; top: -4px;
  width: 12px; height: 12px;
  background: var(--text); border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px var(--bg);
}
.mkt-range-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-family: var(--mkt-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mkt-supply-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-family: var(--mkt-mono);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.mkt-s-pct { font-weight: 700; color: var(--accent); }
.mkt-supply-bg { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.mkt-supply-fg {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light, #4a9eff), var(--accent));
  border-radius: 6px;
  transition: width 1.2s ease;
}
.mkt-supply-fg--uncapped {
  background: linear-gradient(90deg, var(--muted), var(--accent-light, var(--accent)));
}
.mkt-supply-row {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 5px;
  font-family: var(--mkt-mono);
}

.mkt-fg-section  { padding: 12px 28px 0; flex-shrink: 0; }
.mkt-fg-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  display: flex; align-items: center; gap: 20px;
}
.mkt-fg-meter { flex-shrink: 0; }
.mkt-fg-text  { flex: 1; min-width: 0; }
.mkt-fg-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 4px;
}
.mkt-fg-score { font-size: 28px; font-weight: 900; font-family: var(--mkt-mono); color: #f5a623; line-height: 1; }
.mkt-fg-word  { font-size: 13px; font-weight: 700; color: #f5a623; margin-top: 2px; }
.mkt-fg-desc  { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.mkt-action-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 16px 28px 28px; flex-shrink: 0;
}
.mkt-btn-buy {
  background: linear-gradient(135deg, #059669, var(--success));
  color: #000;
  border: none; padding: 14px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; letter-spacing: .3px;
  transition: all var(--mkt-t);
}
.mkt-btn-sell {
  background: linear-gradient(135deg, #b91c1c, var(--danger));
  color: #fff;
  border: none; padding: 14px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; letter-spacing: .3px;
  transition: all var(--mkt-t);
}
.mkt-btn-buy:hover, .mkt-btn-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.mkt-btn-buy:active, .mkt-btn-sell:active { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   MOBILE (≤ 900px)
   Scanner fills full height; detail is a bottom sheet that
   sits above the fixed 60px MobileBottomNav.
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mkt-page {
    margin: -12px -12px 0 -12px;
    height: calc(100dvh - 52px);
  }
  .mkt-terminal        { grid-template-columns: 1fr; height: 100%; }
  .mkt-scanner         { height: 100%; border-right: none; }
  .mkt-scanner--dimmed { filter: brightness(0.45); pointer-events: none; }
  .mkt-coin-list       { padding-bottom: 66px; }
  .mkt-detail {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    height: 88%;         /* partial bottom sheet — does not fill full screen */
    z-index: 1100;       /* above header (1000) and testimonies (900) */
    background: var(--card);
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }
  .mkt-detail.open     { transform: translateY(0); }
  .mkt-sheet-handle {
    display: block;
    width: 40px; height: 4px;
    background: var(--border); border-radius: 4px;
    margin: 10px auto 0;
  }
  .mkt-sheet-backdrop {
    position: fixed; inset: 0;   /* full screen including header */
    background: rgba(0, 0, 0, .55);
    z-index: 1099; backdrop-filter: blur(3px);
  }
  .mkt-back-btn        { display: flex; }
  .mkt-stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .mkt-metrics-row     { grid-template-columns: 1fr; }
  .mkt-detail-head     { padding: 14px 16px 12px; flex-wrap: wrap; gap: 10px; }
  .mkt-chart-area,
  .mkt-stats-grid,
  .mkt-metrics-row,
  .mkt-pressure-section,
  .mkt-fg-section,
  .mkt-action-row      { padding-left: 16px; padding-right: 16px; }
  .mkt-det-price       { font-size: 24px; }
}

@media (max-width: 480px) {
  .mkt-page           { margin: -8px -8px 0 -8px; }
  .mkt-stats-grid     { grid-template-columns: 1fr 1fr; }
  .mkt-chart-tabs     { flex-wrap: wrap; gap: 4px; }
  .mkt-chart-tab      { padding: 4px 10px; font-size: 11px; }
  .mkt-fg-card        { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.withdrawals-page{padding:20px 16px 80px}
.withdraw-grid{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}
.user-card{background:var(--card);border:1px solid var(--border);padding:12px;border-radius:10px}
.user-card .field{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(var(--accent-rgb),0.04)}
.withdraw-form{background:var(--card);border:1px solid var(--border);padding:16px;border-radius:10px}
.withdraw-form label{display:block;margin-bottom:12px}
.withdraw-form input,.withdraw-form select{width:100%;padding:8px;border-radius:8px;border:1px solid var(--border)}
.fee-box{background:rgba(var(--accent-rgb),0.03);padding:10px;border-radius:8px;margin-bottom:12px}
.actions{display:flex;gap:8px;margin-top:8px}
@media(max-width:900px){.withdraw-grid{grid-template-columns:1fr}}
.withdrawal-process-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.withdrawal-process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
}

.process-header {
  margin-bottom: 32px;
}

.process-header h1 {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.3s;
}

/* Hide step labels (display only the step indicators) */
.step-labels {
  display: none;
}

.step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 -4px;
  transition: background 0.3s;
}

.step-line.active {
  background: var(--accent);
}

.step-content {
  margin-bottom: 32px;
}

.step-content h2 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--input-focus-bg);
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option input[type='radio'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-option span {
  font-size: 14px;
  color: var(--text);
}

.radio-option:has(input[type='radio']:checked) {
  border-color: var(--accent);
  background: rgba(11, 118, 239, 0.05);
}

.review-summary {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-row.divider {
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
  margin: 4px 0;
}

.review-row .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.review-row .value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.review-row .value.accent {
  color: #fb923c;
}

.review-row .value.total {
  color: var(--accent);
  font-size: 16px;
}

.review-row .value.mono {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  overflow: hidden;
}

.review-notice {
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
}

.process-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 118, 239, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.02);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--error-bg, #fee);
  color: var(--error, #c00);
  border-left: 4px solid var(--error, #c00);
}

/* Step 4: Payment Styles */
.payment-summary {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.summary-item .label {
  color: var(--muted);
  font-weight: 500;
}

.summary-item .value {
  color: var(--text);
  font-weight: 600;
  font-family: 'Monaco', 'Courier New', monospace;
}

.summary-item .value.accent {
  color: #fb923c;
}

.summary-item.total {
  font-size: 16px;
  padding-top: 12px;
}

.summary-item.total .value {
  color: var(--accent);
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.deposit-instruction {
  background: rgba(11, 118, 239, 0.05);
  border: 1px solid rgba(11, 118, 239, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.deposit-instruction h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.deposit-address-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.address-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.address-display code {
  flex: 1;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  border: 1px solid var(--border);
}

.btn-copy {
  padding: 8px 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-copy:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.payment-notice {
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--accent);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.payment-notice strong {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.subtitle {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Payment Progress Styles */
.payment-progress-section {
  background: rgba(11, 118, 239, 0.05);
  border: 1px solid rgba(11, 118, 239, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.progress-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.progress-percent {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Monaco', 'Courier New', monospace;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #2ea0ff);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(11, 118, 239, 0.4);
}

.progress-message {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

/* Payment Prompt Modal */
.payment-prompt-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.payment-prompt {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prompt-icon {
  font-size: 48px;
  color: #10b981;
  margin-bottom: 16px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.payment-prompt h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.payment-prompt p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.payment-prompt .btn {
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .withdrawal-process-card {
    padding: 24px 18px;
  }

  .process-header h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .step {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-line {
    width: 24px;
    margin: 0 -2px;
  }

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

  .radio-group {
    flex-direction: column;
  }

  .radio-option {
    flex: none;
  }

  .process-actions {
    flex-direction: column;
  }

  .btn {
    flex: 1;
  }

  .address-display {
    flex-direction: column;
    align-items: stretch;
  }

  .address-display code {
    font-size: 11px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .btn-copy {
    width: 100%;
    text-align: center;
  }

  .deposit-instruction {
    padding: 16px;
  }

  .payment-summary {
    padding: 12px;
  }

  .summary-item {
    padding: 8px 0;
    font-size: 13px;
  }
}
.withdraw-container {
  padding: 20px;
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg, #fafafa);
  color: var(--text, #111);
  min-height: 100vh;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}

.wrap h2 {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #e6e6e6);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(12, 20, 30, 0.04);
  word-break: break-word;
  overflow-wrap: break-word;
}

.card h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Card sections for organized layout */
.card-section {
  padding: 12px 0;
}

.card-section:first-child {
  padding-top: 0;
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.section-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Collapsible Section Toggle */
.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  transition: color 0.2s;
}

.section-toggle:hover {
  color: var(--text);
}

.section-toggle .section-header {
  margin-bottom: 0;
}

.toggle-icon {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.section-toggle:hover .toggle-icon {
  color: var(--accent);
}

.collapsible-content {
  animation: slideDown 0.3s ease-out;
  padding-bottom: 8px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

.progress-section {
  padding: 8px 0;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg, #fff);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

input[readonly],
input:disabled {
  background: var(--input-bg-disabled, #f5f5f5);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.progress {
  height: 14px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent, #0b76ef), #2ea0ff);
  transition: width 0.3s ease;
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border: 0;
  background: var(--accent, #0b76ef);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

button:hover {
  opacity: 0.9;
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  font-weight: 700;
  margin-left: 10px;
  text-transform: capitalize;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

@media (max-width: 520px) {
  .summary-row {
    flex-direction: column;
    gap: 6px;
  }
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-left: 4px solid #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-left: 4px solid #10b981;
}

.alert-warn {
  background: #fff7ed;
  color: #9a3412;
  border-left: 4px solid #fb923c;
}

/* Fee Alert Modal */
.fee-alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.fee-alert-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fee-alert-content h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.fee-alert-content p {
  margin: 8px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.fee-alert-content strong {
  font-weight: 700;
  color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .wrap {
    padding: 8px;
  }

  .wrap h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .card {
    padding: 12px;
    margin-bottom: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

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

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

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

  .fee-alert-content {
    padding: 24px;
    max-width: 90vw;
  }

  .fee-alert-content h3 {
    font-size: 16px;
  }

  /* Optimize card padding on mobile */
  .card-section {
    padding: 8px 0;
  }

  .card-divider {
    margin: 8px 0;
  }

  /* Compact section toggle */
  .section-toggle {
    padding: 8px 0;
  }

  .collapsible-content {
    padding-bottom: 4px;
  }

  /* Reduce label spacing on mobile */
  label {
    margin-top: 8px;
  }

  input,
  select,
  textarea {
    margin-top: 4px;
    padding: 8px;
  }

  /* Compact button controls */
  .controls {
    gap: 8px;
  }

  button {
    padding: 9px 12px;
    font-size: 12px;
  }

  .progress {
    height: 12px;
  }

  /* Status styling on mobile */
  .status {
    font-size: 12px;
    margin-left: 6px;
  }
}
  border-bottom: 1px solid var(--border);
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-row.divider {
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
  margin: 4px 0;
}

.fee-row .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.fee-row .value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  font-family: 'Monaco', 'Courier New', monospace;
}

.fee-row .value.accent {
  color: #fb923c;
}

.fee-row .value.total {
  color: var(--accent);
  font-size: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.status-required {
  background: #fef3c7;
  color: #92400e;
}

.status-submitted {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.fee-section {
  margin-bottom: 24px;
}

.fee-section h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.address-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.address-box code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}

.btn-copy {
  padding: 6px 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 0.9;
}

.address-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.confirm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px;
  background: rgba(11, 118, 239, 0.05);
  border: 1px solid rgba(11, 118, 239, 0.2);
  border-radius: 8px;
}

.confirm-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.confirm-checkbox span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.fee-actions {
  display: flex;
  gap: 12px;
  margin: 28px 0 24px 0;
}

.btn {
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 118, 239, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.fee-info {
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid #fbbf24;
  border-radius: 8px;
  padding: 14px;
}

.fee-info .info-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
}

.fee-info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--text);
}

.fee-info li {
  margin-bottom: 4px;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--error-bg, #fee);
  color: var(--error, #c00);
  border-left: 4px solid var(--error, #c00);
}

.alert-success {
  background: var(--success-bg, #efe);
  color: var(--success, #060);
  border-left: 4px solid var(--success, #060);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .fee-confirm-card {
    padding: 24px 18px;
  }

  .fee-header h1 {
    font-size: 24px;
  }

  .fee-actions {
    flex-direction: column;
  }

  .address-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-copy {
    align-self: flex-end;
  }

  .fee-info ul {
    font-size: 12px;
  }
}
/* ── PAGE ── */
.tx-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.5); }
  50%      { box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.8); }
}

/* ── HEADER ── */
.tx-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tx-header-left { display: flex; flex-direction: column; gap: 4px; }
.tx-page-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.tx-page-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
  animation: pulse 2s infinite;
}
.tx-page-title { font-size: 26px; font-weight: 900; letter-spacing: -0.4px; color: var(--text); }
.tx-page-sub   { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tx-header-actions { display: flex; gap: 10px; align-items: center; }

.tx-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  font-family: inherit; text-decoration: none;
  transition: all 0.18s; border: 1px solid rgba(var(--text-rgb), 0.12);
  color: var(--text); background: var(--card);
}
.tx-btn:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.tx-btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.tx-btn.primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── TABS ── */
.tx-tabs {
  display: flex; gap: 2px;
  background: var(--card); border: 1px solid rgba(var(--text-rgb), 0.08);
  border-radius: 12px; padding: 4px; width: fit-content;
}
.tx-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: none; border: none; font-family: inherit;
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.tx-tab:hover { color: var(--text); }
.tx-tab.active {
  background: rgba(var(--accent-rgb), 0.14); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}
.tx-tab-count {
  font-size: 10px; font-weight: 700;
  background: rgba(var(--text-rgb), 0.06); border-radius: 20px;
  padding: 1px 7px; font-family: 'JetBrains Mono', monospace;
}
.tx-tab.active .tx-tab-count { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }

/* ── LOADING ── */
.tx-loading {
  display: flex; align-items: center; gap: 8px;
  padding: 60px; justify-content: center;
}
.tx-loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
  animation: txDotBounce 1.2s ease-in-out infinite;
}
.tx-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.tx-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes txDotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40%           { transform: scale(1.2); opacity: 1; }
}

/* ── TABLE WRAPPER ── */
.table-wrapper {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInUp 0.4s ease-out;
}

/* ── TABLE HEADER ── */
.table-header {
  background: rgba(var(--accent-rgb), 0.05);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.table-header-left { display: flex; align-items: center; gap: 10px; }
.table-header-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}
.table-header-icon.th-danger { background: rgba(239,68,68,0.1);  color: var(--danger); border-color: rgba(239,68,68,0.18); }
.table-header-icon.th-blue   { background: rgba(59,130,246,0.1); color: #3b82f6;       border-color: rgba(59,130,246,0.18); }
.table-header-meta { display: flex; align-items: center; gap: 9px; }
.table-header h3   { font-size: 14px; font-weight: 700; margin: 0; color: var(--text); }
.table-header-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(var(--text-rgb), 0.06); border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 20px; padding: 2px 9px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.table-action-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(var(--accent-rgb), 0.1); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2); text-decoration: none;
  transition: all 0.18s;
}
.table-action-link:hover { background: rgba(var(--accent-rgb), 0.2); border-color: rgba(var(--accent-rgb), 0.4); }
.table-action-link.th-danger       { background: rgba(239,68,68,0.08); color: var(--danger); border-color: rgba(239,68,68,0.2); }
.table-action-link.th-danger:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.38); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; }
thead tr { background: rgba(var(--text-rgb), 0.025); border-bottom: 1px solid rgba(var(--text-rgb), 0.06); }
th {
  text-align: left; padding: 10px 16px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid rgba(var(--text-rgb), 0.04); font-size: 13px; vertical-align: middle; }
tbody tr { transition: background 0.18s; }
tbody tr:hover { background: rgba(var(--text-rgb), 0.025); }
tbody tr:last-child td { border-bottom: none; }

/* ── CELL COMPONENTS ── */
.tx-date      { display: flex; flex-direction: column; gap: 2px; }
.tx-date-main { font-size: 13px; font-weight: 500; color: var(--text); }
.tx-date-time { font-size: 11px; color: var(--muted); }

.tx-method {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600;
  background: rgba(var(--text-rgb), 0.05); border: 1px solid rgba(var(--text-rgb), 0.08);
  color: var(--text); white-space: nowrap;
}

.tx-asset     { display: inline-flex; align-items: center; gap: 8px; }
.tx-asset-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.dot-btc { background: rgba(247,147,26,0.15); color: #f7931a; }
.dot-eth { background: rgba(98,126,234,0.15);  color: #627eea; }
.dot-usd { background: rgba(16,185,129,0.15);  color: var(--success); }
.dot-sol { background: rgba(153,69,255,0.15);  color: #9945ff; }
.tx-asset-name { font-size: 13px; font-weight: 600; color: var(--text); }

.tx-amount { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.tx-amount.pos { color: var(--success); }
.tx-amount.neg { color: var(--danger); }

.tx-txid {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
  display: inline-block; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; transition: color 0.18s;
}
.tx-txid:hover { color: var(--accent); }

/* ── STATUS BADGE ── */
.tx-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: capitalize; white-space: nowrap;
}
.tx-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.tx-status.completed  { background: rgba(16,185,129,0.1);  color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.tx-status.completed::before  { background: var(--success); box-shadow: 0 0 5px var(--success); }
.tx-status.pending    { background: rgba(245,158,11,0.1);  color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.tx-status.pending::before    { background: #f59e0b; animation: blink 1.8s infinite; }
.tx-status.failed     { background: rgba(239,68,68,0.1);   color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.tx-status.failed::before     { background: var(--danger); }
.tx-status.processing { background: rgba(59,130,246,0.1);  color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.tx-status.processing::before { background: #3b82f6; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ── TRADE TYPE ── */
.trade-type {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.trade-type.buy  { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.trade-type.sell { background: rgba(239,68,68,0.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.2); }

/* ── EMPTY STATE ── */
.tx-empty { text-align: center; padding: 32px; color: var(--muted); font-size: 13px; }

/* ── MOBILE CARD LIST ── */
.tx-mobile-list { display: none; }
.tx-mobile-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.05);
  transition: background 0.18s;
}
.tx-mobile-item:last-child { border-bottom: none; }
.tx-mobile-item:hover { background: rgba(var(--text-rgb), 0.03); }
.tx-mobile-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tx-mobile-icon.dep  { background: rgba(16,185,129,0.12); color: var(--success); }
.tx-mobile-icon.with { background: rgba(239,68,68,0.12);  color: var(--danger); }
.tx-mobile-icon.buy  { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.tx-mobile-icon.sell { background: rgba(245,158,11,0.12);  color: #f59e0b; }
.tx-mobile-info { flex: 1; min-width: 0; }
.tx-mobile-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.tx-mobile-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tx-mobile-right { text-align: right; flex-shrink: 0; }
.tx-mobile-amount { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tx-mobile-amount.pos { color: var(--success); }
.tx-mobile-amount.neg { color: var(--danger); }
.tx-mobile-amount.neu { color: var(--text); }
.tx-mobile-pl { font-size: 11px; margin-top: 2px; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) { .col-txid   { display: none; } }
@media (max-width: 700px) { .col-method { display: none; } }

@media (max-width: 540px) {
  .tx-page { padding: 16px 12px 90px; gap: 14px; }
  .tx-page-title { font-size: 22px; }
  .tx-header { gap: 10px; }
  .btn-label { display: none; }
  .tx-btn    { padding: 9px 11px; }
  .tx-tabs   { width: 100%; }
  .tx-tab    { flex: 1; justify-content: center; padding: 8px 4px; font-size: 12px; gap: 4px; }
  .tx-desktop-table { display: none; }
  .tx-mobile-list   { display: block; }
}/* ─── SETTINGS PAGE ─────────────────────────────────────────── */
.sett-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.sett-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 4px;
}
.sett-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.sett-header-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* ─── PROFILE HERO ───────────────────────────────────────────── */
.sett-profile-hero {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  overflow: hidden;
}
.sett-hero-glow {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.18) 0%, transparent 70%);
  pointer-events: none;
}
.sett-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.sett-avatar {
  position: relative;
  flex-shrink: 0;
}
.sett-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6f42c1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.sett-avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--card);
}
.sett-hero-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.sett-hero-email {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.sett-hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sett-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.sett-badge.verified {
  background: rgba(16,185,129,0.15);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
}
.sett-badge.twofactor {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.25);
}
.sett-badge.plan {
  background: rgba(245,166,35,0.12);
  color: #f5a623;
  border: 1px solid rgba(245,166,35,0.25);
}

/* ─── BODY LAYOUT ────────────────────────────────────────────── */
.sett-body {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}

/* ─── SIDEBAR NAV ────────────────────────────────────────────── */
.sett-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 80px;
}
.sett-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
.sett-nav-item:hover {
  background: rgba(var(--text-rgb),0.06);
  color: var(--text);
}
.sett-nav-item.active {
  background: rgba(var(--accent-rgb),0.15);
  color: var(--accent);
  font-weight: 600;
}
.sett-nav-item.danger {
  color: var(--danger);
}
.sett-nav-item.danger:hover {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}
.sett-nav-item.danger.active {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
}
.sett-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ─── CONTENT AREA ───────────────────────────────────────────── */
.sett-content { min-width: 0; }

/* ─── SECTION ────────────────────────────────────────────────── */
.sett-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── PANEL ──────────────────────────────────────────────────── */
.sett-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.sett-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sett-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}
.sett-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.sett-panel-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.sett-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(var(--text-rgb),0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.sett-panel-icon.green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.2); color: var(--success); }
.sett-panel-icon.blue  { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.2); color: #3b82f6; }
.sett-panel-icon.gold  { background: rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.2); color: #f5a623; }
.sett-panel-icon.danger{ background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.2);  color: var(--danger); }
.sett-panel-body {
  padding: 20px;
}

/* ─── FORM ───────────────────────────────────────────────────── */
.sett-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sett-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sett-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sett-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sett-field-input {
  background: rgba(var(--bg-rgb),0.6);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.sett-field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12);
}
.sett-field-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sett-field-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.sett-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.sett-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.sett-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sett-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sett-btn.primary:hover:not(:disabled) { filter: brightness(1.1); }
.sett-btn.ghost {
  background: rgba(var(--text-rgb),0.06);
  color: var(--text);
  border-color: var(--border);
}
.sett-btn.ghost:hover:not(:disabled) { background: rgba(var(--text-rgb),0.1); }
.sett-btn.outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239,68,68,0.4);
}
.sett-btn.outline-danger:hover:not(:disabled) { background: rgba(239,68,68,0.08); }
.sett-btn.danger-soft {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border-color: rgba(239,68,68,0.2);
}
.sett-btn.danger-soft:hover:not(:disabled) { background: rgba(239,68,68,0.18); }
.sett-btn.sm { padding: 8px 12px; font-size: 12px; }

/* ─── PASSWORD STRENGTH ──────────────────────────────────────── */
.sett-pw-strength {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}
.sett-pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.25s;
}
.sett-pw-bar.filled.weak   { background: var(--danger); }
.sett-pw-bar.filled.fair   { background: #f5a623; }
.sett-pw-bar.filled.strong { background: var(--success); }
.sett-pw-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── TOGGLES ────────────────────────────────────────────────── */
.sett-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.sett-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.sett-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(var(--text-rgb),0.12);
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.sett-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.sett-toggle input:checked + .sett-toggle-track {
  background: rgba(var(--accent-rgb),0.25);
  border-color: rgba(var(--accent-rgb),0.4);
}
.sett-toggle input:checked + .sett-toggle-track::after {
  transform: translateX(18px);
  background: var(--accent);
}
.sett-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.sett-toggle-row:first-of-type { border-top: none; }
.sett-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sett-toggle-desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ─── INFO GRID (view mode) ──────────────────────────────────── */
.sett-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sett-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sett-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sett-info-val {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.sett-info-val.placeholder { color: var(--muted); font-style: italic; }

/* ─── SEND ROW ───────────────────────────────────────────────── */
.sett-send-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sett-send-row .sett-field-input { flex: 1; }

/* ─── EMAIL VERIFIED STATE ───────────────────────────────────── */
.sett-verified-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 8px;
  gap: 8px;
}
.sett-verified-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 2px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.sett-verified-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.sett-verified-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ─── BANKING GRID ───────────────────────────────────────────── */
.sett-bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.bank-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}

/* ─── TABLE ──────────────────────────────────────────────────── */
.sett-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.sett-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sett-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
}
.sett-table td {
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid rgba(var(--border),0.5);
  vertical-align: middle;
}
.sett-table tr:last-child td { border-bottom: none; }
.sett-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(var(--bg-rgb),0.6);
  padding: 3px 7px;
  border-radius: 5px;
  color: #a78bfa;
}
.sett-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px 0 !important;
  font-size: 13px;
}

/* ─── ALERTS ─────────────────────────────────────────────────── */
.sett-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}
.sett-alert.success {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border-color: rgba(16,185,129,0.2);
}
.sett-alert.error {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border-color: rgba(239,68,68,0.2);
}

/* ─── DANGER PANEL ───────────────────────────────────────────── */
.sett-danger-panel .sett-panel-head {
  border-bottom-color: rgba(239,68,68,0.2);
}
.sett-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.sett-danger-row:first-of-type { border-top: none; }
.sett-danger-info-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.sett-danger-info-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
  max-width: 400px;
}

/* ─── MOBILE NAV BAR ────────────────────────────────────────── */
.sett-mob-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
}
.sett-mob-bar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sett-mob-bar-arrow {
  color: var(--muted);
  transition: transform 0.2s;
}
.sett-mob-bar.open .sett-mob-bar-arrow { transform: rotate(180deg); }

/* ─── NAV OVERLAY ────────────────────────────────────────────── */
.sett-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 30;
}
.sett-nav-overlay.open { display: block; }

/* ─── MOBILE (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .sett-wrap { padding-bottom: 80px; }

  .sett-hero-inner { gap: 14px; }
  .sett-avatar-circle { width: 52px; height: 52px; font-size: 18px; }

  .sett-mob-bar { display: flex; }
  .sett-nav-overlay.open { display: block; }

  .sett-body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sett-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 31;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.28s ease, padding 0.28s;
    border: none;
  }
  .sett-nav.open {
    max-height: 400px;
    padding: 8px;
    border: 1px solid var(--border);
  }

  .sett-row-2 { grid-template-columns: 1fr; }
  .sett-info-grid { grid-template-columns: 1fr; }
  .sett-bank-grid { grid-template-columns: 1fr; }

  .sett-danger-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sett-content { margin-top: 12px; }
}
/* ─── Reset & Base ─────────────────────────────────────── */
.help-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── HEADER ── */
.help-header   { display: flex; flex-direction: column; gap: 6px; }
.help-page-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.help-page-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}
.help-page-title { font-size: 26px; font-weight: 900; letter-spacing: -0.4px; color: var(--text); }
.help-page-sub   { font-size: 13px; color: var(--muted); }

/* ── SEARCH ── */
.help-search-wrap {
  position: relative;
  animation: slideInUp 0.35s ease-out;
}
.help-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.help-search {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--card); border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px; font-family: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.help-search::placeholder { color: var(--muted); }
.help-search:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

/* ── QUICK ACTIONS ── */
.help-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  animation: slideInUp 0.38s ease-out;
}
.help-quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 20px 12px;
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 12px;
  color: var(--text); text-decoration: none;
  transition: all 0.18s; cursor: pointer; text-align: center;
  font-family: inherit;
}
.help-quick-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.help-quick-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  transition: background 0.18s;
}
.help-quick-card:hover .help-quick-icon { background: rgba(var(--accent-rgb), 0.2); }
.help-quick-icon.ic-green { background: rgba(16,185,129,0.1);  color: var(--success); border-color: rgba(16,185,129,0.18); }
.help-quick-icon.ic-blue  { background: rgba(59,130,246,0.1);  color: #3b82f6;        border-color: rgba(59,130,246,0.18); }
.help-quick-icon.ic-warn  { background: rgba(245,158,11,0.1);  color: #f59e0b;        border-color: rgba(245,158,11,0.18); }
.help-quick-label { font-size: 12px; font-weight: 700; color: var(--text); }
.help-quick-sub   { font-size: 11px; color: var(--muted); margin-top: -4px; }

/* ── SECTION WRAPPER ── */
.help-section {
  background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInUp 0.4s ease-out;
  overflow: hidden;
}
.help-section-header {
  background: rgba(var(--accent-rgb), 0.05);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex; align-items: center; gap: 10px;
}
.help-section-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}
.help-section-icon.ic-green { background: rgba(16,185,129,0.1); color: var(--success); border-color: rgba(16,185,129,0.18); }
.help-section-icon.ic-blue  { background: rgba(59,130,246,0.1); color: #3b82f6;        border-color: rgba(59,130,246,0.18); }
.help-section-title { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── FAQ ── */
.faq-list   { display: flex; flex-direction: column; }
.faq-item   { border-bottom: 1px solid rgba(var(--text-rgb), 0.05); }
.faq-item:last-child { border-bottom: none; }

.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 20px; text-align: left;
  background: none; color: var(--text); font-family: inherit;
  border: none; cursor: pointer;
  transition: background 0.18s;
}
.faq-btn:hover { background: rgba(var(--text-rgb), 0.025); }
.faq-btn.open  { color: var(--accent); }

.faq-question { font-size: 13px; font-weight: 600; flex: 1; }
.faq-chevron  {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--muted);
  transition: transform 0.22s ease, color 0.18s;
}
.faq-btn.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  padding: 0 20px;
  max-height: 0; overflow: hidden;
  font-size: 13px; color: var(--muted); line-height: 1.65;
  transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-answer.open { max-height: 200px; padding: 0 20px 16px; }
.faq-empty { padding: 20px; color: var(--muted); font-size: 13px; text-align: center; }

/* ── SUPPORT GRID ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.support-card {
  padding: 22px 20px;
  border-right: 1px solid rgba(var(--text-rgb), 0.06);
  display: flex; flex-direction: column; gap: 9px;
}
.support-card:last-child { border-right: none; }
.support-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.1); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.support-card-icon.ic-green { background: rgba(16,185,129,0.1); color: var(--success); border-color: rgba(16,185,129,0.15); }
.support-card-icon.ic-blue  { background: rgba(59,130,246,0.1); color: #3b82f6;        border-color: rgba(59,130,246,0.15); }
.support-card-title { font-size: 13px; font-weight: 700; color: var(--text); }
.support-card-desc  { font-size: 12px; color: var(--muted); line-height: 1.5; }
.support-card-meta  {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
.support-card-meta::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 5px var(--success);
}
.support-card-btn {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; font-family: inherit; width: fit-content;
  background: rgba(var(--accent-rgb), 0.1); color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  text-decoration: none; cursor: pointer;
  transition: all 0.18s;
}
.support-card-btn:hover { background: rgba(var(--accent-rgb), 0.2); border-color: rgba(var(--accent-rgb), 0.4); }
.support-card-btn.btn-green { background: rgba(16,185,129,0.1); color: var(--success); border-color: rgba(16,185,129,0.2); }
.support-card-btn.btn-green:hover { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.4); }
.support-card-btn.btn-blue  { background: rgba(59,130,246,0.1); color: #3b82f6; border-color: rgba(59,130,246,0.2); }
.support-card-btn.btn-blue:hover  { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.35); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .help-page { padding: 16px 12px 90px; gap: 18px; }
  .help-page-title { font-size: 22px; }
  .help-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { border-right: none; border-bottom: 1px solid rgba(var(--text-rgb), 0.06); }
  .support-card:last-child { border-bottom: none; }
}

.help-page h1 {
  font-size: 2em;
  margin: 0 0 10px 0;
  color: var(--text);
}

.help-page .intro {
  color: rgba(var(--text-rgb), 0.6);
  margin: 0 0 30px 0;
  font-size: 1.1em;
}

.help-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.help-section {
  background: rgba(var(--card-rgb), 0.05);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.help-section h2 {
  font-size: 1.4em;
  margin: 0 0 25px 0;
  color: var(--text);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(var(--card-rgb), 0.03);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}

.quick-link:hover {
  background: rgba(var(--card-rgb), 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.quick-link .icon {
  font-size: 2em;
}

.quick-link .text {
  font-size: 0.9em;
  text-align: center;
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px;
  background: rgba(var(--card-rgb), 0.03);
  border: none;
  color: var(--text);
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(var(--card-rgb), 0.08);
}

.question-text {
  text-align: left;
}

.toggle-icon {
  display: inline-flex;
  font-size: 0.8em;
  color: rgba(var(--text-rgb), 0.6);
  transition: transform 0.2s;
  margin-left: 10px;
}

.toggle-icon.open {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 16px;
  background: rgba(var(--card-rgb), 0.02);
  color: rgba(var(--text-rgb), 0.8);
  line-height: 1.6;
  border-top: 1px solid rgba(var(--text-rgb), 0.05);
}

.support-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.support-item {
  padding: 20px;
  background: rgba(var(--card-rgb), 0.03);
  border-radius: 8px;
}

.support-item h3 {
  margin: 0 0 10px 0;
  color: var(--text);
  font-size: 1.1em;
}

.support-item p {
  margin: 5px 0;
  color: rgba(var(--text-rgb), 0.8);
}

.support-item .muted {
  color: rgba(var(--text-rgb), 0.5);
  font-size: 0.9em;
}

.muted {
  color: rgba(var(--text-rgb), 0.6);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .help-page {
    padding: 15px 15px 100px 15px;
  }

  .help-section {
    padding: 20px;
  }

  .help-section h2 {
    font-size: 1.2em;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-question {
    padding: 12px;
    font-size: 0.95em;
  }

  .faq-answer {
    padding: 12px;
  }

  .support-info {
    grid-template-columns: 1fr;
  }
}
/* ─── ADMIN REDESIGN — scoped under .admin-redesign ──────────────────── */

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

.admin-redesign {
  --sidebar-w: 220px;
  --header-h: 56px;
  --radius: 8px;
  --radius-sm: 5px;
  --transition: 0.18s ease;
  --bg:          #0d0f14;
  --bg-2:        #12151c;
  --bg-3:        #181c27;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --text:        #e8eaf0;
  --text-2:      #8b92a5;
  --text-3:      #555e72;
  --accent:      #3b82f6;
  --accent-glow: rgba(59,130,246,0.25);
  --success:     #22c55e;
  --danger:      #ef4444;
  --warn:        #f59e0b;
  --sidebar-bg:  #0a0c11;
  --card-bg:     #12151c;
  --tag-bg:      rgba(59,130,246,0.12);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.admin-redesign[data-theme="light"] {
  --bg:          #f5f7fa;
  --bg-2:        #ffffff;
  --bg-3:        #eef1f6;
  --border:      #e2e6ef;
  --border-2:    #c9d0de;
  --text:        #1a1f2e;
  --text-2:      #5a6380;
  --text-3:      #9aa3b8;
  --accent:      #2563eb;
  --accent-glow: rgba(37,99,235,0.15);
  --success:     #16a34a;
  --danger:      #dc2626;
  --warn:        #d97706;
  --sidebar-bg:  #0f1624;
  --card-bg:     #ffffff;
  --tag-bg:      rgba(37,99,235,0.08);
}

.admin-redesign .layout { display: flex; height: 100vh; overflow: hidden; }

.admin-redesign .sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; flex-shrink: 0;
  overflow-y: auto; z-index: 50;
}
.admin-redesign .sidebar-logo {
  height: var(--header-h); display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0;
}
.admin-redesign .sidebar-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.admin-redesign .sidebar-logo-text { font-weight: 700; font-size: 13px; color: #fff; line-height: 1.2; }
.admin-redesign .sidebar-logo-sub  { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; }
.admin-redesign .sidebar-section { padding: 14px 10px 4px; }
.admin-redesign .sidebar-section + .sidebar-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}
.admin-redesign .sidebar-section-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.35); padding: 0 8px; margin-bottom: 2px;
}
.admin-redesign .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); cursor: pointer; color: rgba(255,255,255,0.45);
  font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition); user-select: none;
}
.admin-redesign .nav-item:hover  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.75); }
.admin-redesign .nav-item.active { background: rgba(59,130,246,0.15); color: #60a5fa; }
.admin-redesign .nav-item .icon  { width: 16px; text-align: center; font-size: 15px; flex-shrink: 0; }
.admin-redesign .nav-badge {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 20px; padding: 1px 6px; line-height: 16px; flex-shrink: 0;
}
.admin-redesign .nav-badge.success { background: var(--success); }
.admin-redesign .sidebar-footer {
  margin-top: auto; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,0.05);
}

.admin-redesign .main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.admin-redesign .topbar {
  height: var(--header-h); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--bg-2); flex-shrink: 0; overflow: visible; min-width: 0;
}
.admin-redesign .topbar-title { font-weight: 700; font-size: 15px; flex: 1; }
.admin-redesign .topbar-key-wrap { position: relative; flex-shrink: 0; display: flex; align-items: center; }
.admin-redesign .topbar-key-btn {
  width: 30px; height: 30px; border-radius: 6px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); transition: color .15s, background .15s; position: relative;
}
.admin-redesign .topbar-key-btn:hover { color: var(--text); background: var(--bg-3); }
.admin-redesign .topbar-key-dot {
  position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%;
  background: transparent; transition: background .2s; pointer-events: none;
}
.admin-redesign .topbar-key-dot.active { background: var(--success); }
.admin-redesign .topbar-key-popup {
  display: none; position: fixed;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 9999; min-width: 210px; flex-direction: column; gap: 8px;
  top: calc(var(--header-h) + 4px); right: 16px;
}
.admin-redesign .topbar-key-popup.open { display: flex; }
.admin-redesign .topbar-key-popup label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.admin-redesign .topbar-key-popup input {
  border: 1px solid var(--border-2); border-radius: 6px;
  background: var(--bg-3); color: var(--text);
  outline: none; padding: 6px 10px; font-size: 13px;
  font-family: monospace; width: 100%; box-sizing: border-box; letter-spacing: .05em;
}
.admin-redesign .topbar-key-popup input:focus { border-color: var(--accent); }
.admin-redesign .topbar-key-popup .key-save { font-size: 11px; color: var(--text-3); text-align: right; }

.admin-redesign .content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px; }
.admin-redesign .page { display: none; }
.admin-redesign .page.active { display: block; }

.admin-redesign .card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.admin-redesign .card-sm { padding: 14px; }

.admin-redesign .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-redesign .stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.admin-redesign .stat-card:hover { border-color: rgba(59,130,246,0.35); transform: translateY(-2px); }
.admin-redesign .stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.admin-redesign .stat-card.c-green::after { background: linear-gradient(90deg, var(--success), transparent); }
.admin-redesign .stat-card.c-red::after   { background: linear-gradient(90deg, var(--danger), transparent); }
.admin-redesign .stat-card.c-gold::after  { background: linear-gradient(90deg, #f5a623, transparent); }
.admin-redesign .stat-card.c-blue::after  { background: linear-gradient(90deg, var(--accent), transparent); }
.admin-redesign .stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.admin-redesign .stat-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.admin-redesign .stat-card.c-green .stat-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.admin-redesign .stat-card.c-red   .stat-icon { background: rgba(239,68,68,0.12);  color: var(--danger); }
.admin-redesign .stat-card.c-gold  .stat-icon { background: rgba(245,166,35,0.12); color: #f5a623; }
.admin-redesign .stat-card.c-blue  .stat-icon { background: rgba(59,130,246,0.12); color: var(--accent); }
.admin-redesign .stat-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.admin-redesign .badge-up  { background: rgba(16,185,129,0.15); color: var(--success); }
.admin-redesign .badge-dn  { background: rgba(239,68,68,0.15);  color: var(--danger); }
.admin-redesign .badge-neu { background: var(--bg-3); color: var(--text-2); }
.admin-redesign .stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-2); }
.admin-redesign .stat-val {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-variant-numeric: tabular-nums; color: var(--text);
  border-radius: 4px; padding: 2px 4px; margin: -2px -4px;
  transition: background var(--transition);
}
.admin-redesign .stat-sub { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.admin-redesign .stat-edit-hint { font-size: 10px; color: var(--text-3); margin-top: -4px; display: none; }
.admin-redesign .stat-card:hover .stat-edit-hint { display: block; }

.admin-redesign .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-redesign .section-title  { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.admin-redesign .section-sub    { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.admin-redesign .btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition); border: none; line-height: 1;
}
.admin-redesign .btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.admin-redesign .btn:active { transform: translateY(0); opacity: 1; }
.admin-redesign .btn-primary { background: var(--accent); color: #fff; }
.admin-redesign .btn-ghost   { background: transparent; border: 1px solid var(--border-2); color: var(--text-2); }
.admin-redesign .btn-ghost:hover { color: var(--text); }
.admin-redesign .btn-danger  { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.admin-redesign .btn-success { background: rgba(34,197,94,0.12);  color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.admin-redesign .btn-warn    { background: rgba(245,158,11,0.12); color: var(--warn);    border: 1px solid rgba(245,158,11,0.2); }
.admin-redesign .btn-xs { padding: 4px 10px; font-size: 11px; }
.admin-redesign .btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-redesign label span {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px;
}
.admin-redesign input[type="text"],
.admin-redesign input[type="number"],
.admin-redesign input[type="email"],
.admin-redesign input[type="password"],
.admin-redesign input[type="url"],
.admin-redesign textarea,
.admin-redesign select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  transition: border-color var(--transition); outline: none;
}
.admin-redesign input:focus,
.admin-redesign textarea:focus,
.admin-redesign select:focus { border-color: var(--accent); }
.admin-redesign input::placeholder,
.admin-redesign textarea::placeholder { color: var(--text-3); }
.admin-redesign textarea { min-height: 80px; resize: vertical; }
.admin-redesign .form-grid { display: grid; gap: 12px; }
.admin-redesign .form-2 { grid-template-columns: 1fr 1fr; }
.admin-redesign .form-3 { grid-template-columns: 1fr 1fr 1fr; }

.admin-redesign .table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius); border: 1px solid var(--border); max-width: 100%;
}
.admin-redesign table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.admin-redesign thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--text-2); border-bottom: 1px solid var(--border); background: var(--bg-3); white-space: nowrap;
}
.admin-redesign tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-redesign tbody tr:last-child td { border-bottom: none; }
.admin-redesign tbody tr:hover td { background: var(--bg-3); }
.admin-redesign .empty-row td { text-align: center; color: var(--text-3); padding: 28px; }

.admin-redesign .tab-bar { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.admin-redesign .tab-btn {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer; background: none; border: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition); margin-bottom: -1px;
}
.admin-redesign .tab-btn:hover  { color: var(--text); }
.admin-redesign .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-redesign .tab-pane { display: none; }
.admin-redesign .tab-pane.active { display: block; }

.admin-redesign .badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.admin-redesign .badge-green  { background: rgba(34,197,94,0.12);  color: var(--success); }
.admin-redesign .badge-red    { background: rgba(239,68,68,0.12);  color: var(--danger); }
.admin-redesign .badge-yellow { background: rgba(245,158,11,0.12); color: var(--warn); }
.admin-redesign .badge-blue   { background: rgba(59,130,246,0.12); color: #60a5fa; }
.admin-redesign .badge-gray   { background: var(--bg-3); color: var(--text-2); }

.admin-redesign .ticker {
  background: var(--bg-3); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 36px; display: flex; align-items: center; overflow: hidden;
}
.admin-redesign .ticker-inner {
  display: flex; gap: 48px;
  animation: admin-ticker-scroll 40s linear infinite;
  width: max-content; white-space: nowrap;
}
.admin-redesign .ticker-item { font-size: 12px; color: var(--text-2); }
.admin-redesign .ticker-item strong { color: var(--warn); }
@keyframes admin-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.admin-redesign .modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.admin-redesign .modal-overlay.open { display: flex; }
.admin-redesign .modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; width: 100%; max-width: 540px;
  max-height: 85vh; display: flex; flex-direction: column;
  animation: admin-modal-in 0.18s ease-out;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
@keyframes admin-modal-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.admin-redesign .modal-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-redesign .modal-header h3 { font-size: 13px; font-weight: 600; color: var(--text); }
.admin-redesign .modal-close {
  background: none; border: none; color: var(--text-3); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 2px 4px;
  transition: color var(--transition);
}
.admin-redesign .modal-close:hover { color: var(--text); }
.admin-redesign .modal-body { overflow-y: auto; padding: 16px 18px; flex: 1; }
.admin-redesign .modal-footer {
  padding: 10px 18px; border-top: 1px solid var(--border);
  display: flex; gap: 6px; justify-content: flex-end;
}

/* lighter buttons scoped to modal footer */
.admin-redesign .modal-footer .btn {
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  border-radius: 5px;
}
.admin-redesign .modal-footer .btn-primary {
  background: var(--accent); color: #fff; border: none;
}
.admin-redesign .modal-footer .btn-ghost {
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text-3);
}
.admin-redesign .modal-footer .btn-ghost:hover { color: var(--text); background: var(--bg-3); opacity: 1; transform: none; }
.admin-redesign .modal-footer .btn:hover { opacity: 0.88; transform: none; }

.admin-redesign .user-card {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color var(--transition), background var(--transition); margin-bottom: 8px;
}
.admin-redesign .user-card:hover { border-color: var(--accent); background: var(--accent-glow); }
.admin-redesign .user-card-name    { font-weight: 600; font-size: 14px; }
.admin-redesign .user-card-email   { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.admin-redesign .user-card-balance { font-size: 12px; color: var(--success); margin-top: 4px; font-weight: 600; }
.admin-redesign .user-card-meta    { display: flex; gap: 8px; margin-top: 6px; }

.admin-redesign .testimony-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.admin-redesign .testimony-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.admin-redesign .testimony-card-name   { font-weight: 700; font-size: 13px; }
.admin-redesign .testimony-card-title  { font-size: 11px; color: var(--text-2); }
.admin-redesign .testimony-card-text   { font-size: 12px; color: var(--text-2); font-style: italic; line-height: 1.5; }
.admin-redesign .testimony-card-stars  { font-size: 13px; color: var(--warn); }

.admin-redesign .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex-shrink: 0; }
.admin-redesign .dot-green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.admin-redesign .dot-red   { background: var(--danger); }
.admin-redesign .dot-yellow{ background: var(--warn); }

.admin-redesign .divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

.admin-redesign .theme-toggle {
  background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2);
  border-radius: 20px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.admin-redesign .theme-toggle:hover { color: var(--text); }

.admin-redesign .key-row { display: flex; gap: 8px; }
.admin-redesign .key-row input { flex: 1; }

.admin-redesign .growth-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px;
}
.admin-redesign .growth-stat { background: var(--bg-3); border-radius: var(--radius-sm); padding: 12px; }
.admin-redesign .growth-stat-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.admin-redesign .growth-stat-value { font-size: 17px; font-weight: 700; }

.admin-redesign .otp-code {
  font-family: 'Courier New', monospace; font-size: 16px; font-weight: 800;
  letter-spacing: 4px; color: var(--accent); padding: 3px 8px;
  background: var(--accent-glow); border-radius: 4px;
}

.admin-redesign ::-webkit-scrollbar { width: 5px; height: 5px; }
.admin-redesign ::-webkit-scrollbar-track { background: transparent; }
.admin-redesign ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }

.admin-redesign .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 49; }
.admin-redesign .sidebar-overlay.open { display: block; }

.admin-redesign .stack { display: flex; flex-direction: column; gap: 18px; }
.admin-redesign .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-redesign .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.admin-redesign .user-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 5px 10px; font-size: 12px;
  color: var(--text-2); min-width: 0; overflow: hidden;
}
.admin-redesign .user-pill strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; color: var(--accent); }
.admin-redesign .user-pill-change { font-size: 11px; color: var(--text-3); cursor: pointer; }
.admin-redesign .user-pill-change:hover { color: var(--accent); }

.admin-redesign .prompt-item {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.admin-redesign .prompt-text { font-size: 13px; flex: 1; line-height: 1.5; }
.admin-redesign .prompt-meta { font-size: 11px; color: var(--text-2); margin-top: 4px; }

.admin-redesign .danger-card {
  border: 1px solid rgba(239,68,68,0.25); background: rgba(239,68,68,0.04);
  border-radius: var(--radius); padding: 18px;
}
.admin-redesign .danger-title { color: var(--danger); font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.admin-redesign .danger-desc  { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }

.admin-redesign .addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.admin-redesign .topbar-hamburger {
  display: none; background: none; border: none;
  color: var(--text-2); font-size: 20px; cursor: pointer; align-items: center; padding: 0 4px;
}

.admin-redesign .status-banner { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.admin-redesign .status-banner.success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.admin-redesign .status-banner.error   { background: rgba(239,68,68,0.12);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.25); }

.admin-redesign .card,
.admin-redesign .stat-card,
.admin-redesign .danger-card { max-width: 100%; overflow: hidden; }

@media (max-width: 900px) {
  .admin-redesign .sidebar {
    position: fixed; left: -240px; top: 0; bottom: 0; transition: left 0.25s ease; z-index: 60;
  }
  .admin-redesign .sidebar.open { left: 0; }
  .admin-redesign .topbar-hamburger { display: flex !important; }
  .admin-redesign .form-2 { grid-template-columns: 1fr; }
  .admin-redesign .form-3 { grid-template-columns: 1fr 1fr; }
  .admin-redesign .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-redesign .stat-val  { font-size: 20px; }
  .admin-redesign .row-2, .admin-redesign .row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-redesign .form-3  { grid-template-columns: 1fr; }
  .admin-redesign .stat-grid  { gap: 8px; }
  .admin-redesign .stat-card  { padding: 12px 14px; }
  .admin-redesign .stat-val   { font-size: 18px; }
  .admin-redesign .content    { padding: 12px; }
  .admin-redesign .topbar     { padding: 0 12px; gap: 6px; }
  .admin-redesign .user-pill  { display: none; }
  .admin-redesign .section-header { flex-wrap: wrap; gap: 8px; }
  .admin-redesign .btn-group  { flex-wrap: wrap; }
  .admin-redesign .tab-bar    { overflow-x: auto; flex-wrap: nowrap; }
  .admin-redesign .tab-btn    { white-space: nowrap; flex-shrink: 0; }
  .admin-redesign .growth-stats { grid-template-columns: 1fr 1fr; }
  .admin-redesign .addr-grid  { grid-template-columns: 1fr; }
  .admin-redesign .modal      { max-width: 100% !important; margin: 0; border-radius: 12px 12px 0 0; }
  .admin-redesign .modal-overlay { align-items: flex-end; padding: 0; }
}

/* ─── legacy orphan styles below (unused, kept for safety) ─── */

.admin-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.admin-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
}

.admin-header p {
  margin: 0;
  opacity: 0.9;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.admin-section h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
}

/* Wrapper for legacy admin HTML injected into React admin page */
.legacy-admin-wrapper {
  width: 100%;
  min-height: calc(100vh - 0px);
  height: 100vh;
  box-sizing: border-box;
  overflow: auto;
  padding: 0;
  margin: 0 auto;
}

/* Limit wildcard overrides to box-sizing only (avoid breaking legacy layouts) */
.legacy-admin-wrapper * {
  box-sizing: border-box !important;
}

/* Common legacy layout containers to override fixed widths */
.legacy-admin-wrapper .wrap,
.legacy-admin-wrapper .container,
.legacy-admin-wrapper #wrap,
.legacy-admin-wrapper #container,
.legacy-admin-wrapper .admin-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 12px !important;
}

/* Make tables and panels scroll horizontally inside wrapper */
.legacy-admin-wrapper .table-wrapper,
.legacy-admin-wrapper .admin-table,
.legacy-admin-wrapper table {
  width: 100% !important;
  overflow: auto !important;
}

/* Make the legacy page container fill the React wrapper */
.legacy-admin-wrapper .page-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 12px !important;
  margin: 0 !important;
}

/* Make app layout responsive inside the wrapper */
.legacy-admin-wrapper .app-wrapper {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
}

/* Sidebar and main content sizing */
.legacy-admin-wrapper .sidebar {
  width: 220px !important;
  flex-shrink: 0 !important;
}
.legacy-admin-wrapper .main-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Ensure cards and panels use available width */
.legacy-admin-wrapper .card,
.legacy-admin-wrapper .cards-grid,
.legacy-admin-wrapper .card > div {
  width: 100% !important;
}

/* Images and media responsive */
.legacy-admin-wrapper img,
.legacy-admin-wrapper svg {
  max-width: 100% !important;
  height: auto !important;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.stat-icon {
  font-size: 32px;
}

.stat-details h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-details .stat-value {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
}

.stat-details .stat-change {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.stat-details .stat-change.positive {
  color: #22c55e;
}

.stat-details .stat-change.negative {
  color: #ef4444;
}

.admin-users-section,
.admin-transactions-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-select:hover {
  border-color: var(--primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.admin-table th {
  background: var(--card);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge.pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.badge.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-small:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.settings-group h3 {
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-item label {
  font-weight: 500;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.setting-item input[type="number"],
.setting-item select {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.setting-item input[type="number"]:focus,
.setting-item select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.admin-table .email {
  word-break: break-all;
  max-width: 200px;
}

.admin-table .tx-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.settings-group h3 {
  margin: 0;
  margin-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-group h3:first-of-type {
  margin-top: 0;
}

.setting-item {
  display: flex;
  align-items: center;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.setting-item input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .admin-tabs {
    flex-direction: column;
  }

  .tab {
    width: 100%;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 16px;
  }

  .tab.active {
    border-left-color: var(--primary);
  }

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

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px;
  }
}
.chat-support-unlock-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.chat-support-unlock-card {
  width: 100%;
  max-width: 440px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #d9d9d9);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.chat-support-unlock-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.chat-support-unlock-card p {
  margin: 0 0 18px;
  color: var(--muted, #666);
}

.chat-support-unlock-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-support-unlock-form label {
  font-weight: 600;
}

.chat-support-unlock-form input {
  border: 1px solid var(--border, #d9d9d9);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.chat-support-unlock-input-row {
  display: flex;
  gap: 10px;
}

.chat-support-unlock-input-row input {
  flex: 1;
}

.chat-support-unlock-toggle {
  margin-top: 0;
  min-width: 78px;
  border: 1px solid var(--border, #d9d9d9);
  background: var(--card, #fff);
  color: var(--text, #111);
}

.chat-support-unlock-form button {
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent, #2563eb);
  color: #fff;
}

.chat-support-unlock-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-support-unlock-error {
  color: #b42318;
  font-size: 13px;
}
/* ═══════════════════════════════════════════════
   CHAT SUPPORT PAGE — Full-page two-pane layout
═══════════════════════════════════════════════ */

/* Hide bottom nav on this page */
body.chat-support-view .mobile-bottom-nav { display: none !important; }

/* ── PAGE SHELL ── */
.cs-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* ── TOP BAR ── */
.cs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.cs-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-topbar-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #f6f8fc);
  letter-spacing: -0.01em;
}

.cs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.3s;
}
.cs-status-dot.online { background: var(--success, #22c55e); box-shadow: 0 0 6px rgba(34,197,94,0.5); }

.cs-status-label { font-size: 12px; color: var(--muted); }

.cs-lock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cs-lock-btn:hover { border-color: var(--danger, #ef4444); color: var(--danger, #ef4444); }

/* ── BODY ── */
.cs-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.cs-sidebar {
  width: 272px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.cs-sidebar-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cs-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-conv-list::-webkit-scrollbar { width: 4px; }
.cs-conv-list::-webkit-scrollbar-track { background: transparent; }
.cs-conv-list::-webkit-scrollbar-thumb { background: rgba(var(--text-rgb, 255,255,255), 0.1); border-radius: 4px; }

.cs-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text, #f6f8fc);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.cs-conv-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.18);
}

.cs-conv-item.active {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.cs-conv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-conv-info { flex: 1; min-width: 0; }

.cs-conv-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text, #f6f8fc);
}

.cs-conv-preview {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.cs-conv-time {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.cs-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── MAIN PANEL ── */
.cs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

.cs-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.cs-placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-placeholder p { font-size: 14px; margin: 0; }

/* ── MESSAGE HEADER ── */
.cs-msg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}

.cs-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-msg-user { flex: 1; }
.cs-msg-user-name { font-size: 15px; font-weight: 700; color: var(--text, #f6f8fc); }
.cs-msg-user-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ── MESSAGES LIST ── */
.cs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-messages::-webkit-scrollbar { width: 4px; }
.cs-messages::-webkit-scrollbar-track { background: transparent; }
.cs-messages::-webkit-scrollbar-thumb { background: rgba(var(--text-rgb, 255,255,255), 0.1); border-radius: 4px; }

/* ── BUBBLE ── */
.cs-bubble-row {
  display: flex;
  flex-direction: column;
}
.cs-bubble-row.mine { align-items: flex-end; }
.cs-bubble-row.theirs { align-items: flex-start; }

.cs-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.cs-bubble-row.mine .cs-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.cs-bubble-row.theirs .cs-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text, #f6f8fc);
  border-bottom-left-radius: 4px;
}

.cs-bubble-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* ── SEND ROW ── */
.cs-send-row {
  padding: 14px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cs-send-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s;
}

.cs-send-form:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
}

.cs-send-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text, #f6f8fc);
  padding: 6px 0;
}

.cs-send-input::placeholder { color: var(--muted); }

.cs-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cs-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cs-send-btn:not(:disabled):hover { opacity: 0.85; }

/* ── ERROR BANNER ── */
.cs-error {
  margin: 8px 20px 0;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .cs-sidebar {
    position: fixed;
    inset: 56px 0 0 0;
    width: 100%;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cs-sidebar.open {
    transform: translateX(0);
  }

  .cs-mobile-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text, #f6f8fc);
    cursor: pointer;
    flex-shrink: 0;
  }

  .cs-bubble { max-width: 85%; }
  .cs-messages { padding: 14px; }
  .cs-send-row { padding: 10px 14px; }
  .cs-msg-header { padding: 10px 14px; }
}

@media (min-width: 769px) {
  .cs-mobile-back { display: none; }
  .cs-mobile-menu-btn { display: none !important; }
}

.about-page {
  min-height: 100vh;
  background: var(--bg);
}

.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.about-hero h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
}

.about-hero .subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin: 0;
}

.about-content {
  padding: 60px 20px;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text);
}

.about-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature {
  background: var(--card);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature h3 {
  margin-top: 0;
  color: var(--primary);
}

.feature p {
  margin-bottom: 0;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.about-stats {
  background: var(--card);
  padding: 60px 20px;
  border-top: 1px solid var(--border);
}

.about-stats h2 {
  text-align: center;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 36px;
  margin: 0 0 8px 0;
  color: var(--primary);
}

.stat p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .about-hero {
    padding: 40px 20px;
  }

  .about-hero h1 {
    font-size: 32px;
  }

  .about-hero .subtitle {
    font-size: 16px;
  }

  .about-section h2 {
    font-size: 24px;
  }
}
.contact-page {
  min-height: 100vh;
  background: var(--bg);
}

.contact-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
}

.contact-hero .subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin: 0;
}

.contact-content {
  padding: 60px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h2,
.contact-form-wrapper h2 {
  margin-top: 0;
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 32px;
}

.info-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

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

.info-card a {
  color: var(--primary);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.faq-section {
  background: var(--card);
  padding: 20px;
  border-radius: 8px;
}

.faq-section h3 {
  margin-top: 0;
}

.faq-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-section li {
  padding: 8px 0;
}

.faq-section a {
  color: var(--primary);
  text-decoration: none;
}

.faq-section a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: var(--card);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.alert {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }
}
.testimonies-page {
  min-height: 100vh;
  background: var(--bg);
}

.testimonies-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.testimonies-hero h1 {
  font-size: 48px;
  margin: 0 0 16px 0;
}

.testimonies-hero .subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin: 0;
}

.testimonies-content {
  padding: 60px 20px;
}

.testimonies-header {
  margin-bottom: 48px;
}

.testimonies-header h2 {
  margin-bottom: 24px;
  font-size: 32px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.testimony-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s;
}

.testimony-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.testimony-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.avatar {
  font-size: 40px;
}

.user-info h3 {
  margin: 0;
  font-size: 16px;
}

.user-info .role {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.star-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  font-size: 18px;
  color: var(--border);
}

.star.filled {
  color: #fbbf24;
}

.testimony-card .message {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.testimony-card .date {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.no-testimonies {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.cta-section {
  background: var(--card);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  margin: 0 0 12px 0;
  font-size: 32px;
}

.cta-section p {
  margin: 0 0 32px 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 12px 32px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .testimonies-hero h1 {
    font-size: 32px;
  }

  .testimonies-header h2 {
    font-size: 24px;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
.deposit-page {
  min-height: 100vh;
  background: var(--bg);
}

.deposit-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 700;
}

.deposit-page .muted {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.deposit-page .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.deposit-page label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.deposit-page label span {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.deposit-page input,
.deposit-page select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input-bg, rgba(255, 255, 255, 0.05));
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.deposit-page input:focus,
.deposit-page select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1);
}

.deposit-page input::placeholder {
  color: var(--muted);
}

#address-box {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  word-break: break-all;
  font-size: 12px;
  font-family: 'Monaco', 'Courier New', monospace;
}

#address-box strong {
  color: var(--primary);
  font-weight: 600;
}

#address-box #qr-img {
  border-radius: 4px;
  margin: 12px 0;
}

.deposit-page .btn {
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.deposit-page .btn:hover {
  background: var(--primary-hover, #fcd34d);
}

.deposit-page .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deposit-page .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--border);
}

.deposit-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.deposit-page .btn-link {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  text-decoration: underline;
}

.deposit-page .btn-link:hover {
  background: transparent;
  opacity: 0.8;
}

.deposit-page .alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .deposit-page {
    padding: 20px 12px;
  }

  .deposit-page h1 {
    font-size: 22px;
  }

  .deposit-page .card {
    padding: 16px;
  }

  .deposit-page input,
  .deposit-page select {
    padding: 10px;
    font-size: 16px;
  }

  .deposit-page .btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .deposit-page {
    padding: 16px 12px;
    min-height: calc(100vh - 80px);
  }

  .deposit-page h1 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .deposit-page .muted {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .deposit-page .card {
    padding: 12px;
  }

  .deposit-page label {
    gap: 6px;
    margin-bottom: 12px;
  }

  .deposit-page label span {
    font-size: 13px;
  }

  .deposit-page input,
  .deposit-page select {
    padding: 10px;
    font-size: 14px;
  }

  #address-box {
    padding: 10px;
    font-size: 12px;
  }

  #qr-img {
    max-width: 140px;
  }

  .deposit-page .btn {
    padding: 10px 12px;
    font-size: 12px;
    flex: 1;
    min-width: auto;
  }
}

@media (max-width: 320px) {
  .deposit-page .card {
    padding: 10px;
  }

  .deposit-page input,
  .deposit-page select {
    font-size: 14px;
    padding: 8px;
  }

.deposit-page .btn {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.btn-block {
  width: 100%;
}

.security-note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.crypto-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-box {
  background: var(--bg);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.address-box code {
  word-break: break-all;
  font-size: 12px;
}

.info-text {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.steps-info ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps-info li {
  margin-bottom: 8px;
}

.deposit-faq {
  padding: 60px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.deposit-faq h2 {
  margin-top: 0;
  margin-bottom: 32px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.faq-item {
  background: var(--bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.faq-item h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .deposit-grid {
    grid-template-columns: 1fr;
  }

  .deposit-page h1 {
    font-size: 24px;
  }

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

/* ===== NEW OPTIMIZED DESIGN ===== */

.deposit-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(251, 191, 36, 0.02) 100%);
  padding-bottom: 20px;
}

.deposit-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.deposit-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 20px;
}

.deposit-header h1 {
  font-size: 32px;
  margin: 0 0 8px 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deposit-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: #22c55e;
  color: #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
  color: #ef4444;
}

.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;
}

.form-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.label-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.deposit-form input,
.deposit-form select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s;
  appearance: none;
}

.deposit-form input:focus,
.deposit-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
  background: var(--bg);
}

.deposit-form input::placeholder {
  color: var(--muted);
}

.address-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.qr-section {
  text-align: center;
}

.qr-code {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 8px;
  background: white;
}

.qr-label {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.address-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-label {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  color: var(--text);
}

.address-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.address-text {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 11px;
  flex: 1;
  word-break: break-all;
  color: var(--muted);
  line-height: 1.4;
  max-height: 60px;
  overflow-y: auto;
}

.copy-btn {
  padding: 8px 12px;
  background: navajowhite !important;
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #fcd34d;
  transform: translateY(-2px);
}

.address-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}

.btn {
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 48px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #fcd34d);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

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

.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.info-box {
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  margin-top: 20px;
}

.info-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
  .deposit-container {
    padding: 16px;
  }

  .deposit-header {
    margin-bottom: 24px;
    padding-top: 16px;
  }

  .deposit-header h1 {
    font-size: 28px;
  }

  .form-card {
    padding: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .deposit-container {
    padding: 12px;
    margin-top: -40px;
  }

  .deposit-header {
    margin-bottom: 20px;
    padding-top: 12px;
  }

  .deposit-header h1 {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .deposit-header p {
    font-size: 13px;
  }

  .alert {
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 16px;
  }

  .form-card {
    padding: 14px;
    gap: 12px;
  }

  .label-text {
    font-size: 13px;
  }

  .deposit-form input,
  .deposit-form select {
    padding: 11px 12px;
    font-size: 16px;
  }

  .address-card {
    gap: 16px;
  }

  .qr-code {
    width: 160px;
    height: 160px;
  }

  .address-text {
    font-size: 10px;
    max-height: 50px;
  }

  .button-group {
    gap: 10px;
    padding: 16px 0 8px 0;
  }

  .btn {
    font-size: 14px;
    padding: 13px 14px;
    min-height: 46px;
  }

  .copy-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .info-box {
    padding: 12px 14px;
    font-size: 12px;
    margin-top: 16px;
  }
}

@media (max-width: 320px) {
  .deposit-container {
    padding: 10px;
  }

  .deposit-header h1 {
    font-size: 22px;
  }

  .form-card {
    padding: 12px;
  }

  .deposit-form input,
  .deposit-form select {
    padding: 10px;
    font-size: 14px;
  }

  .btn {
    font-size: 13px;
    padding: 11px 12px;
  }

  .qr-code {
    width: 140px;
    height: 140px;
  }
}
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.not-found-content {
  text-align: center;
  max-width: 500px;
}

.not-found-icon {
  font-size: 120px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.not-found-content h1 {
  font-size: 48px;
  margin: 0 0 12px 0;
  color: var(--text);
}

.not-found-content p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.not-found-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.not-found-buttons .btn {
  padding: 12px 24px;
}

@media (max-width: 768px) {
  .not-found-icon {
    font-size: 80px;
  }

  .not-found-content h1 {
    font-size: 32px;
  }

  .not-found-buttons {
    flex-direction: column;
  }

  .not-found-buttons .btn {
    width: 100%;
  }
}
/* Global App Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--accent-rgb), 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

button {
  font-family: inherit;
}

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