@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0D0B14;
  --bg-secondary: #121018;
  --bg-card: #1A1820;
  --bg-card-hover: #221F2C;
  --bg-input: #14121B;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #B794F6;
  
  --accent-purple: #B794F6;
  --accent-purple-light: #C4B5FD;
  --accent-lavender: #A78BFA;
  --accent-purple-glow: rgba(183, 148, 246, 0.28);
  
  --accent-green: #A78BFA;
  --accent-green-dark: #8B5CF6;
  --accent-green-glow: rgba(167, 139, 250, 0.28);
  --accent-red: #F87171;
  --accent-red-glow: rgba(248, 113, 113, 0.22);
  --accent-blue: #60A5FA;
  --accent-yellow: #FBBF24;

  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-card: 22px;
  --radius-full: 9999px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
  Universal reset. Kept inside the CSS "base" cascade layer on purpose:
  the Tailwind utility layer (imported in resources/css/app.css) must be
  allowed to override margin/padding utilities (e.g. lg:mx-auto, mb-4),
  otherwise the unlayered reset silently defeats every non-important
  spacing utility in the markup.
*/
@layer base {
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Full-page ambient glow: fixed layer that fades smoothly into the base
   color, so the gradient never stops with a hard edge partway down. */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(1100px 540px at 88% -8%, rgba(167, 139, 250, 0.15) 0%, rgba(167, 139, 250, 0.04) 42%, transparent 64%),
    radial-gradient(900px 500px at -10% 112%, rgba(217, 70, 239, 0.09) 0%, rgba(217, 70, 239, 0.03) 45%, transparent 62%),
    radial-gradient(800px 420px at 50% 118%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
    var(--bg-primary);
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: none;
  text-decoration: none;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
  opacity: 0.88;
}

.btn-primary {
  background: var(--accent-purple);
  color: #0D0B14;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-purple-glow);
}
.btn-primary:hover {
  background: #C4B5FD;
  color: #0D0B14;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(183, 148, 246, 0.4);
}
.btn-primary:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-muted);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-red-glow);
}
.btn-danger:hover {
  background: #e11d48;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 106;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
padding: 14px 16px;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #6D28D9 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-green);
}

.search-box {
  position: relative;
  min-width: 260px;
}
.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--accent-green);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.active {
  display: block;
}
.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.search-item:hover {
  background: var(--bg-card-hover);
}

.user-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 1200px) {
  .header-container {
    gap: 16px;
  }
  .header-center {
    gap: 18px;
  }
  .search-box {
    min-width: 210px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 16px 40px;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title .highlight {
  color: var(--accent-green);
  text-shadow: 0 0 25px var(--accent-green-glow);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-mascot-img {
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(167, 139, 250, 0.25));
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1.5deg); }
}

/* Coins Grid & Cards */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 16px;
  width: 100%;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.coins-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .coins-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .coins-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .coins-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .coins-grid {
    grid-template-columns: 1fr;
  }
}

.coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}
.coin-card:hover {
  background: var(--bg-card-hover);
  border-color: #334155;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.coin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coin-meta {
  flex: 1;
  min-width: 0;
}
.coin-name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-ticker {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.coin-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.coin-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}

.badge-change {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.badge-change.up {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
}
.badge-change.down {
  color: var(--accent-red);
  background: rgba(255, 59, 105, 0.12);
}

.coin-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}
.stat-col {
  display: flex;
  flex-direction: column;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-weight: 600;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Coin Detail Page */
.coin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.coin-page-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.coin-page-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.coin-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 24px;
}

.coin-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.coin-detail-layout > div {
  min-width: 0;
}

/* Trading & Order Widget */
.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 18px;
}
.widget-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: var(--transition);
}
.widget-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.input-group {
  margin-bottom: 16px;
}
.input-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.input-field-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 10px;
}
.input-field-wrap:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px var(--accent-green-glow);
}
.input-field-wrap input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
}
.input-field-wrap select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

/* Deposit proof of funds upload */
.deposit-proof-input {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deposit-proof-input:hover {
  border-color: var(--accent-green) !important;
  background: rgba(74, 222, 128, 0.04) !important;
}

.deposit-proof-input::file-selector-button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deposit-proof-input::file-selector-button:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Recent Trades Table */
.trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.trades-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}
.trades-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trades-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.trade-buy {
  color: var(--accent-green);
  font-weight: 600;
}
.trade-sell {
  color: var(--accent-red);
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-green);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
}
.badge-danger {
  background: rgba(255, 59, 105, 0.15);
  color: var(--accent-red);
}
.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* Admin Dashboard Layout */
.admin-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.admin-menu-item a:hover, .admin-menu-item.active a {
  background: var(--bg-card);
  color: var(--accent-green);
}
.admin-main {
  padding: 30px;
  overflow-y: auto;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--text-primary);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}
.alert-error {
  background: rgba(255, 59, 105, 0.12);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer-links-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 26px;
}
.footer-links-row a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}
.footer-links-row a:hover {
  color: var(--text-primary);
}
.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer-social:hover {
  color: var(--accent-green);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 12px var(--accent-green-glow);
  transform: translateY(-2px);
}

/* ===== Coin leaderboard (home) ===== */
.coin-leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.coin-leaderboard-row {
  display: grid;
  grid-template-columns: 34px 38px minmax(0, 1fr) auto auto 110px 18px;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.coin-leaderboard-row:last-child {
  border-bottom: none;
}
.coin-leaderboard-row:hover {
  background: var(--bg-card-hover);
}
.coin-leaderboard-row:hover .coin-leaderboard-arrow {
  color: var(--accent-green);
  transform: translateX(3px);
}
.coin-rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.coin-leaderboard-row:nth-child(-n + 3) .coin-rank {
  color: var(--accent-green);
  text-shadow: 0 0 10px var(--accent-green-glow);
}
.coin-leaderboard-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.coin-leaderboard-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.coin-leaderboard-title {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-leaderboard-ticker {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.coin-leaderboard-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}
.coin-leaderboard-mcap {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}
.coin-leaderboard-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

@media (max-width: 640px) {
  .coin-leaderboard-row {
    grid-template-columns: 26px 34px minmax(0, 1fr) auto auto 14px;
    gap: 10px;
    padding: 11px 14px;
  }
  .coin-leaderboard-mcap {
    display: none;
  }
}

/* ===== Wallet page ===== */
.wallet-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.wallet-grid > div {
  min-width: 0;
}

/* Mobile: collapse the two-column wallet layout so nothing overflows the screen */
@media (max-width: 767px) {
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wallet-grid > div {
    min-width: 0;
    max-width: 100%;
  }
  .wallet-grid .widget-card {
    max-width: 100%;
  }
  .wallet-grid .input-field-wrap,
  .wallet-grid .input-group,
  .wallet-grid .wd-method-fields {
    min-width: 0;
  }
  .wallet-grid select,
  .wallet-grid input {
    max-width: 100%;
  }
}

/* ===== How it works ===== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.how-it-works-grid > div {
  min-width: 0;
}
@media (max-width: 560px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== User dashboard ===== */
.dashboard-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}
.dashboard-two-col > * {
  min-width: 0;
}
@media (max-width: 992px) {
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.quick-action i {
  font-size: 1.4rem;
  color: var(--accent-green);
  transition: transform 0.18s ease;
}
.quick-action:hover {
  color: var(--text-primary);
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.quick-action:hover i {
  transform: scale(1.15);
}

/* ===== Responsive = */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .coin-detail-layout {
    grid-template-columns: 1fr;
  }
  .admin-wrapper {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-mobile-topbar {
    display: flex !important;
  }
  .admin-main {
    padding: 20px 16px !important;
  }
  .admin-dashboard-mid-grid,
  .admin-dashboard-bot-grid,
  .admin-two-col {
    grid-template-columns: 1fr !important;
  }
}

/* Admin responsive helpers */
.admin-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-dashboard-mid-grid {
  grid-template-columns: 2fr 1fr;
}

.admin-dashboard-bot-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-two-col {
  grid-template-columns: 1fr 1fr;
}

.admin-form-grid {
  grid-template-columns: 1fr 1fr;
}

.admin-tri-grid {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
  .admin-form-grid,
  .admin-tri-grid {
    grid-template-columns: 1fr !important;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .kpi-card {
    padding: 14px 12px !important;
    gap: 6px !important;
  }
  .kpi-title {
    font-size: 0.78rem !important;
  }
  .kpi-value {
    font-size: 1.35rem !important;
  }
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: block !important;
  }
  .admin-recent-coins-table th,
  .admin-recent-coins-table td {
    padding: 8px 10px !important;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .kpi-card {
    padding: 12px 10px !important;
  }
  .kpi-title {
    font-size: 0.72rem !important;
  }
  .kpi-value {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
  .header-center {
    display: none;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }
  .header-container .brand {
    min-width: 0;
  }
  .header-container .brand > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 36vw;
  }
  .user-nav-actions {
    gap: 8px;
    min-width: 0;
  }
  .user-nav-actions .btn {
    padding: 8px 13px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .user-nav-actions .btn {
    padding: 7px 11px;
    font-size: 0.76rem;
  }
  .user-nav-actions .btn i {
    font-size: 0.72rem;
  }
}

/* ===== Live buy notification toasts (frontpage) ===== */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 48px));
}
.buy-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.35s ease;
}
.buy-toast-leaving {
  animation: toastOut 0.4s ease forwards;
}
.buy-toast-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.buy-toast-body {
  flex: 1;
  min-width: 0;
}
.buy-toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-trader {
  color: var(--accent-blue);
}
.buy-toast-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
}
.buy-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px;
}
.buy-toast-close:hover {
  color: var(--text-primary);
}

