/* Default light theme variables */
:root {
  --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;
  }
}

@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;
}
/* 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;
  padding: 16px 0 !important;
  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: 70px;
  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: 64px;
  width: 64px;
  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 logout by default; show on small screens */
.mobile-logout {
  display: none;
}

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

@media (max-width: 768px) {
  .site-header .container {
    min-height: auto;
    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 logout icon when nav is hidden */
  .mobile-logout {
    display: inline-flex;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
    padding: 6px;
  }

  /* 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 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.98) 100%);
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  animation: navSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Hide mobile nav when in chat messages view */
body.mobile-chat-messages-view .mobile-bottom-nav {
  display: none;
}

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

html[data-theme="light"] .mobile-bottom-nav {
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.95) 0%, rgba(var(--bg-rgb), 0.98) 100%);
  border-top-color: rgba(var(--accent-rgb), 0.2);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 1;
  height: 100%;
  position: relative;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.nav-item:hover {
  color: var(--accent-light);
  transform: scale(1.08) translateY(-2px);
}

.nav-item.active {
  color: var(--accent);
  transform: scale(1.05);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  animation: topLineGlow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes topLineGlow {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: 100%;
  }
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon svg {
  stroke: currentColor;
  transition: stroke 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover .nav-icon svg {
  stroke: var(--accent-light);
  transform: rotate(5deg) scale(1.1);
}

.nav-item.active .nav-icon svg {
  stroke: var(--accent);
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.4));
}

.nav-label {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}

/* Show icons only (no labels) on mobile bottom nav */
.nav-label { display: none; }

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
  .mobile-bottom-nav {
    height: 55px;
  }

  .nav-item {
    padding: 6px 10px;
    gap: 2px;
  }

  .nav-label {
    font-size: 10px;
    max-width: 45px;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-icon svg {
    width: 18px;
    height: 18px;
  }
}
.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; }
}
/* ==================== FLOATING CHAT FAB ==================== */
.floating-chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-chat-fab:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.floating-chat-fab:active {
  transform: scale(0.95);
}

.floating-chat-fab::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.chat-icon {
  display: block;
  position: relative;
  z-index: 1;
}

.unread-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: badgeBounce 0.6s ease;
}

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

/* ==================== FLOATING CHAT CONTAINER ==================== */
.floating-chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 90%;
  max-width: 420px;
  height: 580px;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  animation: slideUpScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

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

/* ==================== HEADER ==================== */
.floating-chat-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 16px 16px 0 0;
  position: relative;
}

.floating-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.floating-chat-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #667eea;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: statusPulse 2s ease-in-out infinite;
}

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

.close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #2c3e50;
}

/* ==================== ERROR BANNER ==================== */
.chat-error-banner {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  animation: slideDown 0.3s ease;
}

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

/* ==================== CHAT CONTENT ==================== */
.floating-chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

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

.chat-messages-container::-webkit-scrollbar {
  width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* ==================== NEW CONVERSATION FORM ==================== */
.new-conversation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  height: 100%;
}

.new-conversation-form textarea {
  flex: 1;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  transition: all 0.2s ease;
}

