/* ==========================================================================
   SYDVEL CLUB — UNIFIED DESIGN SYSTEM (ESTILO KRAKEN FINTECH & LUXURY AUTH)
   Compatible con la Terminal de Acceso (Login) y la Plataforma de Control
   ========================================================================== */

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

:root {
  /* Fondos Institucionales */
  --bg-app: #06080C;
  --bg-topbar: rgba(9, 12, 18, 0.90);
  --bg-card: #0D1017;
  --bg-card-hover: #121622;
  --bg-card-glass: rgba(13, 16, 23, 0.75);
  --bg-table-header: #080A0F;
  --bg-table-row-alt: rgba(255, 255, 255, 0.015);
  --bg-input: rgba(255, 255, 255, 0.03);

  /* Dorados Oficiales Sydvel Club */
  --gold: #D4AF37;
  --gold-light: #F3DFA2;
  --gold-dark: #B8972E;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-subtle: rgba(212, 175, 55, 0.08);
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3DFA2 50%, #B8972E 100%);
  --gold-btn-gradient: linear-gradient(135deg, #D4AF37 0%, #B8972E 100%);

  /* Acentos de Mercado (Profit / Loss) */
  --color-profit: #10B981;
  --color-profit-bg: rgba(16, 185, 129, 0.10);
  --color-loss: #EF4444;
  --color-loss-bg: rgba(239, 68, 68, 0.10);
  --color-warning: #F59E0B;

  /* Textos y Contrastes */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --text-muted: #475569;

  /* Bordes de Precisión */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-strong: rgba(212, 175, 55, 0.65);

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace, -apple-system;

  /* Dimensiones */
  --topbar-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE GLOBAL
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luces de fondo ambientales */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   VISTA 1: TERMINAL DE ACCESO / LOGIN (AUTH VIEW)
   ========================================================================== */
#auth-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(212, 175, 55, 0.10);
  animation: authEntry 0.7s var(--ease) forwards;
}

@keyframes authEntry {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-badge-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.auth-logo-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px auto;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090B10;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-title em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Selector de método de Login */
.auth-switch-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-switch-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.auth-switch-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Botón Google Oficial */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-google-auth:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(212, 175, 55, 0.3);
}

.btn-google-auth:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-google-auth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-google-auth * {
  pointer-events: none;
}

/* Formulario Email & Contraseña */
.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-subtle);
}

.btn-gold-submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: var(--gold-btn-gradient);
  color: #0B0E14;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-gold-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alertas de error en Login */
.auth-error-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 20px;
  background: var(--color-loss-bg);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: 0.78rem;
  text-align: left;
  line-height: 1.4;
}

.auth-error-banner.show {
  display: flex;
}

.auth-error-banner svg {
  width: 18px;
  height: 18px;
  fill: #EF4444;
  flex-shrink: 0;
}

.auth-error-banner code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #FFF;
  font-size: 0.72rem;
}

.auth-footer {
  margin-top: 26px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VISTA 2: PLATAFORMA KRAKEN (DASHBOARD VIEW)
   ========================================================================== */
#dashboard-view {
  min-height: 100vh;
  display: none; /* Conmutado por JS */
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Topbar Fija */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}

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

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-name em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.ticker-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.ticker-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-profit);
  padding: 4px 10px;
  background: var(--color-profit-bg);
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-profit);
  box-shadow: 0 0 8px var(--color-profit);
  animation: pulseDot 2s infinite ease-in-out;
}

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

.btn-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-sync:hover {
  background: rgba(212, 175, 55, 0.16);
  color: #FFFFFF;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.user-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

.user-name-mini {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Contenedor Principal */
.platform-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 60px;
  width: 100%;
}

/* Alerta de Diagnóstico de Reglas */
.diagnostic-alert {
  padding: 12px 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: 0.8rem;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 12px;
}

.diagnostic-alert.show {
  display: flex;
}

.diagnostic-alert svg {
  width: 20px;
  height: 20px;
  fill: #EF4444;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO PORTFOLIO (KRAKEN FINTECH BANNER)
   ========================================================================== */
.portfolio-hero {
  background: linear-gradient(180deg, #0B0E15 0%, #07090E 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.portfolio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.portfolio-title-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}

.portfolio-balance-large {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.portfolio-balance-large em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-meta-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-chip strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.meta-chip.chip-gold {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-box-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.metric-box-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-box-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVEGACIÓN POR PESTAÑAS (TRADING TABS)
   ========================================================================== */
.platform-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  margin-bottom: -1px;
}

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

.tab-btn.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ==========================================================================
   SECCIONES Y TARJETAS FINTECH
   ========================================================================== */
.fintech-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fintech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

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

.card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-header-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}

/* ==========================================================================
   HOLDINGS / ASSETS GRID
   ========================================================================== */
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.holding-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s var(--ease);
}

.holding-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

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

.holding-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.holding-currency-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  border-radius: var(--radius-full);
}

.holding-balance {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   TABLA LEDGER DE ALTA DENSIDAD (KRAKEN ORDER/TRANSACTION LEDGER)
   ========================================================================== */
.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-table-header);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.ledger-table th {
  background: var(--bg-table-header);
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.ledger-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.ledger-table tr:nth-child(even) {
  background: var(--bg-table-row-alt);
}

.ledger-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ledger-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-income {
  background: var(--color-profit-bg);
  color: var(--color-profit);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.type-expense {
  background: var(--color-loss-bg);
  color: var(--color-loss);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.type-timer,
.type-adjustment {
  background: var(--gold-subtle);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.ledger-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  font-size: 0.88rem;
}

.amount-pos {
  color: var(--color-profit);
}

.amount-neg {
  color: var(--color-loss);
}

.amount-neutral {
  color: var(--gold);
}

/* ==========================================================================
   MATRIZ DE PROYECTOS (TIMER ANALYTICS)
   ========================================================================== */
.projects-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-matrix-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-title-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-total-stat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
}

.empty-ledger {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.empty-ledger span {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   ANIMACIONES & RESPONSIVE
   ========================================================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }
  .topbar-ticker {
    display: none;
  }
  .platform-container {
    padding: 16px;
  }
  .portfolio-hero {
    padding: 20px;
  }
  .portfolio-balance-large {
    font-size: 2.2rem;
  }
  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .portfolio-header {
    flex-direction: column;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
  .platform-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
}
