/* ==========================================================================
   MemeForge - Modern Light Web3 SaaS Theme
   Clean, Premium, High-Contrast Light Design System
   ========================================================================== */

:root {
  /* Brand & Web3 Accents */
  --mf-primary: #4f46e5;
  --mf-primary-hover: #4338ca;
  --mf-primary-light: #eef2ff;
  --mf-primary-subtle: rgba(79, 70, 229, 0.08);

  --mf-accent-emerald: #10b981;
  --mf-accent-emerald-light: #ecfdf5;
  --mf-accent-rose: #f43f5e;
  --mf-accent-rose-light: #fff1f2;
  --mf-accent-amber: #f59e0b;
  --mf-accent-amber-light: #fffbeb;
  --mf-accent-cyan: #06b6d4;
  --mf-accent-purple: #8b5cf6;

  /* Surfaces & Backgrounds (Strictly Light Theme) */
  --mf-bg-main: #f8fafc;
  --mf-bg-card: #ffffff;
  --mf-bg-card-hover: #fcfcfd;
  --mf-bg-surface: #f1f5f9;
  --mf-bg-surface-alt: #f8fafc;
  
  /* Borders */
  --mf-border: #e2e8f0;
  --mf-border-focus: #c7d2fe;
  --mf-border-subtle: #f1f5f9;

  /* Typography */
  --mf-text-main: #0f172a;
  --mf-text-secondary: #475569;
  --mf-text-muted: #94a3b8;
  --mf-text-white: #ffffff;

  /* Shadows */
  --mf-shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --mf-shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.07), 0 1px 2px -1px rgba(16, 24, 40, 0.05);
  --mf-shadow-md: 0 4px 16px -2px rgba(16, 24, 40, 0.06), 0 2px 6px -2px rgba(16, 24, 40, 0.03);
  --mf-shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 8px -2px rgba(16, 24, 40, 0.03);
  --mf-shadow-card: 0 10px 30px -10px rgba(79, 70, 229, 0.06);

  /* Radii */
  --mf-radius-sm: 8px;
  --mf-radius-md: 12px;
  --mf-radius-lg: 16px;
  --mf-radius-xl: 20px;
  --mf-radius-pill: 9999px;

  /* Layout */
  --mf-sidebar-width: 260px;
  --mf-sidebar-collapsed-width: 80px;
  --mf-topbar-height: 70px;
}

/* Base resets & typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--mf-bg-main);
  color: var(--mf-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

code, .font-monospace {
  font-family: 'JetBrains Mono', monospace !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Primary buttons & styling */
.btn-mf-primary {
  background-color: var(--mf-primary);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid var(--mf-primary);
  border-radius: var(--mf-radius-md);
  padding: 0.625rem 1.25rem;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-mf-primary:hover {
  background-color: var(--mf-primary-hover);
  border-color: var(--mf-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.btn-mf-primary:active {
  transform: translateY(0);
}

.btn-mf-outline {
  background-color: #ffffff;
  color: var(--mf-text-main);
  font-weight: 600;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 0.625rem 1.25rem;
  box-shadow: var(--mf-shadow-xs);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-mf-outline:hover {
  background-color: var(--mf-bg-surface);
  border-color: #cbd5e1;
  color: var(--mf-text-main);
  transform: translateY(-1px);
}

.btn-mf-subtle {
  background-color: var(--mf-primary-light);
  color: var(--mf-primary);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--mf-radius-md);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}
.btn-mf-subtle:hover {
  background-color: #e0e7ff;
  color: var(--mf-primary-hover);
}

/* Card components */
.mf-card {
  background-color: var(--mf-bg-card);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  box-shadow: var(--mf-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.mf-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--mf-shadow-md);
  border-color: #cbd5e1;
}

.mf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--mf-radius-pill);
}
.mf-badge-primary {
  background-color: var(--mf-primary-light);
  color: var(--mf-primary);
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.mf-badge-success {
  background-color: var(--mf-accent-emerald-light);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.mf-badge-danger {
  background-color: var(--mf-accent-rose-light);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.mf-badge-warning {
  background-color: var(--mf-accent-amber-light);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.mf-badge-neutral {
  background-color: var(--mf-bg-surface);
  color: var(--mf-text-secondary);
  border: 1px solid var(--mf-border);
}

/* Navigation - Public Navbar */
.public-navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mf-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.2s ease;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mf-text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}
.nav-link {
  font-weight: 500;
  color: var(--mf-text-secondary);
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--mf-radius-md);
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--mf-primary);
  background-color: var(--mf-primary-subtle);
}

/* Landing Page Hero */
.hero-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid var(--mf-border);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mf-primary-light);
  color: var(--mf-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--mf-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.15);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--mf-text-main);
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  color: var(--mf-primary);
  position: relative;
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--mf-text-secondary);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 2rem;
}

