/* ==========================================================================
   MyFxFirm — Institutional Prop Firm MetriX & Analytics Design System
   Apple & Stripe Caliber Dark Glassmorphism & Native San Francisco Typography
   ========================================================================== */

:root {
  --uf-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --uf-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --uf-font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* ========================================================================
     Plate 1 (#007542 Deep Forest Green) Institutional Palette
     ======================================================================== */
  --uf-color-accent-green: #007542;
  --uf-color-accent-green-rgb: 0, 117, 66;
  --uf-color-accent-green-text: #2ee685;
  --uf-color-accent-green-glow: rgba(0, 117, 66, 0.45);
  --uf-grad-green: linear-gradient(135deg, #1E8C45 0%, #007542 100%);
  --uf-grad-green-track: linear-gradient(90deg, #007542 0%, #1E8C45 50%, #2ee685 100%);
  --uf-grad-green-badge: linear-gradient(135deg, rgba(0, 117, 66, 0.32) 0%, rgba(30, 140, 69, 0.14) 100%);
  --uf-grad-green-cell: linear-gradient(180deg, rgba(0, 117, 66, 0.22) 0%, rgba(0, 117, 66, 0.03) 100%);
  --uf-grad-green-bar: linear-gradient(90deg, #007542 0%, #2ee685 100%);

  /* Fallback aliases */
  --uf-color-juicy-lime: var(--uf-color-accent-green-text);
  --uf-color-juicy-green: var(--uf-color-accent-green);
  --uf-color-juicy-glow: var(--uf-color-accent-green-glow);
  --uf-grad-juicy: var(--uf-grad-green);
  --uf-grad-juicy-track: var(--uf-grad-green-track);
  --uf-grad-juicy-badge: var(--uf-grad-green-badge);
  --uf-grad-juicy-cell: var(--uf-grad-green-cell);
}

body, button, input, select, textarea, table {
  font-family: var(--uf-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Main Stage */
.uf-prop-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

/* ==================== TOP BAR ==================== */
.uf-prop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.uf-topbar-pills-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uf-pill-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8c9cb4;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.uf-pill-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.uf-pill-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.uf-search-ai-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  width: clamp(260px, 26vw, 380px);
  height: 42px;
  transition: all 0.2s ease;
}

.uf-search-ai-capsule:focus-within {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.uf-ai-sparkle-icon {
  width: 17px;
  height: 17px;
  color: #38bdf8;
  flex-shrink: 0;
}

.uf-ai-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.uf-ai-input::placeholder {
  color: #64748b;
}

.uf-topbar-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.uf-icon-pill-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8c9cb4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uf-icon-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.uf-prop-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uf-prop-profile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.uf-prop-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.uf-prop-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.uf-prop-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.uf-prop-sub {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 600;
}

/* ==================== ACCOUNT IDENTITY BANNER ==================== */
.uf-account-banner-card {
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    linear-gradient(135deg, rgba(14, 21, 35, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.6);
}

.uf-acc-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.uf-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.uf-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

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

.uf-acc-id-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.uf-acc-num {
  font-family: var(--uf-font-display);
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.uf-acc-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.uf-acc-platform-tag {
  font-size: 11.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.uf-acc-desc {
  font-size: 13px;
  color: #8c9cb4;
}

.uf-acc-banner-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.uf-server-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8c9cb4;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.uf-live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: ufPulse 2s infinite ease-in-out;
}

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

.uf-btn-payout-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
  font-family: inherit;
}

.uf-btn-payout-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

/* ==================== 4 PROP OBJECTIVE BARS GRID ==================== */
.uf-prop-bars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.uf-prop-metric-card {
  background: rgba(11, 16, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.uf-prop-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.uf-metric-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uf-metric-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uf-metric-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.uf-metric-subtext {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.uf-metric-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.uf-badge-blue {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.38);
}

.uf-badge-lava {
  background: rgba(234, 88, 12, 0.16);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.22);
}

.uf-badge-emerald,
.uf-badge-lime {
  background: var(--uf-grad-green-badge);
  color: var(--uf-color-accent-green-text);
  border: 1px solid rgba(var(--uf-color-accent-green-rgb), 0.45);
  box-shadow: 0 0 10px rgba(var(--uf-color-accent-green-rgb), 0.25);
}

.uf-badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.uf-metric-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.uf-metric-hero-val {
  font-family: var(--uf-font-display);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.uf-metric-pct-tag {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

.uf-metric-pct-tag.blue {
  color: #38bdf8;
}

.uf-metric-pct-tag.lava {
  color: #fb923c;
}

.uf-metric-pct-tag.amber {
  color: #f59e0b;
}

/* Glass Progress Bar with Glowing Head Pill */
.uf-glass-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.uf-glass-progress-fill {
  height: 100%;
  border-radius: 999px;
  position: relative;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-fill-cyan {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

/* Molten Lava Volcanic Magma Gradient (Unique Drawdown Risk Bar) */
.uf-fill-lava {
  background: linear-gradient(90deg, #c2410c 0%, #ea580c 35%, #f97316 70%, #fb923c 100%);
  box-shadow:
    0 0 14px rgba(249, 115, 22, 0.65),
    0 0 24px rgba(234, 88, 12, 0.35);
}

.uf-fill-lava-deep {
  background: linear-gradient(90deg, #9a3412 0%, #c2410c 40%, #ea580c 80%, #f97316 100%);
  box-shadow:
    0 0 14px rgba(234, 88, 12, 0.6),
    0 0 22px rgba(194, 65, 12, 0.3);
}

.uf-fill-blue {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.uf-fill-emerald,
.uf-fill-lime {
  background: var(--uf-grad-green-track);
  box-shadow: 0 0 14px rgba(var(--uf-color-accent-green-rgb), 0.65), 0 0 24px rgba(var(--uf-color-accent-green-rgb), 0.3);
}

.uf-fill-amber {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.uf-fill-blue {
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.uf-metric-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8c9cb4;
}

.uf-metric-footer-bold {
  color: #e2e8f0;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ==================== HERO DUAL CURVE PERFORMANCE CARD ==================== */
.uf-stovest-card {
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.7);
}

.uf-card-performance-expanded {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.uf-perf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 14px;
}

.uf-perf-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.uf-perf-heading {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

/* Curve Legend Pills (Balance vs Live Equity) */
.uf-curve-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.uf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.uf-legend-line-sample {
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
}

.uf-legend-line-sample.equity {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.uf-legend-line-sample.balance {
  background: #2563eb;
  border-top: 1px dashed #60a5fa;
}

/* Timeframe Capsules */
.uf-timeframe-capsules {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 999px;
}

.uf-tf-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #8c9cb4;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.uf-tf-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.uf-tf-btn.active {
  background: #1d68f7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 104, 247, 0.45);
}

/* Expanded Chart Stage with Proper Proportions (420px height) */
.uf-spline-stage-big {
  position: relative;
  width: 100%;
  height: clamp(340px, 42vh, 430px);
  display: flex;
  align-items: stretch;
}

.uf-spline-svg-big {
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Floating Dual-Metric Tooltip */
.uf-chart-tooltip-dual {
  position: absolute;
  top: 36%;
  left: 38%;
  transform: translate(-50%, -100%);
  background: rgba(11, 16, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 175px;
  pointer-events: auto;
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1), top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.uf-dual-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 5px;
}

.uf-dual-tt-date {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.uf-dual-tt-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7.5px;
  border-radius: 6px;
  background: var(--uf-grad-green-badge);
  color: var(--uf-color-accent-green-text);
  border: 1px solid rgba(var(--uf-color-accent-green-rgb), 0.45);
}

.uf-dual-tt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uf-dual-tt-lbl {
  font-size: 11px;
  color: #8c9cb4;
}

.uf-dual-tt-val {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.uf-dual-tt-val.equity {
  color: #38bdf8;
}

.uf-dual-tt-val.balance {
  color: #ffffff;
}

/* ==================== ROW: MINIMALIST FINTECH CALENDAR & PROP INTELLIGENCE ==================== */
.uf-row-calendar-intel {
  display: grid;
  grid-template-columns: minmax(0, 0.63fr) minmax(340px, 0.37fr);
  gap: 18px;
  width: 100%;
}

/* Card: Minimalist Fintech Trading Calendar (Apple & Stripe Caliber) */
.uf-card-calendar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uf-cal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.uf-cal-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.uf-cal-month-title {
  font-family: var(--uf-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  padding: 0 10px;
}

.uf-cal-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uf-cal-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.uf-cal-arrow-btn svg {
  width: 13px;
  height: 13px;
}

/* Apple / Stripe Metrics Strip */
.uf-cal-metrics-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.uf-cal-metric-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.uf-cal-chip-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uf-cal-chip-val {
  font-family: var(--uf-font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.015em;
}

.uf-cal-chip-val.profit {
  color: var(--uf-color-accent-green-text);
  text-shadow: 0 0 12px rgba(var(--uf-color-accent-green-rgb), 0.35);
}

.uf-cal-chip-val small {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Day Grid */
.uf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  width: 100%;
}

.uf-cal-day-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uf-cal-day-header.weekend {
  color: #475569;
}

.uf-cal-cell {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 68px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.uf-cal-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.6);
}

.uf-cal-cell.empty {
  opacity: 0.15;
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

/* Minimalist Profit Cell (Dynamic Green Palette Engine) */
.uf-cal-cell.profit {
  background: var(--uf-grad-green-cell);
  border-color: rgba(var(--uf-color-accent-green-rgb), 0.32);
}

.uf-cal-cell.profit:hover {
  border-color: rgba(var(--uf-color-accent-green-rgb), 0.65);
  box-shadow: 0 10px 24px -6px rgba(var(--uf-color-accent-green-rgb), 0.3);
}

.uf-cal-cell.profit .uf-cell-amount {
  color: var(--uf-color-accent-green-text);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(var(--uf-color-accent-green-rgb), 0.25);
}

.uf-cal-cell.profit .uf-cell-bar {
  background: var(--uf-grad-green-bar);
  box-shadow: 0 0 10px rgba(var(--uf-color-accent-green-rgb), 0.85);
}

/* Minimalist Loss Cell (Apple Style) */
.uf-cal-cell.loss {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.07) 0%, rgba(239, 68, 68, 0.02) 100%);
  border-color: rgba(239, 68, 68, 0.22);
}

.uf-cal-cell.loss:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 10px 24px -6px rgba(239, 68, 68, 0.2);
}

.uf-cal-cell.loss .uf-cell-amount {
  color: #fb7185;
}

.uf-cal-cell.loss .uf-cell-bar {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

/* Weekend Cell (Minimalist Muted) */
.uf-cal-cell.weekend {
  background: rgba(255, 255, 255, 0.012);
  border-color: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.uf-cal-cell.weekend .uf-cell-date {
  color: #475569;
}

.uf-cell-weekend-lbl {
  font-size: 9.5px;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.uf-cell-empty-dash {
  font-size: 13px;
  color: #334155;
  text-align: right;
  width: 100%;
}

/* Today Active Highlight */
.uf-cal-cell.today {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, rgba(56, 189, 248, 0.03) 100%);
}

.uf-cell-today-pill {
  font-size: 8.5px;
  font-weight: 800;
  color: #060b16;
  background: #38bdf8;
  padding: 1.5px 6px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

/* Cell Header & Body Typography */
.uf-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.uf-cell-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums lining-nums;
}

.uf-cell-trades {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5px 6px;
  border-radius: 4px;
}

.uf-cell-body {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  margin-top: 4px;
}

.uf-cell-amount {
  font-family: var(--uf-font-display);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.uf-cell-bar {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  opacity: 0.9;
}

/* Card: Prop Intelligence (Most Traded Pairs & Most Traded Sessions) */
.uf-card-prop-intel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uf-intel-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uf-intel-subtitle {
  font-size: 11.5px;
  font-weight: 700;
  color: #8c9cb4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Pair Progress Rows */
.uf-pair-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
}

.uf-pair-rank-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.uf-pair-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.uf-badge-gold {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.15) 100%);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.uf-badge-fx {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.uf-pair-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.uf-pair-ticker {
  font-family: var(--uf-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.uf-pair-sub {
  font-size: 11.5px;
  color: #718096;
}

.uf-pair-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1.2;
}

.uf-pair-winrate {
  font-family: var(--uf-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--uf-color-accent-green-text);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.015em;
  text-shadow: 0 0 10px rgba(var(--uf-color-accent-green-rgb), 0.25);
}

.uf-pair-volume {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Session Heat Blocks */
.uf-sessions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.uf-session-chip {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.uf-session-chip.active-session {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

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

.uf-session-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.uf-session-flag {
  font-size: 13px;
}

.uf-session-pct {
  font-family: var(--uf-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
}

.uf-session-sub {
  font-size: 10.5px;
  color: #8c9cb4;
}

/* ==================== OPEN & CLOSED TRADES LOG ==================== */
.uf-card-trades {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.uf-trades-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.uf-trades-tab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.uf-trade-tab {
  background: transparent;
  border: none;
  outline: none;
  color: #8c9cb4;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.uf-trade-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.uf-trade-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.uf-tab-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: ufPulse 2s infinite ease-in-out;
}

.uf-trade-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7.5px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.uf-trade-count-badge.open {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.uf-trade-count-badge.closed {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.uf-trade-tab.active .uf-trade-count-badge.open {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.uf-trade-tab.active .uf-trade-count-badge.closed {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.uf-trades-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.uf-trades-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8c9cb4;
}

.uf-trades-meta-stat {
  font-size: 12.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.035);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.uf-trades-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.uf-trades-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.uf-trades-table th {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #718096;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uf-trades-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.uf-trades-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.uf-ticket-id {
  font-family: var(--uf-font-mono);
  color: #94a3b8;
  font-size: 12px;
}

.uf-session-subtag {
  font-size: 10.5px;
  color: #64748b;
}

.uf-trade-sym {
  color: #ffffff;
  font-weight: 700;
}

.uf-live-price-cell {
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
}

.uf-btn-close-trade {
  padding: 3.5px 11px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.uf-btn-close-trade:hover {
  background: #ef4444;
  color: #ffffff;
}

.uf-outcome-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.uf-outcome-badge.win {
  background: var(--uf-grad-green-badge);
  color: var(--uf-color-accent-green-text);
  border: 1px solid rgba(var(--uf-color-accent-green-rgb), 0.45);
}

.uf-outcome-badge.loss {
  background: rgba(239, 68, 68, 0.14);
  color: #fb7185;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.uf-order-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.uf-order-buy {
  background: var(--uf-grad-green-badge);
  color: var(--uf-color-accent-green-text);
  border: 1px solid rgba(var(--uf-color-accent-green-rgb), 0.45);
}

.uf-order-sell {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.uf-order-pnl {
  font-family: var(--uf-font-display);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.015em;
}

.uf-order-pnl.positive {
  color: var(--uf-color-accent-green-text);
  text-shadow: 0 0 10px rgba(var(--uf-color-accent-green-rgb), 0.25);
}

.uf-order-pnl.negative {
  color: #ef4444;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .uf-prop-bars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .uf-row-calendar-intel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .uf-prop-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .uf-search-ai-capsule {
    width: 100%;
  }
  .uf-topbar-actions-right {
    margin-left: 0;
    justify-content: space-between;
  }
  .uf-account-banner-card {
    padding: 16px;
  }
  .uf-acc-banner-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .uf-acc-num {
    font-size: 19px;
  }
  .uf-acc-banner-right {
    width: 100%;
    justify-content: space-between;
  }
  .uf-prop-bars-grid {
    grid-template-columns: 1fr;
  }
  .uf-spline-stage-big {
    height: 280px;
  }
  .uf-calendar-grid {
    gap: 4px;
  }
  .uf-cal-cell {
    min-height: 54px;
    padding: 5px 6px;
  }
  .uf-cell-trades,
  .uf-cell-weekend-lbl {
    display: none;
  }
  .uf-cell-today-pill {
    font-size: 8px;
    padding: 1px 4px;
  }
  .uf-cell-amount {
    font-size: 11.5px;
  }
  .uf-cal-metrics-strip {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==============================================================================
   ACCOUNTS TABLE VIEW & MASTER-DETAIL ARCHITECTURE
   ============================================================================== */

/* ==============================================================================
   ACCOUNTS TABLE VIEW & MASTER-DETAIL ARCHITECTURE (APPLE FLUID TRANSITIONS)
   ============================================================================== */

.uf-accounts-table-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: appleFluidEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

.uf-account-dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: appleFluidEnter 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

/* Apple Master-Detail Fluid View Transitions */
.apple-view-leaving {
  opacity: 0 !important;
  transform: translateY(-10px) scale(0.99) !important;
  filter: blur(2px) !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease !important;
  pointer-events: none !important;
}

.apple-view-entering {
  animation: appleFluidEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.apple-view-leaving-reverse {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.99) !important;
  filter: blur(2px) !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease !important;
  pointer-events: none !important;
}

.apple-view-entering-reverse {
  animation: appleFluidEnterReverse 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes appleFluidEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.992);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes appleFluidEnterReverse {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.992);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Staggered Apple child cascade entrance when dashboard opens */
.apple-view-entering .uf-account-banner-card {
  animation: appleStaggerChild 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.03s both;
}
.apple-view-entering .uf-prop-bars-grid > article:nth-child(1) {
  animation: appleStaggerChild 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
.apple-view-entering .uf-prop-bars-grid > article:nth-child(2) {
  animation: appleStaggerChild 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}
.apple-view-entering .uf-prop-bars-grid > article:nth-child(3) {
  animation: appleStaggerChild 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
.apple-view-entering .uf-prop-bars-grid > article:nth-child(4) {
  animation: appleStaggerChild 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.apple-view-entering .uf-card-performance-expanded {
  animation: appleStaggerChild 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

@keyframes appleStaggerChild {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==============================================================================
   APPLE / LINEAR ULTRA-SMOOTH SKELETON LOADER (ZERO DELAY FEEDBACK)
   ============================================================================== */
.uf-skeleton-view {
  pointer-events: none;
  user-select: none;
}

.uf-skeleton-pulse {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.035) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: ufSkeletonShimmer 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

@keyframes ufSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.uf-skeleton-card {
  position: relative;
  overflow: hidden;
}

.uf-skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.035) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ufSkeletonShimmer 1.8s infinite linear;
  pointer-events: none;
}

.uf-skeleton-wave-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(56, 189, 248, 0.4) 50%,
    rgba(56, 189, 248, 0.1) 100%
  );
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  animation: ufSkeletonWavePulse 2s infinite ease-in-out;
}

@keyframes ufSkeletonWavePulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-8px);
  }
}

.apple-skeleton-fadeout {
  opacity: 0 !important;
  transform: translateY(-6px) scale(0.995) !important;
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Header Row */
.uf-acc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 4px 0;
}

.uf-acc-page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 6px 0;
}

.uf-acc-page-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  max-width: 680px;
}

.uf-btn-new-acc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.uf-btn-new-acc:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.55);
}

.uf-btn-new-acc:active {
  transform: translateY(0) scale(0.98);
}

/* 4 KPI Hero Summary Cards */
.uf-acc-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.uf-acc-kpi-card {
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 15, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.uf-acc-kpi-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

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

.uf-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.uf-kpi-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.uf-kpi-chip.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.uf-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}

.uf-kpi-footer {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.uf-kpi-footer .kpi-green {
  color: #38bdf8;
  font-weight: 700;
}

/* Filter Bar & Search */
.uf-acc-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.uf-acc-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.uf-acc-filter-tab {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.uf-acc-filter-tab:hover {
  color: #ffffff;
}

.uf-acc-filter-tab.active {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.uf-acc-filter-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
}

.uf-acc-search-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 290px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uf-acc-search-box:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.uf-acc-search-box svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
}

.uf-acc-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: #f1f5f9;
  width: 100%;
}

.uf-acc-search-box input::placeholder {
  color: #64748b;
}

/* ==============================================================================
   EHSAN MOIN DRIBBLE STYLE FLOATING CARD-ROW ACCOUNTS WORKBENCH
   ============================================================================== */

.eh-accounts-card {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(13, 23, 46, 0.96) 0%, rgba(10, 16, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 32px 36px 28px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 1. Top Header Area (Accounts / 4 accounts found / Mini Action Icons) */
.eh-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.eh-title-group {
  display: flex;
  flex-direction: column;
}

.eh-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.eh-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  color: #8a95ad;
  font-weight: 500;
  margin-top: 4px;
}

.eh-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eh-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.eh-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.eh-icon-btn svg {
  width: 17px;
  height: 17px;
}

.eh-badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.eh-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.eh-avatar-btn:hover {
  transform: scale(1.06);
  border-color: #3b82f6;
}

.eh-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2. Subheader (Underline Tabs & Date Picker Capsule) */
.eh-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.eh-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.eh-tab {
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #8a95ad;
  padding: 8px 2px 14px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.eh-tab:hover {
  color: #e2e8f0;
}

.eh-tab.active {
  color: #ffffff;
  font-weight: 700;
}

.eh-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #3b82f6;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
}

.eh-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.eh-date-pill svg {
  width: 14px;
  height: 14px;
  color: #8a95ad;
}

.eh-date-to {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 4px;
}

/* 3. Table Column Headers */
.eh-table-header-scroll {
  width: 100%;
  overflow-x: auto;
}

.eh-table-header-row {
  display: grid;
  grid-template-columns: 110px 1.4fr 1.6fr 110px 110px 1.4fr 1.4fr 140px 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #8a95ad;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 1120px;
}

.eh-col-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eh-sort-arrow {
  font-size: 9px;
  color: #64748b;
  display: inline-block;
  transform: translateY(1px);
}

/* 4. The Floating Pill Card Rows Stack */
.eh-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 1120px;
}

.eh-row {
  display: grid;
  grid-template-columns: 110px 1.4fr 1.6fr 110px 110px 1.4fr 1.4fr 140px 90px;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  color: #e2e8f0;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.eh-row:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==============================================================================
   SIGNATURE ACTIVE / SELECTED HERO ROW (MATCHING ROW 2 IN REFERENCE IMAGE)
   ============================================================================== */
.eh-row.active {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 14px 34px -4px rgba(37, 99, 235, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.008);
  z-index: 2;
}

.eh-row.active .eh-cell-id,
.eh-row.active .eh-user-name,
.eh-row.active .eh-plan-name,
.eh-row.active .eh-date-val,
.eh-row.active .eh-alloc-val,
.eh-row.active .eh-eq-num,
.eh-row.active .eh-bal-sub,
.eh-row.active .eh-target-text,
.eh-row.active .eh-status-label {
  color: #ffffff !important;
}

.eh-row.active .eh-user-avatar {
  border-color: #ffffff !important;
}

.eh-row.active .eh-btn-gear,
.eh-row.active .eh-btn-chevron {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.eh-row.active .eh-status-dot {
  background: #ffffff !important;
  box-shadow: 0 0 8px #ffffff !important;
}

/* Cells within Card Row */
.eh-cell-id {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.eh-cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eh-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.eh-user-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
}

.eh-cell-plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eh-plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.eh-cell-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.eh-cell-alloc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.eh-cell-equity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eh-eq-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eh-eq-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: -0.01em;
}

.eh-eq-num.val-red {
  color: #fb7185;
}

.eh-bal-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* Profit Target cell */
.eh-cell-target {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eh-target-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.eh-target-text.in-progress {
  color: #60a5fa;
}

.eh-target-text.breached {
  color: #fb7185;
}

/* Status Dot & Label */
.eh-cell-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.eh-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.eh-status-dot.cyan {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.eh-status-dot.blue {
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.eh-status-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.eh-status-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.eh-status-label.cyan { color: #38bdf8; }
.eh-status-label.blue { color: #60a5fa; }
.eh-status-label.red  { color: #fb7185; }

/* Action Cell: Gear & Chevron Buttons */
.eh-cell-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.eh-btn-gear,
.eh-btn-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.eh-btn-gear:hover,
.eh-btn-chevron:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.eh-btn-gear svg,
.eh-btn-chevron svg {
  width: 14px;
  height: 14px;
}

/* 5. Pagination Footer matching reference */
.eh-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  color: #8a95ad;
  font-weight: 500;
}

.eh-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eh-page-btn {
  background: transparent;
  border: none;
  color: #8a95ad;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.eh-page-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.eh-page-btn.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Quick Switcher dropdown in Account Dashboard Banner */
.uf-acc-select-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.uf-acc-select-pill label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.uf-acc-switcher-dropdown {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.uf-acc-switcher-dropdown option {
  background: #0f172a;
  color: #ffffff;
}

/* Responsive adjustments for Accounts table */
@media (max-width: 1024px) {
  .uf-acc-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .uf-acc-kpis-grid {
    grid-template-columns: 1fr;
  }
  .uf-acc-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .uf-acc-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .uf-acc-search-box {
    width: 100%;
  }
  .uf-acc-select-pill {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    justify-content: space-between;
  }
}