.new-conversation-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.new-conversation-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.new-conversation-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.new-conversation-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== CONVERSATION LIST ==================== */
.conv-list,
.conversations-sidebar {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.conv-item,
.conversation-item {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.conv-item:hover,
.conversation-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.conv-item.active,
.conversation-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid #667eea;
  padding-left: 8px;
}

.conv-preview {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.conv-title {
  font-weight: 600;
  font-size: 13px;
  color: #2c3e50;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 11px;
  color: #9ca3af;
}

.conv-last-msg {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread,
.unread-indicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
}

/* ==================== TIMESTAMP SEPARATOR ==================== */
.timestamp-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 12px;
  color: #9ca3af;
}

.timestamp-separator::before,
.timestamp-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Messages Area */
.messages-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.no-conversation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

/* Scrollbar styling */
.conversations-sidebar::-webkit-scrollbar,
.messages-list::-webkit-scrollbar,
.conv-list::-webkit-scrollbar,
.chat-messages-container::-webkit-scrollbar {
  width: 6px;
}

.conversations-sidebar::-webkit-scrollbar-track,
.messages-list::-webkit-scrollbar-track,
.conv-list::-webkit-scrollbar-track,
.chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.conversations-sidebar::-webkit-scrollbar-thumb,
.messages-list::-webkit-scrollbar-thumb,
.conv-list::-webkit-scrollbar-thumb,
.chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.conversations-sidebar::-webkit-scrollbar-thumb:hover,
.messages-list::-webkit-scrollbar-thumb:hover,
.conv-list::-webkit-scrollbar-thumb:hover,
.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* ==================== AUTH MESSAGE ==================== */
.auth-required-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 20px;
  gap: 12px;
}

.auth-required-message p {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
}

.auth-required-message small {
  color: #9ca3af;
  font-size: 12px;
}

/* Mobile conversations view - full screen conversations list */
.mobile-conversations-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-conversations-view .conversations-sidebar {
  flex: 1;
  border: none;
  border-radius: 0;
}

/* Mobile messages view - full screen with input at bottom */
.mobile-messages-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-messages-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-messages-header .back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--accent);
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mobile-messages-header .back-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.mobile-messages-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.mobile-messages-view .messages-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-messages-view .chat-messages-container {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* Mobile input area positioned at bottom like mobile nav */
.mobile-chat-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 1001; /* Above mobile nav */
}

.mobile-chat-input-area .input-container {
  max-width: 100%;
  margin: 0;
}

.mobile-chat-input-area .message-input-wrapper {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .floating-chat-container {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .floating-chat-fab {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .message-content {
    max-width: 85%;
  }
}

@media (max-width: 480px) {
  .floating-chat-fab {
    bottom: 80px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .floating-chat-container {
    bottom: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    height: 450px;
  }

  .message-content {
    max-width: 90%;
  }

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

@media (max-width: 320px) {
  .floating-chat-container {
    height: 400px;
  }

  .message-bubble {
    font-size: 13px;
  }
}
/* Admin Chat FAB (Floating Action Button) */

.admin-chat-fab-wrapper {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 998;
}

.admin-chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 122, 140, 0.4);
  z-index: 998;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.admin-chat-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-chat-fab:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(31, 122, 140, 0.6);
}

.admin-chat-fab:hover::before {
  opacity: 1;
}

.admin-chat-fab:active {
  transform: translateY(-2px) scale(0.95);
}

.admin-icon {
  display: block;
  font-style: normal;
  z-index: 1;
}

/* Tooltip */
.admin-fab-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.admin-fab-tooltip::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(0, 0, 0, 0.9);
}

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

/* Pulsing animation - optional activator */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.7);
  }
}