/* ===== Live price flash on the frontpage ===== */
.flash-up {
  animation: flashUp 1.2s ease;
}
.flash-down {
  animation: flashDown 1.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}
@keyframes flashUp {
  0%   { color: #4ADE80; text-shadow: 0 0 12px rgba(74, 222, 128, 0.25); }
  100% { color: inherit; text-shadow: none; }
}
@keyframes flashDown {
  0%   { color: var(--accent-red); text-shadow: 0 0 12px var(--accent-red-glow); }
  100% { color: inherit; text-shadow: none; }
}
@media (max-width: 640px) {
  .toast-stack {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
}

/* ===== Alpine.js ===== */
[x-cloak] {
  display: none !important;
}

/* ===== Branding ===== */
.brand-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Mobile bottom navigation ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 10px 4px 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.bottom-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.bottom-nav-item.active {
  color: var(--accent-green);
}
.bottom-nav-item.active i {
  transform: translateY(-1px);
  text-shadow: 0 0 12px var(--accent-green-glow);
}
.bottom-nav-item:hover {
  color: var(--text-primary);
}
@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
  }
}

/* ===== Mobile drawer ===== */
.drawer-panel {
  background: #101828 !important;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: background 0.15s ease;
}
.drawer-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Futuristic accents ===== */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  vertical-align: middle;
}
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(59, 130, 246, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* ===== Coin page: order flow & live stats ===== */
.pressure-track {
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 59, 105, 0.18);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.pressure-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #B794F6, #A78BFA);
  box-shadow: 0 0 14px var(--accent-green-glow);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.flow-stat {
  flex: 1;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
}
.flow-row-new {
  animation: flowIn 0.5s ease;
  background: rgba(167, 139, 250, 0.06);
}
.price-flash-up {
  animation: priceFlashUp 1.2s ease;
}
.price-flash-down {
  animation: priceFlashDown 1.2s ease;
}
@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes priceFlashUp {
  0% {
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--accent-green-glow);
  }
  100% {
    color: var(--text-primary);
    text-shadow: none;
  }
}
@keyframes priceFlashDown {
  0% {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
  }
  100% {
    color: var(--text-primary);
    text-shadow: none;
  }
}

@media (max-width: 640px) {
  .coin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .coin-page-header > div:last-child {
    text-align: left;
    width: 100%;
  }
  .coin-page-title {
    flex-wrap: wrap;
  }
  .coin-page-avatar {
    width: 52px;
    height: 52px;
  }
  #priceChartCanvas {
    height: 260px !important;
  }
  .coin-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }
  .coin-stats-bar > div {
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
  }
.flow-stat span.stat-label {
    font-size: 0.68rem;
  }
}

/* Ultra-small screens: compact header so nothing overflows */
@media (max-width: 380px) {
  .header {
    padding: 10px 14px;
  }
  .header-container {
    gap: 8px;
  }
  .brand {
    font-size: 0.9rem;
    gap: 6px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .user-nav-actions {
    gap: 8px;
  }
  .user-nav-actions .btn-sm {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Mobile Admin Drawer & Navigation Redesign (High Visibility & Rich Dark UI)
   ========================================================================== */
.admin-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1099;
}

.admin-drawer-overlay[style*="display: none"],
.admin-drawer[style*="display: none"] {
  display: none !important;
}

.admin-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 84%;
  max-width: 320px;
  height: 100dvh;
  height: 100vh;
  background: linear-gradient(180deg, #0d121f 0%, #080b13 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(99, 102, 241, 0.08);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .admin-drawer,
  .admin-drawer-overlay {
    display: none !important;
  }
}

.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 21, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-drawer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.admin-drawer-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.admin-drawer-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.admin-drawer-subtitle {
  font-size: 0.73rem;
  color: #fbbf24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.admin-drawer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A78BFA;
  display: inline-block;
  box-shadow: 0 0 8px #A78BFA;
  animation: pulseDot 2s infinite ease-in-out;
}

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

.admin-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-drawer-close:hover,
.admin-drawer-close:active {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  transform: scale(1.05);
}

.admin-drawer-section-label {
  padding: 16px 20px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.admin-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-drawer-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
}

.admin-drawer-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.admin-drawer-item.active a {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.06) 100%);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.38);
  box-shadow: inset 3px 0 0 #6366f1, 0 4px 14px rgba(0, 0, 0, 0.2);
}

.admin-drawer-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.admin-drawer-item a:hover .admin-drawer-icon {
  transform: scale(1.1);
}

.admin-drawer-link-text {
  flex: 1;
}

.admin-drawer-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px #818cf8;
}

.admin-drawer-footer {
  margin-top: auto;
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 27, 0.9);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.admin-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-drawer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.admin-drawer-profile-info {
  flex: 1;
  min-width: 0;
}

.admin-drawer-profile-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-drawer-profile-role {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
  margin-top: 1px;
}

