/* ==========================================================================
   PROP FIRM ACCOUNTS MANAGER - NEO-BANKING LUXURY FINTECH DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette - Neo-Banking Dark Theme (Default) */
  --bg-primary: #060811;
  --bg-secondary: #0b0f1d;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(15, 22, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.85);
  --bg-modal: #0d1322;
  --bg-glass: rgba(13, 19, 34, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-highlight: rgba(255, 255, 255, 0.12);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #060811;

  /* Brand & Neo-Bank Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #ff3366;
  --accent-gold: #ffb800;

  /* Role Badges */
  --role-lead-bg: rgba(255, 184, 0, 0.12);
  --role-lead-color: #ffd000;
  --role-lead-border: rgba(255, 184, 0, 0.3);

  --role-follower-bg: rgba(139, 92, 246, 0.12);
  --role-follower-color: #c084fc;
  --role-follower-border: rgba(139, 92, 246, 0.3);

  --role-next-bg: rgba(0, 242, 254, 0.12);
  --role-next-color: #00f2fe;
  --role-next-border: rgba(0, 242, 254, 0.3);

  /* Status Badges */
  --status-funded-bg: rgba(16, 185, 129, 0.15);
  --status-funded-color: #34d399;
  --status-funded-border: rgba(16, 185, 129, 0.35);

  --status-challenge-bg: rgba(245, 158, 11, 0.15);
  --status-challenge-color: #fbbf24;
  --status-challenge-border: rgba(245, 158, 11, 0.35);

  --status-payout-bg: rgba(0, 242, 254, 0.15);
  --status-payout-color: #38bdf8;
  --status-payout-border: rgba(0, 242, 254, 0.35);

  --status-loading-bg: rgba(148, 163, 184, 0.15);
  --status-loading-color: #cbd5e1;
  --status-loading-border: rgba(148, 163, 184, 0.35);

  --status-failed-bg: rgba(255, 51, 102, 0.15);
  --status-failed-color: #ff6688;
  --status-failed-border: rgba(255, 51, 102, 0.35);

  /* Design Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 8px 24px rgba(0, 242, 254, 0.25);
  --shadow-blue: 0 8px 24px rgba(59, 130, 246, 0.3);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-modal: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(37, 99, 235, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.1), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  padding-bottom: 5.5rem; /* Space for mobile bottom bar */
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.mono {
  font-family: var(--font-mono);
}

/* Luxury Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #ffffff;
}

.btn-icon {
  padding: 0.6rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* User Profile Header Component */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.header-user-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

.user-info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Sub-Navigation Tabs */
.sub-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-highlight);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none; /* Desktop default hidden */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(11, 15, 29, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem 1.2rem 1.5rem;
  z-index: 900;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.bottom-nav-item.active {
  color: var(--accent-cyan);
}

.bottom-nav-item i {
  width: 22px;
  height: 22px;
}

.bottom-nav-action-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-cyan);
  margin-top: -1.5rem;
  cursor: pointer;
}

.bottom-nav-action-btn i {
  width: 26px;
  height: 26px;
}

/* Footer Component */
.app-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}