.admin-chat-fab.pulse {
  animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .admin-chat-fab-wrapper {
    bottom: 90px;
    right: 10px;
  }

  .admin-chat-fab {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .admin-fab-tooltip {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 320px) {
  .admin-chat-fab {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

/* Accessibility */
.admin-chat-fab:focus-visible {
  outline: 2px solid rgba(102, 126, 234, 0.7);
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .admin-fab-tooltip {
    background: rgba(0, 0, 0, 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-chat-fab,
  .admin-fab-tooltip {
    transition: none;
  }

  .admin-fab-tooltip {
    animation: none;
  }

  .admin-chat-fab.pulse {
    animation: none;
  }
}
.testimonies-banner {
  width: 100%;
  padding: 8px 12px;
  position: sticky;
  top: 60px;
  /* must be lower than the sidebar so the nav isn’t hidden on desktop */
  z-index: 100;
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 0;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-top: none;
}

/* Light theme override */
html[data-theme="light"] .testimonies-banner {
  background: linear-gradient(90deg, rgba(31, 122, 140, 0.06) 0%, rgba(191, 219, 247, 0.04) 100%);
  border: 1px solid rgba(31, 122, 140, 0.15);
}

.testimonies-banner-content {
  display: flex;
  gap: 24px;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: scroll-left 660s linear infinite;
}

.testimonies-banner:hover .testimonies-banner-content {
  animation-play-state: paused;
}

.testimonies-banner-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding: 12px 18px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: #e0e7ff;
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  min-width: 280px;
  max-width: 380px;
}

/* Light theme override */
html[data-theme="light"] .testimonies-banner-item {
  background: linear-gradient(135deg, rgba(191, 219, 247, 0.3) 0%, rgba(31, 122, 140, 0.08) 100%);
  color: #022b3a;
  border: 1.5px solid rgba(31, 122, 140, 0.25);
}

.testimonies-banner-item strong {
  color: #fbbf24;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Light theme override */
html[data-theme="light"] .testimonies-banner-item strong {
  color: #1f7a8c;
}

.testimonies-banner-item-text {
  margin: 0;
  font-style: italic;
  line-height: 1.3;
  font-size: 12px;
  color: #cbd5e1;
}

/* Light theme override */
html[data-theme="light"] .testimonies-banner-item-text {
  color: #507a8c;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .testimonies-banner {
    padding: 6px 8px;
    min-height: 32px;
    margin-bottom: 12px;
  }

  .testimonies-banner-content {
    gap: 18px;
    animation: scroll-left 660s linear infinite;
  }

  .testimonies-banner-item {
    padding: 10px 14px;
    font-size: 12px;
    min-width: 240px;
    max-width: 300px;
    border-radius: 5px;
  }

  .testimonies-banner-item strong {
    font-size: 11px;
  }

  .testimonies-banner-item-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .testimonies-banner {
    padding: 4px 6px;
    min-height: 28px;
    margin-bottom: 8px;
  }

  .testimonies-banner-content {
    gap: 12px;
    animation: scroll-left 660s linear infinite;
  }

  .testimonies-banner-item {
    padding: 8px 10px;
    font-size: 10px;
    min-width: 200px;
    max-width: 250px;
  }

  .testimonies-banner-item strong {
    font-size: 10px;
  }

  .testimonies-banner-item-text {
    font-size: 10px;
  }
}

.prompts-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(55, 65, 155, 0.95) 100%);
  border: 2px solid rgba(59, 130, 246, 0.8);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.3s ease-out;
}

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

.prompt-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

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

.prompt-message {
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.prompt-time {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.3;
}

.prompt-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.prompt-close:hover {
  color: #f0f9ff;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .prompts-container {
    position: fixed;
    top: 20px;
    right: 10px;
    left: 10px;
    max-width: none;
    max-height: 60vh;
    overflow-y: auto;
  }

  .prompt-alert {
    margin: 0;
  }
}
/* Main Layout Styles */
.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);
  font-size: 18px;
  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: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));
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08), 0 12px 32px rgba(var(--accent-rgb), 0.08);
  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%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.05), 0 12px 32px rgba(var(--accent-rgb), 0.06);
}



/* 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: 69px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}

/* 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-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.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: 180px;
  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));
}

.portfolio-value {
  font-size: 32px;
  font-weight: 900;
  margin-top: 6px;
}

.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;
  }
}

@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;
  }
}
.mobile-action-buttons {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .mobile-action-buttons .action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 13px;
    -webkit-user-select: none;
    user-select: none;
  }

  .mobile-action-buttons .logout-btn {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
    border: 1px solid rgba(239,68,68,0.12);
    color: var(--danger);
  }

  .mobile-action-buttons .logout-btn svg { stroke: var(--danger); }

  .mobile-action-buttons .logout-btn:hover { background: linear-gradient(135deg,#ef4444,#f97316); color: white; }

  .mobile-action-buttons .action-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

  .mobile-action-buttons .action-content h3 {
    margin: 0;
    font-size: 16px;
  }

  .mobile-action-buttons .action-content p {
    margin: 4px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
  }
}
/* Dashboard styles */
.dashboard-page {
  animation: fadeInUp 0.6s ease-out;
}