.admin-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-drawer-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.admin-drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.admin-drawer-logout {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.admin-drawer-logout:hover,
.admin-drawer-logout:active {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   DEX MOVERS MOBILE TRADING UI (Screenshot Replica)
   ========================================================================== */

.dex-screen {
  max-width: 600px;
  margin: 0 auto;
  background: #000000;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}

@media (max-width: 640px) {
  .dex-screen {
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: 100%;
  }
}

/* Header bar */
.dex-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px 16px;
  background: #000000;
}

.dex-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dex-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbcfe8, #f472b6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.dex-balance-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.dex-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dex-deposit-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 9999px;
  padding: 6px 18px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.dex-deposit-btn:hover {
  opacity: 0.9;
  color: #000000;
}

.dex-bell-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Tabs & Filter Bar */
.dex-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dex-tabs-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dex-star-icon {
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.dex-star-icon:hover {
  color: #f59e0b;
}

.dex-tab-item {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
  text-decoration: none;
}

.dex-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.dex-tabs-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.dex-tool-btn {
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Coin List & Rows */
.dex-coin-list {
  display: flex;
  flex-direction: column;
}

.dex-coin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #000000;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
  gap: 12px;
}

.dex-coin-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Left Avatar with corner badge */
.dex-avatar-box {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.dex-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  background: #0d1117;
  display: block;
  border: 1.5px solid var(--glow-color, #00e5ff);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.dex-corner-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  font-size: 0.62rem;
  font-weight: 800;
}

.dex-badge-r {
  background: #f97316;
  color: #ffffff;
}

.dex-badge-check {
  background: #A78BFA;
  color: #ffffff;
}

.dex-badge-pill {
  background: #A78BFA;
  color: #0D0B14;
}

.dex-badge-pencil {
  background: #a3e635;
  color: #000000;
}

/* Middle Column: Name, Ticker, Sprout, Audit */
.dex-coin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dex-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.dex-coin-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.dex-hot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 16px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.dex-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.2;
}

.dex-coin-ticker {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.dex-sprout-age {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #eab308;
  font-weight: 600;
  font-size: 0.72rem;
}

.dex-socials {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  font-size: 0.7rem;
}

.dex-social-icon {
  color: #cbd5e1;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
}

/* Line 3: Audit Chips */
.dex-audit-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.71rem;
  color: #A78BFA;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1px;
}

.dex-audit-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #4ADE80;
}

.dex-audit-item.danger {
  color: #ef4444;
}

/* Right Column: Metrics */
.dex-metrics-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.2;
}

.dex-mcap-vol-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.dex-label-dim {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.dex-val-white {
  color: #ffffff;
  font-weight: 800;
}

.dex-val-cyan {
  color: #38bdf8;
  font-weight: 800;
}

.dex-val-green {
  color: #A78BFA;
  font-weight: 800;
}

.dex-val-yellow {
  color: #eab308;
  font-weight: 800;
}

.dex-floor-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.dex-floor-val {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.dex-sol-bars {
  color: #38bdf8;
  font-size: 0.78rem;
}

/* Split buy/sell mini bar */
.dex-split-bar {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  display: flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.dex-bar-green {
  background: #A78BFA;
  height: 100%;
}

.dex-bar-red {
  background: #ef4444;
  height: 100%;
}

.dex-tx-line {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   DARK CRYPTO WALLET & TRADING APP DESIGN SYSTEM (3 CORE SCREENS)
   ========================================================================== */

/* Ambient Edge Glow Container */
.glow-backdrop-edges {
  position: relative;
  background-color: #0D0B14;
  background-image: 
    radial-gradient(circle at 0% 100%, rgba(167, 139, 250, 0.22) 0%, rgba(217, 70, 239, 0.14) 28%, rgba(249, 115, 22, 0.08) 50%, transparent 68%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.18) 0%, rgba(167, 139, 250, 0.14) 30%, rgba(249, 115, 22, 0.07) 50%, transparent 70%),
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.10) 0%, transparent 45%);
}

/* 3-Screen Panoramic Container */
.trio-showcase-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 16px 60px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1300px) {
  .trio-showcase-container {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Single Phone Container Frame */
.trio-showcase-container .crypto-phone-frame {
  width: 100%;
  max-width: 390px;
  min-width: 340px;
  min-height: 800px;
  background: #0D0B14;
  background-image: 
    radial-gradient(circle at 10% 100%, rgba(167, 139, 250, 0.18) 0%, rgba(217, 70, 239, 0.10) 30%, transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(236, 72, 153, 0.16) 0%, rgba(249, 115, 22, 0.08) 32%, transparent 60%);
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(167, 139, 250, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #F9FAFB;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 auto;
}

/* When viewed on full-screen pages */
.crypto-page-container {
  max-width: 440px;
  /* margin: 20px auto 40px; */
  padding: 0 10px;
}

@media (min-width: 768px) {
  .crypto-page-container.desktop-expanded {
    max-width: 520px;
  }
}

/* iOS Status Bar */
.ios-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #F9FAFB;
  user-select: none;
}

.ios-status-bar .status-time {
  font-size: 0.92rem;
  font-weight: 700;
}

.ios-status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

/* Universal Screen Inner Content */
.screen-content {
  flex: 1;
  padding: 10px 18px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ==========================================================================
   SCREEN 1: HOME / PORTFOLIO DASHBOARD
   ========================================================================== */

/* Screen 1 Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 4px;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(183, 148, 246, 0.4);
  background: #1A1820;
  flex-shrink: 0;
}

.dash-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-welcome-sub {
  font-size: 0.78rem;
  color: #9CA3AF;
  line-height: 1.2;
}

.dash-username {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-settings-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dash-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.dash-settings-btn:active {
  transform: scale(0.92);
}

/* Balance Hero Card */
.portfolio-balance-card {
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 22px 18px 24px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-balance-label {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-bottom: 8px;
  font-weight: 500;
}

.portfolio-balance-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #F9FAFB;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 22px;
}

/* Quick Actions Row */
.quick-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  user-select: none;
}

.quick-action-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #B794F6;
  color: #121018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(183, 148, 246, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.quick-action-item:hover .quick-action-circle {
  background: #C4B5FD;
  transform: translateY(-2px);
}

.quick-action-item:active .quick-action-circle {
  transform: scale(0.92);
  opacity: 0.9;
}

.quick-action-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #E5E7EB;
  text-align: center;
}

/* Segmented Tab Pills */
.segmented-tab-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.segmented-tab-row::-webkit-scrollbar {
  display: none;
}

.segmented-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #9CA3AF;
  user-select: none;
}

.segmented-pill.active {
  background: #B794F6;
  color: #0D0B14;
  border-color: #B794F6;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(183, 148, 246, 0.28);
}

.segmented-pill:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #F3F4F6;
}

.segmented-pill:active {
  transform: scale(0.95);
}

/* Section Headers */
.crypto-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.crypto-section-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #F9FAFB;
  letter-spacing: -0.2px;
}

.crypto-filter-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D1D5DB;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.crypto-filter-dropdown:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
}

/* Tracked Coin Cards (Screen 1 & Screen 3 explore) */
.tracked-coin-card {
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.tracked-coin-card:hover {
  background: #211E29;
  border-color: rgba(183, 148, 246, 0.2);
  transform: translateY(-1px);
}

.tracked-coin-card:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.coin-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coin-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.coin-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coin-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F9FAFB;
}

.coin-card-sub {
  font-size: 0.78rem;
  color: #9CA3AF;
}

.coin-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.coin-card-price {
  font-size: 0.96rem;
  font-weight: 700;
  color: #F9FAFB;
  font-family: 'Inter', -apple-system, sans-serif;
}

.coin-card-change {
  font-size: 0.82rem;
  font-weight: 700;
}

.coin-card-change.up {
  color: #4ADE80;
}

.coin-card-change.down {
  color: #F87171;
}

/* Activity Items (Screen 1) */
.activity-item-card {
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s ease, background 0.15s ease;
}

.activity-item-card:hover {
  background: #211E29;
}

.activity-item-card:active {
  transform: scale(0.98);
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #24222E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #F9FAFB;
  flex-shrink: 0;
}

.activity-desc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F9FAFB;
}

.activity-desc-sub {
  font-size: 0.76rem;
  color: #9CA3AF;
}

.activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.activity-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F9FAFB;
}

.activity-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #D1D5DB;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* ==========================================================================
   SCREEN 2: BUY/SELL MARKET SCREEN
   ========================================================================== */

/* Screen 2 Top Bar */
.market-nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-top: 4px;
}

.circular-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.circular-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.circular-back-btn:active {
  transform: scale(0.92);
}

/* Buy / Sell Tab Toggle */
.buy-sell-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
}

.buy-sell-tab-btn {
  background: none;
  border: none;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.buy-sell-tab-btn.active {
  color: #F9FAFB;
}

.buy-sell-tab-btn:not(.active) {
  color: #6B7280;
}

.buy-sell-tab-btn:not(.active):hover {
  color: #9CA3AF;
}

.buy-sell-tab-btn:active {
  transform: scale(0.96);
}

/* Currency Filter Chips */
.currency-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.currency-chips-row::-webkit-scrollbar {
  display: none;
}

.currency-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #F9FAFB;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.currency-chip-btn:hover, .currency-chip-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 148, 246, 0.35);
}

.currency-chip-btn:active {
  transform: scale(0.96);
}

.currency-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Exchange Repeating List (Flat rows with thin dividers) */
.exchange-list {
  display: flex;
  flex-direction: column;
}

.exchange-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.exchange-row-item:last-child {
  border-bottom: none;
}

.exchange-row-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exchange-initials-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #221F2C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #D1D5DB;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.exchange-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #F9FAFB;
}

.exchange-price-line {
  font-size: 0.88rem;
  color: #F9FAFB;
  font-weight: 600;
}

.exchange-change {
  font-size: 0.82rem;
  font-weight: 700;
  margin-left: 4px;
}

.exchange-change.up {
  color: #4ADE80;
}

.exchange-change.down {
  color: #F87171;
}

.exchange-rating-line {
  font-size: 0.78rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.exchange-rating-line .star-icon {
  color: #F59E0B;
  font-size: 0.8rem;
}

/* Purple Buy Pill Button */
.btn-buy-pill {
  background: #B794F6;
  color: #0D0B14;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(183, 148, 246, 0.28);
}

.btn-buy-pill:hover {
  background: #C4B5FD;
  box-shadow: 0 6px 18px rgba(183, 148, 246, 0.4);
}

.btn-buy-pill:active {
  transform: scale(0.94);
  opacity: 0.9;
}

/* ==========================================================================
   SCREEN 3: COIN DETAIL SCREEN
   ========================================================================== */

/* Screen 3 Header */
.coin-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 4px;
}

.coin-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-detail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coin-detail-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.coin-detail-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F9FAFB;
}

/* Price Hero */
.price-hero-section {
  text-align: center;
  margin-bottom: 22px;
}

.price-hero-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: #F9FAFB;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.price-hero-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.price-hero-change-pill.down {
  background: rgba(248, 113, 113, 0.12);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.25);
}

