/* ============================================================
   InverFund — Site CSS
   Dark financial theme + Bootstrap 5 overrides
   ============================================================ */

:root {
  --bg-deep:    #07111F;
  --bg-card:    #0D1E32;
  --bg-card2:   #112236;
  --gold:       #D4A853;
  --gold-light: #F0C97A;
  --green:      #00C896;
  --green-dim:  rgba(0,200,150,.13);
  --red:        #FF5E7D;
  --blue:       #3B82F6;
  --text-main:  #EDF2FF;
  --text-muted: #7A92AF;
  --border:     #1C3250;
  --border2:    #243d5c;
}

/* ── Base ──────────────────────────────────────────────────── */
html, body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.text-gold    { color: var(--gold)      !important; }
.text-green   { color: var(--green)     !important; }
.text-red     { color: var(--red)       !important; }
.text-muted-if{ color: var(--text-muted)!important; }

/* ── Login ─────────────────────────────────────────────────── */
.if-body-login {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,58,106,.27) 0%, transparent 70%),
    var(--bg-deep);
}
.if-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
}
@media (max-width: 480px) { .if-login-box { padding: 32px 22px; } }

.if-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text-main);
}
.if-tagline {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.if-alert-error {
  background: rgba(255,94,125,.1);
  border: 1px solid rgba(255,94,125,.35);
  border-radius: 8px;
  color: var(--red);
  padding: 10px 14px;
  font-size: 13px;
}
.if-demo-hint {
  background: var(--bg-deep);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 10px;
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}
.if-demo-hint strong { color: var(--gold-light); }

/* ── Inputs ────────────────────────────────────────────────── */
.if-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.if-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 15px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s;
  outline: none;
  -webkit-appearance: none;
}
.if-input:focus    { border-color: var(--gold); }
.if-input::placeholder { color: var(--text-muted); }

.if-input-group { position: relative; }
.if-eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 16px;
  transition: color .2s;
}
.if-eye-btn:hover { color: var(--text-main); }

.if-check {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.if-input-prefix-wrap { position: relative; }
.if-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 700; font-size: 16px; pointer-events: none;
}
.if-input-prefix-wrap .if-input { padding-left: 36px; }

.if-input-suffix-wrap { position: relative; }
.if-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; font-weight: 600; pointer-events: none;
}
.if-input-suffix-wrap .if-input { padding-right: 56px; }

.if-field-error { color: var(--red); font-size: 12px; display: block; margin-top: 4px; }

/* ── Buttons ───────────────────────────────────────────────── */
.if-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s; text-decoration: none;
  padding: 11px 18px; white-space: nowrap;
}
.if-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

.if-btn-primary  {
  background: linear-gradient(135deg,#c4922e,#e8b848);
  color: #07111F !important;
  box-shadow: 0 4px 20px rgba(212,168,83,.3);
}
.if-btn-primary:hover:not(:disabled)  { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(212,168,83,.45); }

.if-btn-green {
  background: linear-gradient(135deg,#009f77,#00C896);
  color: #07111F !important;
  box-shadow: 0 4px 16px rgba(0,200,150,.3);
}
.if-btn-green:hover:not(:disabled)   { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,200,150,.45); }

.if-btn-outline {
  background: var(--bg-card2);
  border: 1.5px solid var(--border2);
  color: var(--text-main) !important;
}
.if-btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold) !important; }

.if-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted) !important;
}
.if-btn-ghost:hover:not(:disabled)   { border-color: var(--gold); color: var(--gold) !important; }

.if-btn-danger {
  background: rgba(255,94,125,.12);
  border: 1.5px solid rgba(255,94,125,.4);
  color: var(--red) !important;
}
.if-btn-danger:hover:not(:disabled)  { background: rgba(255,94,125,.22); }

.if-btn-blue {
  background: linear-gradient(135deg,#1a6ac4,#3B82F6);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.if-btn-blue:hover:not(:disabled)    { transform: translateY(-1px); }

.if-btn-sm   { padding: 7px 14px; font-size: 13px; }
.if-btn-icon {
  width: 38px; height: 38px; padding: 0;
  background: var(--bg-deep); border: 1.5px solid var(--border);
  color: var(--text-muted) !important;
  border-radius: 10px; font-size: 16px;
}
.if-btn-icon:hover { border-color: var(--gold); color: var(--gold) !important; }

/* ── Topbar ────────────────────────────────────────────────── */
.if-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0;
  height: 62px;
  z-index: 100;
}
.if-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a06e1a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--bg-deep);
  flex-shrink: 0;
}
.if-user-name { font-size: 14px; font-weight: 500; }
.if-logout-btn {
  background: none; border: none;
  color: var(--text-muted); font-family: inherit;
  font-size: 12px; cursor: pointer; transition: color .2s;
}
.if-logout-btn:hover { color: var(--red); }

