/**
 * Trade Sphere FX — Premium Mobile-App Extension
 * Layered on top of design-system.css for premium fintech app feel.
 */

/* ========================================================================
   PREMIUM BOTTOM SHEET MENU
   ======================================================================== */
.menu-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease-out);
}
.menu-sheet-overlay.is-active { opacity: 1; visibility: visible; }

.menu-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-radius: 24px 24px 0 0;
  padding: 0 var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom));
  z-index: 601;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
}
.menu-sheet-overlay.is-active .menu-sheet { transform: translateY(0); }

.menu-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-medium);
  border-radius: var(--radius-full);
  margin: 10px auto 16px;
}

.menu-sheet-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--sp-4);
}
.menu-sheet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06120E;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.menu-sheet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-sheet-user-name { font-weight: 700; font-size: var(--text-body); }
.menu-sheet-user-email { font-size: var(--text-caption); color: var(--text-muted); }

.menu-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.menu-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-4) var(--sp-2);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
}
.menu-sheet-item:hover, .menu-sheet-item:active {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  transform: scale(0.97);
}
.menu-sheet-item.active {
  background: rgba(var(--primary-rgb), 0.06);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.menu-sheet-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-sheet-item-icon svg { width: 20px; height: 20px; }
.menu-sheet-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}
.menu-sheet-item.active .menu-sheet-item-label { color: var(--primary); }

.menu-sheet-section-title {
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-2) var(--sp-1);
}
.menu-sheet-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--sp-2) 0;
}
.menu-sheet-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.menu-sheet-link:hover { background: var(--bg-elevated); color: var(--text-primary); }
.menu-sheet-link svg { width: 20px; height: 20px; opacity: 0.6; }
.menu-sheet-link.danger { color: var(--danger); }
.menu-sheet-link.danger svg { opacity: 0.8; }

/* ========================================================================
   UPGRADED BOTTOM NAV (5 items + center menu button)
   ======================================================================== */
.premium-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: none;
  z-index: 500;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) { .premium-bottom-nav { display: block; } }

.premium-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 72px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--sp-2);
}
.pbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
  min-width: 48px;
  position: relative;
}
.pbn-item svg { width: 20px; height: 20px; transition: all 0.2s; }
/* Colored icon chip — mirrors the quick-actions tile aesthetic */
.pbn-chip {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--chip, var(--primary-rgb)), 0.12);
  color: rgb(var(--chip, var(--primary-rgb)));
  transition: transform 0.22s var(--ease-out), background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.pbn-item.active { color: rgb(var(--chip, var(--primary-rgb))); font-weight: 700; }
.pbn-item.active .pbn-chip {
  background: rgb(var(--chip, var(--primary-rgb)));
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(var(--chip, var(--primary-rgb)), 0.45);
}
.pbn-item.active .pbn-chip svg { stroke-width: 2.4; }
.pbn-item:active .pbn-chip { transform: scale(0.94); }

/* Center menu trigger */
.pbn-menu-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06120E;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
  transition: all 0.2s;
  border: 3px solid var(--bg-surface);
  cursor: pointer;
}
.pbn-menu-trigger:active { transform: scale(0.92); }
.pbn-menu-trigger svg { width: 22px; height: 22px; }

/* ========================================================================
   PREMIUM WALLET CARD
   ======================================================================== */