/* Timeframe Selector Pills */
.timeframe-selector-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.timeframe-pill-btn {
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B7280;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.timeframe-pill-btn.active {
  background: #252230;
  color: #F9FAFB;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeframe-pill-btn:not(.active):hover {
  color: #D1D5DB;
}

.timeframe-pill-btn:active {
  transform: scale(0.94);
}

/* Interactive Curved Area Chart */
.chart-interactive-card {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  user-select: none;
  cursor: crosshair;
}

.chart-interactive-card canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Tooltip floating bubble */
.chart-tooltip-bubble {
  position: absolute;
  background: #B794F6;
  color: #0D0B14;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 9999px;
  pointer-events: none;
  transform: translate(-50%, -100%);
  box-shadow: 0 4px 14px rgba(183, 148, 246, 0.4);
  white-space: nowrap;
  transition: left 0.05s ease, top 0.05s ease;
  z-index: 10;
}

.chart-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #B794F6 transparent transparent transparent;
}

/* Vertical guide line */
.chart-guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(183, 148, 246, 0.5);
  pointer-events: none;
  transition: left 0.05s ease;
  z-index: 5;
}

/* Chart X-Axis Date Labels */
.chart-dates-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 18px;
  font-size: 0.76rem;
  color: #6B7280;
  font-weight: 600;
}

.chart-dates-row .date-active {
  color: #F9FAFB;
  font-weight: 700;
}

/* 3-Column Stats Matrix Row */
.stats-three-col-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.stat-single-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-single-label {
  font-size: 0.78rem;
  color: #9CA3AF;
  font-weight: 500;
}

.stat-single-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F9FAFB;
  letter-spacing: -0.3px;
}

/* Other coins to explore wrapper card */
.other-coins-wrapper-card {
  margin-top: 6px;
}

/* Modals for Send, Receive, Swap, Add funds, Exchange Order */
.crypto-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.crypto-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.crypto-modal-box {
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(183, 148, 246, 0.1);
  color: #F9FAFB;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.crypto-modal-backdrop.open .crypto-modal-box {
  transform: translateY(0);
}

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

.crypto-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F9FAFB;
}

.crypto-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.crypto-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.crypto-input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crypto-input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9CA3AF;
}

.crypto-text-input {
  background: #121018;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  color: #F9FAFB;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.crypto-text-input:focus {
  border-color: #B794F6;
}

/* Floating bottom navigation dock */
.crypto-bottom-nav {
  position: sticky;
  bottom: 12px;
  margin: 16px auto 8px;
  width: calc(100% - 28px);
  max-width: 340px;
  background: rgba(26, 24, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.crypto-nav-dock-item {
  color: #9CA3AF;
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.crypto-nav-dock-item:hover, .crypto-nav-dock-item.active {
  color: #B794F6;
  transform: translateY(-1px);
}

/* ========================================================
   3-SCREEN DESIGN SYSTEM COMPONENTS (Dark Purple Theme)
   ======================================================== */

.crypto-page-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* padding: 24px 16px 60px; */
  min-height: calc(100vh - 80px);
  width: 100%;
}

.crypto-phone-frame {
  width: 100%;
  max-width: 430px;
  background-color: #0D0B14;
  background-image: 
    radial-gradient(circle at 10% 98%, rgba(167, 139, 250, 0.22) 0%, rgba(217, 70, 239, 0.14) 30%, transparent 65%),
    radial-gradient(circle at 90% 98%, rgba(236, 72, 153, 0.18) 0%, rgba(249, 115, 22, 0.12) 30%, transparent 65%),
    radial-gradient(circle at 50% 0%, rgba(183, 148, 246, 0.08) 0%, transparent 40%);
  background-repeat: no-repeat;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(183, 148, 246, 0.15);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* iOS Status Bar */
.ios-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F9FAFB;
  user-select: none;
}

.ios-status-bar .status-time {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.ios-status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #D1D5DB;
}

/* Screen Content Container */
.screen-content {
  padding: 10px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SCREEN 1: Dashboard Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 4px 0 8px;
}
.dash-header > div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(183, 148, 246, 0.4);
  box-shadow: 0 0 12px rgba(183, 148, 246, 0.25);
  background: #1A1820;
  flex-shrink: 0;
}

.dash-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-welcome-sub {
  font-size: 0.78rem;
  color: #9CA3AF;
  line-height: 1.2;
}

.dash-username {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F9FAFB;
}

.dash-settings-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.dash-settings-btn:hover {
  color: #B794F6;
  border-color: rgba(183, 148, 246, 0.3);
  transform: rotate(45deg);
}

/* Portfolio Balance Card */
.portfolio-balance-card {
  background: #1A1820;
  border-radius: 24px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.portfolio-balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183, 148, 246, 0.5), transparent);
}

.portfolio-balance-label {
  font-size: 0.85rem;
  color: #9CA3AF;
  font-weight: 500;
  margin-bottom: 6px;
}

.portfolio-balance-amount {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #F9FAFB;
  font-family: var(--font-main);
  margin-bottom: 20px;
}

/* Quick Action Circle Buttons */
.quick-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
}

.quick-action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #24222E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B794F6;
  font-size: 1.05rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-action-item:hover .quick-action-circle {
  background: #B794F6;
  color: #0D0B14;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 148, 246, 0.35);
}

.quick-action-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #9CA3AF;
  transition: color 0.15s ease;
}

.quick-action-item:hover .quick-action-label {
  color: #F9FAFB;
}

/* Segmented Tab Row */
.segmented-tab-row {
  display: flex;
  background: #14121A;
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
}

.segmented-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.segmented-pill.active, .segmented-pill:hover {
  background: #B794F6;
  color: #0D0B14;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(183, 148, 246, 0.3);
}

/* Section Header */
.crypto-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 2px;
}

.crypto-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #F9FAFB;
}

.crypto-filter-dropdown {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9CA3AF;
  background: #1A1820;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.crypto-filter-dropdown:hover {
  color: #B794F6;
  border-color: rgba(183, 148, 246, 0.3);
}

/* Tracked Coin Cards */
.tracked-coin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1820;
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tracked-coin-card:hover {
  background: #221F2C;
  border-color: rgba(183, 148, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.coin-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #25232D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px;
}

.coin-card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.coin-card-name-wrap {
  display: flex;
  flex-direction: column;
}

.coin-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F9FAFB;
  line-height: 1.25;
}

.coin-card-sub {
  font-size: 0.76rem;
  color: #9CA3AF;
}

.coin-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.coin-card-price {
  font-size: 0.96rem;
  font-weight: 700;
  color: #F9FAFB;
  font-family: var(--font-main);
}

.coin-card-change {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.coin-card-change.up {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
}

.coin-card-change.down {
  color: #F87171;
  background: rgba(248, 113, 113, 0.12);
}

/* Activity Items */
.activity-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1820;
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.activity-item-card:hover {
  background: #201D27;
  border-color: rgba(255, 255, 255, 0.1);
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #24222E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B794F6;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
}

.activity-desc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #F9FAFB;
  line-height: 1.25;
}

.activity-desc-sub {
  font-size: 0.72rem;
  color: #9CA3AF;
}

.activity-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.activity-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F9FAFB;
}

.activity-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.15);
  color: #4ADE80;
}

/* ========================================================
   SCREEN 2: Buy / Sell Market
   ======================================================== */

.market-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
}

.circular-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F9FAFB;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.circular-back-btn:hover {
  background: #24222E;
  color: #B794F6;
  border-color: rgba(183, 148, 246, 0.3);
}

.buy-sell-toggle {
  display: flex;
  background: #14121A;
  border-radius: 9999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.buy-sell-tab-btn {
  padding: 6px 20px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-sell-tab-btn.active {
  background: #B794F6;
  color: #0D0B14;
  box-shadow: 0 2px 10px rgba(183, 148, 246, 0.35);
}

/* Currency Filter Chips */
.currency-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.currency-chips-row::-webkit-scrollbar {
  display: none;
}

.currency-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 9999px;
  color: #D1D5DB;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.currency-chip-btn.active, .currency-chip-btn:hover {
  border-color: #B794F6;
  color: #F9FAFB;
  background: #24212D;
}

.currency-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Exchange List & Rows */
.exchange-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exchange-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1820;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.exchange-row-item:hover {
  background: #221F2C;
  border-color: rgba(183, 148, 246, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.exchange-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exchange-initials-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #2A2636;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #B794F6;
  flex-shrink: 0;
}

.exchange-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exchange-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F9FAFB;
}

.exchange-price-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: #D1D5DB;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exchange-change {
  font-size: 0.74rem;
  font-weight: 700;
}