/* 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 - Modern Futuristic Design */

.markets-page-new {
  padding: 40px 24px;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.mp-header {
  margin-bottom: 48px;
}

.mp-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.mp-header-content h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.mp-header-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.mp-header-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Live Status Indicator */
.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 27, 75, 0.3) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.live-status.active {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.live-status.paused {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.live-status .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}

.live-status.paused .pulse {
  background: #ef4444;
  animation: none;
  opacity: 0.6;
}

.live-status .status-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Live Toggle Button */
.btn-live-toggle {
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-live-toggle:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-live-toggle:active {
  transform: translateY(0);
}

/* ===== CONTROLS ===== */
.mp-controls {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.mp-search-box {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.mp-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.mp-search-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 27, 75, 0.6) 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.mp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.mp-update-time {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== ERROR STATE ===== */
.mp-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease-out;
}

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

.mp-error span {
  color: #fca5a5;
  font-size: 14px;
  font-weight: 500;
}

.btn-retry {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-retry:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(239, 68, 68, 0.2) 100%);
  transform: translateY(-2px);
}

/* ===== LOADING STATE ===== */
.mp-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  gap: 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: rgba(139, 92, 246, 0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.mp-loader p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ===== TABLE ===== */
.mp-table-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 27, 75, 0.3) 100%);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-out;
}

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

.mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mp-table thead {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mp-table th {
  padding: 18px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-right: 1px solid rgba(139, 92, 246, 0.08);
}

.mp-table th:last-child {
  border-right: none;
}

.th-sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.th-sortable:hover {
  color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.05);
}

.th-right {
  text-align: right;
}

.sort-icon {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.4;
  font-size: 11px;
}

.sort-icon.active {
  opacity: 1;
  color: rgba(139, 92, 246, 0.8);
}

/* Table Rows */
.mp-table tbody tr {
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  transition: all 0.2s ease;
  position: relative;
}

.mp-table tbody tr::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mp-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.08);
}

.mp-table tbody tr:hover::before {
  opacity: 1;
}

.mp-table td {
  padding: 16px;
  color: var(--text);
  border-right: 1px solid rgba(139, 92, 246, 0.06);
}

.mp-table td:last-child {
  border-right: none;
}

.mp-symbol {
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mp-name {
  color: var(--muted);
  font-weight: 500;
}

.mp-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-align: right;
}