/* ── Main container ────────────────────────────────────────── */
.if-main { max-width: 900px; }

/* ── Config bar ────────────────────────────────────────────── */
.if-config-bar {
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cfg-item { display: flex; flex-direction: column; }
.ci-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1px; }
.ci-val   { font-size: 15px; font-weight: 700; }

/* ── Hero card ─────────────────────────────────────────────── */
.if-hero-card {
  background: linear-gradient(135deg, #0D2040, #122a50);
  border: 1px solid #1e3c66;
  border-radius: 20px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.if-hero-card::before {
  content:''; position:absolute; top:-60px; right:-60px;
  width:220px; height:220px;
  background:radial-gradient(circle,rgba(212,168,83,.1) 0%,transparent 70%);
  border-radius:50%; pointer-events:none;
}
.hero-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.hero-amount { font-family: 'Playfair Display', serif; font-size: clamp(28px,7vw,50px); color: var(--gold-light); letter-spacing: -1px; line-height: 1.1; }
.hero-currency { font-family: 'Inter',sans-serif; font-size: .42em; font-weight: 700; vertical-align: super; color: var(--gold); }
.hero-meta-item .val { font-size: 16px; font-weight: 700; }
.hero-meta-item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Interest banner ───────────────────────────────────────── */
.if-interest-banner {
  background: linear-gradient(135deg,rgba(0,200,150,.09),rgba(0,122,90,.07));
  border: 1px solid rgba(0,200,150,.3);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.int-label  { font-size: 11px; color: var(--green); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.int-amount { font-size: 24px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.int-sub    { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Generic card ──────────────────────────────────────────── */
.if-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.if-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── Timeline ──────────────────────────────────────────────── */
.if-progress-track {
  height: 6px; background: var(--border); border-radius: 3px;
}
.if-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,var(--gold),var(--gold-light));
  border-radius: 3px; transition: width .5s ease;
}
.tl-dot-wrap .tl-dot-label  { font-size: 10px; color: var(--text-muted); margin-bottom: 3px; }
.tl-dot-wrap .tl-dot-circle {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: background .3s;
}
.tl-dot-wrap.done    .tl-dot-circle { background: var(--gold); }
.tl-dot-wrap.current .tl-dot-circle { background: var(--gold-light); box-shadow: 0 0 0 3px rgba(212,168,83,.25); }

/* ── Badges ────────────────────────────────────────────────── */
.if-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.if-badge-gold  { background:rgba(212,168,83,.15); color:var(--gold);  border:1px solid rgba(212,168,83,.35); }
.if-badge-green { background:var(--green-dim);     color:var(--green); border:1px solid rgba(0,200,150,.35); }
.if-badge-red   { background:rgba(255,94,125,.13); color:var(--red);   border:1px solid rgba(255,94,125,.35); }
.if-badge-blue  { background:rgba(59,130,246,.13); color:#93c5fd;      border:1px solid rgba(59,130,246,.35); }

/* ── Stat cards ────────────────────────────────────────────── */
.if-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
}
.s-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.s-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-sub   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── Capital card ──────────────────────────────────────────── */
.if-capital-card {
  background: rgba(255,94,125,.05);
  border: 1px solid rgba(255,94,125,.25);
  border-radius: 16px;
  padding: 22px;
}

/* ── History ───────────────────────────────────────────────── */
.if-history-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.if-history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.if-history-item:last-child { border-bottom: none; }
.if-history-item:hover { background: rgba(255,255,255,.03); }
.h-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0; font-weight: 700;
}
.h-icon-retiro  { background: rgba(255,94,125,.13); }
.h-icon-interes { background: var(--green-dim); }
.h-icon-deposito{ background: rgba(212,168,83,.13); }
.h-title { font-size: 14px; font-weight: 500; }
.h-date  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.h-amount{ font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Chips ─────────────────────────────────────────────────── */
.if-chip {
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-deep); border: 1px solid var(--border2);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.if-chip:hover, .if-chip.active {
  background: rgba(212,168,83,.13);
  border-color: var(--gold); color: var(--gold);
}

/* ── Modal ─────────────────────────────────────────────────── */
.if-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  color: var(--text-main);
}
.if-modal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
.if-modal-title { font-family: 'Playfair Display',serif; font-size: 20px; color: var(--text-main); }
.modal-body { padding: 22px 24px; }

.if-amount-display {
  background: var(--bg-deep); border: 1.5px solid var(--border2);
  border-radius: 12px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.ad-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.ad-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

.if-info-note {
  background: rgba(0,200,150,.08);
  border: 1px solid rgba(0,200,150,.2);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--text-muted);
}
.if-delivery-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(59,130,246,.09); border: 1px solid rgba(59,130,246,.3);
  border-radius: 10px; padding: 13px;
  font-size: 13px; line-height: 1.5; color: #93c5fd;
}
.if-total-box {
  background: rgba(212,168,83,.09);
  border: 1px solid rgba(212,168,83,.3);
  border-radius: 10px; padding: 13px 15px;
  color: var(--gold-light);
}
.if-warning-box {
  background: rgba(255,94,125,.08);
  border: 1px solid rgba(255,94,125,.25);
  border-radius: 8px; padding: 11px 13px;
  font-size: 12px; color: var(--red); line-height: 1.5;
}

/* ── Config modal specifics ────────────────────────────────── */
.if-cfg-section-head {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gold);
  margin: 18px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.if-config-preview {
  background: var(--bg-deep);
  border: 1px solid var(--border2);
  border-radius: 12px; padding: 16px;
}
.cp-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.cp-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-muted); }
.cp-row span:last-child { color: var(--text-main); }