.exchange-change.up {
  color: #4ADE80;
}

.exchange-change.down {
  color: #F87171;
}

.exchange-rating-line {
  font-size: 0.72rem;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.exchange-rating-line .star-icon {
  color: #FBBF24;
  font-size: 0.7rem;
}

.btn-buy-pill {
  background: #B794F6;
  color: #0D0B14;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(183, 148, 246, 0.35);
  transition: all 0.15s ease;
}

.btn-buy-pill:hover {
  background: #C4B5FD;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(183, 148, 246, 0.5);
}

/* ========================================================
   SCREEN 3: Coin Detail Screen
   ======================================================== */

.coin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.coin-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-title-group .coin-title-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #F9FAFB;
}

/* Asset Switcher Dropdown (Stocks / Coins) */
.asset-switcher {
  position: relative;
  flex: 1;
  min-width: 0;
}

.asset-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  max-width: 100%;
}

.asset-switcher-btn .coin-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.asset-switcher-chevron {
  font-size: 0.7rem;
  color: #9CA3AF;
  transition: transform 0.2s ease;
}

.asset-switcher-chevron-open {
  transform: rotate(180deg);
}

.asset-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 60;
  overflow: hidden;
}

.asset-switcher-panel-enter {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.asset-switcher-panel-enter-start {
  opacity: 0;
  transform: translateY(-6px);
}

.asset-switcher-panel-enter-end {
  opacity: 1;
  transform: translateY(0);
}

.asset-switcher-panel-leave {
  transition: opacity 0.12s ease;
}

.asset-switcher-panel-leave-start {
  opacity: 1;
}

.asset-switcher-panel-leave-end {
  opacity: 0;
}

.asset-switcher-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #0D0B14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.asset-switcher-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.asset-switcher-tab.active {
  background: #1A1820;
  color: #B794F6;
}

.asset-switcher-tab:hover {
  color: #E5E7EB;
}

.asset-switcher-body {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}

.asset-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.12s ease;
}

.asset-switcher-item:hover {
  background: rgba(183, 148, 246, 0.08);
}

.asset-switcher-item.active {
  background: rgba(183, 148, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(183, 148, 246, 0.35);
}

.asset-switcher-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #25232D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-switcher-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-switcher-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.asset-switcher-item-ticker {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F9FAFB;
}

.asset-switcher-item-name {
  font-size: 0.7rem;
  color: #9CA3AF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-switcher-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.asset-switcher-item-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F9FAFB;
  font-family: var(--font-mono, monospace);
}

.asset-switcher-item-change {
  font-size: 0.68rem;
  font-weight: 700;
}

.asset-switcher-item-change.up {
  color: #4ADE80;
}

.asset-switcher-item-change.down {
  color: #F87171;
}

.asset-switcher-item-change.flat {
  color: #9CA3AF;
}

.asset-switcher-empty {
  padding: 20px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .asset-switcher-panel {
    left: -8px;
  }
}

.coin-fav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coin-fav-btn:hover, .coin-fav-btn.active {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* Big Price Display */
.coin-big-price-card {
  padding: 8px 0 12px;
}

.coin-price-num {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #F9FAFB;
  line-height: 1.15;
  margin-bottom: 6px;
}

.coin-badge-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.coin-badge-change.up {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.12);
}

.coin-badge-change.down {
  color: #F87171;
  background: rgba(248, 113, 113, 0.12);
}

/* Interactive Chart Area */
.chart-timeframe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14121A;
  border-radius: 9999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.chart-tf-pill {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9CA3AF;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-tf-pill.active, .chart-tf-pill:hover {
  background: #B794F6;
  color: #0D0B14;
}

.chart-canvas-wrapper {
  position: relative;
  height: 240px;
  width: 100%;
  margin-bottom: 16px;
}

/* Stats Row / 2x2 Grid */
.stats-grid-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #1A1820;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-col-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-col-label {
  font-size: 0.72rem;
  color: #9CA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-col-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F9FAFB;
}

.btn-action-buy {
  flex: 1;
  background: #B794F6;
  color: #0D0B14;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 18px rgba(183, 148, 246, 0.4);
  transition: all 0.2s ease;
}

.btn-action-buy:hover {
  background: #C4B5FD;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 148, 246, 0.55);
}

.btn-action-sell {
  flex: 1;
  background: #221F2C;
  color: #F9FAFB;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-action-sell:hover {
  background: #2C2838;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Explore Other Coins */
.explore-coins-section {
  margin-top: 8px;
}

.explore-coins-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.explore-coins-scroll::-webkit-scrollbar {
  display: none;
}

.explore-coin-card {
  min-width: 140px;
  background: #1A1820;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.explore-coin-card:hover {
  background: #221F2C;
  border-color: rgba(183, 148, 246, 0.25);
  transform: translateY(-2px);
}

.explore-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explore-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
}

.explore-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-card-ticker {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F9FAFB;
}

.explore-card-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F9FAFB;
}

.explore-card-change {
  font-size: 0.72rem;
  font-weight: 700;
}

.explore-card-change.up {
  color: #4ADE80;
}

.explore-card-change.down {
  color: #F87171;
}

/* ==========================================================================
   MARKETING LANDING PAGE (Home)
   ========================================================================== */

.mk-wrap {
  --mk-lavender: #A78BFA;
  --mk-lavender-strong: #B794F6;
  --mk-lavender-light: #C4B5FD;
  --mk-purple: #8B5CF6;
  --mk-pink: #EC4899;
  --mk-orange: #F97316;
  --mk-card: rgba(255, 255, 255, 0.04);
  --mk-card-border: rgba(255, 255, 255, 0.09);
  position: relative;
}

/* ---------- Marketing navbar ---------- */
.mk-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 20, 0.65);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mk-nav.scrolled {
  background: rgba(13, 11, 20, 0.82);
  border-bottom-color: var(--border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.mk-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.mk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.mk-brand .brand-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.mk-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.mk-nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.mk-nav-links a:hover {
  color: var(--text-primary);
}
.mk-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  border: none;
  text-decoration: none;
  user-select: none;
}
.mk-btn:active {
  transform: scale(0.97);
}
.mk-btn-lavender {
  background: var(--mk-lavender-strong);
  color: #0D0B14;
  box-shadow: 0 4px 18px rgba(183, 148, 246, 0.35);
}
.mk-btn-lavender:hover {
  background: var(--mk-lavender-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(183, 148, 246, 0.5);
}
.mk-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.mk-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
}
.mk-btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}
.mk-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mk-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: #14121B !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.mk-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}
.mk-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background-color: black;
}
.mk-drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}
.mk-drawer-links a:hover {
  background: rgba(255, 255, 255, 0.05);
}
.mk-drawer-links a i {
  width: 22px;
  color: var(--mk-lavender);
}
.mk-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 26px;
  border-top: 1px solid var(--border-color);
  background-color: black;
}

/* ---------- Hero ---------- */
.mk-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 90px;
  overflow: hidden;
}
.glow-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 28%, rgba(167, 139, 250, 0.22) 0%, rgba(217, 70, 239, 0.1) 32%, transparent 58%),
    radial-gradient(circle at 92% 78%, rgba(236, 72, 153, 0.16) 0%, rgba(249, 115, 22, 0.08) 36%, transparent 62%),
    radial-gradient(circle at 8% 90%, rgba(139, 92, 246, 0.14) 0%, transparent 52%);
}
.mk-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
}
.mk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(183, 148, 246, 0.35);
  color: var(--mk-lavender-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}
.mk-hero-badge i {
  font-size: 0.75rem;
}
.mk-hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.8px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(92deg, var(--mk-lavender) 0%, var(--mk-pink) 55%, var(--mk-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mk-hero-sub {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 30px;
}
.mk-hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.mk-store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.mk-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mk-store-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}
.mk-store-badge i {
  font-size: 1.45rem;
  color: var(--mk-lavender);
}
.mk-store-badge small {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.mk-store-badge span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}
.mk-trust-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.mk-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}
.mk-trust-item i {
  color: var(--mk-lavender);
  font-size: 0.95rem;
}
.mk-trust-item strong {
  color: var(--text-primary);
}

