/* ==========================================================================
   EITHFI Admin — diseño futurista (negro mate estático + cromo)
   Extraído de la vista previa ~/workspace/ts-spaces/eithfi-admin-futurista/
   Versión 20261120.
   Cargado DESPUÉS de twins.css / twins-admin.css para que estas reglas
   tengan prioridad sobre ellas a igual especificidad.
   Fondo negro mate ESTÁTICO: sin rejillas animadas, sin bandas que deslizan,
   sin partículas en movimiento. Los dos radial-gradient del body son estáticos
   (parte del diseño de la vista previa) y no se animan.
   ========================================================================== */

      :root{
        --bg:#060607;
        --bg-soft:#0b0b0d;
        --panel:rgba(255,255,255,.035);
        --panel-2:rgba(255,255,255,.06);
        --line:rgba(255,255,255,.09);
        --line-strong:rgba(255,255,255,.18);
        --text:#f5f5f6;
        --body:#d9d9de;
        --muted:#a8a8b1;
        --chrome-hi:#ffffff;
        --chrome-mid:#c9ccd4;
        --chrome-low:#878d99;
        --ok:#4ade80;
        --ok-bg:rgba(74,222,128,.12);
        --warn:#fbbf24;
        --warn-bg:rgba(251,191,36,.12);
        --bad:#f87171;
        --bad-bg:rgba(248,113,113,.13);
        --info:#7dd3fc;
        --info-bg:rgba(125,211,252,.12);
        --radius:14px;
        --sidebar-w:260px;
      }
      *{ box-sizing:border-box; }
      html,body{ margin:0; padding:0; }
      body{
        font-family:"Inter",system-ui,-apple-system,sans-serif;
        color:var(--body);
        background:
          radial-gradient(1100px 520px at 78% -12%, rgba(255,255,255,.055), rgba(255,255,255,0) 62%),
          radial-gradient(900px 500px at -10% 110%, rgba(255,255,255,.03), rgba(255,255,255,0) 60%),
          var(--bg);
        min-height:100vh;
        -webkit-font-smoothing:antialiased;
      }
      h1,h2,h3,.sg{ font-family:"Space Grotesk","Inter",sans-serif; color:var(--text); margin:0; }
      p{ margin:0; }
      button{ font-family:inherit; cursor:pointer; }
      button,[role="button"],select,input{ min-height:2.25rem; }
      a{ color:var(--info); }

      /* ---------- Chrome wordmark ---------- */
      .wordmark{
        font-family:"Space Grotesk",sans-serif;
        font-weight:700;
        letter-spacing:.22em;
        background:linear-gradient(180deg,#ffffff 0%,#e8eaef 30%,#9ba1ad 52%,#f2f3f6 68%,#7d838f 100%);
        -webkit-background-clip:text;
        background-clip:text;
        color:transparent;
      }
      .wordmark-sub{
        font-size:.66rem; letter-spacing:.34em; color:var(--muted); font-weight:600; text-transform:uppercase;
      }

      /* ---------- Buttons ---------- */
      .btn-chrome{
        display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
        border:1px solid rgba(255,255,255,.35);
        background:linear-gradient(180deg,#f7f8fa 0%,#ccd0d9 46%,#969daa 54%,#e3e6ec 100%);
        color:#0a0a0c; font-weight:700; font-size:.92rem;
        padding:.65rem 1.4rem; border-radius:11px;
        box-shadow:0 6px 22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8);
        transition:filter .15s ease, transform .15s ease;
      }
      .btn-chrome:hover{ filter:brightness(1.07); }
      .btn-chrome:active{ transform:translateY(1px); }
      .btn-ghost{
        position:relative;
        display:inline-flex; align-items:center; gap:.4rem;
        background:var(--panel); border:1px solid var(--line); color:var(--body);
        font-size:.8rem; font-weight:600; padding:.42rem .8rem; border-radius:9px;
        transition:background .15s ease, color .15s ease, border-color .15s ease;
        white-space:nowrap;
      }
      .btn-ghost:hover{ background:var(--panel-2); color:var(--text); border-color:var(--line-strong); }
      .btn-ghost.small{ font-size:.74rem; padding:.3rem .6rem; min-height:2rem; }

      
      /* ---------- Login ---------- */
      .login-view{
        min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.25rem;
      }
      .login-card{
        width:100%; max-width:420px;
        background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
        border:1px solid var(--line-strong);
        border-radius:20px; padding:2.4rem 2.1rem 2rem;
        box-shadow:0 30px 80px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12);
        backdrop-filter:blur(10px);
        text-align:center;
      }
      .login-hex{
        width:64px; height:64px; margin:0 auto 1rem;
        display:flex; align-items:center; justify-content:center;
        border:1px solid var(--line-strong); border-radius:16px;
        background:radial-gradient(circle at 32% 25%, rgba(255,255,255,.16), rgba(255,255,255,.02) 70%);
        font-family:"Space Grotesk",sans-serif; font-size:1.7rem; font-weight:700;
      }
      .login-card .wordmark{ font-size:2.1rem; display:block; }
      .login-title{ font-size:1.05rem; font-weight:600; margin-top:1.5rem; }
      .login-sub{ font-size:.85rem; color:var(--muted); margin-top:.3rem; }
      .field{ text-align:left; margin-top:1.05rem; }
      .field label{ display:block; font-size:.76rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:.4rem; }
      .field input,.field select{
        width:100%; background:rgba(0,0,0,.45); border:1px solid var(--line);
        border-radius:10px; color:var(--text); font-size:.95rem; padding:.62rem .85rem;
        font-family:inherit; outline:none; transition:border-color .15s ease, box-shadow .15s ease;
      }
      .field input::placeholder{ color:#6d6d76; }
      .field input:focus,.field select:focus{ border-color:var(--chrome-mid); box-shadow:0 0 0 3px rgba(255,255,255,.08); }
      .field select option{ background:#111114; color:var(--text); }
      .login-card .btn-chrome{ width:100%; margin-top:1.5rem; }
      .login-note{ font-size:.78rem; color:var(--muted); margin-top:1rem; line-height:1.5; }
      .login-tag{ display:flex; justify-content:center; margin-top:1.15rem; }

      /* ---------- App shell ---------- */
            .sidebar{
        position:fixed; inset:0 auto 0 0; width:var(--sidebar-w); z-index:40;
        background:linear-gradient(180deg, rgba(16,16,19,.97), rgba(9,9,11,.98));
        border-right:1px solid var(--line);
        display:flex; flex-direction:column;
        padding:1.35rem 1rem 1rem;
      }
      .sidebar-brand{ padding:0 .55rem .9rem; border-bottom:1px solid var(--line); }
      .sidebar-brand .wordmark{ font-size:1.45rem; display:block; }
      .sidebar nav{ flex:1; overflow-y:auto; padding:.9rem 0; display:flex; flex-direction:column; gap:2px; }
      .nav-label{ font-size:.64rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); padding:.85rem .6rem .35rem; }
      .nav-item{
        display:flex; align-items:center; gap:.7rem; width:100%;
        background:transparent; border:1px solid transparent; border-radius:10px;
        color:var(--body); font-size:.9rem; font-weight:500;
        padding:.55rem .6rem; text-align:left; position:relative;
        transition:background .15s ease, color .15s ease;
      }
      .nav-item svg{ flex:0 0 auto; opacity:.85; }
      .nav-item:hover{ background:rgba(255,255,255,.05); color:var(--text); }
      .nav-item.active{
        background:linear-gradient(90deg, rgba(255,255,255,.11), rgba(255,255,255,.03));
        border-color:var(--line); color:#fff;
      }
      .nav-item.active::before{
        content:""; position:absolute; left:-1rem; top:18%; height:64%; width:3px; border-radius:3px;
        background:linear-gradient(180deg,#fff,#8b929f);
      }
      .nav-badge{
        margin-left:auto; font-size:.66rem; font-weight:700; color:#0a0a0c;
        background:linear-gradient(180deg,#f2f3f6,#aab0bc); border-radius:999px; padding:.08rem .45rem;
      }
      .sidebar-user{
        border-top:1px solid var(--line); padding-top:.9rem;
        display:flex; align-items:center; gap:.65rem;
      }
      .avatar{
        width:38px; height:38px; border-radius:50%; flex:0 0 auto;
        display:flex; align-items:center; justify-content:center;
        background:linear-gradient(160deg,#3a3d44,#17181c); border:1px solid var(--line-strong);
        color:#fff; font-weight:700; font-size:.85rem; font-family:"Space Grotesk",sans-serif;
      }
      .sidebar-user .who{ min-width:0; }
      .sidebar-user .who b{ display:block; color:var(--text); font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .sidebar-user .who span{ font-size:.72rem; color:var(--muted); }
      .logout-btn{ margin-left:auto; background:transparent; border:1px solid var(--line); border-radius:9px; color:var(--muted); padding:.4rem .5rem; display:flex; }
      .logout-btn:hover{ color:#fff; border-color:var(--line-strong); }

      .main-wrap{ margin-left:var(--sidebar-w); min-height:100vh; display:flex; flex-direction:column; }
      .topbar{
        position:sticky; top:0; z-index:30;
        display:flex; align-items:center; gap:.9rem;
        padding:.85rem 1.6rem;
        background:rgba(6,6,7,.82); backdrop-filter:blur(12px);
        border-bottom:1px solid var(--line);
      }
      .topbar h1{ font-size:1.25rem; font-weight:600; letter-spacing:.01em; }
      .topbar .spacer{ flex:1; }
      .hamburger{
        display:none; background:var(--panel); border:1px solid var(--line); border-radius:9px;
        color:var(--text); padding:.45rem .55rem; align-items:center; justify-content:center;
      }
      .content{ padding:1.6rem; max-width:1240px; width:100%; margin:0 auto; }
      .screen{ display:none; }
      .screen.active{ display:block; animation:fadeIn .25s ease; }
      @keyframes fadeIn{ from{ opacity:0; transform:translateY(4px);} to{ opacity:1; transform:none;} }
      @media (prefers-reduced-motion: reduce){ .screen.active{ animation:none; } }
      .screen-head{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:.8rem 1.2rem; margin-bottom:1.3rem; }
      .screen-head h2{ font-size:1.55rem; font-weight:600; }
      .screen-head p{ color:var(--muted); font-size:.9rem; margin-top:.25rem; max-width:56ch; line-height:1.55; }

      /* ---------- Cards & grids ---------- */
      .card{
        background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
        border:1px solid var(--line); border-radius:var(--radius);
        padding:1.25rem; box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
      }
      .card h3{ font-size:1rem; font-weight:600; }
      .grid-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
      .grid-2{ display:grid; grid-template-columns:1.5fr 1fr; gap:1rem; margin-top:1rem; }
      .grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
      .stat-card{ position:relative; overflow:hidden; }
      .stat-card::after{
        content:""; position:absolute; top:0; left:10%; right:10%; height:1px;
        background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
      }
      .stat-top{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
      .stat-label{ font-size:.74rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
      .stat-icon{
        width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center;
        background:rgba(255,255,255,.06); border:1px solid var(--line); color:#e8eaef;
      }
      .stat-value{ font-family:"Space Grotesk",sans-serif; font-size:2rem; font-weight:700; color:#fff; margin-top:.55rem; line-height:1; }
      .stat-delta{ font-size:.8rem; margin-top:.5rem; color:var(--muted); }
      .stat-delta b{ font-weight:600; }
      .up{ color:var(--ok); } .down{ color:var(--bad); }

      /* ---------- Funnel ---------- */
      .funnel{ display:flex; flex-direction:column; gap:.55rem; margin-top:1rem; }
      .funnel-row{ display:flex; align-items:center; gap:.9rem; }
      .funnel-bar{
        height:38px; border-radius:8px; min-width:64px;
        background:linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
        border:1px solid var(--line-strong);
        display:flex; align-items:center; padding:0 .8rem;
        font-family:"Space Grotesk",sans-serif; font-weight:700; color:#fff; font-size:.95rem;
      }
      .funnel-row span{ font-size:.85rem; color:var(--body); }
      .funnel-row small{ color:var(--muted); font-size:.75rem; margin-left:auto; white-space:nowrap; }

      /* ---------- Activity / lists ---------- */
      .activity{ list-style:none; margin:1rem 0 0; padding:0; display:flex; flex-direction:column; }
      .activity li{ display:flex; gap:.8rem; padding:.7rem 0; border-bottom:1px solid var(--line); align-items:flex-start; }
      .activity li:last-child{ border-bottom:none; }
      .dot{ width:9px; height:9px; border-radius:50%; margin-top:.42rem; flex:0 0 auto; background:var(--chrome-mid); box-shadow:0 0 8px rgba(255,255,255,.35); }
      .dot.ok{ background:var(--ok); box-shadow:0 0 8px rgba(74,222,128,.5); }
      .dot.warn{ background:var(--warn); box-shadow:0 0 8px rgba(251,191,36,.5); }
      .dot.bad{ background:var(--bad); box-shadow:0 0 8px rgba(248,113,113,.5); }
      .activity p{ font-size:.88rem; line-height:1.5; color:var(--body); }
      .activity p b{ color:var(--text); font-weight:600; }
      .activity time{ font-size:.74rem; color:var(--muted); display:block; margin-top:.15rem; }

      /* ---------- Toolbar / tables ---------- */
      .toolbar{ display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin-bottom:1rem; }
      .search-box{ position:relative; flex:1 1 240px; max-width:380px; }
      .search-box svg,.search-box i{ position:absolute; left:.7rem; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
      .search-box input{
        width:100%; background:rgba(0,0,0,.4); border:1px solid var(--line); border-radius:10px;
        color:var(--text); font-size:.9rem; padding:.55rem .8rem .55rem 2.3rem; font-family:inherit; outline:none;
      }
      .search-box input:focus{ border-color:var(--chrome-mid); box-shadow:0 0 0 3px rgba(255,255,255,.07); }
      .search-box input::placeholder{ color:#6d6d76; }
      .chips{ display:flex; flex-wrap:wrap; gap:.45rem; }
      .chip{
        background:var(--panel); border:1px solid var(--line); color:var(--body);
        font-size:.8rem; font-weight:600; padding:.42rem .85rem; border-radius:999px;
      }
      .chip:hover{ color:#fff; border-color:var(--line-strong); }
      .chip.active{
        background:linear-gradient(180deg,#f2f3f6,#b9bec9); color:#0a0a0c; border-color:rgba(255,255,255,.4);
      }
      .table-card{ padding:0; overflow:hidden; }
      table{ width:100%; border-collapse:collapse; font-size:.9rem; }
      thead th{
        text-align:left; font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
        color:var(--muted); padding:.9rem 1.1rem; border-bottom:1px solid var(--line-strong);
        background:rgba(255,255,255,.025); white-space:nowrap;
      }
      tbody td{ padding:.85rem 1.1rem; border-bottom:1px solid var(--line); color:var(--body); vertical-align:middle; }
      tbody tr{ transition:background .12s ease; }
      tbody tr:hover{ background:rgba(255,255,255,.045); }
      tbody tr:last-child td{ border-bottom:none; }
      td .strong{ color:var(--text); font-weight:600; }
      td .sub{ display:block; font-size:.76rem; color:var(--muted); margin-top:.1rem; }
      .money{ font-family:"Space Grotesk",sans-serif; font-weight:600; color:var(--text); white-space:nowrap; }
      .row-actions{ display:flex; gap:.4rem; flex-wrap:wrap; }
      .empty-row td{ text-align:center; color:var(--muted); padding:2rem 1rem; }

      .badge{
        display:inline-flex; align-items:center; gap:.38rem;
        font-size:.74rem; font-weight:700; padding:.24rem .65rem; border-radius:999px; white-space:nowrap;
        border:1px solid transparent;
      }
      .badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
      .badge.ok{ color:#86efac; background:var(--ok-bg); border-color:rgba(74,222,128,.35); }
      .badge.warn{ color:#fcd34d; background:var(--warn-bg); border-color:rgba(251,191,36,.35); }
      .badge.bad{ color:#fca5a5; background:var(--bad-bg); border-color:rgba(248,113,113,.35); }
      .badge.info{ color:#a5e3ff; background:var(--info-bg); border-color:rgba(125,211,252,.35); }
      .badge.flat{ color:#e4e4e7; background:rgba(255,255,255,.07); border-color:var(--line-strong); }

      /* ---------- Vehicles ---------- */
      .veh-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
      .veh-card .veh-icon{
        height:92px; border-radius:10px; margin-bottom:.9rem;
        display:flex; align-items:center; justify-content:center;
        background:radial-gradient(circle at 50% 30%, rgba(255,255,255,.1), rgba(255,255,255,.015) 75%);
        border:1px solid var(--line); color:#dfe2e8;
      }
      .veh-card h3{ font-size:.98rem; }
      .veh-meta{ display:flex; flex-direction:column; gap:.35rem; margin-top:.6rem; font-size:.82rem; color:var(--muted); }
      .veh-meta b{ color:var(--body); font-weight:600; }
      .veh-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:.9rem; gap:.5rem; }

      /* ---------- Chat ---------- */
      .chat-layout{ display:grid; grid-template-columns:300px 1fr; gap:1rem; align-items:start; }
      .chat-list{ padding:.5rem; display:flex; flex-direction:column; gap:2px; }
      .chat-item{
        display:flex; gap:.7rem; align-items:center; width:100%; text-align:left;
        background:transparent; border:1px solid transparent; border-radius:11px; padding:.6rem .6rem; color:var(--body);
      }
      .chat-item:hover{ background:rgba(255,255,255,.05); }
      .chat-item.active{ background:rgba(255,255,255,.07); border-color:var(--line); }
      .chat-item .who{ min-width:0; flex:1; }
      .chat-item .who b{ display:block; color:var(--text); font-size:.87rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .chat-item .who span{ display:block; font-size:.76rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
      .unread{ width:9px; height:9px; border-radius:50%; background:var(--info); flex:0 0 auto; }
      .chat-panel{ display:flex; flex-direction:column; min-height:480px; padding:0; overflow:hidden; }
      .chat-head{ padding:1rem 1.25rem; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:.7rem; }
      .chat-head b{ color:var(--text); }
      .chat-head span{ font-size:.78rem; color:var(--muted); display:block; }
      .chat-body{ flex:1; padding:1.25rem; display:flex; flex-direction:column; gap:.7rem; overflow-y:auto; }
      .bubble{ max-width:75%; padding:.65rem .9rem; border-radius:14px; font-size:.9rem; line-height:1.5; }
      .bubble.them{ background:rgba(255,255,255,.07); border:1px solid var(--line); color:var(--body); align-self:flex-start; border-bottom-left-radius:4px; }
      .bubble.me{ background:linear-gradient(180deg,#eef0f3,#c3c8d2); color:#101114; align-self:flex-end; border-bottom-right-radius:4px; font-weight:500; }
      .bubble time{ display:block; font-size:.68rem; opacity:.65; margin-top:.3rem; }
      .chat-input{ display:flex; gap:.6rem; padding:1rem 1.25rem; border-top:1px solid var(--line); }
      .chat-input input{
        flex:1; background:rgba(0,0,0,.4); border:1px solid var(--line); border-radius:10px;
        color:var(--text); padding:.55rem .85rem; font-size:.92rem; font-family:inherit; outline:none;
      }
      .chat-input input:focus{ border-color:var(--chrome-mid); }

      /* ---------- Settings ---------- */
      .settings-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start; }
      .settings-grid .field:first-child{ margin-top:0; }
      .form-actions{ display:flex; gap:.7rem; flex-wrap:wrap; margin-top:1.4rem; }

      /* ---------- Notifications ---------- */
      .notif-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
      .notif-list li{ display:flex; gap:.85rem; padding:1rem 1.25rem; border-bottom:1px solid var(--line); align-items:flex-start; }
      .notif-list li:last-child{ border-bottom:none; }
      .notif-icon{ width:38px; height:38px; border-radius:10px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.06); border:1px solid var(--line); color:#e8eaef; }
      .notif-list p{ font-size:.9rem; line-height:1.5; }
      .notif-list p b{ color:var(--text); }
      .notif-list time{ font-size:.74rem; color:var(--muted); }

      /* ---------- Toast ---------- */
      #toast{
        position:fixed; left:50%; bottom:1.4rem; transform:translate(-50%, 20px);
        background:#141417; border:1px solid var(--line-strong); color:var(--text);
        padding:.75rem 1.15rem; border-radius:11px; font-size:.88rem; font-weight:500;
        box-shadow:0 18px 50px rgba(0,0,0,.6); opacity:0; pointer-events:none;
        transition:opacity .2s ease, transform .2s ease; z-index:100; max-width:min(92vw,480px); text-align:center;
      }
      #toast.show{ opacity:1; transform:translate(-50%,0); }

      .scrim{ display:none; }

      /* ---------- Responsive ---------- */
      @media (max-width:1100px){
        .grid-stats{ grid-template-columns:repeat(2,1fr); }
        .veh-grid{ grid-template-columns:repeat(2,1fr); }
        .grid-2{ grid-template-columns:1fr; }
      }
      @media (max-width:860px){
        .sidebar{ transform:translateX(-105%); transition:transform .25s ease; box-shadow:30px 0 60px rgba(0,0,0,.5); }
        .sidebar.open{ transform:none; }
        .scrim{ display:block; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:35; opacity:0; pointer-events:none; transition:opacity .25s ease; }
        .scrim.on{ opacity:1; pointer-events:auto; }
        .main-wrap{ margin-left:0; }
        .hamburger{ display:inline-flex; }
        .content{ padding:1.1rem; }
        .topbar{ padding:.8rem 1.1rem; }
        .chat-layout{ grid-template-columns:1fr; }
        .settings-grid{ grid-template-columns:1fr; }
        .grid-3{ grid-template-columns:1fr; }
      }
      @media (max-width:640px){
        .grid-stats{ grid-template-columns:1fr 1fr; }
        .veh-grid{ grid-template-columns:1fr; }
        .stat-value{ font-size:1.6rem; }
        .bubble{ max-width:88%; }
      }

/* ---------- Vars usados por estilos inline heredados (contratos, login) ---------- */
:root{
  --surface:#14141a;
  --border:rgba(255,255,255,.09);
  --text-faint:#6b7280;
  --glow-brand:rgba(255,255,255,.08);
  --brand-primary:#e8eaef;
}

/* ---------- Títulos dentro del contenido ---------- */
.content h1,.content h2{ color:var(--text); }
.admin-footer{
  padding:1rem 1.6rem; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem;
  font-size:.75rem; color:var(--muted); background:rgba(6,6,7,.5);
}

/* ---------- Compatibilidad: clases heredadas de twins.css ---------- */
/* glass-card es ahora la tarjeta futurista */
.glass-card,.glass-card-strong{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border:1px solid var(--line); border-radius:var(--radius);
  padding:1.25rem; box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.glass-input,.glass-select{
  width:100%; background:rgba(0,0,0,.45); border:1px solid var(--line);
  border-radius:10px; color:var(--text); font-size:.95rem; padding:.62rem .85rem;
  font-family:inherit; outline:none;
}
.glass-input::placeholder{ color:#6d6d76; }
.glass-input:focus,.glass-select:focus{ border-color:var(--chrome-mid); box-shadow:0 0 0 3px rgba(255,255,255,.08); }
.glass-select option,.glass-input option{ background:#111114; color:var(--text); }
select option{ background:#111114; color:var(--text); }
input[type="date"]{ color-scheme:dark; }
.form-label{
  display:block; font-size:.76rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); margin-bottom:.4rem;
}
/* Botones heredados -> cromo / fantasma */
.btn-primary,.tw-btn-primary,.tw-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border:1px solid rgba(255,255,255,.35);
  background:linear-gradient(180deg,#f7f8fa 0%,#ccd0d9 46%,#969daa 54%,#e3e6ec 100%);
  color:#0a0a0c; font-weight:700; font-size:.92rem;
  padding:.65rem 1.4rem; border-radius:11px;
  box-shadow:0 6px 22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8);
}
.btn-primary:hover,.tw-btn-primary:hover{ filter:brightness(1.07); }
.btn-ghost-primary,.btn-ghost-secondary,.btn-ghost-light,.btn-ghost-info,
.btn-ghost-warning,.btn-ghost-success,.btn-ghost-danger,.btn-outline-primary,.btn-back{
  position:relative; display:inline-flex; align-items:center; gap:.4rem;
  background:var(--panel); border:1px solid var(--line); color:var(--body);
  font-size:.8rem; font-weight:600; padding:.42rem .8rem; border-radius:9px; white-space:nowrap;
}
.btn-ghost-primary:hover,.btn-ghost-secondary:hover,.btn-ghost-light:hover,.btn-back:hover{
  background:var(--panel-2); color:var(--text); border-color:var(--line-strong);
}
.btn-next{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border:1px solid rgba(255,255,255,.35);
  background:linear-gradient(180deg,#f7f8fa 0%,#ccd0d9 46%,#969daa 54%,#e3e6ec 100%);
  color:#0a0a0c; font-weight:700; font-size:.92rem;
  padding:.65rem 1.4rem; border-radius:11px;
}
.btn-icon{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:2rem; height:2rem; background:var(--panel); border:1px solid var(--line);
  color:var(--body); border-radius:9px; font-size:.8rem;
}
.btn-icon:hover{ background:var(--panel-2); color:var(--text); border-color:var(--line-strong); }
/* Entradas heredadas del login */
.tw-input{
  width:100%; background:rgba(0,0,0,.45); border:1px solid var(--line);
  border-radius:10px; color:var(--text); font-size:.95rem; padding:.62rem .85rem;
  font-family:inherit; outline:none;
}
.tw-input:focus{ border-color:var(--chrome-mid); box-shadow:0 0 0 3px rgba(255,255,255,.08); }
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:2.25rem; height:2.25rem; background:var(--panel); border:1px solid var(--line);
  color:var(--body); border-radius:9px;
}
.theme-toggle:hover{ background:var(--panel-2); color:var(--text); }
/* Texto con gradiente cromo (antes text-gradient-premium / bg-brand-gradient) */
.text-gradient-premium,.bg-brand-gradient{
  background:linear-gradient(180deg,#ffffff 0%,#e8eaef 30%,#9ba1ad 52%,#f2f3f6 68%,#7d838f 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* Acentos brand heredados -> cromo neutro */
.text-brand-400,.text-brand-300{ color:var(--chrome-mid); }
.text-brand-500{ color:var(--chrome-mid); }
.bg-brand-500{ background:linear-gradient(180deg,#f2f3f6,#b9bec9); }
.bg-brand-500\/20,.bg-brand-500\/15,.bg-brand-500\/10{ background:rgba(255,255,255,.07); }
.border-brand-500\/20{ border-color:var(--line-strong); }
.text-warning{ color:var(--warn); }
.text-danger{ color:var(--bad); }
.text-tertiary{ color:#71717a; }
/* Tablas heredadas */
.table-premium{ width:100%; border-collapse:collapse; font-size:.9rem; }
.table-row-enter{ /* sin animación de entrada */ }
/* Embudo del dashboard (clases locales que vivían en el <style> de la vista) */
.funnel-level{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.funnel-bar-container{ flex-grow:1; display:flex; justify-content:center; margin-right:1rem; }
/* Animaciones heredadas: solo un fundido suave (nada en movimiento continuo) */
@keyframes fadeInUp{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none;} }
@keyframes scaleIn{ from{ opacity:0; transform:scale(.97);} to{ opacity:1; transform:scale(1);} }
.animate-fade-in{ animation:fadeIn .3s ease both; }
.animate-fade-in-up{ animation:fadeInUp .35s ease both; }
.animate-scale-in{ animation:scaleIn .25s ease both; }
.animate-delay-100{ animation-delay:.1s; }
.animate-delay-200{ animation-delay:.2s; }
.animate-delay-300{ animation-delay:.3s; }
.animate-delay-400{ animation-delay:.4s; }
/* Fondos animados heredados del login viejo: desactivados (negro mate estático) */
.tw-orb,.tw-orb-indigo,.tw-orb-violet,.tw-orb-cyan,.bg-noise,.bg-dot-lg,.bg-mesh-premium,
.shimmer-overlay,.tw-animate-pulse-glow,.animate-blob,.animate-blob2,.animate-blob3{ display:none !important; }

/* ---------- Modales Bootstrap en oscuro ---------- */
.modal-content{
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)) !important;
  border:1px solid var(--line-strong) !important; color:var(--body);
  border-radius:16px !important;
}
.modal-header,.modal-footer{ border-color:var(--line) !important; }
.modal-title{ color:var(--text); }
.btn-close{ filter:invert(1); opacity:.8; }

/* ---------- Paginación de Laravel en oscuro ---------- */
nav[aria-label="Pagination Navigation"] .bg-white{ background:rgba(255,255,255,.05) !important; }
nav[aria-label="Pagination Navigation"] .text-gray-700,
nav[aria-label="Pagination Navigation"] .text-gray-500{ color:var(--body) !important; }
nav[aria-label="Pagination Navigation"] .border-gray-300{ border-color:var(--line) !important; }
nav[aria-label="Pagination Navigation"] a:hover{ background:rgba(255,255,255,.09) !important; }

/* ---------- Dropdowns del layout ---------- */
#notifDropdown,#userMenu{ background:rgba(14,14,17,.98); border:1px solid var(--line); }
#notifDropdown a{ color:var(--body); }

/* ---------- Sidebar: iconos Font Awesome y hamburguesa ---------- */
.nav-item i{ width:18px; text-align:center; flex:0 0 auto; opacity:.85; }
@media (max-width:1023px){ .hamburger{ display:inline-flex; } }

/* ---------- Buscador del chat: ancho fijo (glass-input es 100%) ---------- */
#search-user{ width:14rem; }