/* ── Voucher / Comprobante ─────────────────────────────────── */
.if-body-voucher {
  background:
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(0,200,150,.06) 0%,transparent 60%),
    var(--bg-deep);
}
.if-voucher-wrap {}
.if-back-btn {
  color: var(--text-muted); font-size: 13px;
  background: none; border: none; font-family: inherit;
  text-decoration: none; transition: color .2s;
}
.if-back-btn:hover { color: var(--text-main); }
.if-voucher-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.if-voucher-header { color: #07111F; position: relative; padding: 28px 28px 44px; }
.if-voucher-header-curve {
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 24px; background: var(--bg-card);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.if-voucher-check {
  width: 56px; height: 56px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.if-voucher-title    { font-family:'Playfair Display',serif; font-size:20px; margin-bottom:3px; color:#07111F; }
.if-voucher-subtitle { font-size:12px; color:rgba(7,17,31,.6); }
.if-voucher-body  {}
.va-label    { font-size:11px;color:var(--text-muted);font-weight:700;letter-spacing:1px;text-transform:uppercase;margin-bottom:5px; }
.va-amount   { font-family:'Playfair Display',serif; font-size:36px; font-variant-numeric:tabular-nums; }
.va-currency { font-family:'Inter',sans-serif; font-size:.44em; font-weight:700; vertical-align:super; }
.if-voucher-rows {}
.vrow {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--border); font-size:13px;
}
.vrow:last-child { border-bottom:none; }
.vrow-label { color:var(--text-muted); }
.vrow-val   { font-weight:600; text-align:right; }
.if-voucher-footer {
  border-top: 1px dashed var(--border2);
}

/* ── Toast ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.if-toast {
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap; max-width: 90vw;
}
.if-toast.error { border-color: rgba(255,94,125,.5); color: var(--red); }
@keyframes toastIn { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)} }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 576px) {
  .if-main { padding-left: 12px !important; padding-right: 12px !important; }
  .if-hero-card { padding: 20px 16px; }
  .if-card { padding: 18px 14px; }
  .if-history-item { padding: 12px 14px; }
  .if-voucher-header { padding: 22px 20px 38px; }
  .if-voucher-body  { padding: 0 16px; }
  .if-voucher-footer{ padding: 16px; }
  .if-login-box { padding: 28px 18px; }
  .hero-amount { font-size: 28px; }
  .if-interest-banner .int-amount { font-size: 20px; }
  .modal-body { padding: 16px; }
  .if-modal-header { padding: 14px 18px; }
}

/* ── Bootstrap overrides ───────────────────────────────────── */
.modal-backdrop { --bs-backdrop-opacity: 0.6; }
.modal-backdrop.show { backdrop-filter: blur(4px); }

/* ── Bootstrap 5 dark modal overrides ─────────────────────── */
.modal { --bs-modal-bg: var(--bg-card); --bs-modal-border-color: var(--border2); --bs-modal-header-border-color: var(--border); }
.modal-content { background: var(--bg-card) !important; border: 1px solid var(--border2) !important; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* ── Number inputs: hide spinners ──────────────────────────── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ── Focus ring color ──────────────────────────────────────── */
.if-input:focus-visible { outline: none; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Print comprobante ─────────────────────────────────────── */
@media print {
  .if-body-voucher { background: #fff !important; }
  .if-voucher-card { border: 1px solid #ccc !important; box-shadow: none !important; border-radius: 8px !important; }
  .if-back-btn, .voucher-actions, .d-flex.gap-2.mt-3 { display: none !important; }
  .vrow-label { color: #555 !important; }
  .vrow-val   { color: #111 !important; }
  .if-delivery-note { background: #eef4ff !important; color: #334 !important; border: 1px solid #aac !important; }
  .if-badge-green { background: #e0fff5 !important; color: #007a5a !important; }
  .text-green { color: #007a5a !important; }
  .text-gold  { color: #a06e1a !important; }
  .if-wordmark { color: #111 !important; }
}

/* ── Page titles ─────────────────────────────────────────────── */
.if-page-title { font-family:'Playfair Display',serif; font-size:clamp(20px,4vw,28px); color:var(--text-main); }
.if-form-icon  { font-size:36px; flex-shrink:0; }

/* ── Nav links (topbar) ──────────────────────────────────────── */
.if-nav-link {
  display:inline-flex; align-items:center; padding:6px 12px;
  border-radius:8px; font-size:13px; font-weight:500;
  color:var(--text-muted); text-decoration:none; transition:all .15s;
}
.if-nav-link:hover, .if-nav-link.active {
  background:rgba(255,255,255,.07); color:var(--text-main);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.if-breadcrumb { background:none; padding:0; margin:0; }
.if-breadcrumb .breadcrumb-item a { color:var(--text-muted); text-decoration:none; font-size:13px; }
.if-breadcrumb .breadcrumb-item a:hover { color:var(--gold); }
.if-breadcrumb .breadcrumb-item.active { color:var(--text-muted); font-size:13px; }
.if-breadcrumb .breadcrumb-item+.breadcrumb-item::before { color:var(--border2); }

/* ── Inversion cards (lista) ─────────────────────────────────── */
.if-inv-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:16px; padding:20px; transition:border-color .2s;
}
.if-inv-card:hover { border-color:var(--border2); }
.if-inv-card-activa     { border-left:3px solid var(--green); }
.if-inv-card-completada { border-left:3px solid var(--gold); }
.if-inv-card-cancelada  { border-left:3px solid var(--red); }
.inv-card-name   { font-size:15px; font-weight:600; color:var(--text-main); }
.inv-card-date   { font-size:11px; color:var(--text-muted); margin-top:2px; }
.inv-card-capital { font-family:'Playfair Display',serif; font-size:clamp(22px,5vw,30px); color:var(--gold-light); line-height:1.1; }
.inv-currency    { font-family:'Inter',sans-serif; font-size:.45em; font-weight:700; vertical-align:super; color:var(--gold); }
.inv-metric { background:var(--bg-deep); border-radius:8px; padding:8px 10px; text-align:center; }
.inv-metric-val  { font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; }
.inv-metric-lbl  { font-size:10px; color:var(--text-muted); margin-top:1px; }

/* ── Avatar pequeño (tabla admin) ────────────────────────────── */
.if-avatar-sm {
  width:28px; height:28px; border-radius:50%;
  background:linear-gradient(135deg,var(--gold),#a06e1a);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:11px; color:var(--bg-deep); flex-shrink:0;
}

/* ── Table (admin) ───────────────────────────────────────────── */
.if-table { border-collapse:collapse; font-size:13px; }
.if-table thead tr { border-bottom:1px solid var(--border); }
.if-table th { padding:12px 16px; color:var(--text-muted); font-size:11px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; }
.if-table td { padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle; }
.if-table tbody tr:last-child td { border-bottom:none; }
.if-table tbody tr:hover td { background:rgba(255,255,255,.025); }
.fw-600 { font-weight:600 !important; }

/* ── Empty state ─────────────────────────────────────────────── */
.if-empty-state {
  text-align:center; padding:60px 20px;
  background:var(--bg-card); border:1px dashed var(--border2);
  border-radius:20px;
}
.empty-icon  { font-size:48px; margin-bottom:16px; }
.if-empty-state h3 { font-family:'Playfair Display',serif; font-size:20px; margin-bottom:8px; }
.if-empty-state p  { color:var(--text-muted); font-size:13px; }

/* ── Dropdown dark ───────────────────────────────────────────── */
.dropdown-menu-dark {
  background:var(--bg-card2) !important;
  border:1px solid var(--border2) !important;
}
.dropdown-menu-dark .dropdown-item { color:var(--text-muted) !important; font-size:13px; }
.dropdown-menu-dark .dropdown-item:hover { background:rgba(255,255,255,.07) !important; color:var(--text-main) !important; }
.dropdown-menu-dark .dropdown-divider { border-color:var(--border) !important; }
.dropdown-toggle::after { border-top-color:var(--text-muted); }

/* ── Config section head ─────────────────────────────────────── */
.if-cfg-section-head {
  font-size:11px; font-weight:700; letter-spacing:1.2px;
  text-transform:uppercase; color:var(--gold);
  margin:18px 0 12px; padding-bottom:7px; border-bottom:1px solid var(--border);
}