.mp-change {
  text-align: right;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mp-change.positive {
  color: #10b981;
}

.mp-change.negative {
  color: #ef4444;
}

.change-indicator {
  font-size: 12px;
  opacity: 0.7;
}

.mp-high,
.mp-low,
.mp-volume,
.mp-market-cap {
  text-align: right;
  opacity: 0.85;
}

.mp-empty-row:hover {
  background: transparent;
}

.mp-empty-cell {
  text-align: center;
  padding: 60px 16px !important;
  color: var(--muted);
  font-size: 15px;
}

/* Action Button */
.mp-action {
  text-align: right;
  padding: 16px 16px !important;
}

.btn-trade {
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-trade:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-trade:active {
  transform: translateY(0);
}

/* ===== INFO / STATS ===== */
.mp-info {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .markets-page-new {
    padding: 32px 16px;
  }

  .mp-header-content {
    flex-direction: column;
    gap: 24px;
  }

  .mp-header-content h1 {
    font-size: 36px;
  }

  .mp-controls {
    flex-direction: column;
    gap: 16px;
  }

  .mp-search-box {
    min-width: auto;
  }

  .mp-table {
    font-size: 13px;
  }

  .mp-table th,
  .mp-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 768px) {
  .markets-page-new {
    padding: 20px 12px;
  }

  .mp-header-content h1 {
    font-size: 28px;
  }

  .mp-header-controls {
    gap: 12px;
    justify-content: flex-start;
  }

  .mp-controls {
    gap: 12px;
  }

  .mp-table-wrapper {
    border-radius: 12px;
    overflow-x: auto;
  }

  .mp-table {
    min-width: 700px;
    font-size: 12px;
  }

  .mp-table th,
  .mp-table td {
    padding: 10px 8px;
  }

  .mp-symbol {
    font-size: 13px;
  }

  .mp-price {
    font-size: 13px;
  }

  .th-right {
    text-align: right;
  }
}
.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;
}

.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;
  }
}
.transactions-page { padding: 20px; max-width: 1100px; margin: 0 auto; }
.transactions-page h1 { font-size: 26px; margin-bottom: 6px; }
.transactions-page .muted { color: rgba(var(--text-rgb), 0.6); margin-bottom: 18px; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx-table th, .tx-table td { padding: 12px 14px; border-bottom: 1px solid rgba(var(--text-rgb), 0.06); }
.tx-table thead { background: rgba(var(--card-rgb), 0.6); }
.no-results { text-align:center; padding:28px; color: rgba(var(--text-rgb), 0.5); }
.loading { text-align:center; padding:36px; color: rgba(var(--text-rgb), 0.6); }
@media (max-width:768px){ .transactions-page { padding: 16px; } .tx-table th, .tx-table td { padding: 10px 8px; } }.settings-page {
  padding: 20px 20px 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.settings-page h1 {
  font-size: 2em;
  margin: 0 0 30px 0;
  color: var(--text);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.settings-section {
  background: rgba(var(--card-rgb), 0.05);
  border: 1px solid rgba(var(--text-rgb), 0.1);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.settings-section h2 {
  font-size: 1.2em;
  margin: 0 0 20px 0;
  color: var(--text);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
}

.profile-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

profile-item label {
  font-size: 0.85em;
  color: rgba(var(--text-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-item p {
  margin: 0;
  font-size: 1em;
  color: var(--text);
}

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

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9em;
}

.form label span {
  color: rgba(var(--text-rgb), 0.8);
  font-weight: 500;
}

.form input {
  padding: 10px 12px;
  background: rgba(var(--card-rgb), 0.05);
  border: 1px solid rgba(var(--text-rgb), 0.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9em;
  transition: all 0.2s;
}

.form input:focus {
  outline: none;
  background: rgba(var(--card-rgb), 0.1);
  border-color: var(--accent);
}

.form input::placeholder,
.form textarea::placeholder,
.form select::placeholder {
  color: rgba(var(--text-rgb), 0.4);
  font-size: 0.9em;
  opacity: 1;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: rgba(var(--card-rgb), 0.05);
}

.checkbox-label input {
  width: auto;
  cursor: pointer;
}

.checkbox-label span {
  color: var(--text);
}

.api-keys {
  grid-column: 1 / -1;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.api-table th,
.api-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.1);
}

.api-table th {
  font-weight: 600;
  color: rgba(var(--text-rgb), 0.7);
  font-size: 0.85em;
  text-transform: uppercase;
}

.api-table td {
  color: var(--text);
}

.api-table code {
  background: rgba(var(--card-rgb), 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
  color: rgba(var(--text-rgb), 0.8);
}

.btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  align-self: flex-start;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85em;
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 80%, black 20%);
}

.muted {
  color: rgba(var(--text-rgb), 0.6);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .settings-page {
    padding: 15px 15px 100px 15px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .api-keys {
    grid-column: 1;
  }

  .api-table {
    font-size: 0.85em;
  }

  .api-table th,
  .api-table td {
    padding: 8px;
  }
}

/* Banking & Registration specific input styles */
.banking-form,
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banking-form label,
.registration-form label {
  font-size: 0.9em;
  color: rgba(var(--text-rgb), 0.8);
}

.banking-form input,
.registration-form input,
.banking-form select,
.registration-form select,
.banking-form textarea,
.registration-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--text-rgb), 0.14);
  background: rgba(var(--card-rgb), 0.04);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  color: var(--text);
  font-size: 0.95em;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}

.banking-form input:focus,
.registration-form input:focus,
.banking-form select:focus,
.registration-form select:focus,
.banking-form textarea:focus,
.registration-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateY(-1px);
  outline: none;
}

.banking-form .hint,
.registration-form .hint {
  font-size: 0.85em;
  color: rgba(var(--text-rgb), 0.6);
}

@media (max-width: 768px) {
  .banking-form input,
  .registration-form input {
    padding: 10px 12px;
    font-size: 0.95em;
  }
}

/* Banking & Verification Layout */
.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .bank-grid {
    grid-template-columns: 1fr;
  }
}

.banking-card {
  padding: 20px;
  background: rgba(var(--card-rgb), 0.05);
  border-radius: 12px;
  border: 1px solid rgba(var(--text-rgb), 0.1);
}

.banking-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: var(--text);
}