.wallet-hero-card {
  background: #0c1a15;
  border: 1px solid rgba(var(--primary-rgb), 0.20);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  color: #eafff8;
  box-shadow: 0 20px 50px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.05);
}
/* soft ambient accents — blurred SOLID color discs (no gradients) */
.wallet-hero-card::before {
  content: '';
  position: absolute;
  bottom: -90px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(var(--primary-rgb), 0.07);
  filter: blur(52px);
  border-radius: 50%;
  pointer-events: none;
}
.wallet-hero-card::after {
  content: '';
  position: absolute;
  top: -70px; right: -50px;
  width: 220px; height: 220px;
  background: rgba(var(--primary-rgb), 0.16);
  filter: blur(54px);
  border-radius: 50%;
  pointer-events: none;
}
/* ── Optional background image on the wallet hero ── */
.wallet-hero-card.has-img {
  background-image: var(--wc-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Full dark scrim over the image so the light text stays readable regardless
   of how bright/greenish the uploaded image is. Replaces the ambient disc. */
.wallet-hero-card.has-img::before {
  inset: 0;
  bottom: 0; left: 0;
  width: auto; height: auto;
  background: linear-gradient(180deg, rgba(4,12,9,0.58) 0%, rgba(4,12,9,0.74) 100%);
  filter: none;
  border-radius: inherit;
  z-index: 1;
}
.wallet-hero-card.has-img::after { display: none; }
/* Lift all card content above the scrim and add a subtle shadow for contrast */
.wallet-hero-card.has-img > * { position: relative; z-index: 2; }
.wallet-hero-card.has-img .wallet-bal-amount,
.wallet-hero-card.has-img .wallet-bal-label,
.wallet-hero-card.has-img .wallet-bal-caption { text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.wallet-bal-label {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(234,255,248,0.82);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}
.wallet-bal-caption {
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(234,255,248,0.48);
  font-weight: 600;
  margin-top: var(--sp-4);
  position: relative;
}
.wallet-bal-amount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 var(--sp-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  position: relative;
}
.wallet-bal-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
  position: relative;
}
.wallet-bal-change.up { background: rgba(var(--success-rgb), 0.16); color: #7bffce; }
.wallet-bal-change.down { background: rgba(var(--danger-rgb), 0.16); color: #ff9a9a; }

.wallet-action-row {
  display: flex;
  gap: var(--sp-2);
  position: relative;
}
.wallet-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(234,255,248,0.82);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.wallet-action-btn:hover, .wallet-action-btn:active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.wallet-action-btn svg { width: 20px; height: 20px; }
.wallet-action-btn.deposit { color: #4ADE80; }
.wallet-action-btn.withdraw { color: #FF7A85; }
.wallet-action-btn.invest { color: #F5C451; }
.wallet-action-btn.history { color: #6FC0FF; }

/* ========================================================================
   PREMIUM STAT CARDS (Mini)
   ======================================================================== */
.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .mini-stats-row { grid-template-columns: repeat(4, 1fr); }
}
.mini-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: all 0.2s;
}
.mini-stat:hover { border-color: var(--border-medium); transform: translateY(-1px); }
.mini-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-stat-icon svg { width: 18px; height: 18px; }
.mini-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.mini-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ========================================================================
   PREMIUM TRADE CARD
   ======================================================================== */
.trade-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease-out);
}
.trade-card:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.trade-card-accent {
  height: 3px;
  background: var(--primary);
}
.trade-card-accent.matured {
  background: var(--warning);
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}
.trade-card-body { padding: var(--sp-4) var(--sp-5); }
.trade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
}
.trade-card-pkg {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.trade-card-pkg-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.trade-card-pkg-icon svg { width: 18px; height: 18px; }
.trade-card-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-3) 0;
  padding: var(--sp-3);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
.trade-card-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--sp-3);
}

/* ========================================================================
   PREMIUM PACKAGE CARDS (Upgraded)
   ======================================================================== */
.pkg-card-premium {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all 0.35s var(--ease-out);
}
.pkg-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.pkg-card-premium.featured {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.08);
}
.pkg-card-premium.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.4), transparent, rgba(var(--primary-rgb), 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pkg-card-gradient-bar {
  height: 4px;
  width: 100%;
}
.pkg-card-inner { padding: var(--sp-6); }
.pkg-card-roi-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% var(--roi-pct, 0%), var(--bg-elevated) var(--roi-pct, 0%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  position: relative;
}
.pkg-card-roi-ring::after {
  content: '';
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface);
  position: absolute;
}
.pkg-card-roi-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-title);
  color: var(--primary);
}
.pkg-card-specs-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-small);
}
.pkg-card-specs-row:last-child { border-bottom: none; }
.pkg-card-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--sp-4) 0;
}
.pkg-card-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--text-secondary);
}
.pkg-card-feature-item .check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.pkg-card-feature-item .check-circle svg { width: 10px; height: 10px; }