/* ---------- Hero phone mockups ---------- */
.mk-hero-visual {
  position: relative;
  min-height: 560px;
}
.phone-stack {
  position: relative;
  width: 100%;
  height: 560px;
}
.phone {
  position: absolute;
  width: 258px;
  height: 530px;
  border-radius: 38px;
  background: #14121B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 40px rgba(167, 139, 250, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 92px;
  height: 22px;
  border-radius: 9999px;
  background: #0D0B14;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.phone-screen {
  flex: 1;
  overflow: hidden;
  padding: 34px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 15% 95%, rgba(236, 72, 153, 0.12) 0%, transparent 55%);
}
.phone-back {
  top: 8px;
  left: 12px;
  transform: rotate(-8deg);
  animation: phoneFloat 7s ease-in-out infinite;
}
.phone-mid {
  top: 26px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  z-index: 2;
  animation: phoneFloat 8s ease-in-out 1.2s infinite;
}
.phone-front {
  top: 14px;
  right: 12px;
  transform: rotate(6deg);
  z-index: 3;
  animation: phoneFloat 7.5s ease-in-out 0.6s infinite;
}
@keyframes phoneFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.phone-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A78BFA, #8B5CF6);
  display: grid;
  place-items: center;
  color: #0D0B14;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}
.phone-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.6rem;
  font-weight: 700;
  color: #D1D5DB;
}
.phone-balance {
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(183, 148, 246, 0.3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.phone-balance small {
  color: #9CA3AF;
  font-size: 0.6rem;
  font-weight: 600;
}
.phone-balance strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #F9FAFB;
}
.phone-balance .chg {
  font-size: 0.66rem;
  font-weight: 700;
  color: #A78BFA;
}
.phone-quick {
  display: flex;
  justify-content: space-between;
  padding: 2px 4px;
}
.phone-quick div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.52rem;
  color: #9CA3AF;
  font-weight: 600;
}
.phone-quick i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #B794F6;
  font-size: 0.72rem;
}
.phone-asset {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-asset .init {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #0D0B14;
  flex-shrink: 0;
}
.phone-asset .meta {
  flex: 1;
  min-width: 0;
}
.phone-asset .meta b {
  display: block;
  font-size: 0.68rem;
  color: #F9FAFB;
}
.phone-asset .meta span {
  font-size: 0.55rem;
  color: #6B7280;
  font-weight: 600;
}
.phone-asset .val {
  text-align: right;
}
.phone-asset .val b {
  display: block;
  font-size: 0.68rem;
  color: #F9FAFB;
  font-family: var(--font-mono);
}
.phone-asset .val span {
  font-size: 0.58rem;
  font-weight: 700;
}
.phone-asset .val .up { color: #4ADE80; }
.phone-asset .val .down { color: #F87171; }
.phone-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #F9FAFB;
}
.phone-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #F9FAFB;
  line-height: 1.1;
}
.phone-buy {
  width: 100%;
  padding: 10px;
  border-radius: 9999px;
  background: #B794F6;
  color: #0D0B14;
  font-weight: 800;
  font-size: 0.75rem;
  text-align: center;
}
.phone-sell {
  width: 100%;
  padding: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F9FAFB;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
}

/* Floating glass cards */
.float-card {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(26, 24, 32, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
  color: #F9FAFB;
  animation: floatCard 5.5s ease-in-out infinite;
}
.float-card small {
  display: block;
  font-size: 0.62rem;
  color: #9CA3AF;
  font-weight: 600;
}
.float-card .fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.float-card .fc-up { color: #A78BFA; font-weight: 800; }
.fc-1 { top: 108px; left: -6px; animation-delay: 0.8s; }
.fc-1 .fc-icon { background: rgba(167, 139, 250, 0.16); color: #B794F6; }
.fc-2 { bottom: 96px; right: -4px; animation-delay: 2s; }
.fc-2 .fc-icon { background: rgba(74, 222, 128, 0.14); color: #4ADE80; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Market ticker marquee ---------- */
.market-ticker {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 16, 24, 0.6);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.market-ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.market-ticker:hover .market-ticker-track {
  animation-play-state: paused;
}
.market-ticker-group {
  display: flex;
  align-items: center;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  white-space: nowrap;
  font-size: 0.88rem;
}
.ticker-symbol {
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.ticker-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-secondary);
}
.ticker-change {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.ticker-change.up { color: #4ADE80; }
.ticker-change.down { color: #F87171; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Marketing sections ---------- */
.mk-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 20px;
}
.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mk-lavender);
  margin-bottom: 14px;
}
.mk-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}
.mk-h2-sub {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.6;
}
.mk-section-center {
  text-align: center;
}
.mk-section-center .mk-h2-sub {
  margin: 0 auto;
}

/* ---------- Features bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.bento-card {
  background: var(--mk-card);
  border: 1px solid var(--mk-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 148, 246, 0.35);
  background: rgba(255, 255, 255, 0.055);
}
.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(183, 148, 246, 0.3);
  color: var(--mk-lavender);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.bento-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.bento-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.bento-lg {
  grid-column: span 4;
  grid-row: span 2;
}
.bento-lg .bento-chart {
  margin-top: auto;
}
.bento-sm {
  grid-column: span 2;
}
.bento-chart {
  position: relative;
  height: 150px;
  margin: 6px -6px -6px;
}
.bento-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.bento-chart .chart-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: chartDraw 2.4s ease forwards;
}
.bento-chart .chart-fill {
  opacity: 0;
  animation: chartFade 1s ease 1.4s forwards;
}
@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes chartFade {
  to { opacity: 1; }
}

/* ---------- How it works ---------- */
.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 18px;
  margin-top: 48px;
}
.how-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.how-step-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(183, 148, 246, 0.35);
  color: var(--mk-lavender);
  font-size: 1.15rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.18);
}
.how-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}
.how-step p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
}
.how-connector {
  margin-top: 29px;
  border-top: 2px dotted rgba(183, 148, 246, 0.45);
  width: 100%;
  min-width: 40px;
}

