:root{
  --bg:#06070b;
  --bg-soft:#0e1220;
  --card:#101626;
  --card-2:#0d1320;
  --border:rgba(255,255,255,.08);
  --text:#f5f7fb;
  --muted:#97a3ba;
  --primary:#79a7ff;
  --primary-2:#8b5cf6;
  --green:#19c37d;
  --yellow:#f5b942;
  --red:#ff667d;
  --shadow:0 18px 50px rgba(0,0,0,.34);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:
  radial-gradient(circle at top left, rgba(121,167,255,.14), transparent 24%),
  radial-gradient(circle at top right, rgba(139,92,246,.12), transparent 20%),
  linear-gradient(180deg, #05060a 0%, #090c14 100%);
  color:var(--text);min-height:100vh}
.app-body,.login-body{color:var(--text)}
.app-shell{max-width:1440px}
.text-secondary{color:var(--muted)!important}
.text-gradient{background:linear-gradient(90deg,var(--primary),#a9c7ff,var(--primary-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.glass-nav{background:rgba(7,10,16,.72)!important;border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.navbar-brand{letter-spacing:.2px}
.navbar .nav-link{color:#dfe7f5!important;padding:.65rem .85rem!important;border-radius:12px}
.navbar .nav-link:hover{color:white!important;background:rgba(255,255,255,.04)}
.nav-user-pill{display:inline-flex;align-items:center;padding:.65rem .95rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--border);color:#eef3ff;font-size:.95rem}
.panel-card,.login-card,.metric-card,.hero-panel,.mini-stat,.hero-status-card{background:linear-gradient(180deg, rgba(19,26,40,.96), rgba(12,17,27,.98));border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}
.panel-card{padding:1.5rem}
.panel-tight{padding:1.35rem}
.metric-card{padding:1.25rem 1.3rem;min-height:132px;display:flex;flex-direction:column;justify-content:space-between}
.metric-card span{display:block;color:var(--muted);font-size:.96rem}
.metric-card h2{margin:.35rem 0 0;font-size:2rem;font-weight:800;line-height:1}
.metric-card small{color:#dfe6f5;font-size:.95rem}
.metric-card.featured{background:linear-gradient(180deg, rgba(29,38,59,.98), rgba(14,19,30,.98))}
.accent-green{box-shadow:0 14px 38px rgba(25,195,125,.08)}
.accent-yellow{box-shadow:0 14px 38px rgba(245,185,66,.08)}
.accent-red{box-shadow:0 14px 38px rgba(255,93,115,.08)}
.custom-control{background:var(--bg-soft)!important;border:1px solid var(--border)!important;color:var(--text)!important;border-radius:14px!important;padding:.9rem 1rem!important}
.custom-control:focus{border-color:rgba(121,167,255,.55)!important;box-shadow:0 0 0 .22rem rgba(121,167,255,.16)!important}
.custom-control::placeholder{color:#778199}
.neon-btn{border:none!important;border-radius:14px!important;background:linear-gradient(135deg, var(--primary), var(--primary-2))!important;box-shadow:0 12px 30px rgba(121,167,255,.20);font-weight:700!important}
.table{--bs-table-bg:transparent!important;--bs-table-color:var(--text)!important;--bs-table-border-color:rgba(255,255,255,.08)!important}
.badge{padding:.55rem .75rem;border-radius:999px;font-weight:700}
.status-activo{background:rgba(25,195,125,.18); color:#8bf0c6}
.status-por-vencer{background:rgba(245,185,66,.18); color:#ffd888}
.status-vencido{background:rgba(255,93,115,.18); color:#ff9bac}
.status-sin-fecha{background:rgba(255,255,255,.08); color:#d6dbeb}
.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.25rem}
.login-card{width:min(100%,460px);padding:2rem}
.hero-panel{padding:1.75rem;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.9fr);gap:1.2rem;align-items:stretch}
.hero-copy{display:flex;flex-direction:column;justify-content:center;min-height:260px}
.eyebrow{display:inline-flex;align-items:center;width:max-content;padding:.5rem .85rem;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.04);color:#cfd8eb;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.hero-copy h1{font-size:clamp(2rem,3.4vw,3.35rem);line-height:1.03;margin:0 0 1rem;font-weight:800;max-width:11ch}
.hero-copy p{max-width:760px;color:#d9e3f4;font-size:1.07rem;margin:0}
.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.35rem}
.hero-side{display:flex;flex-direction:column;gap:1rem}
.hero-status-card{padding:1.25rem 1.3rem;display:flex;flex-direction:column;justify-content:center;min-height:140px}
.small-label{font-size:.92rem;color:#c7d1e6;margin-bottom:.55rem}
.hero-status-line{font-size:1.55rem;font-weight:800;line-height:1.1;margin-bottom:.6rem}
.hero-status-line.is-good{color:#88f2c7}
.hero-status-line.is-warning{color:#ffd888}
.hero-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.mini-stat{padding:1.15rem 1.1rem;min-height:110px;display:flex;flex-direction:column;justify-content:space-between}
.mini-stat span{color:var(--muted);font-size:.92rem}
.mini-stat strong{font-size:1rem;color:#f5f7fb;word-break:break-word}
.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.92fr);gap:1rem;align-items:start}
.dashboard-left,.dashboard-right{min-width:0}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}
.soft-pill{display:inline-flex;align-items:center;justify-content:center;padding:.55rem .8rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--border);color:#e6eeff;font-size:.9rem;min-width:64px}
.soft-pill-alert{background:rgba(245,185,66,.16);color:#ffd888}
.soft-pill-danger{background:rgba(255,102,125,.15);color:#ff9bac}
.chart-wrap{height:300px}
.clean-table-wrap{overflow:auto}
.clean-table thead th{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:#9eaaca;border-bottom:1px solid rgba(255,255,255,.08);padding-top:.85rem;padding-bottom:.85rem}
.clean-table tbody td{padding-top:.95rem;padding-bottom:.95rem}
.alert-list,.feed-list,.debt-list{display:flex;flex-direction:column;gap:.75rem}
.alert-item,.feed-item,.debt-item{display:flex;justify-content:space-between;gap:.9rem;padding:1rem;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05)}
.alert-item{align-items:flex-start}
.alert-item.danger{background:rgba(255,102,125,.06);border-color:rgba(255,102,125,.12)}
.alert-item.warning{background:rgba(245,185,66,.06);border-color:rgba(245,185,66,.12)}
.alert-dot{width:10px;height:10px;border-radius:50%;margin-top:.35rem;flex:0 0 10px;background:#ffd888;box-shadow:0 0 0 4px rgba(245,185,66,.12)}
.alert-item.danger .alert-dot{background:#ff9bac;box-shadow:0 0 0 4px rgba(255,102,125,.14)}
.feed-item,.debt-item{align-items:center}
.feed-amount{font-weight:800;white-space:nowrap}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.3rem;border-radius:18px;border:1px dashed rgba(255,255,255,.10);background:rgba(255,255,255,.02);color:#d7dfef}
.compact-empty strong{margin-bottom:.35rem}
.compact-scroll{max-height:340px;overflow:auto;padding-right:.15rem}
.compact-scroll::-webkit-scrollbar{width:8px}
.compact-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.10);border-radius:999px}
.btn-success{background:#179b5d!important;border-color:#179b5d!important}
@media (max-width:1199px){
  .hero-panel,.dashboard-main-grid{grid-template-columns:1fr}
  .hero-copy h1{max-width:none}
}
@media (max-width:991px){
  .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav-user-pill{display:none}
}
@media (max-width:767px){
  .hero-panel{padding:1.2rem}
  .panel-card,.panel-tight{padding:1.05rem}
  .hero-mini-grid,.metrics-grid{grid-template-columns:1fr}
  .section-head{flex-direction:column;align-items:flex-start}
  .chart-wrap{height:240px}
  .hero-copy{min-height:auto}
  .hero-copy h1{font-size:2rem}
  .mini-stat{min-height:90px}
  .feed-item,.debt-item{flex-direction:column;align-items:flex-start}
}
@media (max-width:576px){
  .metric-card h2{font-size:1.7rem}
  .login-card{padding:1.4rem}
}


.hero-panel-premium{grid-template-columns:1fr;min-height:auto;padding:1.55rem 1.65rem}
.hero-copy.compact{min-height:auto;max-width:820px}
.hero-copy.compact h1{max-width:none;font-size:clamp(2.1rem,3.1vw,3rem)}
.premium-layout{grid-template-columns:minmax(0,1.4fr) minmax(300px,.86fr);gap:1.25rem}
.compact-chart{height:240px}
.feed-list .feed-item,.debt-list .debt-item,.alert-list .alert-item{border-radius:16px}
@media (max-width:1199px){.premium-layout{grid-template-columns:1fr}}


/* Ultra clean */
.app-shell{max-width:1380px;padding-top:1.25rem!important}
.metrics-grid{margin-top:.15rem}
.panel-card,.metric-card{border-radius:20px}
.metric-card{min-height:118px;padding:1.1rem 1.15rem}
.dashboard-main-grid{gap:.9rem}
.clean-table tbody td{padding-top:.85rem;padding-bottom:.85rem}