/* ========================================================================
   PREMIUM PROFILE HEADER
   ======================================================================== */
.profile-hero {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.08), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.profile-avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.profile-avatar-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  overflow: hidden;
}
.profile-avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  margin-top: var(--sp-5);
}
.profile-stat-item { text-align: center; }
.profile-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-title);
  color: var(--text-primary);
}
.profile-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================================================
   ABOUT PAGE PREMIUM
   ======================================================================== */
.about-hero-bg {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.about-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(var(--info-rgb), 0.05), transparent 50%);
  pointer-events: none;
}
.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 767px) { .about-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.about-stat-item { text-align: center; }
.about-stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
}
.about-stat-text { font-size: var(--text-caption); color: var(--text-muted); margin-top: 4px; }

.team-card {
  text-align: center;
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all 0.25s;
}
.team-card:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
  color: #06120E;
  font-weight: 800;
  font-size: 1.25rem;
}

/* ========================================================================
   SECTION CARD (used on user pages)
   ======================================================================== */
.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
}
.section-card-title {
  font-size: var(--text-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-card-body { padding: var(--sp-5); }

/* ========================================================================
   APP-LIKE PAGE TRANSITIONS
   ======================================================================== */
.app-page {
  animation: appPageIn 0.35s var(--ease-out);
}
@keyframes appPageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   MOBILE-FIRST OVERRIDES
   ======================================================================== */
@media (max-width: 767px) {
  .page-content {
    padding-bottom: calc(72px + var(--sp-4) + env(safe-area-inset-bottom));
  }
  .bottom-nav { display: none !important; }
  .fab { display: none !important; }

  .container { padding: 0 var(--sp-3); }

  .text-headline { font-size: 1.35rem; }

  /* Full-bleed cards on mobile */
  .card, .card-glow, .card-glass, .section-card {
    border-radius: var(--radius-md);
  }

  #dashboard .page-content { padding-top: calc(var(--topnav-h) + var(--sp-2)); }
  .wallet-hero-card {
    margin: 0 calc(-1 * var(--sp-3));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: var(--sp-5) var(--sp-4);
  }
}

/* ========================================================================
   HIDE OLD BOTTOM NAV
   ======================================================================== */
#userBottomNav { display: none !important; }

/* ========================================================================
   UTILITY: LABEL (small uppercase micro-label used in card headers)
   ======================================================================== */
.label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.text-accent { color: var(--primary) !important; }

/* ========================================================================
   ANNOUNCEMENT BANNER
   ======================================================================== */
.announcement-banner {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px var(--sp-4); border-radius: var(--radius-md); margin-bottom: var(--sp-4);
  border: 1px solid; backdrop-filter: blur(10px);
}
.announcement-banner.info { background: rgba(var(--info-rgb),0.07); border-color: rgba(var(--info-rgb),0.22); color: #BFDBFE; }
.announcement-banner.warning { background: rgba(var(--warning-rgb),0.07); border-color: rgba(var(--warning-rgb),0.22); color: #FDE68A; }
.announcement-banner.promo { background: rgba(var(--gold-rgb),0.08); border-color: rgba(var(--gold-rgb),0.24); color: var(--gold-soft); }
.announcement-banner.maintenance { background: rgba(var(--danger-rgb),0.07); border-color: rgba(var(--danger-rgb),0.22); color: #FCA5B0; }
.announcement-banner.news { background: rgba(var(--primary-rgb),0.07); border-color: rgba(var(--primary-rgb),0.22); color: var(--primary-light); }
.announcement-banner-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.announcement-banner-title { font-weight: 700; font-size: var(--text-small); }
.announcement-dismiss { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: inherit; opacity: 0.6; background: none; border: none; flex-shrink: 0; }
.announcement-dismiss:hover { opacity: 1; background: rgba(255,255,255,0.08); }

/* ========================================================================
   FLOATING ACTION BUTTON (desktop/tablet — hidden on mobile, bottom nav covers it)
   ======================================================================== */
.fab {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: var(--z-sticky);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #06120E;
  box-shadow: 0 12px 32px rgba(var(--primary-rgb),0.35), 0 0 0 1px rgba(255,255,255,0.2) inset;
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base);
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 44px rgba(var(--primary-rgb),0.45), 0 0 0 1px rgba(255,255,255,0.25) inset; }
.fab:active { transform: scale(0.95); }

/* ========================================================================
   COUNTDOWN WIDGET (segmented Days/Hrs/Min/Sec boxes)
   ======================================================================== */
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 6px 9px; min-width: 42px; }
.countdown-value { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-body); color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 3px; }
.countdown-sep { color: var(--text-muted); font-weight: 700; }
.countdown.countdown-sm .countdown-unit { padding: 4px 6px; min-width: 32px; }
.countdown.countdown-sm .countdown-value { font-size: var(--text-caption); }

/* ========================================================================
   USER-FACING PACKAGE CARDS (in-app browsing, distinct from landing marketing cards)
   ======================================================================== */
.package-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden;
  backdrop-filter: blur(16px); transition: all 0.3s var(--ease-out);
}
.package-card:hover { transform: translateY(-5px); border-color: rgba(var(--primary-rgb),0.25); box-shadow: var(--shadow-xl); }
.package-card-tier { display: none; }
.package-card-tier.tier-1 { background: #6B7280; }
.package-card-tier.tier-2 { background: #9CA3AF; }
.package-card-tier.tier-3 { background: var(--warning); }
.package-card-tier.tier-4 { background: var(--info); }
.package-card-tier.tier-5 { background: var(--danger); }
.package-card-tier.tier-6 { background: var(--purple); }
.package-card-badge { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 11px; border-radius: var(--radius-full); text-transform: uppercase; z-index: 2; }
.package-card-badge.popular { background: rgba(var(--warning-rgb),0.15); color: var(--warning); border: 1px solid rgba(var(--warning-rgb),0.3); }
.package-card-badge.hot { background: rgba(var(--danger-rgb),0.15); color: var(--danger); border: 1px solid rgba(var(--danger-rgb),0.3); }
.package-card-badge.exclusive { background: rgba(var(--purple-rgb),0.15); color: var(--purple); border: 1px solid rgba(var(--purple-rgb),0.3); }
.package-card-body { padding: var(--sp-6); }
.package-card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.package-card-roi { font-family: var(--font-mono); font-weight: 800; font-size: 2.1rem; color: var(--primary); margin-top: 6px; line-height: 1; }
.package-card-roi span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.package-card-duration { font-size: var(--text-small); color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.package-card-specs { display: flex; flex-direction: column; gap: 8px; margin: var(--sp-5) 0; padding: var(--sp-4); background: var(--bg-card); border-radius: var(--radius-md); }
.package-card-spec { display: flex; justify-content: space-between; font-size: var(--text-caption); }
.package-card-spec-label { color: var(--text-muted); }
.package-card-spec-value { font-family: var(--font-mono); font-weight: 600; }
.package-card-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: var(--sp-6); }
.package-card-feature { display: flex; align-items: center; gap: 8px; font-size: var(--text-caption); color: var(--text-secondary); }
.package-card-feature svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }

/* ========================================================================
   ADMIN SIDEBAR (primary admin navigation)
   ======================================================================== */
.sidebar {
  position: fixed; top: var(--topnav-h); left: 0; width: var(--sidebar-w);
  height: calc(100vh - var(--topnav-h)); height: calc(100dvh - var(--topnav-h));
  background: rgba(9,10,13,0.75); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; overflow: hidden;
  z-index: var(--z-sticky); transition: transform 0.3s var(--ease-out);
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-3); }
.sidebar-section { margin-bottom: var(--sp-5); }
.sidebar-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); padding: 0 var(--sp-3); margin-bottom: var(--sp-2);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: var(--text-small); font-weight: 500; margin-bottom: 2px;
  position: relative; transition: all 0.15s var(--ease-out); text-decoration: none;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.65; transition: opacity 0.15s; }