/* Hero Live Coin Generator Mockup Card */
.hero-mockup-card {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.8);
  padding: 1.75rem;
  position: relative;
}
.floating-network-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-pill);
  padding: 0.4rem 0.85rem;
  box-shadow: var(--mf-shadow-md);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mf-text-main);
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mf-accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Stat Counters */
.stat-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mf-border);
  margin-top: 2.5rem;
}
.stat-item-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mf-text-main);
  line-height: 1.2;
}
.stat-item-label {
  font-size: 0.85rem;
  color: var(--mf-text-secondary);
  font-weight: 500;
}

/* Network Pills */
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--mf-radius-pill);
  border: 1px solid var(--mf-border);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mf-text-secondary);
  box-shadow: var(--mf-shadow-xs);
  transition: all 0.2s ease;
}
.network-pill:hover, .network-pill.active {
  border-color: var(--mf-primary);
  background: var(--mf-primary-light);
  color: var(--mf-primary);
}
.network-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Section Header styling */
.section-tag {
  color: var(--mf-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--mf-text-main);
  margin-bottom: 0.85rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--mf-text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* Features Grid */
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--mf-radius-md);
  background: var(--mf-primary-light);
  color: var(--mf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Step Card in How it Works */
.how-step-card {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  box-shadow: var(--mf-shadow-sm);
  transition: all 0.2s ease;
}
.how-step-card:hover {
  border-color: var(--mf-primary);
  transform: translateY(-3px);
  box-shadow: var(--mf-shadow-md);
}
.step-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mf-primary-light);
  color: var(--mf-primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Pricing Cards */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  padding: 2.25rem;
  height: 100%;
  position: relative;
  box-shadow: var(--mf-shadow-sm);
  transition: all 0.2s ease;
}
.pricing-card.popular {
  border-color: var(--mf-primary);
  box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.15);
}
.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mf-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--mf-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Dashboard Shell Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--mf-bg-main);
  position: relative;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--mf-sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--mf-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-header {
  height: var(--mf-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--mf-border);
}
.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
}
.sidebar-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mf-text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.85rem;
  border-radius: var(--mf-radius-md);
  color: var(--mf-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.sidebar-link i {
  font-size: 1.2rem;
  color: #64748b;
  transition: all 0.15s ease;
}
.sidebar-link:hover {
  background-color: var(--mf-bg-surface);
  color: var(--mf-text-main);
}
.sidebar-link:hover i {
  color: var(--mf-primary);
}
.sidebar-link.active {
  background-color: var(--mf-primary-light);
  color: var(--mf-primary);
}
.sidebar-link.active i {
  color: var(--mf-primary);
}
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--mf-border);
  background: #ffffff;
}

/* Dashboard Main Wrapper */
.dashboard-main-wrapper {
  margin-left: var(--mf-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Topbar */
.dashboard-topbar {
  height: var(--mf-topbar-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--mf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1010;
}
.topbar-search-box {
  position: relative;
  width: 280px;
}
.topbar-search-box input {
  padding-left: 2.35rem;
  border-radius: var(--mf-radius-pill);
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  font-size: 0.85rem;
  height: 38px;
}
.topbar-search-box input:focus {
  background: #ffffff;
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.topbar-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mf-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Network Selector Dropdown */
.network-select-btn {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mf-text-main);
  box-shadow: var(--mf-shadow-xs);
}
.network-select-btn:hover {
  border-color: #cbd5e1;
  background: var(--mf-bg-surface);
}

.wallet-balance-chip {
  background: var(--mf-bg-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mf-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dashboard Content Area */
.dashboard-content {
  padding: 1.75rem;
  flex: 1;
}

/* Metric Cards */
.metric-card {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--mf-shadow-xs);
  transition: all 0.2s ease;
  position: relative;
}
.metric-card:hover {
  box-shadow: var(--mf-shadow-md);
  border-color: #cbd5e1;
}
.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--mf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mf-text-main);
  line-height: 1.2;
  margin: 0.4rem 0 0.2rem;
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--mf-text-secondary);
}

/* Multi-Step Generator Stepper */
.generator-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}
.stepper-progress-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--mf-border);
  z-index: 1;
}
.stepper-progress-fill {
  height: 100%;
  background: var(--mf-primary);
  transition: width 0.3s ease;
  width: 16.66%;
}
.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--mf-border);
  color: var(--mf-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--mf-shadow-xs);
  transition: all 0.2s ease;
}
.step-item.active .step-circle {
  border-color: var(--mf-primary);
  background: var(--mf-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}
.step-item.completed .step-circle {
  border-color: var(--mf-accent-emerald);
  background: var(--mf-accent-emerald);
  color: #ffffff;
}
.step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mf-text-secondary);
  white-space: nowrap;
}
.step-item.active .step-title {
  color: var(--mf-primary);
  font-weight: 700;
}

