/* ═══════════════════════════════════════════════════════════
   DRAVEN AI CONSOLE — console.dravenai.lat
   Mismos tokens que docs.dravenai.lat (css/docs.css) para que se
   sienta la misma marca — acá se agregan los componentes propios
   de un panel de desarrollador (stat cards, progress bars, tablas
   de logs, modales, formularios de auth).
═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #131315;
  --surface:     #1b1b1e;
  --surface-2:   #1b1b1e;
  --surface-3:   #202024;
  --surface-4:   #26282e;

  --border:      #2a2a2e;
  --border-2:    #2a2a2e;
  --border-3:    #33353b;

  --text:        #f4f4f5;
  --text-2:      #9a9aa2;
  --text-3:      #6b6b72;

  --accent:       #ff5722;
  --accent-2:     #ff7a47;
  --accent-dim:   rgba(255,87,34,0.10);
  --accent-dim-2: rgba(255,87,34,0.18);
  --accent-glow:  rgba(255,87,34,0.25);

  --green:      #6ee7c0;
  --green-dim:  rgba(110,231,192,0.10);
  --amber:      #d8b46a;
  --amber-dim:  rgba(216,180,106,0.10);
  --red:        #f04444;
  --red-dim:    rgba(240,68,68,0.10);

  --grad-brand: linear-gradient(135deg, #ff5722 0%, #ff7a47 100%);

  --code-kw:   #7aa2f7;
  --code-str:  #f2b866;
  --code-fn:   #e6c07b;
  --code-attr: #9cdcfe;
  --code-com:  #5c5c68;

  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;

  --sidebar-w: 240px;
  --topbar-h: 60px;

  --t: 0.18s cubic-bezier(0.4,0,0.2,1);
}

* , *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace; }
::selection { background: var(--accent-glow); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: var(--r-xs); }
button { font-family: inherit; }

/* ── Topbar (igual que docs, sin buscador/TOC) ─────────────── */
.c-topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: rgba(2,2,3,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.c-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.c-brand img { width: 22px; height: 22px; border-radius: 6px; }
.c-brand .tag { font-weight: 500; color: var(--text-2); border-left: 1px solid var(--border-2); padding-left: 9px; margin-left: 1px; font-size: 13px; }
.c-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.c-menu-btn { display: none; width: 36px; height: 36px; border-radius: var(--r-xs); border: 1.5px solid #ff5722; background: var(--surface-2); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.c-menu-btn svg { width: 18px; height: 18px; }

/* ── Layout ─────────────────────────────────────────────── */
.c-shell { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }
.c-menu-btn { display: flex !important; }

/* Sidebar / menú — idéntico al de dashboard.html y keys.html: un drawer
   a pantalla completa, no una barra lateral permanente de escritorio. */
.side-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 199;
}
.side-scrim.open { opacity: 1; pointer-events: auto; }
.side-drawer {
  position: fixed; inset: 0;
  width: 100%; max-width: none;
  background: #1b1b1e;
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 20px 18px 28px;
  overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }
.side-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.side-drawer-head span { font-size: 17px; font-weight: 700; color: var(--text); }
.side-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: #9a9aa2; cursor: pointer; }
.side-close svg { width: 20px; height: 20px; }
.side-group-title { color: #6b6b72; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 14px 0 8px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: 10px;
  color: #f4f4f5; text-decoration: none;
  font-size: 16px; font-weight: 500;
}
.side-link:active { background: #232327; }
.side-link.active { background: #232327; color: #ff5722; }
.side-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.side-div { border-top: 1px solid #2a2a2e; margin: 10px 6px; }

.sidebar-footer { margin-top: auto; padding-top: 16px; }
.sidebar-footer .sub { color: #6b6b72; font-size: 12.5px; }

.c-main { margin-left: 0; flex: 1; min-width: 0; }
.c-content { max-width: 1080px; padding: 24px 18px 80px; margin: 0 auto; }

.c-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.c-page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; color: #fff; }
.c-page-head p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ── Buttons ────────────────────────────────────────────── */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 13.8px; font-weight: 600;
  border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: border-color var(--t), background var(--t), filter var(--t), opacity var(--t);
  white-space: nowrap;
}
.c-btn:hover { border-color: var(--border-3); background: var(--surface-3); }
.c-btn:disabled { opacity: .5; cursor: not-allowed; }
.c-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.c-btn-brand { background: var(--grad-brand); border: none; color: #fff; }
.c-btn-brand:hover { filter: brightness(1.08); }
.c-btn-danger { border-color: rgba(240,68,68,0.35); color: #ff9c9c; background: var(--red-dim); }
.c-btn-danger:hover { background: rgba(240,68,68,0.18); }
.c-btn-sm { padding: 6px 11px; font-size: 12.6px; }
.c-btn-block { width: 100%; }
.c-btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.c-btn-ghost:hover { background: var(--surface-3); color: var(--text); }

/* ── Stat cards / dashboard ─────────────────────────────── */
.c-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.c-stat-card { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r); padding: 18px 20px; }
.c-stat-label { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.c-stat-value { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; font-family: "DM Mono", monospace; }
.c-stat-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

.c-progress { height: 7px; border-radius: 99px; background: var(--surface-4); overflow: hidden; margin-top: 12px; }
.c-progress-fill { height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .4s ease; }
.c-progress-fill.warn { background: linear-gradient(135deg, #f5a623, #f04444); }

.c-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.c-badge.ok { background: var(--green-dim); color: var(--green); }
.c-badge.warn { background: var(--amber-dim); color: var(--amber); }
.c-badge.err { background: var(--red-dim); color: #ff8b8b; }
.c-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.c-panel { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.c-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.c-panel-head h2 { font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.c-panel-head p { font-size: 13px; color: var(--text-2); margin: 2px 0 0; }

.c-model-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.c-model-row:last-child { border-bottom: none; }
.c-model-row .name { font-weight: 600; color: var(--text); font-size: 14px; font-family: "DM Mono", monospace; }
.c-model-row .owner { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ── Tables (keys / logs) ───────────────────────────────── */
.c-table-wrap { overflow-x: auto; border: 1px solid var(--border-2); border-radius: var(--r); }
table.c-table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
table.c-table th { text-align: left; padding: 10px 14px; background: var(--surface-3); color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
table.c-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; white-space: nowrap; }
table.c-table tr:last-child td { border-bottom: none; }
table.c-table td.mono { font-family: "DM Mono", monospace; font-size: 12.6px; }
table.c-table td strong { color: var(--text); font-weight: 600; }
.c-table-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
table.c-table td .name { display: block; font-weight: 600; color: var(--text); font-family: "DM Mono", monospace; font-size: 13.5px; }
table.c-table td .owner { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; white-space: normal; }

.c-model-id { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.c-model-id .c-copy-btn {
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--text-3);
    cursor: pointer;
    transition: opacity .12s ease, color .12s ease, border-color .12s ease;
}
.c-model-id:hover .c-copy-btn,
.c-model-id .c-copy-btn:focus-visible { opacity: 1; }
.c-model-id .c-copy-btn:hover { color: var(--text); border-color: var(--border); }
.c-model-id .c-copy-btn svg { width: 13px; height: 13px; }
.c-model-id .c-copy-btn.is-copied { opacity: 1; color: var(--brand, #7dd3a0); border-color: var(--brand, #7dd3a0); }

/* ── Code blocks (Cómo usar la API) ─────────────────────── */
.c-code-block { border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface-3); overflow: hidden; }
.c-code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.c-code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.65; color: var(--text); }
.c-code-block code { font-family: "DM Mono", ui-monospace, monospace; white-space: pre; }
.tok-kw   { color: var(--code-kw); }
.tok-str  { color: var(--code-str); }
.tok-fn   { color: var(--code-fn); }
.tok-attr { color: var(--code-attr); }
.tok-com  { color: var(--code-com); }

/* ── Language picker (custom dropdown for code snippets) ───
   Pill trigger + dark rounded popover with a checkmark on the
   selected item — same shape as console.groq.com's snippet picker. */
.c-lang-picker { position: relative; }
.c-lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface-4);
  color: var(--text); font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: border-color var(--t), background var(--t);
}
.c-lang-trigger:hover { border-color: var(--border-3); }
.c-lang-trigger svg { width: 14px; height: 14px; color: var(--text-2); transition: transform var(--t); flex-shrink: 0; }
.c-lang-picker.open .c-lang-trigger svg { transform: rotate(180deg); }
.c-lang-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  min-width: 168px; padding: 6px;
  background: #17171b; border: 1px solid var(--border-2);
  border-radius: var(--r); box-shadow: 0 16px 36px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.c-lang-picker.open .c-lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.c-lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; padding: 9px 10px; border-radius: var(--r-xs);
  background: transparent; border: none; color: var(--text-2);
  font-size: 13.5px; font-weight: 500; font-family: inherit;
  text-align: left; cursor: pointer;
}
.c-lang-option:hover { background: var(--surface-3); color: var(--text); }
.c-lang-option.is-selected { color: var(--text); font-weight: 600; }
.c-lang-option .check { width: 15px; height: 15px; color: var(--accent-2); flex-shrink: 0; opacity: 0; }
.c-lang-option.is-selected .check { opacity: 1; }

/* ── Tabs (logs: Generations / Upstream Request) ───────────
   Segmented pill switcher — same shape/tokens as .c-lang-picker,
   just inline instead of a popover. */
.c-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: 999px; margin-bottom: 16px; }
.c-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; border: none;
  background: transparent; color: var(--text-2);
  font-size: 13.2px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.c-tab svg { width: 14px; height: 14px; flex-shrink: 0; }
.c-tab:hover { color: var(--text); }
.c-tab.is-active { background: var(--surface-4); color: #fff; }
.c-tab .c-tab-count { font-family: "DM Mono", monospace; font-size: 11px; color: var(--text-3); }
.c-tab.is-active .c-tab-count { color: var(--accent-2); }
.c-tab-panel { display: none; }
.c-tab-panel.is-active { display: block; }
.c-tab-note { font-size: 12.8px; color: var(--text-3); margin: -10px 0 14px; }

/* Row made clickable to open the upstream request/response detail */
table.c-table tr.is-clickable { cursor: pointer; transition: background var(--t); }
table.c-table tr.is-clickable:hover { background: var(--surface-3); }

/* Detail modal (raw upstream request/response) */
.c-modal-lg { max-width: 640px; }
.c-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-bottom: 18px; }
.c-detail-item { font-size: 12.8px; }
.c-detail-item .k { color: var(--text-3); margin-bottom: 3px; }
.c-detail-item .v { color: var(--text); font-family: "DM Mono", monospace; font-size: 12.8px; word-break: break-all; }
.c-detail-block-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }

/* ── Filter bar (logs) ──────────────────────────────────── */
.c-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.c-select, .c-input {
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; font-family: inherit;
}
.c-select:focus, .c-input:focus { border-color: var(--accent); outline: none; }

/* ── Forms (auth pages) ─────────────────────────────────── */
.c-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.c-auth-card { width: 100%; max-width: 400px; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r-lg); padding: 34px 30px; }
.c-auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; font-size: 16px; }
.c-auth-logo img { width: 40px; height: 40px; }
.c-auth-card h1 { font-size: 20px; margin: 4px 0 26px; color: #fff; text-align: center; font-weight: 600; }
.c-auth-card > p.sub { margin: 0 0 22px; color: var(--text-2); font-size: 13.5px; text-align: center; }

/* --- OAuth provider row --- */
.c-oauth-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.c-oauth-btn {
  width: 52px; height: 52px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t);
  color: var(--text);
}
.c-oauth-btn:hover { border-color: var(--border-3); background: var(--surface-4); transform: translateY(-1px); }
.c-oauth-btn svg, .c-oauth-btn img { width: 22px; height: 22px; }
.c-oauth-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.c-divider { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; color: var(--text-3); font-size: 13px; }
.c-divider::before, .c-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }

.c-auth-guest { margin-top: 6px; text-align: center; }
.c-auth-guest a { color: var(--text-2); font-size: 13.3px; text-decoration: underline; }
.c-auth-guest a:hover { color: var(--text); }

/* --- Guest-mode banner shown inside the console when browsing without a session --- */
.c-guest-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border-2); border-left: 3px solid var(--accent-2); background: var(--surface-2);
  border-radius: var(--r-sm); padding: 13px 16px; margin-bottom: 20px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap;
}
.c-guest-banner strong { color: var(--text); }
.c-guest-gate {
  border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r);
  padding: 30px 28px; text-align: left; margin-bottom: 20px;
}
.c-guest-gate h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.c-guest-gate p { margin: 0 0 22px; color: var(--text-2); font-size: 14.5px; max-width: 480px; }
.c-field { margin-bottom: 16px; }
.c-field label { display: block; font-size: 12.8px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.c-field input {
  width: 100%; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-family: inherit;
  transition: border-color var(--t);
}
.c-field input:focus { border-color: var(--accent); outline: none; }
.c-turnstile-slot { margin: 6px 0 18px; }
.c-auth-foot { margin-top: 18px; text-align: center; font-size: 13.3px; color: var(--text-2); }
.c-auth-foot a { color: var(--accent-2); font-weight: 600; }
.c-alert { display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; }
.c-alert.err { background: var(--red-dim); color: #ff9c9c; border: 1px solid rgba(240,68,68,.3); }
.c-alert.ok { background: var(--green-dim); color: #74e0a0; border: 1px solid rgba(46,204,113,.3); }

/* ── Playground / chat ──────────────────────────────────── */
.c-chat { min-height: 320px; max-height: 480px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.c-chat-empty { margin: auto; color: var(--text-3); font-size: 13.5px; text-align: center; }
.c-msg { display: flex; }
.c-msg .bubble { max-width: 78%; padding: 10px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.c-msg.user { justify-content: flex-end; }
.c-msg.user .bubble { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; }
.c-msg.assistant { justify-content: flex-start; }
.c-msg.assistant .bubble { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.c-chat-input-row { display: flex; align-items: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-2); }
.c-chat-textarea { flex: 1; resize: none; max-height: 160px; font-family: inherit; line-height: 1.5; }
.c-chat-input-row .c-btn { flex-shrink: 0; }

/* ── Modal ──────────────────────────────────────────────── */
.c-modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; }
.c-modal-scrim.open { display: flex; }
.c-modal { width: 100%; max-width: 460px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 26px; }
.c-modal h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.c-modal p { margin: 0 0 16px; color: var(--text-2); font-size: 13.8px; }
.c-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.c-key-reveal {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-3); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: "DM Mono", monospace; font-size: 13px; color: var(--accent-2);
  word-break: break-all; margin-bottom: 14px;
}

/* ── Loading / skeleton ─────────────────────────────────── */
.c-loading { color: var(--text-3); font-size: 13.5px; padding: 20px 0; }
.c-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--border-3); border-top-color: var(--accent-2); border-radius: 50%; animation: c-spin 0.7s linear infinite; vertical-align: -3px; margin-right: 6px; }

/* ── Hero (home / overview) ─────────────────────────────────────────── */
.c-hero { border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r); padding: 30px 28px; margin-bottom: 20px; }
.c-hero-icon { width: 34px; height: 34px; color: var(--accent-2); margin-bottom: 16px; }
.c-hero h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: #fff; }
.c-hero .sub { font-size: 14.5px; color: var(--text-2); margin: 10px 0 0; max-width: 520px; }
.c-hero-divider { height: 1px; background: var(--border); margin: 26px 0 22px; }
.c-hero-usage { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.c-hero-usage-label { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.c-usage-trend { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.c-usage-trend svg { width: 13px; height: 13px; }
.c-usage-trend.down { color: var(--green); }
.c-usage-trend.up { color: var(--amber); }
.c-hero-chart { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 1; min-width: 220px; }
.c-hero-chart-value { font-size: 26px; font-weight: 700; color: #fff; font-family: "DM Mono", monospace; }
.c-sparkline-dates { display: flex; justify-content: space-between; width: 100%; max-width: 340px; font-size: 11px; color: var(--text-3); }

/* ── Quick action cards ─────────────────────────────────────────────── */
.c-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.c-quick-card { display: block; border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r); padding: 22px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.c-quick-card:hover { transform: translateY(-1px); }
.c-quick-card.accent-indigo { border-color: rgba(100,116,248,0.32); }
.c-quick-card.accent-indigo:hover { border-color: rgba(100,116,248,0.6); }
.c-quick-card.accent-amber { border-color: rgba(245,166,35,0.32); }
.c-quick-card.accent-amber:hover { border-color: rgba(245,166,35,0.6); }
.c-quick-card .icon { width: 24px; height: 24px; color: var(--text-2); margin-bottom: 30px; display: block; }
.c-quick-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-quick-card h3 { font-size: 16.5px; font-weight: 700; color: #fff; margin: 0 0 3px; }
.c-quick-card p { font-size: 13px; color: var(--text-2); margin: 0; }
.c-quick-card .chev { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }

/* ── Modelos section (home) ─────────────────────────────────────────── */
.c-models-head { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; margin-bottom: 16px; }
.c-models-head svg { width: 15px; height: 15px; color: var(--text-3); }
.c-model-category-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; margin: 0 0 12px; }
.c-model-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--text); font-size: 14px; }
.c-model-list-item .avatar { width: 24px; height: 24px; border-radius: 7px; background: var(--accent-dim-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent-2); flex-shrink: 0; }
.c-model-list-item:hover { color: var(--accent-2); }
@keyframes c-spin { to { transform: rotate(360deg); } }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .c-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .c-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .c-stat-grid { grid-template-columns: 1fr; }
}