.sidebar-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link:hover { background: rgba(255,255,255,0.045); color: var(--text-primary); }
.sidebar-link:hover svg { opacity: 0.9; }
.sidebar-link.active { background: rgba(var(--primary-rgb),0.1); color: var(--primary); font-weight: 600; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-link.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--primary); box-shadow: 0 0 8px var(--primary-glow);
}
.sidebar-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full);
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-footer { padding: var(--sp-4); border-top: 1px solid var(--border-subtle); flex-shrink: 0; }
.sidebar-footer .system-status { width: 100%; justify-content: center; }

/* Mobile/tablet: off-canvas sidebar */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-xl); }
  .sidebar.is-open { transform: translateX(0); }
  .admin-content { margin-left: 0 !important; }
}

/* ========================================================================
   NOTIFICATIONS LIST PAGE
   ======================================================================== */
.notif-list-item {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  background: var(--bg-surface); text-decoration: none; transition: all 0.2s var(--ease-out);
}
.notif-list-item:hover { border-color: var(--border-medium); transform: translateX(2px); }
.notif-list-item.unread { border-color: rgba(var(--primary-rgb),0.18); background: rgba(var(--primary-rgb),0.025); }
.notif-list-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; box-shadow: 0 0 6px var(--primary-glow); }
.notif-item-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.notif-item-icon svg { position: absolute; width: 17px; height: 17px; }
.notif-list-item-title { font-size: var(--text-small); color: var(--text-primary); margin-bottom: 2px; }
.notif-list-item-title.unread { font-weight: 700; }
.notif-list-item-msg { font-size: var(--text-caption); color: var(--text-muted); line-height: var(--leading-normal); }
.notif-list-item-time { font-size: var(--text-micro); color: var(--text-muted); margin-top: 4px; }