/* Live Coin Preview Card in Step 1 */
.live-coin-preview {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  overflow: hidden;
  box-shadow: var(--mf-shadow-md);
  position: sticky;
  top: 90px;
}
.preview-banner {
  height: 110px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: var(--mf-shadow-md);
  object-fit: cover;
  position: absolute;
  bottom: -36px;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--mf-primary);
}

/* Blockchain Select Card */
.blockchain-select-card {
  background: #ffffff;
  border: 2px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blockchain-select-card:hover {
  border-color: #cbd5e1;
  background: var(--mf-bg-surface-alt);
  transform: translateY(-1px);
}
.blockchain-select-card.selected {
  border-color: var(--mf-primary);
  background: var(--mf-primary-light);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Tokenomics Allocation Sliders */
.tokenomics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mf-border-subtle);
}
.tokenomics-row:last-child {
  border-bottom: none;
}
.tokenomics-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* Form Controls Customization */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mf-text-main);
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  color: var(--mf-text-main);
  background-color: #ffffff;
  transition: all 0.15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--mf-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background-color: #ffffff;
}
.form-check-input:checked {
  background-color: var(--mf-primary);
  border-color: var(--mf-primary);
}

/* Range input styling */
.form-range::-webkit-slider-thumb {
  background-color: var(--mf-primary);
}
.form-range::-webkit-slider-thumb:active {
  background-color: var(--mf-primary-hover);
}

/* Custom Table Styles */
.mf-table-wrap {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  box-shadow: var(--mf-shadow-xs);
}
.table {
  margin-bottom: 0;
  vertical-align: middle;
}
.table thead th {
  background: #f8fafc;
  color: var(--mf-text-secondary);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--mf-border);
  white-space: nowrap;
}
.table tbody td {
  padding: 1rem 1.25rem;
  color: var(--mf-text-main);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--mf-border-subtle);
}
.table tbody tr:hover td {
  background-color: #f8fafc;
}

/* Coin Card for Explore / Grid */
.coin-grid-card {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-lg);
  padding: 1.35rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--mf-shadow-xs);
}
.coin-grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--mf-primary);
  box-shadow: var(--mf-shadow-md);
}
.coin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--mf-border);
}

/* Filter pills */
.filter-btn-group .btn {
  border-radius: var(--mf-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  color: var(--mf-text-secondary);
  border: 1px solid var(--mf-border);
  background: #ffffff;
}
.filter-btn-group .btn.active, .filter-btn-group .btn:hover {
  background: var(--mf-primary-light);
  color: var(--mf-primary);
  border-color: var(--mf-primary);
}

/* Success Modal & Screen */
.success-check-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mf-accent-emerald-light);
  color: var(--mf-accent-emerald);
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.15);
}

/* QR Code Display Container */
.qr-code-box {
  width: 140px;
  height: 140px;
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Custom Modals */
.modal-content {
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-xl);
  box-shadow: var(--mf-shadow-lg);
  background: #ffffff;
  overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid var(--mf-border);
  padding: 1.25rem 1.5rem;
  background: #ffffff;
}
.modal-footer {
  border-top: 1px solid var(--mf-border);
  padding: 1rem 1.5rem;
  background: var(--mf-bg-main);
}

/* Toast Container */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mf-toast {
  background: #ffffff;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--mf-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Preset Logo Chips in Step 1 */
.preset-logo-chip {
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--mf-radius-pill);
  border: 1px solid var(--mf-border);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}
.preset-logo-chip:hover, .preset-logo-chip.active {
  border-color: var(--mf-primary);
  background: var(--mf-primary-light);
  color: var(--mf-primary);
}

/* Responsive Offcanvas & Mobile Tweaks */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  .dashboard-sidebar.show {
    transform: translateX(0);
  }
  .dashboard-main-wrapper {
    margin-left: 0;
  }
  .topbar-search-box {
    width: 180px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .dashboard-content {
    padding: 1rem;
  }
  .topbar-search-box {
    display: none;
  }
  .generator-stepper .step-title {
    display: none;
  }
}