/* Danger Zone */
.danger-zone {
  margin-top: 30px;
  border-color: rgba(var(--danger-rgb), 0.2);
  background: rgba(var(--danger-rgb), 0.02);
}

.danger-zone h2 {
  color: var(--danger);
}

.danger-zone .muted {
  color: rgba(var(--danger-rgb), 0.7);
}.help-page {
  padding: 20px 20px 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.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;
  }
}
.chat-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-color, #007bff);
  color: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.notification-icon {
  font-size: 18px;
}

.notification-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  animation: overlayFade 0.3s ease;
}

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

.chat-container {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  height: 85%;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  animation: slideUpScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpScale {
  from {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.chat-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #667eea;
  font-weight: 500;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: statusBounce 2s ease-in-out infinite;
}

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

.chat-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.chat-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #2c3e50;
}

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

/* ==================== CONVERSATIONS LIST ==================== */
.conversations-list {
  width: 320px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  overflow: hidden;
}

.conversations-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conversations-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.search-conversations {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 13px;
  background: white;
}

.search-conversations:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.conversation-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.conversation-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.conversation-item:hover {
  background: linear-gradient(135deg,rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.conversation-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid #667eea;
  padding-left: 12px;
}

.conversation-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
}

.unread-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  animation: badgePuls 0.6s ease;
}

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

.conversation-preview {
  color: #6b7280;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-conversations {
  color: #9ca3af;
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* ==================== MESSAGES AREA ==================== */
.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

.messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar {
  width: 8px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* ==================== MESSAGE TIMESTAMP SEPARATOR ==================== */
.message-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
  color: #9ca3af;
}

.message-date-separator::before,
.message-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* ==================== MESSAGE BUBBLES ==================== */
.message-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.message {
  display: flex;
  gap: 12px;
  animation: messageSlideIn 0.3s ease;
}

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

.user-message {
  justify-content: flex-end;
}

.admin-message {
  justify-content: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.message-avatar.user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message-avatar.admin {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 65%;
}

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

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.message-content:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.user-message .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px 4px 20px 20px;
}

.admin-message .message-content {
  background: linear-gradient(to right, #f8f9fa, #f3f4f6);
  color: #2c3e50;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px 20px 20px 20px;
}

.message-time {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  padding: 0 4px;
}

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

/* ==================== TYPING INDICATOR ==================== */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: #f3f4f6;
  border-radius: 16px;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typingBounce 1.4s infinite;
}

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

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

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

/* ==================== MESSAGE INPUT ==================== */
.message-input {
  display: flex;
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  gap: 12px;
  background: white;
  border-radius: 0 0 20px 20px;
}

.message-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.message-input-wrapper:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.message-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: #2c3e50;
}

.message-input input::placeholder {
  color: #9ca3af;
}