/* ========================================================================
   LANDING MANAGER — image upload widget + field grouping
   ======================================================================== */
.lm-section-intro { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: rgba(var(--primary-rgb),0.05); border: 1px solid rgba(var(--primary-rgb),0.15); border-radius: var(--radius-md); margin-bottom: var(--sp-5); font-size: var(--text-caption); color: var(--text-secondary); }
.lm-section-intro svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.lm-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .lm-field-grid { grid-template-columns: 1fr; } }
.lm-field-full { grid-column: 1 / -1; }
.lm-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin: var(--sp-5) 0 var(--sp-2); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border-subtle); grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.lm-group-label:first-child { margin-top: 0; }

.lm-image-field { border: 1px dashed var(--border-medium); border-radius: var(--radius-md); padding: var(--sp-3); background: var(--bg-card); max-width: 300px; }
.lm-image-preview { position: relative; width: 100%; aspect-ratio: 16/10; max-height: 165px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.lm-image-field.lm-avatar { max-width: 148px; }
.lm-image-field.lm-avatar .lm-image-preview { aspect-ratio: 1/1; max-height: 120px; border-radius: 50%; }
.lm-image-field.lm-avatar .lm-image-preview .lm-empty svg { width: 22px; height: 22px; }
.lm-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.lm-image-preview .lm-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--text-caption); }
.lm-image-preview .lm-empty svg { width: 28px; height: 28px; opacity: 0.4; }
.lm-image-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.lm-upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.lm-upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.lm-url-input { margin-top: var(--sp-2); }
.lm-url-input input { font-size: var(--text-caption); }

/* ============================================================================
   RESPONSIVE + SPACING OVERHAUL (site-wide)
   Fixes: cards not reflowing on mobile, sections touching, cramped padding.
   ============================================================================ */

/* 1) Vertical rhythm safety net — :where() has ZERO specificity, so any
   .mb-*/.mt-* utility still overrides these. Guarantees stacked sections
   never touch even when a margin utility was forgotten. */