/* ---------- Security ---------- */
.mk-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.security-card {
  background: var(--mk-card);
  border: 1px solid var(--mk-card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
}
.security-card i {
  font-size: 1.3rem;
  color: var(--mk-lavender);
  margin-top: 2px;
}
.security-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.security-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}
.pricing-card {
  background: var(--mk-card);
  border: 1px solid var(--mk-card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pricing-card.featured {
  border-color: rgba(183, 148, 246, 0.5);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.18);
}
.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}
.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.pricing-card .price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0;
}
.pricing-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}
.pricing-features li i {
  color: var(--mk-lavender);
  font-size: 0.8rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--mk-card);
  border: 1px solid var(--mk-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.faq-q i {
  color: var(--mk-lavender);
  transition: transform 0.2s ease;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.faq-item.open .faq-q i {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.mk-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background:
    radial-gradient(circle at 10% 100%, rgba(167, 139, 250, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 45%),
    var(--bg-secondary);
}
.mk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 26px;
}
.mk-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.mk-footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 14px 0 18px;
  max-width: 260px;
}
.mk-footer-social {
  display: flex;
  gap: 10px;
}
.mk-footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.mk-footer-social-btn:hover {
  color: var(--mk-lavender);
  border-color: rgba(183, 148, 246, 0.45);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
  transform: translateY(-2px);
}
.mk-footer-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.mk-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.mk-footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.mk-footer-col a:hover {
  color: var(--mk-lavender);
}
.mk-footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.mk-footer-legal {
  display: flex;
  gap: 22px;
}
.mk-footer-legal a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.mk-footer-legal a:hover {
  color: var(--mk-lavender);
}
@media (max-width: 900px) {
  .mk-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 480px) {
  .mk-footer-grid {
    grid-template-columns: 1fr;
  }
  .mk-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mk-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mk-hero {
    padding-top: 50px;
  }
  .mk-hero-visual {
    min-height: 540px;
  }
  .mk-hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mk-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .mk-hero-ctas, .mk-store-badges, .mk-trust-row {
    justify-content: center;
  }
  .mk-security-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .bento-lg {
    grid-column: span 6;
    grid-row: auto;
  }
  .bento-sm {
    grid-column: span 3;
  }
}
@media (max-width: 768px) {
  .mk-nav-links, .mk-nav-actions .mk-btn-ghost {
    display: none;
  }
  .mk-hamburger {
    display: inline-flex;
  }
  .phone-back, .phone-mid {
    display: none;
  }
  .phone-front {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
  }
  .mk-hero-visual {
    min-height: auto;
  }
  .phone-stack {
    height: auto;
  }
  .bento-sm {
    grid-column: span 6;
  }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .how-connector {
    display: none;
  }
  .fc-1, .fc-2 {
    display: none;
  }
}
@media (max-width: 480px) {
  .mk-nav-actions .mk-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}




/* ==========================================================================
   DESKTOP DASHBOARD (lg and up)
   ========================================================================== */

/* Neutral change: 0.0% is gray, not green/red */
.coin-card-change.flat,
.coin-badge-change.flat,
.badge-change.flat,
.explore-card-change.flat,
.ticker-change.flat {
  color: var(--text-muted);
}
.coin-badge-change.flat,
.badge-change.flat {
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Dashboard grid: let desktop blocks shrink inside narrow screens ---- */
.dash-grid > * {
  min-width: 0;
}

/* ---- Coins table (market tab): same layout on every screen ---- */
.coins-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.coins-table-head,
.coins-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(84px, 1fr) minmax(84px, 1fr) 118px minmax(100px, 1fr) 92px;
  align-items: center;
  gap: 14px;
  min-width: 560px;
}
.coins-table-row .coin-card-right {
  align-items: flex-end;
  text-align: right;
}
.coins-table-row .coin-card-change {
  justify-self: end;
}
  .coins-table-head {
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }
  .tracked-coin-card.coins-table-row {
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .tracked-coin-card.coins-table-row:last-child {
    border-bottom: none;
  }
  .tracked-coin-card.coins-table-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
  }
  .spark-cell {
    min-width: 0;
    justify-content: flex-end;
  }
  .coins-table-row .coin-card-price,
  .coins-table-row .coin-card-change {
    text-align: right;
  }
  .spark-cell svg {
    width: 100%;
    max-width: 110px;
    height: 30px;
    display: block;
  }
  .mcap-cell {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
  }
  .action-cell .table-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(183, 148, 246, 0.35);
    color: var(--mk-lavender-light, #C4B5FD);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
  }
  .action-cell .table-buy-btn:hover {
    background: #B794F6;
    color: #0D0B14;
    transform: translateY(-1px);
  }

/* ---- Performance chart card ---- */
.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.perf-chart-wrap {
  position: relative;
  height: 125px;
  margin-top: 10px;
  flex: 1;
}
.perf-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.perf-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.perf-change {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.perf-change.up {
  color: #4ADE80;
}
.perf-change.down {
  color: #F87171;
}
.perf-change.flat {
  color: var(--text-muted);
}
.perf-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.perf-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 9999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.perf-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #4ADE80;
  animation: perf-live-pulse 2s infinite;
}
.perf-live.is-loading,
.perf-live.is-offline {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}
.perf-live.is-offline {
  color: #9CA3AF;
  background: rgba(156, 163, 175, 0.08);
  border-color: rgba(156, 163, 175, 0.2);
}
.perf-live.is-loading .perf-live-dot,
.perf-live.is-offline .perf-live-dot {
  background: currentColor;
  animation: none;
}
@keyframes perf-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.perf-card.is-loading .perf-chart-wrap {
  opacity: 0.6;
}
.perf-chart-wrap {
  transition: opacity 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .perf-live-dot {
    animation: none;
  }
}
.perf-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 125px;
  padding: 14px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

/* ---- News grid (desktop) ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 148, 246, 0.35);
}
.news-card .news-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mk-lavender, #A78BFA);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(183, 148, 246, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
}
.news-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}
.news-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.news-card .news-meta {
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- News rectangle list (thumbnail left, content right) ---- */
.news-rect-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-rect-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 0;
}

.news-rect-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 148, 246, 0.35);
}