.message-input button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.message-input button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .chat-container {
    width: 95%;
    height: 90%;
    max-width: calc(100% - 20px);
  }

  .conversations-list {
    width: 200px;
  }

  .message-body {
    max-width: 80%;
  }

  .chat-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .chat-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .chat-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .conversations-list {
    width: 160px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }

  .message-body {
    max-width: 88%;
  }

  .chat-header {
    padding: 16px;
  }

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

  .message-input {
    padding: 12px;
    gap: 8px;
  }

  .messages-container {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .conversations-list {
    display: none;
  }

  .chat-container {
    max-width: 100%;
  }

  .message-body {
    max-width: 95%;
  }

  .message-content {
    padding: 10px 14px;
    font-size: 13px;
  }

  .chat-header h3 {
    font-size: 15px;
  }

  .message-time {
    font-size: 11px;
  }
}.admin-page {
  min-height: 100vh;
  background: var(--bg);
}

.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;
  }
}
.admin-chat-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.chat-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.chat-stats {
  display: flex;
  gap: 15px;
}

.chat-stats .stat {
  padding: 5px 10px;
  background: var(--card);
  border-radius: 15px;
  font-size: 14px;
  color: var(--text-secondary, #ccc);
}

.chat-stats .stat.connected {
  color: #10b981;
  font-weight: bold;
}

.chat-stats .stat.disconnected {
  color: #ef4444;
  font-weight: bold;
}

/* Error Banner */
.error-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fecaca;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #7f1d1d;
  font-size: 14px;
}

.error-banner strong {
  margin-right: 8px;
  font-weight: 600;
}

.close-error {
  background: none;
  border: none;
  color: #7f1d1d;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-error:hover {
  opacity: 1;
  font-size: 14px;
  color: var(--muted);
}

.chat-content {
  display: flex;
  height: calc(100vh - 200px);
  gap: 20px;
}

.conversations-list {
  width: 350px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.conversations-header {
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.conversations-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.no-conversations {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.conversation-item {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--card);
}

.conversation-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.conversation-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.conversation-preview {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.conversation-meta .time {
  color: var(--muted);
  font-size: 11px;
}

.unread-count {
  background: var(--accent);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
}

.chat-messages {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

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

.messages-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

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

.status-select {
  padding: 5px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
}

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

.messages-container {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  display: flex;
  margin-bottom: 10px;
}

.user-message {
  justify-content: flex-start;
}

.admin-message {
  justify-content: flex-end;
}

.message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
}

.user-message .message-content {
  background: var(--card);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.admin-message .message-content {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-sender {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  opacity: 0.8;
}

.message-text {
  word-wrap: break-word;
  line-height: 1.4;
  margin-bottom: 5px;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
}

.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

.message-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.message-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}

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

.message-input button {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.message-input button:hover:not(:disabled) {
  background: var(--accent-light);
}

.message-input button:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.no-conversation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #ccc);
  text-align: center;
  padding: 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .chat-content {
    flex-direction: column;
    height: auto;
  }

  .conversations-list {
    width: 100%;
    height: 300px;
  }

  .chat-messages {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .admin-chat-page {
    padding: 10px;
  }

  .chat-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .chat-stats {
    width: 100%;
    justify-content: space-between;
  }

  .messages-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .conversation-actions {
    width: 100%;
  }

  .status-select {
    flex: 1;
  }
}

/* Mobile conversations view - full screen conversations list */
.mobile-conversations-view {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.mobile-conversations-view .conversations-list {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0;
}

/* Mobile messages view - full screen with input at bottom */
.mobile-messages-view {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.mobile-messages-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 12px;
}

.mobile-messages-header .back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--accent);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mobile-messages-header .back-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
}

.mobile-messages-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.mobile-messages-header .conversation-actions {
  margin-left: auto;
}

.mobile-messages-view .chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  border-radius: 0;
}

.mobile-messages-view .messages-container {
  flex: 1;
  overflow-y: auto;
}

/* Mobile input area positioned at bottom */
.mobile-message-input {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 1001;
  display: flex;
  gap: 8px;
}

.mobile-message-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.mobile-message-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.mobile-message-input button {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-message-input button:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.mobile-message-input button:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}.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;
}