:where(.app-page > .section-card,
       .app-page > .card,
       .app-page > .card-glow,
       .app-page > .card-glass,
       .app-page > .grid,
       .page-content .container > .section-card,
       .page-content .container > .card,
       .page-content .container > .card-glow,
       .page-content .container > section) { margin-bottom: var(--sp-5); }

/* 2) Consistent inner padding for section bodies on smaller screens */
@media (max-width: 767px) {
  .section-card-body { padding: var(--sp-4); }
  .section-card-header { padding: var(--sp-3) var(--sp-4); }
  .card, .card-glow, .card-glass { padding: var(--sp-4); }
  .admin-content { padding: var(--sp-4) var(--sp-3); }
  .stat-card { padding: var(--sp-4); }
}

/* 3) THE BIG ONE: any inline "1fr 1fr" (and 1fr 1fr 1fr) grid collapses to a
   single column on phones. Attribute selectors match the inline style string,
   and !important beats the inline value inside a media query. */
@media (max-width: 640px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* auto-fit grids: tighten the min so 2 columns don't get crushed */
  .grid { gap: var(--sp-3); }
}

/* 4) Tablet: 3-col auto-fit becomes 2-col cleanly, 2-col stays 2-col */
@media (min-width: 641px) and (max-width: 900px) {
  [style*="1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
}

/* 5) Tables never overflow — wrap them so they scroll horizontally on mobile */
@media (max-width: 767px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 560px; }
}

/* 6) Headers/toolbars that use flex justify-between wrap gracefully on mobile */
@media (max-width: 560px) {
  .section-card-header { flex-wrap: wrap; gap: var(--sp-2); }
  .admin-content .flex.justify-between { flex-wrap: wrap; }
}

/* 7) Mini-stat rows: 2-up on phones, never 1 crushed column of wide cards */
@media (max-width: 480px) {
  .mini-stats-row { grid-template-columns: 1fr 1fr !important; gap: var(--sp-2); }
  .mini-stat { padding: var(--sp-3); }
  .mini-stat-value { font-size: var(--text-small); }
}

/* 8) Landing: reduce the very large section padding on mobile so it's not
   a giant empty gap, but keep clear separation between sections. */
@media (max-width: 767px) {
  .landing-section { padding: var(--sp-10) 0; }
  .hero { padding-top: calc(var(--topnav-h) + var(--sp-6)); }
  .cta-panel { padding: var(--sp-6) var(--sp-4); }
}

/* 9) Prevent horizontal scroll leaks site-wide */
html, body { max-width: 100%; overflow-x: hidden; }

/* ============================================================================
   TRADINGVIEW EMBED CONTAINERS
   ============================================================================ */
.tv-embed { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.tv-embed .tradingview-widget-container { width: 100%; }
/* Ticker tape sits full-bleed as a slim strip */
.tv-ticker-tape { border-radius: 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
[data-theme="light"] .tv-ticker-tape { background: #fff; }
/* Card-wrapped charts */
.tv-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--sp-3); }
[data-theme="light"] .tv-card { background: #fff; box-shadow: var(--shadow-md); }
/* TradingView attribution link (required by their ToS) */
.tv-attribution { font-size: 10px; text-align: right; padding: 4px 8px 0; }
.tv-attribution a { color: var(--text-muted); text-decoration: none; }
.tv-attribution a:hover { color: var(--primary); }
/* Markets page grid */
.markets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }

/* ========================================================================
   PAYMENT DETAILS — copyable rows on the deposit page
   ======================================================================== */
.pay-details-panel { border: 1px solid rgba(var(--primary-rgb),0.2); border-radius: var(--radius-md); background: rgba(var(--primary-rgb),0.04); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); }
.pay-details-head { display: flex; align-items: center; gap: 8px; font-size: var(--text-caption); color: var(--text-secondary); font-weight: 600; padding-bottom: var(--sp-3); margin-bottom: var(--sp-2); border-bottom: 1px solid var(--border-subtle); }
.pay-details-head svg { flex-shrink: 0; }
.pay-detail-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; }
.pay-detail-row + .pay-detail-row { border-top: 1px dashed var(--border-subtle); }
.pay-detail-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pay-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.pay-detail-value { font-size: var(--text-caption); font-weight: 600; color: var(--text-primary); word-break: break-all; font-variant-numeric: tabular-nums; }
.pay-detail-copy { flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s var(--ease-out); }
.pay-detail-copy:hover { background: rgba(var(--primary-rgb),0.1); border-color: rgba(var(--primary-rgb),0.3); transform: translateY(-1px); }