.news-rect-thumb {
  flex: 0 0 180px;
  max-width: 180px;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.news-rect-thumb-empty {
  background:
    linear-gradient(135deg, rgba(183, 148, 246, 0.15), rgba(74, 222, 128, 0.08));
}

.news-rect-thumb-empty::after {
  content: "\f1ea";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2rem;
  color: rgba(183, 148, 246, 0.5);
}

.news-rect-body {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-rect-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-rect-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-rect-body .news-meta {
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .news-rect-thumb {
    flex: 0 0 96px;
    max-width: 96px;
    min-height: 96px;
  }

  .news-rect-thumb::after {
    font-size: 1.3rem;
  }

  .news-rect-body {
    padding: 10px 12px;
  }

  .news-rect-title {
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
  }

  .news-rect-desc {
    -webkit-line-clamp: 1;
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .news-rect-thumb {
    flex: 0 0 84px;
    max-width: 84px;
    min-height: 84px;
  }

  .news-rect-desc {
    -webkit-line-clamp: 1;
  }

  .news-rect-title {
    -webkit-line-clamp: 1;
  }
}

/* ---- Activity panel (desktop) ---- */
.side-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}
.side-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.side-panel-title h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.side-panel .crypto-filter-dropdown {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.side-panel .activity-item-card:last-child {
  margin-bottom: 0;
}
.panel-empty {
  text-align: center;
  padding: 26px 14px;
  color: var(--text-muted);
}
.panel-empty i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  opacity: 0.7;
}
.panel-empty b {
  display: block;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ---- Explore panel compact rows ---- */
.explore-coin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 6px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.explore-coin-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.explore-coin-row .coin-card-icon {
  width: 36px;
  height: 36px;
}
.explore-coin-row .coin-card-title {
  font-size: 0.88rem;
}
.explore-coin-row .coin-card-sub {
  font-size: 0.7rem;
}
.explore-coin-row .explore-row-right {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.explore-coin-row .coin-card-price {
  font-size: 0.88rem;
}
.explore-coin-row .coin-card-change {
  font-size: 0.74rem;
}

/* ---- Desktop wallet tab ---- */
.wallet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wallet-row:last-child {
  border-bottom: none;
}
.wallet-row .coin-card-icon {
  width: 40px;
  height: 40px;
}
.wallet-row .wallet-row-main {
  flex: 1;
  min-width: 0;
}
.wallet-row .wallet-row-main b {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.wallet-row .wallet-row-main span {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.wallet-row .wallet-row-amt {
  text-align: right;
}
.wallet-row .wallet-row-amt b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.wallet-row .wallet-row-amt span {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ---- Footer container matches content ---- */
.mk-footer-inner {
  max-width: 1280px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .tracked-coin-card,
  .activity-item-card,
  .news-card,
  .explore-coin-row {
    transition: none;
  }
}

/* ---- Timeframe pills (perf chart) ---- */
.chart-tf-pills {
  display: flex;
  gap: 3px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
}
.chart-tf-pills button {
  padding: 4px 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chart-tf-pills button.active {
  background: var(--mk-lavender-strong, #B794F6);
  color: #0D0B14;
  box-shadow: 0 2px 10px rgba(183, 148, 246, 0.35);
}

/* ---- Activity panel: plain section on mobile, card panel on desktop ---- */
.activity-panel {
  margin-top: 14px;
}
.activity-panel {
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}
.activity-panel .activity-item-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 4px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.activity-panel .activity-item-card:last-child {
  border-bottom: none;
}

/* ---- Investment plans ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan-card-head h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.plan-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--mk-lavender-light, #C4B5FD);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(183, 148, 246, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.plan-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.plan-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.plan-form {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.plan-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.plan-input:focus {
  outline: none;
  border-color: rgba(183, 148, 246, 0.5);
}
.plan-estimate {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.plan-estimate b {
  color: var(--accent-green);
  font-family: var(--font-mono);
}
.plan-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan-sub-row:last-child {
  border-bottom: none;
}
.plan-sub-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-sub-main b {
  font-size: 0.92rem;
  color: var(--text-primary);
}
.plan-sub-main > span {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.plan-progress {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 4px;
}
.plan-progress > span {
  display: block;
  height: 100%;
  background: var(--accent-green);
}
.plan-sub-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.plan-sub-amt b {
  font-family: var(--font-mono);
  color: var(--accent-green);
}
.plan-sub-amt > span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- News pagination ---- */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pg-btn:hover:not(.pg-disabled) {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(183, 148, 246, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.pg-btn.pg-active {
  background: var(--mk-lavender-strong, #B794F6);
  border-color: var(--mk-lavender-strong, #B794F6);
  color: #0D0B14;
  box-shadow: 0 2px 10px rgba(183, 148, 246, 0.35);
}
.pg-btn.pg-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .pg-btn {
    transition: none;
  }
}

/* ==========================================================================
   NOTIFICATION BELL + DROPDOWN
   ========================================================================== */

/* Red unread badge on the bell */
.notif-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #F87171;
  border: 2px solid var(--bg-card);
  color: #0D0B14;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

/* Dropdown panel */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 24px rgba(167, 139, 250, 0.08);
  z-index: 1200;
  overflow: hidden;
}
.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--mk-lavender, #A78BFA);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.notif-mark-all:hover {
  text-decoration: underline;
}
.notif-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}
.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.notif-item.unread {
  background: rgba(167, 139, 250, 0.06);
}
.notif-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(183, 148, 246, 0.3);
  color: var(--mk-lavender, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.notif-item-msg {
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.notif-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.notif-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.notif-empty i {
  font-size: 1.4rem;
  opacity: 0.7;
}
.notif-dropdown-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.notif-dropdown-foot a {
  color: var(--mk-lavender, #A78BFA);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.notif-dropdown-foot a:hover {
  text-decoration: underline;
}

/* ---- Notifications page list ---- */
.notif-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 6px;
}
.notif-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.notif-list-item:last-child {
  border-bottom: none;
}
.notif-list-item.unread {
  background: rgba(167, 139, 250, 0.05);
}
.notif-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(183, 148, 246, 0.3);
  color: var(--mk-lavender, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-list-body {
  flex: 1;
  min-width: 0;
}
.notif-list-msg {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.notif-list-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Track (watchlist) star button on market rows ---- */
.track-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.track-btn:hover {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.4);
  transform: scale(1.08);
}
.track-btn.tracked {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}
.track-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (prefers-reduced-motion: reduce) {
  .track-btn {
    transition: none;
  }
}

/* ---- Market row Buy/Sell action (follows top toggle mode) ---- */
.coin-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.coin-card-actions .btn-buy-pill {
  font-size: 0.75rem;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.coin-card-actions .btn-buy-pill.btn-action-sell {
  background: #221F2C;
  color: #F9FAFB;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.coin-card-actions .btn-buy-pill.btn-action-sell:hover {
  background: #2C2838;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* ---- Market page live search (stocks + coins) ---- */
.market-search-box {
  position: relative;
  margin: 4px 0 14px;
}

.market-search-input {
  width: 100%;
  background: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F9FAFB;
  padding: 11px 16px 11px 38px;
  border-radius: 9999px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.market-search-input:focus {
  outline: none;
  border-color: rgba(183, 148, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(183, 148, 246, 0.15);
}

.market-search-input::placeholder {
  color: #6B7280;
}

.market-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 70;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}

.market-search-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9CA3AF;
}

.market-search-dropdown-head i {
  color: #B794F6;
}

.market-search-empty {
  padding: 18px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.85rem;
}

.market-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.12s ease;
}

.market-search-item:hover {
  background: rgba(183, 148, 246, 0.08);
}

.market-search-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.market-search-badge.coin {
  background: rgba(183, 148, 246, 0.16);
  color: #B794F6;
}

.market-search-badge.stock {
  background: rgba(96, 165, 250, 0.16);
  color: #60A5FA;
}

.market-search-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.market-search-ticker {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F9FAFB;
}

.market-search-name {
  font-size: 0.7rem;
  color: #9CA3AF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-search-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.market-search-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F9FAFB;
  font-family: var(--font-mono, monospace);
}

.market-search-change {
  font-size: 0.68rem;
  font-weight: 700;
}

.market-search-change.up {
  color: #4ADE80;
}

.market-search-change.down {
  color: #F87171;
}

/* ========================================================
   Leveraged Trading Panel (stocks + coins)
   ======================================================== */
.trading-panel {
  background: #1A1820;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trading-balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14121A;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trading-balance-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trading-balance-label {
  font-size: 0.7rem;
  color: #9CA3AF;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.trading-balance-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F9FAFB;
  font-family: var(--font-mono, monospace);
}

.trading-balance-max {
  background: rgba(183, 148, 246, 0.12);
  color: #B794F6;
  border: 1px solid rgba(183, 148, 246, 0.3);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-balance-max:hover {
  background: rgba(183, 148, 246, 0.2);
}

.trading-side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trading-side-btn {
  padding: 12px 0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #14121A;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-side-buy.active {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ADE80;
}

.trading-side-sell.active {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.5);
  color: #F87171;
}

.trading-order-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #14121A;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trading-order-type {
  padding: 7px 0;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-order-type.active {
  background: #B794F6;
  color: #0D0B14;
}

.trading-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trading-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.trading-input-wrap {
  position: relative;
}

.trading-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
  font-size: 0.9rem;
  font-weight: 700;
}

.trading-input {
  width: 100%;
  background: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 14px 11px 30px;
  color: #F9FAFB;
  font-size: 0.95rem;
  font-family: var(--font-mono, monospace);
  transition: border-color 0.15s ease;
}

.trading-input:focus {
  outline: none;
  border-color: rgba(183, 148, 246, 0.6);
}

.trading-conversion {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #B794F6;
  font-weight: 700;
}

.trading-conversion span:last-child {
  color: #9CA3AF;
}

.trading-leverage-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.trading-leverage-btn {
  padding: 8px 0;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #14121A;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-leverage-btn.active {
  background: rgba(183, 148, 246, 0.16);
  border-color: rgba(183, 148, 246, 0.5);
  color: #B794F6;
}

.trading-leverage-btn:hover {
  border-color: rgba(183, 148, 246, 0.35);
}

.trading-tp-sl-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #D1D5DB;
}

.trading-tp-sl-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #B794F6;
  cursor: pointer;
}

.trading-place-btn {
  width: 100%;
  background: #4ADE80;
  color: #052E16;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(74, 222, 128, 0.3);
}

.trading-place-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.45);
}

.trading-place-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.trading-place-sell {
  background: #F87171;
  color: #450A0A;
  box-shadow: 0 4px 18px rgba(248, 113, 113, 0.3);
}

.trading-place-sell:hover {
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.45);
}

/* My positions */
.trading-positions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.trading-position-card {
  background: #14121A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trading-position-open {
  border-color: rgba(183, 148, 246, 0.3);
}

.trading-position-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trading-position-asset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trading-position-asset > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trading-position-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #25232D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trading-position-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trading-position-ticker {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F9FAFB;
}

.trading-position-sub {
  font-size: 0.7rem;
  color: #9CA3AF;
}

.trading-position-status {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(183, 148, 246, 0.12);
  color: #B794F6;
  white-space: nowrap;
}

.trading-position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.trading-position-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trading-position-label {
  font-size: 0.62rem;
  color: #6B7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trading-position-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #F9FAFB;
  font-family: var(--font-mono, monospace);
}

.trading-position-val.up {
  color: #4ADE80;
}

.trading-position-val.down {
  color: #F87171;
}

.trading-position-actions {
  display: flex;
}

.trading-close-btn {
  flex: 1;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #F87171;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 9px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-close-btn:hover {
  background: rgba(248, 113, 113, 0.2);
}

@media (max-width: 420px) {
  .trading-position-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trading-leverage-btn {
    font-size: 0.72rem;
  }
}

/* ---- Trading popup modal ---- */
.trading-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.trading-modal {
  background: #1A1820;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.trading-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trading-modal-error {
  background: rgba(248, 113, 113, 0.14);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.trading-modal-success {
  background: rgba(74, 222, 128, 0.14);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.trading-modal-confirm {
  background: rgba(183, 148, 246, 0.14);
  color: #B794F6;
  border: 1px solid rgba(183, 148, 246, 0.4);
}

.trading-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #F9FAFB;
}

.trading-modal-message {
  font-size: 0.88rem;
  color: #9CA3AF;
  line-height: 1.5;
  word-break: break-word;
}

.trading-modal-actions {
  margin-top: 8px;
  width: 100%;
}

.trading-modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trading-modal-btn {
  width: 100%;
  padding: 11px 0;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-modal-ok {
  background: #B794F6;
  color: #0D0B14;
}

.trading-modal-ok:hover {
  background: #C4B5FD;
}

.trading-modal-cancel {
  background: #221F2C;
  color: #9CA3AF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trading-modal-cancel:hover {
  background: #2C2838;
  color: #F9FAFB;
}

/* Withdrawal method option cards */
.wd-method-option:hover {
  border-color: var(--accent-green);
  color: var(--text-primary);
}
.wd-method-option.selected {
  border-color: var(--accent-green);
  background: rgba(74, 222, 128, 0.08);
  color: var(--accent-green);
}
.wd-method-option.selected .wd-method-check {
  opacity: 1;
}

/* Buy deep-link: highlight the swap card while scrolling it into view */
#swapCard {
  scroll-margin-top: 90px;
}
#swapCard.swap-card-highlight {
  box-shadow: 0 0 0 2px rgba(183, 148, 246, 0.55), 0 0 36px rgba(167, 139, 250, 0.28);
  border-color: rgba(183, 148, 246, 0.45);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
