/* ==============================================================================
   site/dashboard.css — 100% Pixel-Accurate Bento Glass & Sapphire Glow Replica
   ============================================================================== */

@font-face {
  font-family: Aventa;
  src: url(/assets/fonts/Aventa-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Aventa;
  src: url(/assets/fonts/Aventa-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Aventa;
  src: url(/assets/fonts/Aventa-SemiBold.woff2) format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --bg-outer: #050913;
  --bg-shell: #080d1a;
  --bg-card: linear-gradient(165deg, rgba(17, 26, 48, 0.88) 0%, rgba(10, 15, 29, 0.94) 100%);
  --bg-subcard: rgba(16, 24, 44, 0.75);
  --bg-input: #090e1c;

  --border-card: rgba(255, 255, 255, 0.065);
  --border-highlight: rgba(96, 165, 250, 0.22);

  --text-white: #ffffff;
  --text-muted: #72819d;
  --text-dim: #4c5a75;

  --mint-teal: #1ad598;
  --electric-blue: #2979ff;
  --electric-cyan: #5bb0ff;

  --font-sans: 'Plus Jakarta Sans', 'Urbanist', Aventa, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100%;
  height: auto;
  background: var(--bg-outer);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bento-body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(37, 108, 242, 0.18), transparent 48%),
    radial-gradient(circle at 82% 84%, rgba(22, 74, 185, 0.14), transparent 50%),
    #060a15;
  overflow-x: hidden;
}

/* ==============================================================================
   APP SHELL CONTAINER — FULL WEBSITE APPLE & STRIPE GLASS ARCHITECTURE
   ============================================================================== */
.bento-Stage {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.bento-app-shell {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(780px 420px at 34% 18%, rgba(35, 102, 232, 0.2), transparent 72%),
    radial-gradient(640px 380px at 78% 76%, rgba(26, 213, 152, 0.06), transparent 70%),
    #070c18;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

/* ==============================================================================
   CURSOR-TRIGGERED SINGLE-CARD LEFT-TO-RIGHT LIGHTING ANIMATION
   (Only runs when the user moves the cursor over a specific card)
   ============================================================================== */
@keyframes cardLightLeftToRight {
  0% {
    transform: translate3d(-115%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate3d(215%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
}

/* Ensure topbar & views sit cleanly in stacking context */
.bento-topbar,
.bento-view {
  position: relative;
  z-index: 2;
}

/* ==============================================================================
   TOP HORIZONTAL NAVIGATION BAR
   ============================================================================== */
.bento-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 6px;
}

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

.brand-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 27, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-circle-btn:hover {
  transform: scale(1.05);
  border-color: rgba(77, 163, 255, 0.4);
  box-shadow: 0 0 16px rgba(41, 121, 255, 0.35);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(14, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 9px 16px;
  width: 190px;
}

.topbar-search svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

/* Center Nav Tabs */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
}

.topbar-tab:hover {
  color: #dbe7ff;
}

.topbar-tab.active {
  background: linear-gradient(180deg, rgba(25, 36, 62, 0.95) 0%, rgba(16, 24, 44, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-home-icon {
  width: 15px;
  height: 15px;
  color: #ffffff;
}

/* Right Topbar Controls */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.theme-opt {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.theme-opt svg {
  width: 15px;
  height: 15px;
}

.theme-opt.active {
  background: linear-gradient(145deg, #5ab0ff 0%, #1d6ff2 100%);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(41, 121, 255, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.notif-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.notif-bell-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 26, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a3b3cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.notif-bell-btn svg {
  width: 16px;
  height: 16px;
}

.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2979ff;
  box-shadow: 0 0 8px #2979ff;
}

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

.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  cursor: pointer;
}

.user-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.user-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.avatar-fallback {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
}

.user-tier-badge {
  font-size: 10px;
  font-weight: 500;
  color: #8fa1c0;
  background: rgba(255, 255, 255, 0.07);
  padding: 1.5px 8px;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==============================================================================
   VIEW CONTAINERS & BENTO GRID ARCHITECTURE
   ============================================================================== */
.bento-view {
  display: none;
  flex: 1;
}

.bento-view.active {
  display: flex;
  flex-direction: column;
  animation: bentoFadeIn 0.32s var(--ease-out);
}

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

.bento-grid-main {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 16px;
  flex: 1;
}

.bento-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bento-bottom-split {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 16px;
  flex: 1;
}

/* ==============================================================================
   SHARED BENTO CARD BASE (Apple & Stripe Specular Glass + Animations)
   ============================================================================== */
@keyframes cardSpringReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes visaShimmerSweep {
  0% { transform: translateX(-140%) skewX(-22deg); }
  45%, 100% { transform: translateX(220%) skewX(-22deg); }
}

.bento-card {
  background: linear-gradient(165deg, rgba(16, 25, 48, 0.86) 0%, rgba(9, 14, 28, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 45px -18px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cardSpringReveal 0.55s var(--ease-out) both;
  transition: transform 0.32s var(--ease-out), border-color 0.32s ease, box-shadow 0.32s ease;
}

.bento-col-left .bento-card:nth-child(1) { animation-delay: 0.04s; }
.bento-col-left .bento-card:nth-child(2) { animation-delay: 0.12s; }
.bento-col-right > .bento-card { animation-delay: 0.08s; }
.bento-bottom-split .bento-card:nth-child(1) { animation-delay: 0.16s; }
.bento-bottom-split .bento-card:nth-child(2) { animation-delay: 0.22s; }

/* Cursor-reactive spotlight overlay (ONLY active when cursor moves on this card) */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    440px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.16),
    rgba(26, 213, 152, 0.05) 38%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card.is-cursor-lighting::before {
  opacity: 1;
}

/* Single-card left-to-right lighting beam + top-edge laser streak (OFF until cursor moves on card) */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 100%;
  background:
    /* Crisp top-border laser highlight */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(59, 130, 246, 0.85) 40%,
      #ffffff 65%,
      transparent 100%
    ) top left / 100% 2px no-repeat,
    /* Soft volumetric left-to-right lighting sheen inside the card */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(41, 121, 255, 0.12) 38%,
      rgba(122, 195, 255, 0.20) 58%,
      rgba(26, 213, 152, 0.08) 74%,
      transparent 100%
    );
  opacity: 0;
  animation: none;
  pointer-events: none;
  z-index: 1;
}

.bento-card.is-cursor-lighting::after {
  opacity: 1;
  animation: cardLightLeftToRight 1.55s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.bento-card.is-cursor-lighting,
.bento-card:hover {
  border-color: rgba(115, 175, 255, 0.28);
  box-shadow:
    0 24px 52px -16px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(41, 121, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 16.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 400;
}

.circle-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #93a4c3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.circle-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(15deg);
}

.circle-icon-btn svg {
  width: 14px;
  height: 14px;
}

/* ==============================================================================
   CARD 1: MY CARD (Top-Left)
   ============================================================================== */
.card-my-card {
  background:
    radial-gradient(240px 180px at 22% 8%, rgba(35, 98, 225, 0.24), transparent 70%),
  var(--bg-card);
}

.btn-add-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(32, 72, 152, 0.45) 0%, rgba(19, 43, 96, 0.55) 100%);
  border: 1px solid rgba(74, 138, 255, 0.35);
  color: #7ab3ff;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 90, 210, 0.22);
  transition: all 0.22s ease;
}

.btn-add-card:hover {
  background: rgba(45, 98, 204, 0.55);
  color: #fff;
  border-color: rgba(110, 170, 255, 0.6);
}

/* 3D Glowing Visa Card Stage */
.visa-card-stage {
  position: relative;
  height: 158px;
  margin-bottom: 14px;
}

.visa-card-ghost {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 60px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 38, 72, 0.72) 0%, rgba(14, 22, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.visa-card-primary {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  height: 100%;
  border-radius: 18px;
  padding: 18px 20px;
  background:
    radial-gradient(125% 130% at 10% 10%, #3b82f6 0%, #1c4ed8 42%, #112a6b 76%, #0c193d 100%);
  border: 1px solid rgba(135, 185, 255, 0.32);
  box-shadow:
    0 14px 30px -10px rgba(15, 52, 135, 0.68),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.visa-card-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.card-my-card.is-cursor-lighting .visa-card-primary::after {
  opacity: 1;
  animation: visaShimmerSweep 2.2s ease-in-out infinite;
}

.visa-card-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 18px 36px -8px rgba(25, 82, 205, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

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

.visa-brand-mark {
  font-size: 16px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.visa-contactless {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.visa-number {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 6px 0;
}

.visa-bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 34px;
}

.visa-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.visa-label {
  font-size: 10px;
  color: rgba(200, 220, 255, 0.62);
}

.visa-val {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

/* All Wallet Balance Row */
.wallet-balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 16px;
}

.wallet-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93a4c3;
  flex-shrink: 0;
}

.wallet-icon-circle svg {
  width: 16px;
  height: 16px;
}

.wallet-balance-info {
  flex: 1;
}

.wallet-amount {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wallet-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Action Buttons Pair */
.card-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-glow-blue {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #4da3ff 0%, #1b6ef3 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(27, 110, 243, 0.5),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.48);
  transition: all 0.22s ease;
  text-align: center;
}

.btn-glow-blue:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(27, 110, 243, 0.68),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6);
}

.btn-glow-blue.full-width {
  width: 100%;
}

.btn-dark-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 36, 62, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1ddf2;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-dark-pill:hover {
  background: rgba(34, 48, 82, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

/* ==============================================================================
   CARD 2: ECONOMIC CALENDAR (Bottom-Left)
   ============================================================================== */
.card-economic-calendar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(240px 180px at 18% 12%, rgba(35, 98, 225, 0.18), transparent 72%),
    var(--bg-card);
}

.econ-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 213, 152, 0.14);
  border: 1px solid rgba(26, 213, 152, 0.32);
  color: #1ad598;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.econ-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1ad598;
  box-shadow: 0 0 8px #1ad598;
  display: inline-block;
}

.econ-events-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.econ-event-glass {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(62, 125, 240, 0.15) 0%, rgba(18, 40, 90, 0.18) 100%);
  border: 1px solid rgba(120, 175, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.econ-event-glass:hover {
  border-color: rgba(135, 192, 255, 0.42);
  transform: translateY(-1px);
}

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

.econ-curr-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.econ-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.econ-flag.usd {
  background: linear-gradient(135deg, #2979ff, #1648a8);
  color: #ffffff;
  border: 1px solid rgba(135, 192, 255, 0.4);
}

.econ-flag.eur {
  background: linear-gradient(135deg, #4f46e5, #1e3a8a);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.econ-flag.gbp {
  background: linear-gradient(135deg, #0ea5e9, #1e40af);
  color: #ffffff;
  border: 1px solid rgba(125, 211, 252, 0.4);
}

.econ-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.econ-impact {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.econ-impact.high {
  background: rgba(41, 121, 255, 0.22);
  color: #7ab8ff;
  border: 1px solid rgba(77, 163, 255, 0.42);
}

.econ-impact.med {
  background: rgba(26, 213, 152, 0.16);
  color: #1ad598;
  border: 1px solid rgba(26, 213, 152, 0.35);
}

.econ-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.econ-time {
  color: #8fa6cb;
  font-weight: 600;
}

.econ-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.econ-metrics b {
  color: #e2ecff;
  font-weight: 600;
}

/* ==============================================================================
   CARD 3: HERO CANDLESTICK CHART CARD (Top-Right)
   ============================================================================== */
.card-hero-chart {
  padding: 22px 24px 18px;
  background:
    radial-gradient(540px 310px at 19% 22%, rgba(41, 118, 255, 0.5) 0%, rgba(22, 68, 172, 0.2) 48%, transparent 76%),
    var(--bg-card);
  border: 1px solid rgba(110, 168, 255, 0.16);
}

.hero-spotlight-glow {
  position: absolute;
  top: -60px;
  left: 30px;
  width: 340px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.hero-chart-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hero-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-big-price {
  font-size: 29px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-price-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-teal);
}

.hero-asset-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: #d0def5;
  font-weight: 500;
}

.eth-mini-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.eth-mini-badge svg {
  width: 11px;
  height: 11px;
}

/* Right Controls inside Hero Header */
.hero-chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-type-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.chart-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-icon-btn svg {
  width: 15px;
  height: 15px;
}

.chart-icon-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.segmented-pill,
.timeframe-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 18, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.seg-btn,
.tf-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seg-btn.active,
.tf-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}

/* Hero Body: Left Frosted Stats + Candlestick Canvas */
.hero-chart-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 16px;
  align-items: center;
}

.hero-glass-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frosted-stat-box {
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(72, 138, 255, 0.2) 0%, rgba(28, 62, 135, 0.14) 100%);
  border: 1px solid rgba(130, 182, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.fstat-label {
  font-size: 11px;
  color: rgba(205, 222, 255, 0.72);
  font-weight: 500;
}

.fstat-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.candlestick-stage {
  width: 100%;
  height: 235px;
  position: relative;
}

/* ==============================================================================
   CARD 4: YOUR ASSETS (Bottom-Center)
   ============================================================================== */
.card-your-assets {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 18px;
  background:
    radial-gradient(280px 180px at 18% 12%, rgba(32, 92, 215, 0.18), transparent 70%),
    var(--bg-card);
}

.assets-main-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.updated-text {
  font-size: 11px;
  color: var(--text-muted);
}

.assets-val-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.assets-total-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.assets-big-val {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.assets-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-teal);
}

.assets-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.legend-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-item .dot.profit {
  background: #2979ff;
  box-shadow: 0 0 8px #2979ff;
}

.legend-item .dot.loss {
  background: #222e46;
}

/* 3D Glowing Pillar Bars */
.pillar-bars-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  padding-top: 8px;
}

.pillar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.pillar-pct {
  font-size: 10.5px;
  font-weight: 600;
}

.pillar-pct.profit {
  color: #4da3ff;
}

.pillar-pct.loss {
  color: #465572;
}

.pillar-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 14px;
  transition: height 0.5s var(--ease-out), transform 0.25s ease;
}

.pillar-bar:hover {
  transform: translateY(-3px);
}

.pillar-bar.loss {
  background: linear-gradient(180deg, rgba(24, 34, 58, 0.55) 0%, rgba(15, 22, 40, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pillar-bar.profit {
  background: linear-gradient(180deg, #1648a8 0%, #2775f2 54%, #75c6ff 100%);
  border: 1px solid rgba(135, 195, 255, 0.45);
  box-shadow:
    0 10px 26px rgba(37, 114, 240, 0.52),
    inset 0 -8px 16px rgba(205, 240, 255, 0.72),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.pillar-month {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Right Sub-Column Mini Asset Cards */
.assets-side-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.mini-asset-card {
  background: rgba(13, 20, 37, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mini-asset-card:hover {
  border-color: rgba(77, 163, 255, 0.25);
  background: rgba(18, 28, 52, 0.9);
}

.mini-asset-card.compact {
  padding: 8px 11px;
}

.mini-asset-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-coin-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-coin-icon.btc {
  background: #f7931a;
  color: #fff;
}

.mini-coin-icon.eth {
  background: #627eea;
  color: #fff;
}

.mini-coin-icon.usdt {
  background: #26a17b;
  color: #fff;
}

.mini-coin-icon.bnb {
  background: #f3ba2f;
  color: #111;
}

.mini-coin-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}

.mini-coin-titles strong {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
}

.mini-coin-titles small {
  font-size: 9.5px;
  color: var(--text-muted);
}

.mini-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.mini-asset-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
}

.mini-amount {
  font-weight: 600;
  color: #ffffff;
}

.mini-amount small {
  color: var(--text-muted);
  font-weight: 500;
}

.mini-share {
  color: var(--text-muted);
  font-size: 9.5px;
}

/* ==============================================================================
   CARD 5: EXCHANGE (Bottom-Right)
   ============================================================================== */
.card-exchange {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header-btn-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.exchange-boxes-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exchange-input-box {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
}

.ex-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ex-box-top b {
  color: #93a4c3;
  font-weight: 500;
}

.ex-box-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ex-box-main input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  width: 100%;
}

.ex-token-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.ex-swap-circle-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0b1222;
  background: linear-gradient(180deg, #5ab0ff 0%, #1c6ef2 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(41, 121, 255, 0.85);
  z-index: 4;
  transition: transform 0.25s var(--ease-out);
}

.ex-swap-circle-btn:hover {
  transform: translate(-50%, -50%) rotate(180deg) scale(1.08);
}

.ex-swap-circle-btn svg {
  width: 15px;
  height: 15px;
}

.exchange-address-line {
  font-size: 10.5px;
  color: var(--text-muted);
  margin: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-address-line span {
  color: #566684;
}

/* ==============================================================================
   SECONDARY TABS (Market, Wallet, Watchlist, Community)
   ============================================================================== */
.bento-secondary-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.objectives-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.frosted-stat-box.wide {
  padding: 16px 18px;
}

.mini-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d6ff2, #1ad598);
}

.accounts-bento-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bento-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bento-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bento-table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.bento-badge-pass {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(26, 213, 152, 0.12);
  color: var(--mint-teal);
  border: 1px solid rgba(26, 213, 152, 0.3);
}

/* ==============================================================================
   FUNDED ACCOUNT CARD & STATS EXTENSIONS
   ============================================================================== */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-empty-toggle {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 25, 48, 0.75);
  border: 1px solid rgba(120, 170, 255, 0.22);
  color: #8fa6cb;
  font-size: 10.5px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-empty-toggle:hover,
.btn-empty-toggle.active {
  background: rgba(41, 121, 255, 0.25);
  color: #ffffff;
  border-color: rgba(110, 175, 255, 0.55);
}

.funded-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  text-transform: uppercase;
}

.visa-number.no-account-state {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.fstat-micro {
  font-size: 9.5px;
  color: rgba(180, 205, 245, 0.65);
  font-weight: 500;
  margin-top: -1px;
}

/* ==============================================================================
   CARD 4: YOUR ASSETS — STATE A: EXPANDABLE ACCOUNTS LIST (100% Reference Image 1)
   ============================================================================== */
.card-your-assets-matrix {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(340px 220px at 18% 12%, rgba(35, 102, 230, 0.2), transparent 72%),
    var(--bg-card);
}

.ftmo-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ftmo-acc-row {
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(22, 30, 48, 0.92) 0%, rgba(16, 22, 36, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  overflow: hidden;
  transition: all 0.28s var(--ease-out);
  position: relative;
}

.ftmo-acc-row:hover {
  border-color: rgba(120, 175, 255, 0.26);
  transform: translateX(2px);
}

/* Ambient left glow based on status (matches Reference Image 1) */
.ftmo-acc-row.status-passed.expanded {
  background:
    radial-gradient(280px 140px at 8% 30%, rgba(29, 130, 246, 0.28), transparent 70%),
    linear-gradient(90deg, rgba(20, 32, 58, 0.96) 0%, rgba(15, 22, 38, 0.98) 100%);
  border-color: rgba(74, 152, 255, 0.34);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.65);
}

.ftmo-acc-row.status-repeat {
  background:
    radial-gradient(190px 100px at 6% 50%, rgba(234, 152, 28, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(26, 28, 38, 0.94) 0%, rgba(16, 22, 36, 0.95) 100%);
}

.ftmo-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}

.ftmo-acc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftmo-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: #ffffff;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ftmo-status-pill.passed {
  background: linear-gradient(180deg, #2b8aff 0%, #1565d8 100%);
  box-shadow: 0 2px 10px rgba(41, 121, 255, 0.45);
}

.ftmo-status-pill.not-passed {
  background: linear-gradient(180deg, #f03e3e 0%, #c92a2a 100%);
  box-shadow: 0 2px 8px rgba(240, 62, 62, 0.3);
}

.ftmo-status-pill.repeat {
  background: linear-gradient(180deg, #f59f00 0%, #d97706 100%);
  box-shadow: 0 2px 10px rgba(245, 159, 0, 0.35);
}

.ftmo-acc-type {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.ftmo-acc-num {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Right side Visible + Toggle Switch */
.ftmo-acc-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ftmo-vis-label {
  font-size: 11px;
  color: #7c8ba6;
  font-weight: 500;
}

.ftmo-toggle {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #141926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.ftmo-toggle-knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  background: transparent;
  border: 1.6px solid #e03131;
  transition: all 0.25s var(--ease-out);
}

.ftmo-toggle.on {
  background: rgba(29, 126, 242, 0.32);
  border-color: rgba(74, 158, 255, 0.55);
}

.ftmo-toggle.on .ftmo-toggle-knob {
  left: 18px;
  background: #2986ff;
  border-color: #6eb6ff;
  box-shadow: 0 0 8px #2986ff;
}

/* Expanded Row Drawer */
.ftmo-acc-body {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: bentoFadeIn 0.24s var(--ease-out);
}

.ftmo-acc-row.expanded .ftmo-acc-body {
  display: flex;
}

.ftmo-meta-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11.5px;
  color: #8fa1c0;
}

.ftmo-meta-strip b {
  color: #ffffff;
  font-weight: 700;
  margin-left: 3px;
}

.ftmo-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ftmo-tool-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ftmo-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #e2ecff;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ftmo-tool-btn:hover {
  color: #6eb6ff;
  transform: translateY(-1px);
}

.ftmo-tool-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c6d6f2;
}

.ftmo-tool-icon svg {
  width: 13px;
  height: 13px;
}

.ftmo-detail-btn {
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ftmo-detail-btn:hover {
  background: rgba(41, 121, 255, 0.22);
  border-color: rgba(110, 175, 255, 0.5);
}

/* ==============================================================================
   CARD 4: YOUR ASSETS — STATE B: NO ACCOUNT GRAPHIC (100% Reference Image 2)
   ============================================================================== */
@keyframes floatIconBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes marqueeGlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-35%); }
}

.ftmo-empty-account-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px 4px;
  border-radius: 16px;
  background:
    radial-gradient(260px 160px at 50% 22%, rgba(37, 114, 245, 0.28), transparent 72%),
    rgba(11, 17, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1;
  justify-content: space-between;
}

.empty-hero-graphic {
  position: relative;
  width: 220px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.empty-avatar-glow {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.55) 0%, rgba(20, 62, 150, 0.2) 65%, transparent 100%);
  z-index: 1;
}

.empty-bg-chart-svg {
  position: absolute;
  width: 190px;
  height: 75px;
  z-index: 1;
}

.empty-trader-circle {
  position: relative;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: visible;
  border: 2px solid rgba(90, 165, 255, 0.55);
  background: linear-gradient(180deg, #1b4db8 0%, #0d2154 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.empty-trader-main-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.empty-phone-badge {
  position: absolute;
  bottom: -2px;
  left: -8px;
  width: 28px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(160deg, #0d1b3a 0%, #070e20 100%);
  border: 1.5px solid #4da3ff;
  box-shadow: 0 0 12px rgba(41, 121, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
}

.float-mini-icon {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(30, 72, 165, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIconBob 3.6s ease-in-out infinite;
}

.float-mini-icon.fi-dollar { top: 10px; left: 32px; border-radius: 50%; animation-delay: 0s; }
.float-mini-icon.fi-cal { top: 34px; left: 10px; animation-delay: 0.6s; }
.float-mini-icon.fi-trend { bottom: 8px; left: 36px; animation-delay: 1.2s; }
.float-mini-icon.fi-chart { top: 24px; right: 12px; animation-delay: 0.4s; }
.float-mini-icon.fi-bag { bottom: 10px; right: 28px; animation-delay: 1.0s; }

/* Orange Special Deal Pill */
.special-deal-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  margin: 4px 0 6px;
  transition: transform 0.2s ease;
}

.special-deal-pill:hover {
  transform: scale(1.04);
}

.sd-tag {
  background: #ffffff;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.sd-claim {
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}

.empty-main-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.empty-main-desc {
  font-size: 11px;
  color: #8496b4;
  max-width: 490px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.empty-cta-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.empty-btn-primary,
.empty-btn-secondary {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.empty-unlock-link {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.empty-unlock-link:hover {
  color: #60a5fa;
}

.empty-features-strip {
  width: 100%;
  overflow: hidden;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-features-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  animation: marqueeGlide 18s linear infinite;
}

.empty-features-track:hover {
  animation-play-state: paused;
}

.ef-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ef-pill i {
  font-style: normal;
}

/* ==============================================================================
   CARD 5: RIGHT SIDE PAYOUT SECTION (3 GLASS CARDS)
   ============================================================================== */
.card-payouts-glass {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(240px 180px at 82% 15%, rgba(35, 102, 230, 0.2), transparent 72%),
    var(--bg-card);
}

.payout-glass-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  justify-content: flex-start;
}

.payout-glass-item {
  padding: 11px 14px;
  border-radius: 16px;
  gap: 4px;
  flex: 1;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.payout-glass-item:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 195, 255, 0.42);
}

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

.pgi-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.pgi-badge.ready {
  background: rgba(26, 213, 152, 0.16);
  color: #1ad598;
  border: 1px solid rgba(26, 213, 152, 0.35);
}

.pgi-badge.paid {
  background: rgba(41, 121, 255, 0.22);
  color: #7ab8ff;
  border: 1px solid rgba(77, 163, 255, 0.38);
}

.pgi-badge.info {
  background: rgba(255, 255, 255, 0.08);
  color: #c8daf8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pgi-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pgi-amount {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.pgi-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px 3px 4px;
  font-size: 10px;
  font-weight: 600;
  color: #d6e4ff;
}

.pgi-sub {
  font-size: 9.5px;
  color: rgba(180, 205, 245, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   MODAL OVERLAY
   ============================================================================== */
.bento-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.bento-modal-backdrop.open {
  display: flex;
}

.bento-modal-card {
  width: 100%;
  max-width: 420px;
  background: #0c1428;
  border: 1px solid rgba(110, 168, 255, 0.25);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

/* ==============================================================================
   VIEW 2: FULL PROP FIRM ACCOUNT METRIX DASHBOARD
   ============================================================================== */
.metrix-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

/* 1. Top Account MetriX Banner */
.metrix-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background:
    radial-gradient(360px 180px at 14% 25%, rgba(41, 121, 255, 0.28), transparent 72%),
    var(--bg-card);
  border-color: rgba(110, 170, 255, 0.2);
}

.metrix-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.btn-back-overview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-back-overview:hover {
  background: rgba(41, 121, 255, 0.25);
  border-color: rgba(110, 175, 255, 0.48);
  color: #ffffff;
  transform: translateX(-2px);
}

.btn-back-overview svg {
  width: 14px;
  height: 14px;
}

.metrix-acc-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metrix-acc-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.metrix-acc-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.metrix-platform-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #93b4eb;
  background: rgba(41, 121, 255, 0.15);
  border: 1px solid rgba(90, 160, 255, 0.28);
  padding: 2.5px 9px;
  border-radius: 999px;
}

.metrix-acc-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.metrix-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.metrix-acc-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 15, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 4px;
  border-radius: 999px;
}

.mx-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #8496b4;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mx-switch-pill:hover {
  color: #ffffff;
}

.mx-switch-pill.active {
  background: linear-gradient(180deg, rgba(41, 121, 255, 0.32) 0%, rgba(22, 68, 165, 0.42) 100%);
  border-color: rgba(110, 175, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(25, 92, 215, 0.35);
}

.mx-switch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.mx-switch-dot.passed     { background: #2986ff; box-shadow: 0 0 6px #2986ff; }
.mx-switch-dot.not-passed { background: #f03e3e; }
.mx-switch-dot.repeat     { background: #f59f00; }

.metrix-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metrix-sm-btn {
  padding: 8px 15px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
}

/* 2. Row 1: 4 Primary Prop Firm Risk & Equity Glass Cards */
.metrix-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metrix-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background:
    radial-gradient(200px 140px at 85% 15%, rgba(41, 121, 255, 0.18), transparent 72%),
    var(--bg-card);
}

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

.mkpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #9fb2d1;
}

.mkpi-big-val {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.mkpi-big-val small {
  font-size: 12px;
  font-weight: 600;
  color: #7ab8ff;
}

.mkpi-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mkpi-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mkpi-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.55s var(--ease-out);
}

.mkpi-progress-fill.blue {
  background: linear-gradient(90deg, #1d6ef2 0%, #5bb0ff 100%);
  box-shadow: 0 0 10px rgba(41, 121, 255, 0.65);
}

.mkpi-progress-fill.teal {
  background: linear-gradient(90deg, #12a876 0%, #1ad598 100%);
  box-shadow: 0 0 10px rgba(26, 213, 152, 0.6);
}

.mkpi-progress-fill.danger {
  background: linear-gradient(90deg, #c92a2a 0%, #ff6b6b 100%);
  box-shadow: 0 0 10px rgba(240, 62, 62, 0.65);
}

.mkpi-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #6e81a0;
}

.mkpi-progress-labels b {
  color: #dbe8ff;
  font-weight: 600;
}

.mkpi-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mkpi-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7c8ea9;
}

.mkpi-meta-item b {
  color: #ffffff;
  font-weight: 600;
}

.pgi-badge.breached {
  background: rgba(240, 62, 62, 0.2);
  color: #ff8787;
  border: 1px solid rgba(240, 62, 62, 0.42);
}

/* 3. Row 2: Equity Curve vs Drawdown Thresholds + 8-Box Statistical Matrix */
.metrix-mid-split {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 14px;
}

.metrix-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(420px 240px at 22% 18%, rgba(41, 121, 255, 0.34), transparent 72%),
    var(--bg-card);
}

.metrix-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mleg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a7c6;
}

.mleg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mleg-dot.equity { background: #1ad598; box-shadow: 0 0 6px #1ad598; }
.mleg-dot.target { background: #5bb0ff; }
.mleg-dot.daily  { background: #f59f00; }
.mleg-dot.maxdd  { background: #f03e3e; }

.metrix-equity-stage {
  width: 100%;
  height: 225px;
  position: relative;
}

.metrix-8box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.metrix-8box-grid .frosted-stat-box {
  padding: 11px 13px;
  gap: 3px;
}

/* 4. Row 3: Trading Objectives Checklist + Open Trades */
.metrix-objectives-open-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
}

.metrix-objectives-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.metrix-obj-row {
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(62, 125, 240, 0.14) 0%, rgba(16, 34, 76, 0.2) 100%);
  border: 1px solid rgba(120, 175, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.mobj-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.mobj-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8496b4;
}

.mobj-bottom b {
  color: #dbe8ff;
}

.metrix-history-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   MOBILE BOTTOM NAVIGATION BAR (Hidden on Desktop, Active on iOS & Android <= 860px)
   ============================================================================== */
.mobile-bottom-nav {
  display: none;
}

/* ==============================================================================
   RESPONSIVE BREAKPOINTS — iOS, ANDROID & TABLET OPTIMIZATION
   ============================================================================== */
@media (max-width: 1180px) {
  .bento-grid-main {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .bento-col-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
  .bento-bottom-split {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .metrix-kpi-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrix-mid-split,
  .metrix-objectives-open-split {
    grid-template-columns: 1fr;
  }
  .notif-label {
    display: none;
  }
}

@media (max-width: 860px) {
  html,
  body,
  body.bento-body,
  .bento-Stage {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 1. App Shell & Safe-Area Padding for iOS Home Indicator / Android Gesture Bar */
  .bento-app-shell {
    padding: 10px 12px calc(88px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .bento-view,
  .bento-view.active {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* 2. Compact iOS / Android Top Header (Zero Horizontal Overflow) */
  .bento-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .topbar-left {
    gap: 8px;
    flex: 1 1 0%;
    min-width: 0;
  }

  .brand-circle-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .topbar-search {
    width: 100%;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 190px;
    padding: 7px 11px;
    gap: 6px;
  }

  .topbar-search input {
    font-size: 12px;
    min-width: 0;
    width: 100%;
  }

  .topbar-nav {
    display: none;
  }

  .topbar-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(11, 18, 35, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(110, 170, 255, 0.22);
    border-radius: 18px;
    padding: 10px;
    z-index: 960;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  }

  .topbar-nav.mobile-open .topbar-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 16px;
  }

  .topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .theme-switch-pill {
    padding: 2px;
    gap: 2px;
  }

  .theme-opt {
    width: 26px;
    height: 26px;
  }

  .theme-opt svg {
    width: 13px;
    height: 13px;
  }

  .notif-bell-btn {
    width: 34px;
    height: 34px;
  }

  .notif-label,
  .user-meta {
    display: none;
  }

  .user-profile-chip {
    padding-left: 0;
  }

  .user-avatar-ring {
    width: 34px;
    height: 34px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .mobile-menu-btn svg {
    width: 17px;
    height: 17px;
  }

  /* 3. Smart Mobile Card Priority Ordering with Strict minmax(0, 1fr) Track */
  .bento-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bento-col-left,
  .bento-col-right,
  .bento-bottom-split {
    display: contents;
  }

  .card-my-card            { order: 1; }
  .card-hero-chart         { order: 2; }
  .card-your-assets-matrix { order: 3; }
  .card-payouts-glass      { order: 4; }
  .card-economic-calendar  { order: 5; }

  /* 4. Universal Mobile Card Container */
  .bento-card {
    padding: 15px 14px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .card-title {
    font-size: 15.5px;
  }

  .card-subtitle {
    font-size: 11px;
  }

  /* 5. Card 1: My Card (Funded Accounts Apple Wallet Card) */
  .card-my-card .card-header-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .card-header-actions {
    gap: 6px;
  }

  .btn-empty-toggle,
  .btn-add-card {
    padding: 5px 10px;
    font-size: 10.5px;
  }

  .visa-card-stage {
    height: 152px;
    margin-bottom: 12px;
    width: 100%;
  }

  .visa-card-primary {
    width: calc(100% - 14px);
    padding: 15px 16px;
    border-radius: 16px;
  }

  .visa-card-ghost {
    width: 36px;
    border-radius: 16px;
  }

  .visa-number {
    font-size: 16.5px;
    letter-spacing: 0.07em;
  }

  .wallet-amount {
    font-size: 17px;
  }

  .btn-glow-blue,
  .btn-dark-pill {
    padding: 11px 14px;
    font-size: 12.5px;
  }

  /* 6. Card 2: Hero Funded Account Equity & Candlestick Chart */
  .card-hero-chart {
    padding: 16px 14px 14px;
  }

  .hero-chart-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    min-width: 0;
  }

  .hero-price-block {
    min-width: 0;
    width: 100%;
  }

  .hero-big-price {
    font-size: 23px;
  }

  .hero-price-pct {
    font-size: 12px;
  }

  .hero-asset-sub {
    font-size: 11px;
    margin-top: 4px;
    min-width: 0;
  }

  .hero-asset-sub span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-chart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-chart-controls::-webkit-scrollbar {
    display: none;
  }

  .chart-type-group,
  .segmented-pill,
  .timeframe-pill {
    flex-shrink: 0;
    padding: 3px;
  }

  .chart-icon-btn {
    width: 26px;
    height: 26px;
  }

  .seg-btn,
  .tf-btn {
    padding: 5px 8.5px;
    font-size: 10.5px;
  }

  .hero-chart-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .hero-glass-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .hero-glass-stats .frosted-stat-box {
    padding: 10px 10px;
    border-radius: 14px;
    gap: 3px;
    min-width: 0;
  }

  .hero-glass-stats .fstat-label {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-glass-stats .fstat-val {
    font-size: 14.5px;
  }

  .hero-glass-stats .fstat-micro {
    font-size: 8.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .candlestick-stage {
    height: 195px;
    width: 100%;
  }

  /* 7. Card 3: Your Assets (Expandable Account Rows & No-Account Graphic) */
  .ftmo-acc-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .ftmo-acc-left {
    gap: 7px;
    min-width: 0;
    flex: 1;
  }

  .ftmo-status-pill {
    font-size: 9.5px;
    padding: 3px 8px;
    flex-shrink: 0;
  }

  .ftmo-acc-type {
    font-size: 11px;
    flex-shrink: 0;
  }

  .ftmo-acc-num {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ftmo-acc-body {
    padding: 10px 12px 12px;
    gap: 10px;
  }

  .ftmo-meta-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    font-size: 10.5px;
    background: rgba(8, 14, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 10px;
  }

  .ftmo-meta-strip span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9.5px;
  }

  .ftmo-meta-strip b {
    margin-left: 0;
    font-size: 11px;
  }

  .ftmo-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ftmo-tool-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .ftmo-tool-btn {
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 10.5px;
    gap: 5px;
    white-space: nowrap;
  }

  .ftmo-tool-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: transparent;
    border: none;
  }

  .ftmo-detail-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(41, 121, 255, 0.16);
    border-color: rgba(74, 152, 255, 0.35);
    font-size: 11.5px;
  }

  /* Empty State Graphic on Mobile */
  .ftmo-empty-account-state {
    padding: 14px 12px 10px;
  }

  .empty-main-title {
    font-size: 14px;
  }

  .empty-main-desc {
    font-size: 11px;
  }

  .empty-cta-pair {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .empty-btn-primary,
  .empty-btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 12px;
  }

  /* 8. Secondary Views, Account MetriX Dashboard & Tables on Mobile */
  .bento-secondary-grid {
    gap: 12px;
  }

  .metrix-top-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 14px;
    gap: 12px;
  }

  .metrix-banner-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .metrix-banner-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .metrix-acc-switcher {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }

  .metrix-acc-switcher::-webkit-scrollbar {
    display: none;
  }

  .metrix-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .metrix-kpi-grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metrix-equity-stage {
    height: 190px;
  }

  .objectives-bento-grid,
  .accounts-bento-list {
    grid-template-columns: 1fr !important;
  }

  .bento-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 9. Floating iOS / Android Bottom Tab Bar */
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    background: rgba(10, 16, 32, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(110, 170, 255, 0.22);
    border-radius: 22px;
    padding: 6px;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.82),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: #7c8da9;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav-item svg {
    width: 18px;
    height: 18px;
    transition: transform 0.22s var(--ease-out);
  }

  .mob-nav-item.active {
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.26) 0%, rgba(25, 72, 168, 0.34) 100%);
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(135, 195, 255, 0.35),
      0 4px 12px rgba(25, 92, 215, 0.3);
  }

  .mob-nav-item.active svg {
    color: #5bb0ff;
    transform: translateY(-1px);
  }
}

/* Extra-Compact Phone Screens (iPhone SE / 360px–420px Android & iOS) */
@media (max-width: 420px) {
  .bento-app-shell {
    padding: 8px 10px calc(84px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .topbar-search {
    max-width: 148px;
    padding: 7px 10px;
  }

  .visa-number {
    font-size: 15.5px;
    letter-spacing: 0.06em;
  }

  .ftmo-vis-label {
    display: none;
  }

  .ftmo-tool-btn {
    font-size: 9.8px;
    padding: 6px 4px;
    gap: 3px;
  }

  .ftmo-tool-icon {
    width: 18px;
    height: 18px;
  }

  .econ-bottom-row {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ==============================================================================
   DEDICATED ACCOUNT DASHBOARD PAGE (account.html)
   Includes:
   - Account Balance & Equity Curve Hero Chart (Theme Style)
   - Daily Drawdown, Max Drawdown, Profit Target, Violation Alert
   - Most Traded Pair (Exact Theme Glowing Blue Vertical Pill Bars + 4 Pair Cards)
   - Request Payout Glass Card (Theme Exchange/Payout Style)
   - Open Trades & Closed Trades / Trading History
   ============================================================================== */

.account-page-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Row 1: Left Violation Alert + Quick Risk Summary (340px) | Right Balance & Equity Curve Hero Chart (1fr) */
.acc-hero-row {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Violation Alert & Rule Monitor Card (Left of Hero Chart) */
.card-violation-hero {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(280px 200px at 85% 15%, rgba(41, 121, 255, 0.2), transparent 72%),
    var(--bg-card);
}

.violation-banner-box {
  padding: 13px 14px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: all 0.25s ease;
}

.violation-banner-box.clean {
  background: linear-gradient(145deg, rgba(26, 213, 152, 0.14) 0%, rgba(12, 34, 48, 0.55) 100%);
  border: 1px solid rgba(26, 213, 152, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.violation-banner-box.warning {
  background: linear-gradient(145deg, rgba(245, 159, 0, 0.16) 0%, rgba(42, 28, 12, 0.6) 100%);
  border: 1px solid rgba(245, 159, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.violation-banner-box.breached {
  background: linear-gradient(145deg, rgba(240, 62, 62, 0.22) 0%, rgba(48, 14, 24, 0.72) 100%);
  border: 1px solid rgba(255, 107, 107, 0.5);
  box-shadow:
    0 8px 24px rgba(240, 62, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.vb-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
}

.violation-banner-box.clean .vb-icon {
  background: rgba(26, 213, 152, 0.2);
  color: #1ad598;
  border: 1px solid rgba(26, 213, 152, 0.4);
}

.violation-banner-box.warning .vb-icon {
  background: rgba(245, 159, 0, 0.22);
  color: #ffc048;
  border: 1px solid rgba(245, 159, 0, 0.45);
}

.violation-banner-box.breached .vb-icon {
  background: rgba(240, 62, 62, 0.28);
  color: #ff8787;
  border: 1px solid rgba(255, 107, 107, 0.55);
}

.vb-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.vb-text p {
  font-size: 11px;
  color: #a3b6d4;
  line-height: 1.4;
}

.violation-checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vcheck-item {
  padding: 10px 12px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(41, 98, 215, 0.12) 0%, rgba(14, 24, 48, 0.58) 100%);
  border: 1px solid rgba(110, 168, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vcheck-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vcheck-name {
  font-size: 11.8px;
  font-weight: 600;
  color: #e6f0ff;
}

.vcheck-detail {
  font-size: 10.5px;
  color: #7c8fac;
}

/* Row 3: Theme Most Traded Pairs (Left/Center) + Request Payout Card (Right 370px) */
.acc-pair-payout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
  align-items: stretch;
}

/* MOST TRADED PAIR CARD — EXACT THEME GLOWING BLUE BAR GRAPHIC (from bento_dashboard_v1) */
.card-most-traded-pairs {
  padding: 22px 24px;
  background:
    radial-gradient(360px 240px at 26% 78%, rgba(35, 108, 245, 0.24), transparent 72%),
    var(--bg-card);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.mpair-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.mpair-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mpair-updated-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #6d7f9d;
}

.mpair-refresh-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #93a6c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mpair-refresh-circle:hover {
  border-color: rgba(91, 176, 255, 0.45);
  color: #ffffff;
}

.mpair-kpi-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 18px;
}

.mpair-big-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mpair-big-val {
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.mpair-big-pct {
  font-size: 12.5px;
  font-weight: 600;
  color: #1ad598;
}

.mpair-legend-dots {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #7c8fac;
}

.mpair-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mpair-dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #388bff;
  box-shadow: 0 0 8px #388bff;
}

.mpair-dot-dark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33415c;
}

/* Signature 6 Vertical Pill Bars (Exact Theme Blue Bar Graphic) */
.mpair-bars-stage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  height: 168px;
  padding-top: 18px;
}

.mpair-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.mpair-bar-pct {
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
}

.mpair-bar-pct.blue-txt {
  color: #4da3ff;
}

.mpair-bar-pct.muted-txt {
  color: #556684;
}

.mpair-bar-pill {
  width: 100%;
  max-width: 48px;
  border-radius: 14px;
  transition: height 0.45s var(--ease-out), transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  cursor: pointer;
}

.mpair-bar-pill:hover {
  transform: translateY(-3px) scaleX(1.03);
}

/* Glowing Sapphire-Blue Bar with Bright White-Cyan Bottom Reflection (exact v1 theme) */
.mpair-bar-pill.is-blue-glow {
  background: linear-gradient(180deg, #1b65ff 0%, #2f80ff 56%, #8fd8ff 91%, #f2fbff 100%);
  border: 1px solid rgba(135, 204, 255, 0.6);
  box-shadow:
    0 10px 26px rgba(34, 118, 255, 0.58),
    0 4px 12px rgba(155, 230, 255, 0.45),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.42),
    inset 0 -8px 14px rgba(255, 255, 255, 0.85);
}

/* Dark Glass Bar (exact v1 theme alternating bars) */
.mpair-bar-pill.is-dark-glass {
  background: linear-gradient(180deg, rgba(18, 27, 49, 0.72) 0%, rgba(12, 19, 36, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mpair-bar-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7d9c;
  letter-spacing: 0.02em;
}

/* Right Side of Most Traded Pairs Card: 4 Stacked Glass Instrument Boxes */
.mpair-right-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.mpair-item-card {
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(35, 58, 108, 0.24) 0%, rgba(14, 22, 42, 0.78) 100%);
  border: 1px solid rgba(120, 175, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.mpair-item-card:hover {
  border-color: rgba(120, 182, 255, 0.42);
  transform: translateX(2px);
}

.mpair-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mpair-coin-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.mpair-coin-badge.gold {
  background: linear-gradient(135deg, #f7931a, #d97706);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.35);
}

.mpair-coin-badge.indigo {
  background: linear-gradient(135deg, #627eea, #3b5998);
  box-shadow: 0 4px 12px rgba(98, 126, 234, 0.35);
}

.mpair-coin-badge.teal {
  background: linear-gradient(135deg, #26a17b, #0d9488);
  box-shadow: 0 4px 12px rgba(38, 161, 123, 0.35);
}

.mpair-coin-badge.amber {
  background: linear-gradient(135deg, #f3ba2f, #ca8a04);
  color: #0b1120;
  box-shadow: 0 4px 12px rgba(243, 186, 47, 0.35);
}

.mpair-item-meta {
  display: flex;
  flex-direction: column;
}

.mpair-sym-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.mpair-sym-sub {
  font-size: 10px;
  color: #6f82a3;
}

.mpair-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.mpair-item-wrap {
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(35, 58, 108, 0.22) 0%, rgba(14, 22, 42, 0.78) 100%);
  border: 1px solid rgba(120, 175, 255, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mpair-item-wrap:hover {
  border-color: rgba(120, 182, 255, 0.42);
  transform: translateY(-1px);
}

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

/* REQUEST PAYOUT CARD (Theme Exchange / Payout Style on Right Side) */
.card-request-payout-box {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(280px 220px at 82% 85%, rgba(41, 121, 255, 0.22), transparent 72%),
    var(--bg-card);
}

.rpayout-convert-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.rpayout-glass-slot {
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 25, 46, 0.88) 0%, rgba(10, 16, 32, 0.94) 100%);
  border: 1px solid rgba(120, 175, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rpayout-slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7c8fac;
}

.rpayout-slot-top b {
  color: #d6e4ff;
  font-weight: 600;
}

.rpayout-slot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rpayout-amount-big {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.rpayout-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(41, 98, 215, 0.22);
  border: 1px solid rgba(110, 168, 255, 0.3);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}

.rpayout-center-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4da3ff 0%, #1b6ef3 100%);
  border: 2px solid #0b1326;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: -14px 0;
  z-index: 3;
  box-shadow: 0 0 18px rgba(41, 121, 255, 0.75);
}

.rpayout-wallet-line {
  font-size: 11px;
  color: #7285a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.rpayout-wallet-line code {
  color: #9cb4d8;
  font-family: inherit;
}

/* Row 4: Open Trades & Closed Trades Split */
.acc-trades-split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Responsive adjustments for Dedicated Account Page */
@media (max-width: 1180px) {
  .acc-hero-row {
    grid-template-columns: 1fr;
  }

  .acc-pair-payout-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .card-most-traded-pairs {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }

  .mpair-bars-stage {
    gap: 8px;
    height: 145px;
  }

  .mpair-bar-pct {
    font-size: 10px;
  }

  .mpair-bar-label {
    font-size: 10px;
  }
}

/* ==============================================================================
   MYFXFIRM PC & MOBILE DASHBOARD — 100% FLUID AUTO-ADJUSTING ZERO-GAP LAYOUT
   ============================================================================== */

.uf-body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(640px 480px at 6% 12%, rgba(56, 118, 255, 0.25) 0%, rgba(28, 66, 162, 0.11) 46%, transparent 74%),
    radial-gradient(740px 540px at 54% 18%, rgba(42, 95, 215, 0.1) 0%, transparent 72%),
    #060b16;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  box-sizing: border-box;
}

.uf-body *,
.uf-body *::before,
.uf-body *::after {
  box-sizing: border-box;
}

.uf-app-shell {
  width: 100%;
  max-width: 1720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 44px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==================== LEFT SIDEBAR ==================== */
.uf-sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
}
  height: calc(100vh - clamp(28px, 2.6vw, 44px));
  position: sticky;
  top: clamp(14px, 1.3vw, 22px);
  min-width: 0;
}

.uf-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #ffffff;
  padding-left: 6px;
  flex-shrink: 0;
}

.uf-brand-logo {
  width: clamp(32px, 2.3vw, 35px);
  height: clamp(32px, 2.3vw, 35px);
  border-radius: 50%;
  background: linear-gradient(145deg, #6da8ff 0%, #3d7eff 100%);
  box-shadow:
    0 4px 14px rgba(61, 126, 255, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uf-brand-logo svg {
  width: 19px;
  height: 19px;
}

.uf-brand-text {
  font-size: clamp(16.5px, 1.2vw, 19px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.uf-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.6vh, 7px);
}

.uf-nav::-webkit-scrollbar {
  display: none;
}

.uf-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: clamp(9.5px, 1.15vh, 13px) 15px;
  border-radius: 12px;
  color: #8c98ae;
  text-decoration: none;
  font-size: clamp(12.5px, 0.92vw, 14px);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  position: relative;
}

.uf-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.uf-nav-item.active {
  background: linear-gradient(90deg, #5da0ff 0%, #4485ff 55%, #66a7ff 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow:
    0 8px 22px rgba(68, 133, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.uf-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uf-nav-icon svg {
  width: 17px;
  height: 17px;
}

/* ==================== TOP HEADER BAR ==================== */
.uf-main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: calc(100vh - clamp(28px, 2.6vw, 44px));
  gap: clamp(12px, 1.1vw, 16px);
}

.uf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.uf-search-box {
  width: clamp(260px, 35vw, 490px);
  max-width: 100%;
  min-width: 0;
  height: clamp(40px, 4.4vh, 44px);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 29, 60, 0.94) 0%, rgba(20, 39, 80, 0.9) 100%);
  border: 1px solid rgba(72, 125, 232, 0.22);
  display: flex;
  align-items: center;
  padding: 0 5px 0 14px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.uf-search-icon {
  width: 15px;
  height: 15px;
  color: #63799e;
  flex-shrink: 0;
  margin-right: 10px;
}

.uf-search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: clamp(12.5px, 0.88vw, 13.5px);
  font-family: inherit;
}

.uf-search-box input::placeholder {
  color: #63799e;
}

.uf-mic-btn {
  width: clamp(30px, 2.2vw, 34px);
  height: clamp(30px, 2.2vw, 34px);
  border-radius: 8px;
  background: #ffffff;
  border: none;
  color: #3b7bff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

.uf-mic-btn:hover {
  transform: scale(1.04);
}

.uf-mic-btn svg {
  width: 15px;
  height: 15px;
}

.uf-topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
  flex-shrink: 0;
}

.uf-bell-btn {
  width: clamp(35px, 2.5vw, 38px);
  height: clamp(35px, 2.5vw, 38px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.uf-bell-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(110, 168, 255, 0.35);
}

.uf-bell-btn svg {
  width: 15px;
  height: 15px;
}

.uf-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.uf-profile-avatar {
  width: clamp(35px, 2.5vw, 38px);
  height: clamp(35px, 2.5vw, 38px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.uf-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uf-profile-name {
  font-size: clamp(12.5px, 0.92vw, 13.5px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}

.uf-profile-email {
  font-size: clamp(10.5px, 0.75vw, 11.5px);
  color: #6d7a92;
  line-height: 1.15;
}

/* ==================== MAIN BENTO GRID ==================== */
.uf-bento-grid {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(345px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(12px, 1.1vw, 16px);
  min-height: 0;
  min-width: 0;
}

.uf-top-row {
  display: grid;
  grid-template-columns: minmax(290px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(12px, 1.1vw, 16px);
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}

.uf-left-stack {
  display: grid;
  grid-template-rows: minmax(235px, 1.16fr) minmax(185px, 0.84fr);
  gap: clamp(12px, 1.1vw, 16px);
  min-height: 0;
  min-width: 0;
}

.uf-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(12px, 1.1vw, 16px);
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}

/* Base Card Styling + Sweet Smooth Left-to-Right Background Light */
@keyframes ufSweetLightSweep {
  0% {
    transform: translate3d(-135%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translate3d(245%, 0, 0) skewX(-22deg);
    opacity: 0;
  }
}

.uf-card {
  border-radius: clamp(16px, 1.25vw, 18px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keep all card content strictly above the background light layers */
.uf-card > * {
  position: relative;
  z-index: 2;
}

/* Layer 1 (z-index: 0): Smooth Left-to-Right Sweeping Light Beam in Behind */
.uf-card::before {
  content: '';
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 64%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(43, 112, 255, 0) 0%,
    rgba(68, 144, 255, 0.13) 26%,
    rgba(130, 200, 255, 0.30) 50%,
    rgba(68, 144, 255, 0.13) 74%,
    rgba(43, 112, 255, 0) 100%
  );
  filter: blur(18px);
  opacity: 0;
  transform: translate3d(-135%, 0, 0) skewX(-22deg);
  will-change: transform, opacity;
}

/* Layer 2 (z-index: 1): Silky Cursor-Trailing Ambient Backlight */
.uf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      380px circle at var(--light-x, 50%) var(--light-y, 50%),
      rgba(82, 158, 255, 0.19) 0%,
      rgba(45, 112, 248, 0.07) 44%,
      transparent 74%
    );
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.uf-card.uf-light-sweep::before {
  animation: ufSweetLightSweep 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.uf-card:hover::after,
.uf-card.uf-light-active::after {
  opacity: 1;
}

.uf-card:hover {
  border-color: rgba(122, 182, 255, 0.36);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(56, 128, 255, 0.14),
    inset 0 1px 0 rgba(165, 212, 255, 0.28);
}

.uf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.uf-card-title {
  margin: 0;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.uf-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d6e2f5;
  font-size: clamp(10.5px, 0.76vw, 11.5px);
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.uf-date-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(135, 190, 255, 0.4);
}

.uf-date-pill svg {
  width: 12px;
  height: 12px;
  color: #9fb4d6;
  flex-shrink: 0;
}

.uf-date-pill .uf-chevron {
  width: 11px;
  height: 11px;
}

/* ==================== CARD 1: ACCOUNTS (LUXURY PROPFIRM CREDIT CARD DECK) ==================== */
.uf-card-balance {
  padding: clamp(14px, 1.25vw, 18px) clamp(16px, 1.4vw, 22px);
  background:
    radial-gradient(320px 200px at 20% 8%, rgba(56, 122, 248, 0.26) 0%, transparent 74%),
    linear-gradient(165deg, rgba(20, 28, 46, 0.95) 0%, rgba(13, 18, 32, 0.98) 100%);
  border: 1px solid rgba(118, 174, 255, 0.22);
  border-top-color: rgba(155, 205, 255, 0.52);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1.1vh, 14px);
  cursor: pointer;
}

.uf-accounts-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.uf-funded-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8.5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #34d399;
  font-size: clamp(9.5px, 0.72vw, 11px);
  font-weight: 600;
  white-space: nowrap;
}

.uf-funded-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.uf-switch-acc-pill {
  background: rgba(24, 48, 98, 0.48);
  border-color: rgba(125, 182, 255, 0.34);
  color: #d8e7ff;
  transition: all 0.2s ease;
}

.uf-switch-acc-pill:hover {
  background: rgba(45, 85, 170, 0.65);
  border-color: rgba(160, 210, 255, 0.65);
}

/* 3D Stacked Funded Account Cards Stage */
.uf-visa-stack-stage {
  position: relative;
  flex: 1;
  min-height: clamp(144px, 16.5vh, 172px);
  display: flex;
  align-items: stretch;
  perspective: 900px;
}

/* Stacked Ghost Cards Behind Primary Card */
.uf-visa-ghost {
  position: absolute;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.uf-visa-ghost-back {
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 56px;
  z-index: 1;
  padding-right: 4px;
  background: linear-gradient(145deg, rgba(48, 24, 76, 0.95) 0%, rgba(20, 10, 38, 0.98) 100%);
  border: 1px solid rgba(175, 115, 255, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.uf-visa-ghost-mid {
  top: 5px;
  bottom: 5px;
  right: 18px;
  width: 60px;
  z-index: 2;
  padding-right: 4px;
  background: linear-gradient(145deg, rgba(14, 58, 64, 0.95) 0%, rgba(6, 28, 34, 0.98) 100%);
  border: 1px solid rgba(52, 211, 153, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
}

.uf-visa-stack-stage:hover .uf-visa-ghost-back {
  transform: translateX(6px) scale(1.02);
  border-color: rgba(205, 160, 255, 0.75);
}

.uf-visa-stack-stage:hover .uf-visa-ghost-mid {
  transform: translateX(4px) scale(1.015);
  border-color: rgba(94, 234, 212, 0.75);
}

.uf-ghost-card-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  user-select: none;
  width: 16px;
}

.uf-ghost-pill {
  font-size: 8px;
  font-weight: 700;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.uf-ghost-amt {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(220, 235, 255, 0.88);
  white-space: nowrap;
}

/* Apple Card & Stripe Issuing Minimalist Titanium Architecture */
.uf-visa-primary,
.uf-apple-card {
  position: relative;
  z-index: 3;
  width: calc(100% - 36px);
  border-radius: 18px;
  padding: clamp(14px, 1.25vw, 18px) clamp(16px, 1.4vw, 20px);
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(99, 130, 255, 0.22) 0%, rgba(30, 58, 138, 0.16) 35%, transparent 70%),
    radial-gradient(90% 110% at 15% 90%, rgba(45, 212, 191, 0.16) 0%, rgba(14, 116, 144, 0.12) 40%, transparent 75%),
    linear-gradient(135deg, #131b2e 0%, #0d1422 52%, #080c16 100%);
  border: 1px solid rgba(148, 180, 240, 0.28);
  box-shadow:
    0 20px 45px -10px rgba(3, 7, 18, 0.75),
    0 4px 14px rgba(30, 58, 138, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.uf-visa-primary:hover,
.uf-apple-card:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 200, 255, 0.45);
  box-shadow:
    0 24px 50px -10px rgba(2, 6, 23, 0.85),
    0 6px 18px rgba(37, 99, 235, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.65),
    inset 0 -1px 1px rgba(0, 0, 0, 0.7);
}

/* Iridescent Prism Sheen & Ethereal Aurora Mesh */
.uf-card-aurora-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(129, 140, 248, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 22% 78%, rgba(56, 189, 248, 0.14) 0%, transparent 45%);
  mix-blend-mode: screen;
  z-index: 1;
}

.uf-card-glass-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: 17px 17px 60% 60% / 17px 17px 20px 20px;
  z-index: 1;
}

/* Card Content Stacking above overlays */
.uf-visa-top,
.uf-apple-card-center,
.uf-visa-num-row,
.uf-visa-bottom,
.uf-apple-card-bottom {
  position: relative;
  z-index: 2;
}

/* Row 1: Brand Header + Status Badge + Contactless */
.uf-visa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uf-visa-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.uf-visa-brand {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.uf-apple-status-pill,
.uf-visa-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  padding: 3px 8.5px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: #86efac;
  font-size: clamp(8px, 0.62vw, 9px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.15);
}

.uf-apple-status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 10px rgba(34, 197, 94, 0.6);
  animation: ufDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

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

.uf-visa-top-right {
  display: flex;
  align-items: center;
}

.uf-apple-nfc,
.uf-visa-nfc {
  width: clamp(16px, 1.2vw, 19px);
  height: clamp(16px, 1.2vw, 19px);
  color: rgba(226, 232, 240, 0.75);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.uf-apple-card:hover .uf-apple-nfc,
.uf-visa-primary:hover .uf-visa-nfc {
  color: #ffffff;
  transform: scale(1.05);
}

/* Row 2: Center Spaced Account Identifier (Apple Card Minimalist Digits) */
.uf-apple-card-center {
  margin: clamp(12px, 1.1vw, 16px) 0;
  display: flex;
  align-items: center;
}

.uf-apple-card-center .uf-visa-num-row,
.uf-visa-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.uf-visa-number {
  font-size: clamp(13px, 1.02vw, 15px);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.uf-copy-btn,
.uf-apple-copy {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(226, 232, 240, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.uf-copy-btn:hover,
.uf-apple-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  transform: translateY(-1px);
}

.uf-copy-btn svg,
.uf-apple-copy svg {
  width: 12.5px;
  height: 12.5px;
}

/* Row 3: Bottom Meta Bar (Cardholder, Allocation, Profit Split) */
.uf-visa-bottom,
.uf-apple-card-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr;
  align-items: flex-end;
  gap: 12px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uf-visa-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.uf-visa-meta-right {
  text-align: right;
}

.uf-apple-label,
.uf-visa-label {
  font-size: clamp(7.5px, 0.58vw, 8.5px);
  color: rgba(148, 163, 184, 0.75);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.uf-apple-val,
.uf-visa-val {
  font-size: clamp(10.5px, 0.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-apple-split,
.uf-visa-split-val {
  color: #4ade80;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}

/* Active Funded Account Balance & Quick Actions Footer */
.uf-visa-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: clamp(12px, 1.1vw, 16px);
  padding: clamp(10px, 0.9vw, 13px) clamp(13px, 1.1vw, 16px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.uf-visa-wallet-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.uf-visa-wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uf-visa-wallet-icon svg {
  width: 15px;
  height: 15px;
}

.uf-visa-wallet-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.uf-visa-wallet-bal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.uf-balance-amount {
  font-size: clamp(13.8px, 1.08vw, 16px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.uf-growth-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #34d399;
  font-size: clamp(9px, 0.68vw, 10px);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.uf-visa-wallet-sub {
  font-size: clamp(9.5px, 0.7vw, 10.5px);
  color: #94a3b8;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-balance-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.uf-action-sq {
  width: clamp(30px, 2.2vw, 34px);
  height: clamp(30px, 2.2vw, 34px);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.uf-action-sq:hover {
  transform: translateY(-1px);
}

.uf-action-sq svg {
  width: 14px;
  height: 14px;
}

.uf-action-sq.primary {
  background: linear-gradient(180deg, #4f94ff 0%, #2f73f5 100%);
  border: 1px solid rgba(145, 196, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 115, 245, 0.48);
}

.uf-action-sq.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d6e2f5;
}

.uf-visa-wallet-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.uf-visa-wallet-icon {
  width: clamp(28px, 2vw, 32px);
  height: clamp(28px, 2vw, 32px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fb4d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uf-visa-wallet-icon svg {
  width: 14px;
  height: 14px;
}

.uf-visa-wallet-text {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  min-width: 0;
}

.uf-visa-wallet-bal-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.uf-balance-amount {
  font-size: clamp(13.5px, 1.05vw, 16px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.uf-growth-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6.5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #22c55e;
  font-size: clamp(9px, 0.66vw, 10px);
  font-weight: 600;
  white-space: nowrap;
}

.uf-visa-wallet-sub {
  font-size: clamp(9.5px, 0.68vw, 10.5px);
  color: #7d8da6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-balance-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.uf-action-sq {
  width: clamp(30px, 2.2vw, 34px);
  height: clamp(30px, 2.2vw, 34px);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.uf-action-sq:hover {
  transform: translateY(-1px);
}

.uf-action-sq svg {
  width: 14px;
  height: 14px;
}

.uf-action-sq.primary {
  background: linear-gradient(180deg, #4f94ff 0%, #2f73f5 100%);
  border: 1px solid rgba(145, 196, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 115, 245, 0.48);
}

.uf-action-sq.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d6e2f5;
}

/* ==================== CARD 2: QUICK TRANSFER (PAYOUT AVAILABLE TO TRANSFER) ==================== */
.uf-card-transfer {
  padding: clamp(12px, 1vw, 16px) clamp(14px, 1.2vw, 18px);
  background:
    radial-gradient(280px 140px at 15% 0%, rgba(65, 138, 255, 0.35) 0%, transparent 75%),
    linear-gradient(165deg, rgba(24, 32, 50, 0.94) 0%, rgba(16, 21, 33, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(122, 180, 255, 0.42);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uf-transfer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uf-transfer-avail-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-size: 10px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.4px;
}

.uf-transfer-tag-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 5px #22c55e;
}

/* Payout Available to Transfer (Apple & Stripe Architecture) */
.uf-payout-transfer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 5px 0 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.uf-payout-transfer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.uf-payout-transfer-amount-block {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  min-width: 0;
}

.uf-payout-transfer-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.uf-payout-transfer-val {
  font-family: var(--uf-font-display, -apple-system, sans-serif);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.uf-payout-transfer-cur {
  font-size: 10.5px;
  font-weight: 600;
  color: #7d8ea7;
  letter-spacing: 0.4px;
}

.uf-payout-transfer-sub {
  font-size: clamp(10px, 0.7vw, 11px);
  font-weight: 500;
  color: #8a9bb5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-btn-transfer-now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  background: linear-gradient(180deg, #4f94ff 0%, #296ff0 100%);
  border: 1px solid rgba(155, 204, 255, 0.5);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(41, 111, 240, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  flex-shrink: 0;
}

.uf-btn-transfer-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(41, 111, 240, 0.5);
  filter: brightness(1.06);
}

.uf-btn-transfer-now svg {
  width: 11px;
  height: 11px;
}

.uf-payout-dest-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(10px, 0.68vw, 10.5px);
  color: #8c9eb9;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

.uf-payout-dest-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #3fe2b4;
  box-shadow: 0 0 5px #3fe2b4;
  flex-shrink: 0;
}

.uf-payout-dest-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-payout-dest-text strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Verified Destination Methods Row (Same Dimensions & Layout) */
.uf-avatars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 18px;
  margin-top: 2px;
}

.uf-avatar-add {
  width: clamp(34px, 2.75vw, 43px);
  height: clamp(34px, 2.75vw, 43px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.uf-avatar-add:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(110, 168, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.uf-avatar-add svg {
  width: 17px;
  height: 17px;
}

.uf-avatar-item {
  width: clamp(34px, 2.75vw, 43px);
  height: clamp(34px, 2.75vw, 43px);
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.uf-avatar-item:hover {
  transform: translateY(-2px);
  border-color: rgba(135, 190, 255, 0.5);
}

.uf-avatar-item.selected {
  border-color: rgba(93, 160, 255, 0.85);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.42);
}

/* Floating Checkmark / Lock Pin Badge */
.uf-avatar-lock-badge {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5da0ff 0%, #2f73f5 100%);
  border: 1px solid rgba(185, 220, 255, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.85);
}

.uf-avatar-lock-badge::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: rgba(93, 160, 255, 0.75);
}

.uf-avatar-lock-badge svg {
  width: 9px;
  height: 9px;
}

/* Apple & Stripe Method Icons */
.uf-method-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.uf-method-icon svg {
  width: 17px;
  height: 17px;
}

/* USDT Emerald */
.uf-method-usdt {
  background: linear-gradient(135deg, rgba(38, 161, 123, 0.28) 0%, rgba(18, 90, 70, 0.5) 100%);
  color: #3fe2b4;
  border: 1px solid rgba(63, 226, 180, 0.32);
}

/* Rise Cyan */
.uf-method-rise {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 116, 144, 0.5) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

/* Bank Wire Titanium */
.uf-method-bank {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0%, rgba(51, 65, 85, 0.45) 100%);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* Deel Coral */
.uf-method-deel {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.25) 0%, rgba(180, 83, 9, 0.45) 100%);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.32);
}

/* Stripe Violet / Indigo */
.uf-method-stripe {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(49, 46, 129, 0.5) 100%);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.32);
}

/* ==================== CARD 3: MONTHLY PAYOUTS (CANDLE BARS) ==================== */
.uf-card-cashflow {
  padding: clamp(16px, 1.45vw, 24px) clamp(18px, 1.75vw, 28px);
  background:
    radial-gradient(400px 190px at 14% 0%, rgba(65, 138, 255, 0.48) 0%, rgba(32, 74, 172, 0.16) 54%, transparent 78%),
    linear-gradient(165deg, rgba(22, 29, 46, 0.92) 0%, rgba(15, 20, 32, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(122, 180, 255, 0.48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Payouts Header Layout */
.uf-payouts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.uf-payouts-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.uf-payouts-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.uf-payouts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.uf-payouts-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Hero Payout Numbers */
.uf-payouts-hero {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.uf-payouts-hero-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.uf-payouts-hero-val {
  font-size: clamp(24px, 1.95vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #ffffff;
  font-family: var(--uf-font-display, -apple-system, sans-serif);
  line-height: 1.1;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.uf-payouts-hero-cur {
  font-size: 12px;
  font-weight: 600;
  color: #7b8ca6;
  letter-spacing: 0.5px;
}

.uf-payouts-hero-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uf-payouts-hero-lbl {
  font-size: clamp(11.5px, 0.82vw, 12.5px);
  font-weight: 500;
  color: #8c9cb4;
  transition: color 0.2s ease;
}

.uf-payouts-trend-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Header Right: Legend & Date Pill */
.uf-payouts-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.uf-payouts-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.uf-payouts-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #7d8ea6;
}

.uf-payouts-legend-box {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  flex-shrink: 0;
}

.uf-legend-box-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.uf-legend-box-fill {
  background: linear-gradient(180deg, #76adff 0%, #2d6cf5 100%);
  border: 1px solid rgba(155, 204, 255, 0.5);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

/* Chart Container & Grid */
.uf-cashflow-chart {
  position: relative;
  flex: 1;
  margin-top: 14px;
  min-height: 220px;
}

.uf-y-grid {
  position: absolute;
  inset: 8px 0 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.uf-y-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uf-y-label {
  width: 32px;
  font-size: clamp(10.5px, 0.78vw, 11.5px);
  font-weight: 500;
  color: #6c7992;
  flex-shrink: 0;
}

.uf-grid-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.055);
}

/* Candle Bars Container */
.uf-bars-container {
  position: absolute;
  inset: 8px 0 0 46px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 16px);
  align-items: end;
}

.uf-bar-col {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  outline: none;
}

/* Ghost Candle Outer Body */
.uf-bar-ghost {
  width: clamp(26px, 2.35vw, 38px);
  max-width: 100%;
  padding: 3.5px;
  border-radius: 10px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.03);
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background-color 0.22s ease;
}

/* Floating Amount Badge on top of each candle */
.uf-bar-amount {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--uf-font-mono, 'SF Mono', monospace);
  font-size: clamp(9px, 0.72vw, 10.5px);
  font-weight: 600;
  color: #8cb8ff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.uf-bar-col:hover .uf-bar-ghost,
.uf-bar-col:focus .uf-bar-ghost,
.uf-bar-col.is-active .uf-bar-ghost {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.06);
  border-top-color: rgba(140, 195, 255, 0.65);
}

.uf-bar-col:hover .uf-bar-amount,
.uf-bar-col:focus .uf-bar-amount,
.uf-bar-col.is-active .uf-bar-amount {
  color: #ffffff;
  transform: translateX(-50%) translateY(-2px);
  text-shadow: 0 0 10px rgba(93, 160, 255, 0.95);
}

/* Inner Solid Electric Blue Fill */
.uf-bar-fill {
  width: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, #76adff 0%, #4d8eff 48%, #2d6cf5 100%);
  border: 1px solid rgba(155, 204, 255, 0.45);
  box-shadow:
    0 6px 18px rgba(59, 130, 246, 0.44),
    inset 0 1px 1px rgba(255, 255, 255, 0.48);
  transition: box-shadow 0.22s ease, filter 0.22s ease;
}

.uf-bar-col:hover .uf-bar-fill,
.uf-bar-col:focus .uf-bar-fill,
.uf-bar-col.is-active .uf-bar-fill {
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.65),
    0 0 14px rgba(118, 173, 255, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
  filter: brightness(1.08);
}

/* Highlight states for Peak and Latest */
.uf-bar-col.is-peak .uf-bar-ghost {
  border-top-color: rgba(180, 215, 255, 0.55);
}

.uf-bar-col.is-latest .uf-bar-ghost {
  border-top-color: rgba(74, 222, 128, 0.55);
}

.uf-bar-col.is-latest .uf-bar-amount {
  color: #72e5a3;
}

.uf-bar-month {
  height: 28px;
  display: flex;
  align-items: flex-end;
  font-size: clamp(10.5px, 0.78vw, 11.5px);
  font-weight: 500;
  color: #7c89a2;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.uf-bar-col:hover .uf-bar-month,
.uf-bar-col:focus .uf-bar-month,
.uf-bar-col.is-active .uf-bar-month {
  color: #ffffff;
  font-weight: 600;
}

/* ==================== CARD 4: RECENT ACTIVITY (TODAY'S HIGH IMPACT ECONOMIC NEWS) ==================== */
.uf-card-activity-list {
  padding: clamp(14px, 1.25vw, 18px) clamp(16px, 1.4vw, 22px) 11px;
  background:
    radial-gradient(290px 120px at 30% 0%, rgba(62, 134, 255, 0.36) 0%, transparent 76%),
    linear-gradient(165deg, rgba(22, 29, 46, 0.92) 0%, rgba(15, 20, 32, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(118, 175, 255, 0.42);
  display: flex;
  flex-direction: column;
}

.uf-tx-table-head {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr 0.7fr;
  padding: 8px 2px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: clamp(10.5px, 0.75vw, 11.5px);
  font-weight: 500;
  color: #6d7a92;
  flex-shrink: 0;
}

.uf-tx-table-head span:nth-child(2) {
  text-align: center;
}

.uf-tx-table-head span:nth-child(3) {
  text-align: right;
}

.uf-tx-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.uf-tx-row {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr 0.7fr;
  align-items: center;
  padding: clamp(5px, 0.6vh, 7.5px) 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.18s ease;
}

.uf-tx-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.uf-tx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.uf-tx-logo {
  width: clamp(28px, 2vw, 31px);
  height: clamp(28px, 2vw, 31px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uf-tx-logo svg {
  width: 15px;
  height: 15px;
}

.uf-tx-logo.paypal {
  background: #1677ff;
}

.uf-tx-logo.wise {
  background: #87e64b;
}

.uf-tx-logo.atlassian {
  background: #2684ff;
}

.uf-tx-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.uf-tx-name {
  font-size: clamp(11.8px, 0.86vw, 13px);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-tx-mask {
  font-size: clamp(10px, 0.72vw, 10.8px);
  color: #6d7a92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-tx-date {
  text-align: center;
  font-size: clamp(11.5px, 0.84vw, 12.5px);
  font-weight: 500;
  color: #dce6f7;
  white-space: nowrap;
}

.uf-tx-amount {
  text-align: right;
  font-size: clamp(11.8px, 0.86vw, 13px);
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Today's High Impact News Elements */
.uf-news-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.uf-news-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 7.5px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #f87171;
  font-size: clamp(8px, 0.62vw, 9.2px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.uf-news-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: ufDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.uf-news-flag {
  width: clamp(26px, 1.9vw, 29px);
  height: clamp(26px, 1.9vw, 29px);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.uf-news-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uf-news-impact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 2.5px 7.5px;
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
  font-size: clamp(9px, 0.66vw, 10px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.18);
}

.uf-news-impact-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 5px #ef4444;
  flex-shrink: 0;
}

.uf-see-all-wrap {
  padding-top: 9px;
  text-align: center;
  flex-shrink: 0;
}

.uf-see-all-link {
  color: #4f93ff;
  font-size: clamp(11.5px, 0.84vw, 12.5px);
  font-weight: 600;
  text-decoration: none;
}

.uf-see-all-link:hover {
  text-decoration: underline;
}

/* ==================== CARD 5: RECENT ACTIVITY (2x2 CURRENCY GRID) ==================== */
.uf-card-currency-grid {
  padding: clamp(16px, 1.45vw, 22px) clamp(18px, 1.65vw, 24px);
  background:
    radial-gradient(310px 130px at 22% 0%, rgba(65, 138, 255, 0.45) 0%, transparent 76%),
    linear-gradient(165deg, rgba(22, 29, 46, 0.92) 0%, rgba(15, 20, 32, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(122, 180, 255, 0.48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
}

.uf-currency-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(10px, 0.95vw, 14px);
  flex: 1;
  min-width: 0;
}

.uf-curr-box {
  padding: clamp(13px, 1.15vw, 18px);
  border-radius: clamp(14px, 1.1vw, 16px);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.uf-curr-box > * {
  position: relative;
  z-index: 2;
}

.uf-curr-box::before {
  content: '';
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 66%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(43, 112, 255, 0) 0%,
    rgba(68, 144, 255, 0.14) 28%,
    rgba(130, 200, 255, 0.28) 50%,
    rgba(68, 144, 255, 0.14) 72%,
    rgba(43, 112, 255, 0) 100%
  );
  filter: blur(14px);
  opacity: 0;
  transform: translate3d(-135%, 0, 0) skewX(-22deg);
  will-change: transform, opacity;
}

.uf-curr-box.uf-light-sweep::before {
  animation: ufSweetLightSweep 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.uf-curr-box:hover {
  border-color: rgba(110, 168, 255, 0.36);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.uf-curr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.uf-curr-flag-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.uf-flag-circle {
  width: clamp(22px, 1.65vw, 24px);
  height: clamp(22px, 1.65vw, 24px);
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.uf-flag-circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.uf-curr-code {
  font-size: clamp(11.8px, 0.86vw, 13px);
  font-weight: 600;
  color: #ffffff;
}

.uf-dots-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}

.uf-dots-btn:hover {
  color: #ffffff;
}

.uf-curr-amount {
  font-size: clamp(17.5px, 1.5vw, 23px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.uf-curr-limit {
  font-size: clamp(10.5px, 0.78vw, 11.5px);
  color: #7b889e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-curr-status {
  font-size: clamp(11px, 0.8vw, 12px);
  font-weight: 600;
  margin-top: 1px;
}

.uf-curr-status.active {
  color: #76adff;
}

.uf-curr-status.inactive {
  color: #93c5fd;
}

/* Trader Metrics Styling (Apple & Stripe Professional Minimalism) */
.uf-trading-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uf-trading-live-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7.5px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.4px;
}

.uf-stat-box {
  background:
    radial-gradient(180px 100px at 15% 0%, rgba(59, 130, 246, 0.16) 0%, transparent 80%),
    rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-top: 1px solid rgba(147, 197, 253, 0.28);
}

/* Card 1: Payout (Arctic / Ice Mint Cyan) */
.uf-stat-payout {
  background:
    radial-gradient(180px 100px at 15% 0%, rgba(6, 182, 212, 0.18) 0%, transparent 80%),
    rgba(255, 255, 255, 0.026);
  border-top: 1px solid rgba(34, 211, 238, 0.45);
}

.uf-stat-payout:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background:
    radial-gradient(220px 120px at 15% 0%, rgba(6, 182, 212, 0.25) 0%, transparent 80%),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.uf-payout-circle {
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: #082f49;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Card 2: Most Traded Session (US Flag & Twilight Sapphire) */
.uf-stat-session {
  background:
    radial-gradient(180px 100px at 15% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 80%),
    rgba(255, 255, 255, 0.026);
  border-top: 1px solid rgba(165, 180, 252, 0.42);
}

.uf-stat-session:hover {
  border-color: rgba(165, 180, 252, 0.5);
  background:
    radial-gradient(220px 120px at 15% 0%, rgba(99, 102, 241, 0.24) 0%, transparent 80%),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.uf-session-flag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #0a3161;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Card 3: Commodities (24K Gold & Liquid Silver) */
.uf-stat-commodity {
  background:
    radial-gradient(180px 100px at 15% 0%, rgba(245, 158, 11, 0.16) 0%, transparent 80%),
    rgba(255, 255, 255, 0.026);
  border-top: 1px solid rgba(251, 191, 36, 0.45);
}

.uf-stat-commodity:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background:
    radial-gradient(220px 120px at 15% 0%, rgba(245, 158, 11, 0.24) 0%, transparent 80%),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.uf-dual-symbols {
  display: inline-flex;
  align-items: center;
}

.uf-symbol-gold {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(254, 240, 138, 0.55);
  background: #1c1917;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.uf-symbol-silver {
  position: relative;
  z-index: 1;
  margin-left: -9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #0f172a;
  box-shadow: 0 0 8px rgba(203, 213, 225, 0.35);
}

/* Card 4: Total Funded (Obsidian Titanium & Brass Gold Chip) */
.uf-stat-funded-box {
  background:
    radial-gradient(180px 100px at 15% 0%, rgba(168, 85, 247, 0.16) 0%, transparent 80%),
    rgba(255, 255, 255, 0.026);
  border-top: 1px solid rgba(192, 132, 252, 0.42);
}

.uf-stat-funded-box:hover {
  border-color: rgba(192, 132, 252, 0.5);
  background:
    radial-gradient(220px 120px at 15% 0%, rgba(168, 85, 247, 0.24) 0%, transparent 80%),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.uf-funded-circle {
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: #2e1065;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.38);
}

/* Specific Material Status Pills */
.uf-stat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(9px, 0.72vw, 10.5px);
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  align-self: flex-start;
  margin-top: 2px;
}

.uf-stat-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Cyan Pill (Payout) */
.uf-pill-cyan {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.uf-dot-cyan {
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee;
}

/* Indigo / Sapphire Pill (Session) */
.uf-pill-indigo {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(165, 180, 252, 0.3);
}

.uf-dot-indigo {
  background: #818cf8;
  box-shadow: 0 0 6px #818cf8;
}

/* Gold Pill (Commodities) */
.uf-pill-gold {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.uf-dot-gold {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

/* Violet Pill (Funded) */
.uf-pill-violet {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.uf-dot-violet {
  background: #c084fc;
  box-shadow: 0 0 6px #c084fc;
}

/* Small Card Section (Apple / Stripe Titanium Mini Card Architecture) */
.uf-mini-card-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3.5px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  margin-top: 2px;
}

.uf-chip-gold {
  width: 9.5px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  border: 1px solid rgba(254, 240, 138, 0.6);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
  flex-shrink: 0;
}

.uf-mini-card-text {
  font-family: var(--uf-font-mono, monospace);
  font-size: clamp(9px, 0.7vw, 10px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-brand-violet {
  font-size: 8.5px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.4px;
  padding: 1px 4.5px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
}

/* ==================== TRADER STATE SWITCHER & ZERO STATE ONBOARDING ==================== */
.uf-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.uf-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #8b9bb4;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.uf-mode-btn:hover {
  color: #ffffff;
}

.uf-mode-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.45) 100%);
  border-color: rgba(147, 197, 253, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.uf-mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.uf-mode-dot-live {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.uf-mode-dot-zero {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* Zero Deck View Styling */
.uf-zero-card {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background:
    radial-gradient(180px 90px at 85% 0%, rgba(56, 189, 248, 0.25) 0%, transparent 80%),
    linear-gradient(145deg, rgba(20, 28, 48, 0.95) 0%, rgba(12, 17, 29, 0.98) 100%);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(56, 189, 248, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.uf-pill-unclaimed {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.uf-zero-top-badge {
  font-family: var(--uf-font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.uf-zero-card-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 8px;
}

.uf-zero-cta-heading {
  font-size: clamp(11.5px, 0.85vw, 12.5px);
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: -0.2px;
}

.uf-zero-tiers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.uf-zero-tier-btn {
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-family: var(--uf-font-mono, monospace);
  font-size: clamp(11px, 0.82vw, 12px);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-zero-tier-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.uf-zero-tier-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.4) 100%);
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.uf-highlight-cyan {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.uf-icon-zero {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

.uf-pill-unclaimed-tag {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

.uf-btn-get-funded {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  border: 1px solid rgba(147, 197, 253, 0.6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.uf-btn-get-funded:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.55);
  filter: brightness(1.08);
}

.uf-btn-get-funded svg {
  width: 14px;
  height: 14px;
}

/* Modal Styling (Apple / Stripe Glass Dialog) */
.uf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.uf-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.uf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.uf-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  background:
    radial-gradient(380px 180px at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 80%),
    linear-gradient(165deg, rgba(22, 30, 48, 0.98) 0%, rgba(12, 17, 28, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(147, 197, 253, 0.5);
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.8),
    0 0 32px rgba(56, 189, 248, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-modal-overlay.open .uf-modal-card {
  transform: translateY(0) scale(1);
}

.uf-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.uf-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uf-modal-badge {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.uf-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

.uf-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}

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

.uf-modal-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uf-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

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

.uf-tier-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-tier-choice:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
}

.uf-tier-choice.selected {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.35) 100%);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.uf-tier-choice-badge {
  position: absolute;
  top: -8px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  background: #2563eb;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5);
}

.uf-tier-choice-amt {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.uf-tier-choice-sub {
  font-size: 9.5px;
  color: #8b9bb4;
}

.uf-tier-choice-price {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 4px;
}

.uf-modal-rules-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 14px;
}

.uf-rule-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
}

.uf-rule-title {
  font-size: 10px;
  color: #8b9bb4;
  font-weight: 500;
}

.uf-rule-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
}

.uf-rule-highlight {
  color: #38bdf8;
}

.uf-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.uf-btn-modal-cancel {
  padding: 9px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.uf-btn-modal-cancel:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.uf-btn-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  border: 1px solid rgba(147, 197, 253, 0.6);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  transition: all 0.18s ease;
}

.uf-btn-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.6);
}

.uf-btn-modal-submit svg {
  width: 14px;
  height: 14px;
}

/* Mobile adjustments for switcher */
@media (max-width: 720px) {
  .uf-mode-switcher {
    padding: 2px;
  }
  .uf-mode-btn {
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .uf-tier-cards-grid,
  .uf-modal-rules-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .uf-topbar {
    justify-content: space-between;
    gap: 8px;
  }
  .uf-search-box {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    flex: 0 0 36px;
  }
  .uf-search-box .uf-search-icon {
    margin-right: 0;
  }
  .uf-search-box input,
  .uf-mic-btn {
    display: none;
  }
  .uf-mode-switcher {
    padding: 2px;
  }
  .uf-mode-btn {
    padding: 3.5px 7px;
    font-size: 9.5px;
  }
  .uf-mode-btn-dot {
    width: 5px;
    height: 5px;
  }
}

/* Toast Notification */
.uf-toast {
  position: fixed;
  bottom: 24px;
  right: 28px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f73f5 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.uf-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE AUTO-ADJUSTMENT BREAKPOINTS ==================== */

/* Compact Laptop / Tablet Landscape (961px – 1140px) */
@media (max-width: 1140px) {
  .uf-app-shell {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 20px 32px !important;
    gap: 16px !important;
  }

  .uf-sidebar {
    display: none !important;
  }

  .uf-top-row {
    grid-template-columns: minmax(256px, 0.36fr) minmax(0, 0.64fr);
  }

  .uf-bars-container {
    inset: 8px 0 0 40px;
    gap: 6px;
  }

  .uf-bar-ghost {
    width: clamp(22px, 2.2vw, 30px);
  }
}

/* Tablet Portrait & Mobile Landscape (<= 960px) */
@media (max-width: 960px) {
  .uf-app-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 16px 24px;
    gap: 14px;
  }

  .uf-sidebar {
    display: none !important;
  }

  .uf-brand {
    padding-left: 2px;
  }

  .uf-nav {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
    width: 100%;
  }

  .uf-nav-item {
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 12.5px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .uf-main-area {
    min-height: auto;
    gap: 14px;
  }

  .uf-search-box {
    width: auto;
    flex: 1;
  }

  .uf-bento-grid {
    grid-template-rows: auto auto;
    gap: 14px;
  }

  .uf-top-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .uf-left-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 14px;
  }

  .uf-cashflow-chart {
    min-height: 250px;
  }

  .uf-bottom-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* Mobile Phones & Narrow Windows — iOS & Android (<= 720px) */
@media (max-width: 720px) {
  .uf-app-shell {
    padding: 12px 12px 24px;
    gap: 12px;
  }

  .uf-sidebar {
    gap: 10px;
  }

  .uf-brand-logo {
    width: 32px;
    height: 32px;
  }

  .uf-brand-text {
    font-size: 17px;
  }

  .uf-nav-item {
    padding: 7px 12px;
    font-size: 12px;
    gap: 8px;
  }

  .uf-nav-icon,
  .uf-nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .uf-topbar {
    gap: 10px;
  }

  .uf-search-box {
    height: 40px;
    padding: 0 4px 0 12px;
    border-radius: 11px;
  }

  .uf-search-box input {
    font-size: 13px;
  }

  .uf-mic-btn {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }

  .uf-topbar-right {
    gap: 8px;
  }

  .uf-bell-btn,
  .uf-profile-avatar {
    width: 36px;
    height: 36px;
  }

  .uf-profile-info {
    display: none;
  }

  .uf-bento-grid,
  .uf-top-row,
  .uf-left-stack,
  .uf-bottom-row {
    gap: 12px;
  }

  .uf-left-stack {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .uf-card {
    border-radius: 16px;
  }

  .uf-card-title {
    font-size: 15px;
  }

  .uf-date-pill {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Mobile Card 1: Accounts (Stacked 3D MyFxFirm Visa Card) */
  .uf-card-balance {
    padding: 14px 13px;
    gap: 10px;
  }

  .uf-visa-stack-stage {
    min-height: 156px;
  }

  .uf-visa-primary,
  .uf-apple-card {
    width: calc(100% - 32px);
    padding: 12px 14px;
    border-radius: 16px;
  }

  .uf-visa-ghost-mid {
    right: 16px;
    width: 48px;
    padding-right: 3px;
  }

  .uf-visa-ghost-back {
    right: 0;
    width: 46px;
    padding-right: 3px;
  }

  .uf-visa-brand {
    font-size: 14.5px;
  }

  .uf-apple-card-center {
    margin: 10px 0;
  }

  .uf-visa-number {
    font-size: 12.8px;
    letter-spacing: 0.12em;
  }

  .uf-apple-copy {
    width: 22px;
    height: 22px;
  }

  .uf-apple-copy svg {
    width: 11.5px;
    height: 11.5px;
  }

  .uf-visa-bottom,
  .uf-apple-card-bottom {
    gap: 8px;
    padding-top: 4px;
  }

  .uf-apple-label,
  .uf-visa-label {
    font-size: 7.2px;
  }

  .uf-apple-val,
  .uf-visa-val {
    font-size: 10.5px;
  }

  .uf-visa-footer-bar {
    margin-top: 10px;
    padding: 10px 12px;
    gap: 10px;
  }

  .uf-visa-wallet-left {
    gap: 10px;
  }

  .uf-visa-wallet-text {
    gap: 4px;
  }

  .uf-balance-amount {
    font-size: 14px;
  }

  .uf-visa-wallet-sub {
    font-size: 10px;
  }

  .uf-action-sq {
    width: 32px;
    height: 32px;
  }

  /* Mobile Card 2: Quick Transfer */
  .uf-card-transfer {
    padding: 16px;
  }

  .uf-transfer-desc {
    font-size: 11.5px;
    line-height: 1.45;
    margin: 8px 0 14px;
  }

  .uf-avatars-row {
    padding-top: 16px;
    gap: 6px;
  }

  .uf-avatar-add,
  .uf-avatar-item {
    width: clamp(36px, 10.6vw, 42px);
    height: clamp(36px, 10.6vw, 42px);
  }

  /* Mobile Card 3: Monthly Payouts */
  .uf-card-cashflow {
    padding: 16px 14px;
  }

  .uf-payouts-header {
    gap: 10px;
  }

  .uf-payouts-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .uf-payouts-legend {
    gap: 8px;
    font-size: 10px;
  }

  .uf-bar-amount {
    font-size: clamp(8px, 2.1vw, 9.5px);
    bottom: calc(100% + 3px);
  }

  .uf-cashflow-chart {
    min-height: 220px;
    height: 220px;
    margin-top: 12px;
  }

  .uf-y-grid {
    inset: 6px 0 24px 0;
  }

  .uf-y-row {
    gap: 8px;
  }

  .uf-y-label {
    width: 28px;
    font-size: 10.5px;
  }

  .uf-bars-container {
    inset: 6px 0 0 34px;
    gap: clamp(4px, 1.5vw, 8px);
  }

  .uf-bar-ghost {
    width: 100%;
    max-width: 28px;
    padding: 2.5px;
    border-radius: 8px;
  }

  .uf-bar-fill {
    border-radius: 6px;
  }

  .uf-bar-month {
    height: 24px;
    font-size: 10px;
  }

  /* Mobile Card 4: Recent Activity List */
  .uf-card-activity-list {
    padding: 16px 14px 12px;
  }

  .uf-tx-table-head {
    grid-template-columns: 1.45fr 0.95fr 0.65fr;
    font-size: 11px;
    padding: 10px 0 7px;
  }

  .uf-tx-row {
    grid-template-columns: 1.45fr 0.95fr 0.65fr;
    padding: 10px 0;
  }

  .uf-tx-brand {
    gap: 8px;
  }

  .uf-tx-logo,
  .uf-news-flag {
    width: 26px;
    height: 26px;
  }

  .uf-tx-name {
    font-size: 11.8px;
  }

  .uf-tx-mask {
    font-size: 9.8px;
  }

  .uf-tx-date {
    font-size: 11px;
  }

  .uf-tx-amount {
    font-size: 12px;
  }

  .uf-news-impact {
    padding: 2px 6px;
    font-size: 8.8px;
  }

  /* Mobile Card 5: Recent Activity 2x2 Currency Grid */
  .uf-card-currency-grid {
    padding: 16px 14px;
    gap: 12px;
  }

  .uf-currency-boxes {
    gap: 10px;
  }

  .uf-curr-box {
    padding: 13px;
    border-radius: 14px;
    gap: 5px;
  }

  .uf-flag-circle {
    width: 22px;
    height: 22px;
  }

  .uf-curr-code {
    font-size: 12px;
  }

  .uf-curr-amount {
    font-size: clamp(16px, 4.5vw, 19px);
  }

  .uf-curr-limit {
    font-size: 10.5px;
  }

  .uf-curr-status {
    font-size: 11px;
  }

  .uf-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ==================== GLOBAL TOP PILL NAVIGATION (BRAND STANDARD) ==================== */
.af-top {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

.af-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  text-decoration: none !important;
}
.af-brand svg { width: 28px !important; height: 28px !important; color: #fff !important; }

.af-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 auto !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.af-nav::-webkit-scrollbar { display: none !important; }
.af-nav a {
  white-space: nowrap !important;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #1a2236 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
}
.af-nav a:hover { background: #eef1f6 !important; }
.af-nav a.active {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
}

.af-top-right { display: flex !important; align-items: center !important; gap: 10px !important; }
.af-avatar img { width: 42px !important; height: 42px !important; border-radius: 50% !important; object-fit: cover !important; background: #243050 !important; border: 2px solid rgba(255, 255, 255, 0.85) !important; display: block !important; }

.af-circle-btn {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}
.af-circle-btn svg { width: 18px !important; height: 18px !important; }
.af-circle-btn:hover { background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.3) !important; }

/* Remove left sidebars & switch shells to 1720px centered full-width layout */
.uf-app-shell,
.uf-dashboard-shell {
  display: flex !important;
  flex-direction: column !important;
  max-width: 1720px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 24px 44px 56px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

.uf-sidebar,
.uf-sidebar-left {
  display: none !important;
}

.uf-main-area,
.uf-prop-main {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Hide duplicate profile/bell in sub-bars since the global af-top bar has them */
.uf-topbar .uf-bell-btn,
.uf-topbar .uf-profile,
.uf-prop-actions,
.uf-topbar-actions-right,
.uf-subnav-row .uf-subnav-actions,
.uf-cert-subnav-row .uf-cert-user-meta {
  display: none !important;
}






/* ==============================================================================
   MOBILE POLISH (<=720px): no clipped text, no duplicate switchers, clean stacking
   ============================================================================== */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .uf-app-shell, .uf-main-area, .uf-bento-grid, .uf-card { min-width: 0; max-width: 100%; }

  /* second switcher duplicates the top-bar pill */
  .uf-mode-switcher { display: none !important; }
  .uf-topbar { flex-wrap: nowrap; }
  .uf-search-box { width: 100% !important; flex: 1 1 auto; }
  .uf-topbar-right { flex: none; }

  /* card headers wrap instead of squeezing titles */
  .uf-card-header { flex-wrap: wrap; gap: 8px 10px; row-gap: 8px; }
  .uf-card-title { white-space: nowrap; }
  .uf-date-pill { flex: none; white-space: nowrap; }

  /* economic calendar rows: names wrap to two lines rather than "…" */
  .uf-tx-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
  .uf-tx-mask { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
  .uf-tx-brand { min-width: 0; align-items: center; }
  .uf-tx-row { align-items: center; }

  /* trading stat boxes: one per row so every label is fully readable */
  .uf-currency-boxes { grid-template-columns: 1fr !important; }
  .uf-curr-box { padding: 16px; }
  .uf-curr-limit { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; font-size: 11.5px; }
  .uf-curr-code { white-space: nowrap; font-size: 12.5px; letter-spacing: .04em; }
  .uf-curr-amount { font-size: clamp(20px, 6vw, 24px); }
  .uf-mini-card-section { flex-wrap: wrap; gap: 8px; }
  .uf-mini-card-text { white-space: normal; overflow: visible; text-overflow: clip; font-size: 11px; }
  .uf-stat-status-pill { white-space: normal; line-height: 1.3; }
  .uf-card-currency-grid .uf-card-header { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .uf-topbar { display: flex; gap: 10px; }
  .uf-search-box { height: 44px; padding: 0 6px 0 14px !important; justify-content: flex-start !important; border-radius: 14px !important; flex: 1 1 auto !important; min-width: 0 !important; gap: 10px; }
  .uf-search-box input { display: block !important; flex: 1; min-width: 0; font-size: 14px; }
  .uf-search-box .uf-mic-btn { display: grid !important; flex: none; }
  .uf-topbar-right > .uf-bell-btn, .uf-topbar-right > .uf-profile { display: none; }
}

@media (max-width: 380px) {
  .uf-visa-footer-bar { flex-wrap: wrap; gap: 10px; height: auto; }
  .uf-visa-wallet-left { flex: 1 1 100%; min-width: 0; }
  .uf-visa-wallet-text { min-width: 0; flex: 1; }
  .uf-visa-wallet-text * { min-width: 0; }
  .uf-visa-wallet-sub { white-space: normal; overflow: visible; text-overflow: clip; }
  .uf-balance-actions { margin-left: auto; }
  .uf-apple-card-center { letter-spacing: 0; }
  .uf-apple-card-center, .uf-apple-card-center * { font-size: 15px; }
  .uf-apple-card-bottom { gap: 8px; }
  .uf-apple-val { font-size: 12px; }
  .uf-payout-transfer-sub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
  .uf-payout-transfer-row { flex-wrap: wrap; gap: 10px; }
  .uf-btn-transfer-now { margin-left: auto; }
}

@media (max-width: 380px) {
  .uf-apple-card-center, .uf-apple-card-center * { font-size: 12.5px !important; letter-spacing: 0 !important; word-spacing: 2px; }
  .uf-apple-card-center { gap: 6px; }
  .uf-apple-val { font-size: 11px !important; }
}
@media (max-width: 380px) { .uf-apple-val { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.15; } }
@media (max-width: 480px) { .uf-zero-top-badge { display: none; } }