/* ========================================================================
   FLOATING WIDGETS — WhatsApp / Telegram / Install App
   ======================================================================== */
.float-widgets { position: fixed; right: 18px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fw-btn {
  display: inline-flex; align-items: center; gap: 0; cursor: pointer; border: none;
  height: 52px; border-radius: 26px; padding: 0; overflow: hidden; max-width: 52px;
  color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.28); transition: max-width 0.4s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  text-decoration: none; white-space: nowrap;
}
.fw-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.fw-icon svg { width: 26px; height: 26px; }
.fw-label { font-size: var(--text-caption); font-weight: 700; padding-right: 20px; opacity: 0; transition: opacity 0.3s var(--ease-out); }
.fw-btn:hover { max-width: 240px; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.36); }
.fw-btn:hover .fw-label { opacity: 1; }
.fw-whatsapp { background: #25D366; }
.fw-telegram { background: #2AABEE; }
.fw-install  { background: var(--primary); color: #05130E; }
.fw-install .fw-label { font-weight: 800; }
/* Install button pulses gently to invite the tap */
.fw-install { animation: fwPulse 2.6s ease-in-out infinite; }
@keyframes fwPulse { 0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 0 rgba(var(--primary-rgb),0.4); } 50% { box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 10px rgba(var(--primary-rgb),0); } }
/* On mobile, lift above the bottom nav */
@media (max-width: 768px) { .float-widgets { bottom: 88px; right: 14px; } .fw-btn { height: 48px; border-radius: 24px; max-width: 48px; } .fw-icon { width: 48px; height: 48px; } }

/* Reusable back-link (also used on admin user-view & other header.php pages) */
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-caption); font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.auth-back svg { width: 15px; height: 15px; }
.auth-back:hover { color: var(--primary); transform: translateX(-2px); }

/* ========================================================================
   WALLET HERO — ensure all four corners stay rounded
   The top corners were rendering square (a later rule / the background image
   painting into them). These explicit per-corner values win the cascade, and
   background-clip keeps the image itself inside the rounded box.
   ======================================================================== */
.wallet-hero-card,
.wallet-hero-card.has-img {
  border-top-left-radius: var(--radius-xl) !important;
  border-top-right-radius: var(--radius-xl) !important;
  border-bottom-left-radius: var(--radius-xl) !important;
  border-bottom-right-radius: var(--radius-xl) !important;
  overflow: hidden;
  background-clip: padding-box;
  isolation: isolate;
}
.wallet-hero-card.has-img::before {
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* ========================================================================
   TRANSACTION RECEIPT + DIALOG SYSTEM
   ======================================================================== */
.rcpt-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-start;justify-content:center;
  background:rgba(0,0,0,.72);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .22s ease;overflow-y:auto;padding:0;}
.rcpt-overlay.is-open{opacity:1;visibility:visible;}
.rcpt-sheet{width:100%;max-width:440px;min-height:100%;background:#0b0b0c;color:#fff;display:flex;flex-direction:column;
  transform:translateY(18px);transition:transform .26s cubic-bezier(.22,1,.36,1);}
.rcpt-overlay.is-open .rcpt-sheet{transform:translateY(0);}
@media(min-width:520px){
  .rcpt-overlay{align-items:center;padding:24px;}
  .rcpt-sheet{min-height:0;border-radius:22px;overflow:hidden;box-shadow:0 40px 90px rgba(0,0,0,.6);}
}
/* Hero */
.rcpt-hero{text-align:center;padding:34px 24px 30px;background:#0b0b0c;}
.rcpt-avatar{width:80px;height:80px;border-radius:50%;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;
  background:var(--primary,#00E5A8);color:#062018;font-size:34px;font-weight:800;font-family:var(--font-display,inherit);}
.rcpt-amount{font-size:clamp(2.1rem,9vw,3rem);font-weight:800;letter-spacing:-.02em;line-height:1;margin-bottom:14px;color:#fff;}
.rcpt-to{font-size:16px;color:#e8e8ea;margin-bottom:6px;}
.rcpt-meta{font-size:14px;color:#8b8b90;}
/* Detail card */
.rcpt-body{background:#161617;border-radius:22px 22px 0 0;padding:14px 22px 26px;flex:1;}
.rcpt-grip{width:44px;height:5px;border-radius:3px;background:#3a3a3d;margin:0 auto 26px;}
.rcpt-status-wrap{text-align:center;margin-bottom:26px;}
.rcpt-tick{width:58px;height:58px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
  background:var(--primary,#00E5A8);color:#062018;}
.rcpt-tick svg{width:28px;height:28px;}
.rcpt-tick.pending{background:var(--warning,#F59E0B);color:#2a1c00;}
.rcpt-tick.failed{background:var(--danger,#F1495E);color:#fff;}
.rcpt-state{font-size:21px;font-weight:700;color:#fff;}
.rcpt-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:11px 0;font-size:15px;}
.rcpt-row dt{color:#8b8b90;flex-shrink:0;}
.rcpt-row dd{color:#fff;text-align:right;margin:0;word-break:break-word;}
.rcpt-row dd.mono{font-family:var(--font-mono,monospace);font-size:13px;color:#8b8b90;}
.rcpt-ok{color:var(--primary,#00E5A8);display:inline-flex;align-items:center;gap:6px;}
.rcpt-sep{height:1px;background:#2a2a2d;margin:18px 0;}
.rcpt-action{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:16px;background:none;border:none;
  color:#fff;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none;}
.rcpt-action:hover{opacity:.75;}
.rcpt-action + .rcpt-action{border-top:1px solid #2a2a2d;}

/* Confirm / alert dialog */
.dlg-overlay{position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(0,0,0,.66);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:opacity .18s ease;}
.dlg-overlay.is-open{opacity:1;visibility:visible;}
.dlg-box{width:100%;max-width:380px;background:var(--bg-card,#12161d);border:1px solid var(--border-default,rgba(255,255,255,.09));
  border-radius:20px;padding:26px 22px 18px;text-align:center;transform:scale(.94);transition:transform .2s cubic-bezier(.22,1,.36,1);
  box-shadow:0 30px 70px rgba(0,0,0,.5);}
.dlg-overlay.is-open .dlg-box{transform:scale(1);}
.dlg-icon{width:58px;height:58px;border-radius:50%;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;}
.dlg-icon svg{width:27px;height:27px;}
.dlg-icon.warn{background:rgba(var(--warning-rgb),.14);color:var(--warning);}
.dlg-icon.danger{background:rgba(var(--danger-rgb),.14);color:var(--danger);}
.dlg-icon.info{background:rgba(var(--info-rgb),.14);color:var(--info);}
.dlg-icon.success{background:rgba(var(--success-rgb),.14);color:var(--success);}
.dlg-title{font-size:18px;font-weight:800;font-family:var(--font-display,inherit);margin-bottom:8px;color:var(--text-primary);}
.dlg-msg{font-size:14px;color:var(--text-muted);line-height:1.6;margin-bottom:22px;}
.dlg-actions{display:flex;gap:10px;}
.dlg-actions .btn{flex:1;justify-content:center;}

/* ── Dashboard: breathing room below the wallet hero on mobile ──
   On small screens the hero card sat too close to the stats row beneath it. */
@media (max-width: 767px) {
  .wallet-hero-card { margin-bottom: var(--sp-5) !important; }
  .wallet-hero-card + .mini-stats-row { margin-top: var(--sp-2); }
  .mini-stats-row { margin-bottom: var(--sp-5) !important; }
}
@media (max-width: 480px) {
  .wallet-hero-card { margin-bottom: 22px !important; }
}
