/* ============================================================
   CALICO — THEME REFONTE 2026
   À charger APRÈS le style.css existant de chaque page :
     <link rel="stylesheet" href="/calicocity/assets/css/calico-theme.css">
   Ne remplace rien : surcharge la DA sur les classes déjà
   générées par app.js / les pages PHP. Aucun JS à toucher.
   ============================================================ */

:root {
  --cc-violet:        #bc42f5;
  --cc-pink:          #f542a7;
  --cc-violet-dim:    rgba(188, 66, 245, .16);
  --cc-violet-glow:   rgba(188, 66, 245, .35);
  --cc-violet-border: rgba(188, 66, 245, .42);
  --cc-red:           #ff4757;
  --cc-red-dim:       rgba(255, 71, 87, .14);
  --cc-red-border:    rgba(255, 71, 87, .4);
  --cc-blue:          #3498db;
  --cc-blue-dim:      rgba(52, 152, 219, .14);
  --cc-blue-border:   rgba(52, 152, 219, .4);
  --cc-green:         #2ecc71;
  --cc-green-dim:     rgba(46, 204, 113, .14);
  --cc-green-border:  rgba(46, 204, 113, .4);
  --cc-orange:        #f39c12;
  --cc-orange-dim:    rgba(243, 156, 18, .14);
  --cc-orange-border: rgba(243, 156, 18, .4);

  /* alias utilisés par docs/style.css */
  --green:  #2ecc71;
  --amber:  #f39c12;
  --red:    #ff4757;

  --bg:          #0b0710;
  --bg-glass:    rgba(11, 7, 16, .88);
  --bg-surface:  rgba(188, 66, 245, .055);
  --bg-surface2: rgba(188, 66, 245, .10);
  --bg-input:    rgba(10, 6, 18, .8);
  --bg-card:     linear-gradient(155deg, rgba(188,66,245,.065), rgba(15,10,20,.5));

  --text:       #f0e6ff;
  --text-muted: rgba(240, 230, 255, .48);
  --text-faint: rgba(240, 230, 255, .26);
  --text-dim:   rgba(240, 230, 255, .26);

  --border:       rgba(188, 66, 245, .18);
  --border-hover: rgba(188, 66, 245, .45);

  --font-ui:   'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --hairline: linear-gradient(90deg, transparent, var(--cc-violet), transparent);
}

/* ── BASE ───────────────────────────────────────────────── */
html { background: var(--bg); }
body {
  background: var(--bg);
  background-image:
    linear-gradient(rgba(188,66,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188,66,245,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  min-width: 1080px;          /* outil PC uniquement */
}
body::before {                 /* halo néon haut de page */
  content: '';
  position: fixed;
  top: -260px; left: 50%;
  width: 1100px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(188,66,245,.16), rgba(245,66,167,.06) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.app, .trello-app, .cc-page { position: relative; z-index: 1; }

::selection { background: rgba(188,66,245,.35); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(188,66,245,.32); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(188,66,245,.6); }

/* ══════════════════════════════════════════════════════════
   TOPBAR GLOBALE  (includes/calico_nav.php)
══════════════════════════════════════════════════════════ */
.cc-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 30px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.cc-topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(188,66,245,.55) 20%, rgba(245,66,167,.4) 60%, transparent);
}
.cc-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.cc-brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 9px rgba(188,66,245,.8)); }
.cc-brand-name {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--text);
  line-height: 1.1;
}
.cc-brand-name b { color: var(--cc-violet); font-weight: 400; text-shadow: 0 0 12px rgba(188,66,245,.8); }
.cc-brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}
.cc-topbar-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

.cc-nav { display: flex; align-items: center; gap: 4px; }
.cc-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all .16s;
}
.cc-nav-item:hover { color: var(--text); background: rgba(188,66,245,.07); }
.cc-nav-item.active {
  color: var(--cc-violet);
  background: var(--cc-violet-dim);
  border-color: var(--cc-violet-border);
  text-shadow: 0 0 12px rgba(188,66,245,.8);
  box-shadow: 0 0 18px rgba(188,66,245,.2), inset 0 0 18px rgba(188,66,245,.08);
}
.cc-topbar-spacer { flex: 1; }

.cc-server-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--cc-green-border);
  border-radius: 20px;
  background: rgba(46,204,113,.07);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  user-select: all;
  flex-shrink: 0;
}
.cc-server-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cc-green);
  box-shadow: 0 0 8px var(--cc-green);
  animation: cc-pulse 2.4s infinite;
}
@keyframes cc-pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

.cc-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  background: rgba(188,66,245,.09);
  border: 1px solid rgba(188,66,245,.26);
  border-radius: 22px;
  font-size: .82rem;
  color: var(--text);
  flex-shrink: 0;
}
.cc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-violet), var(--cc-pink));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: #fff;
  box-shadow: 0 0 12px rgba(188,66,245,.5);
  flex-shrink: 0;
}
.cc-user-name { font-family: var(--font-mono); font-size: 12px; }
.cc-user-role {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px;
  color: var(--cc-violet);
  background: rgba(188,66,245,.16);
  border: 1px solid rgba(188,66,245,.3);
  padding: 1px 6px; border-radius: 4px;
}
.cc-user-dot { display: none; }
.cc-user-logout {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text-faint);
  transition: all .15s;
}
.cc-user-logout:hover { color: var(--cc-red); background: rgba(255,71,87,.12); }

/* L'ancien header reste dans le DOM ? On le neutralise. */
.cc-topbar ~ .site-header, .site-header.cc-legacy-hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════
   TITRES DE PAGE
══════════════════════════════════════════════════════════ */
.cc-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.cc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-violet);
  margin-bottom: 7px;
}
.cc-h1 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.cc-h1 em { font-style: normal; color: var(--cc-violet); text-shadow: 0 0 22px rgba(188,66,245,.5); }
.cc-sub { font-size: 15px; color: var(--text-muted); margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   BOUTONS / CHAMPS
══════════════════════════════════════════════════════════ */
.cc-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  gap: 8px;
  transition: all .16s;
}
.cc-btn:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-surface2); }
.cc-btn-primary {
  border-color: var(--cc-violet-border);
  background: linear-gradient(135deg, rgba(188,66,245,.35), rgba(245,66,167,.18));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(188,66,245,.22);
}
.cc-btn-primary:hover {
  background: linear-gradient(135deg, rgba(188,66,245,.55), rgba(245,66,167,.3));
  box-shadow: 0 0 34px rgba(188,66,245,.5);
  color: #fff;
}
.cc-btn-danger { background: var(--cc-red-dim); border-color: var(--cc-red-border); color: var(--cc-red); }
.cc-btn-danger:hover { background: rgba(255,71,87,.24); box-shadow: 0 0 20px rgba(255,71,87,.25); }

input[type="text"], input[type="number"], input[type="date"], input[type="password"], textarea, select {
  height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14.5px;
}
textarea { height: auto; padding: 10px 13px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--cc-violet);
  box-shadow: 0 0 0 3px rgba(188,66,245,.14);
}
.search-wrap input { padding-left: 38px; }
.search-icon { left: 13px; color: rgba(188,66,245,.6); font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   BOARD — STATS
══════════════════════════════════════════════════════════ */
.stats-row { gap: 14px; margin-bottom: 14px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-align: left;
  transition: border-color .18s, box-shadow .18s;
}
.stat-card:hover { border-color: var(--border-hover); box-shadow: 0 0 30px rgba(188,66,245,.1); }
.stat-card::before { height: 1px; background: var(--hairline); opacity: 1; }
.stat-n { font-size: 38px; letter-spacing: -1px; }
.stat-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.2px; margin-top: 8px; color: var(--text-muted); }
.stat-done .stat-n { color: var(--cc-green); text-shadow: 0 0 18px rgba(46,204,113,.55); }
.stat-todo .stat-n { color: var(--cc-orange); text-shadow: 0 0 18px rgba(243,156,18,.55); }
.stat-crit .stat-n { color: var(--cc-red); text-shadow: 0 0 18px rgba(255,71,87,.6); }
.stat-n.violet     { color: var(--cc-violet); text-shadow: 0 0 18px rgba(188,66,245,.55); }
.stat-card.stat-done::before { background: linear-gradient(90deg, transparent, var(--cc-green), transparent); }
.stat-card.stat-todo::before { background: linear-gradient(90deg, transparent, var(--cc-orange), transparent); }
.stat-card.stat-crit::before { background: linear-gradient(90deg, transparent, var(--cc-red), transparent); }

.prog-wrap { height: 4px; background: rgba(188,66,245,.1); margin-bottom: 30px; }
.prog-fill { background: linear-gradient(90deg, var(--cc-violet), var(--cc-pink)); box-shadow: 0 0 14px rgba(188,66,245,.7); }

/* ── TOOLBAR ────────────────────────────────────────────── */
.cc-toolbar { gap: 10px; margin-bottom: 22px; }
.cc-toolbar input, .cc-toolbar select { height: 42px; }
.cc-toolbar select { padding-right: 30px; }

/* ── ONGLETS PRINCIPAUX ─────────────────────────────────── */
.main-tabs { gap: 2px; border-bottom-color: var(--border); margin-bottom: 22px; }
.main-tab {
  font-size: 11.5px;
  letter-spacing: 1.7px;
  padding: 12px 18px;
  color: var(--text-muted);
}
.main-tab.active { color: var(--cc-violet); border-bottom-color: var(--cc-violet); text-shadow: 0 0 12px rgba(188,66,245,.7); }

/* ── CATÉGORIES ─────────────────────────────────────────── */
.cat-tabs { gap: 6px; margin-bottom: 26px; }
.cat-tab {
  padding: 5px 13px;
  border-color: var(--border);
  letter-spacing: 1.2px;
}
.cat-tab.active {
  border-color: var(--cc-violet-border);
  background: var(--cc-violet-dim);
  box-shadow: 0 0 16px rgba(188,66,245,.2);
}
.cat-count { background: rgba(188,66,245,.14); }
.cat-tab-manage {
  width: 28px; height: 28px; min-width: 28px;
  border-color: var(--cc-violet-border);
  background: rgba(188,66,245,.14);
}
.cat-tab-manage:hover { background: rgba(188,66,245,.32); box-shadow: 0 0 14px rgba(188,66,245,.4); }

/* ── GROUPES / SECTIONS ─────────────────────────────────── */
.board-group > .section-header {
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(188,66,245,.09), rgba(188,66,245,.02));
  border-color: var(--border);
}
.board-group > .section-header:hover { border-color: var(--border-hover); background: linear-gradient(90deg, rgba(188,66,245,.14), rgba(188,66,245,.04)); }
.board-group > .section-header .section-title-txt { font-size: 12.5px; letter-spacing: 2.4px; }
.section-header { border-bottom-style: dashed; border-bottom-color: var(--border); }
.section-title-txt { font-size: 11px; letter-spacing: 2px; }
.section-title-txt i:not(.section-chevron) { color: var(--cc-violet); }
.section-count { background: rgba(188,66,245,.12); }
.board-cat-group-title { color: var(--cc-violet); border-bottom-color: var(--border); letter-spacing: 2px; }
.add-in-section { font-size: 11px; }
.add-in-section:hover { border-color: var(--cc-violet-border); background: var(--cc-violet-dim); }

/* ── LIGNES DE TÂCHES ───────────────────────────────────── */
.task-list { gap: 6px; }
.task {
  gap: 13px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border-color: rgba(188,66,245,.15);
  background: linear-gradient(120deg, rgba(188,66,245,.055), rgba(15,10,20,.4));
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.task:hover {
  border-color: var(--border-hover);
  background: linear-gradient(120deg, rgba(188,66,245,.1), rgba(15,10,20,.4));
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.task.done { opacity: .42; }
.task.is-critical {
  border-left: 2px solid var(--cc-red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: -3px 0 18px rgba(255,71,87,.14);
}
.task.is-progress:not(.is-critical) {
  border-left: 2px solid var(--cc-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: -3px 0 18px rgba(52,152,219,.14);
}
.task-cb { width: 18px; height: 18px; min-width: 18px; border-radius: 5px; border-color: rgba(188,66,245,.35); }
.task-cb.checked { background: rgba(188,66,245,.3); border-color: var(--cc-violet); box-shadow: 0 0 10px rgba(188,66,245,.5); }
.task-text { font-size: 14.5px; }
.task-meta { gap: 8px; margin-top: 6px; }
.task-by {
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(188,66,245,.06);
  border: 1px solid rgba(188,66,245,.16);
  border-radius: 20px;
  padding: 2px 9px;
}

.tag { font-size: 9px; letter-spacing: 1.1px; padding: 2px 8px; border-radius: 4px; }

.act-btn {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(188,66,245,.07);
  border-color: rgba(188,66,245,.16);
  color: var(--text-muted);
}
.act-btn:hover { background: var(--cc-violet-dim); border-color: var(--cc-violet-border); color: var(--cc-violet); }
.act-btn.active-progress { background: rgba(52,152,219,.18); border-color: rgba(52,152,219,.45); color: var(--cc-blue); box-shadow: 0 0 12px rgba(52,152,219,.25); }

/* ── NOTES / SCRIPTS / LIENS / COMMANDES ────────────────── */
.notes-grid, .scripts-grid { gap: 14px; }
.note-card, .script-card, .link-item, .cmd-block, .key-item {
  background: var(--bg-card);
  border-color: var(--border);
  border-radius: var(--radius-lg);
}
.note-card { padding: 18px 20px; }
.note-card:hover, .script-card:hover, .link-item:hover { border-color: var(--border-hover); box-shadow: 0 8px 26px rgba(0,0,0,.35); }
.note-card.pinned { border-top: 2px solid var(--cc-violet); box-shadow: 0 0 22px rgba(188,66,245,.14); }
.note-title { font-size: 14.5px; }
.link-item { border-radius: var(--radius-md); padding: 13px 16px; }
.link-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(188,66,245,.12); border-color: rgba(188,66,245,.28); }
.cmd-code { border-radius: 5px; padding: 3px 10px; }
.key-badge { border-radius: 5px; }
.cmd-block { border-radius: var(--radius-md); }
.cmd-head { font-size: 10px; letter-spacing: 2px; }

/* ══════════════════════════════════════════════════════════
   TRELLO
══════════════════════════════════════════════════════════ */
.trello-board { gap: 14px; }
.trello-col {
  width: 290px;
  background: linear-gradient(175deg, rgba(188,66,245,.07), rgba(17,11,24,.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.trello-col.drag-over { border-color: var(--cc-violet); box-shadow: 0 0 26px rgba(188,66,245,.3); }
.col-header { padding: 14px 15px 12px; border-bottom-color: var(--border); }
.col-title { font-size: 11px; letter-spacing: 2px; color: rgba(240,230,255,.7); }
.col-count { background: rgba(188,66,245,.12); border-color: rgba(188,66,245,.18); }
.col-cards { padding: 11px; gap: 9px; }

.trello-card {
  background: linear-gradient(150deg, rgba(188,66,245,.05), rgba(10,6,18,.9));
  border: 1px solid rgba(188,66,245,.16);
  border-radius: 11px;
  padding: 13px 14px;
}
.trello-card:hover { border-color: var(--border-hover); box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 20px rgba(188,66,245,.12); }
.card-label { font-size: 9px; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; }
.card-text { font-size: 14px; font-weight: 600; }
.card-desc { font-size: 12px; color: var(--text-faint); }
.checklist-progress { max-width: none; height: 4px; }
.checklist-fill { background: linear-gradient(90deg, var(--cc-violet), var(--cc-pink)); box-shadow: 0 0 8px rgba(188,66,245,.6); }
.checklist-fill.done { background: linear-gradient(90deg, var(--cc-green), rgba(46,204,113,.6)); box-shadow: 0 0 8px rgba(46,204,113,.6); }
.card-footer { padding-top: 9px; border-top: 1px solid rgba(188,66,245,.1); }
.card-actions { top: 7px; right: 7px; }
.col-add-btn, .trello-add-col {
  border-radius: var(--radius-md);
  border-color: rgba(188,66,245,.24);
}
.col-add-btn:hover, .trello-add-col:hover {
  border-color: var(--cc-violet-border);
  background: var(--cc-violet-dim);
  box-shadow: 0 0 26px rgba(188,66,245,.15);
}
.trello-add-col { border-radius: var(--radius-lg); width: 270px; }
.card-placeholder { border-color: var(--cc-violet); background: rgba(188,66,245,.12); border-radius: 11px; }

/* ══════════════════════════════════════════════════════════
   DOCS
══════════════════════════════════════════════════════════ */
.docs-tabs { gap: 6px; }
.docs-tab {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.docs-tab.active {
  border-color: var(--cc-violet-border);
  background: var(--cc-violet-dim);
  box-shadow: 0 0 16px rgba(188,66,245,.2);
}
.docs-title { font-family: var(--font-ui); font-size: 32px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.docs-title i { color: var(--cc-violet); }
.docs-lead { font-size: 15px; line-height: 1.65; text-wrap: pretty; }

.hub-grid { gap: 16px; }
.hub-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.hub-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
}
.hub-card:hover {
  border-color: var(--cc-violet-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 28px rgba(188,66,245,.16);
}
.hub-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(188,66,245,.13);
  border: 1px solid rgba(188,66,245,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cc-violet);
  font-size: 21px;
  box-shadow: 0 0 20px rgba(188,66,245,.18);
}
.hub-card h3 { font-size: 18px; margin-top: 4px; }
.hub-card p { font-size: 13.5px; line-height: 1.55; }
.hub-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.hub-tag.ready { color: var(--cc-green); background: var(--cc-green-dim); border: 1px solid var(--cc-green-border); box-shadow: 0 0 14px rgba(46,204,113,.25); }
.hub-tag.soon  { color: var(--cc-orange); background: var(--cc-orange-dim); border: 1px solid var(--cc-orange-border); }

.docs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
}
.docs-card h2 { font-family: var(--font-mono); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--cc-violet); font-weight: 400; }
.docs-card h3 { font-family: var(--font-ui); font-size: 15px; color: var(--text); }
.docs-card p { font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.docs-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(188,66,245,.12);
  color: #d98bff;
  border: 1px solid rgba(188,66,245,.2);
  padding: 1px 6px;
  border-radius: 5px;
}
.docs-card pre {
  background: rgba(10,6,18,.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.docs-search { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-input); }
.docs-table-wrap { border-radius: var(--radius-lg); border-color: var(--border); }

/* ══════════════════════════════════════════════════════════
   MODALES / TOAST
══════════════════════════════════════════════════════════ */
.modal-backdrop, .docs-modal-backdrop { background: rgba(4,2,8,.8); backdrop-filter: blur(8px); }
.cc-modal, .docs-modal {
  background: linear-gradient(165deg, #17102240, #130d1e 40%) , #130d1e;
  border: 1px solid var(--cc-violet-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(188,66,245,.16), 0 30px 70px rgba(0,0,0,.6);
}
.modal-header h2, .docs-modal-header h2 { font-size: 13px; letter-spacing: 2.4px; }
.form-row label { font-size: 10px; letter-spacing: 1.8px; }
.cc-toast {
  border-radius: var(--radius-md);
  padding: 11px 20px;
  box-shadow: 0 0 26px rgba(188,66,245,.25), 0 8px 24px rgba(0,0,0,.6);
}

/* ══════════════════════════════════════════════════════════
   LOGIN  (login.php)
══════════════════════════════════════════════════════════ */
.cc-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}
.cc-login-grid {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.cc-login-left { display: flex; flex-direction: column; gap: 26px; }
.cc-login-logo { display: flex; align-items: center; gap: 16px; }
.cc-login-logo svg { width: 58px; height: 58px; filter: drop-shadow(0 0 14px rgba(188,66,245,.75)); }
.cc-login-word {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 9px;
  text-shadow: 0 0 22px rgba(188,66,245,.55);
}
.cc-login-word b { color: var(--cc-violet); font-weight: 400; }
.cc-login-baseline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.cc-login-claim { font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; max-width: 420px; text-wrap: pretty; }
.cc-login-claim em { font-style: normal; color: var(--cc-violet); text-shadow: 0 0 24px rgba(188,66,245,.5); }
.cc-login-term {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--text-faint);
  border-left: 1px solid rgba(188,66,245,.25);
  padding-left: 16px;
}
.cc-login-term b { color: var(--cc-green); font-weight: 400; }

.cc-login-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(188,66,245,.075), rgba(15,10,20,.9) 55%);
  border: 1px solid rgba(188,66,245,.32);
  border-radius: 16px;
  padding: 34px 32px 28px;
  box-shadow: 0 0 60px rgba(188,66,245,.14), 0 30px 70px rgba(0,0,0,.55);
}
.cc-login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cc-violet), var(--cc-pink), transparent);
  box-shadow: 0 0 12px rgba(188,66,245,.8);
}
.cc-login-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--cc-violet); margin-bottom: 6px; }
.cc-login-h2 { font-size: 22px; font-weight: 700; margin-bottom: 26px; }
.cc-field { margin-bottom: 16px; }
.cc-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.cc-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid rgba(188,66,245,.24);
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.cc-input-wrap:focus-within { border-color: var(--cc-violet); box-shadow: 0 0 0 3px rgba(188,66,245,.14); }
.cc-input-wrap i { color: rgba(188,66,245,.7); font-size: 14px; display: flex; }
.cc-input-wrap input {
  flex: 1;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}
.cc-input-wrap input:focus { box-shadow: none; border: none; }
.cc-login-btn {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 1px solid rgba(188,66,245,.55);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(188,66,245,.42), rgba(245,66,167,.22));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(188,66,245,.3), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .2s, box-shadow .2s;
}
.cc-login-btn:hover {
  background: linear-gradient(135deg, rgba(188,66,245,.62), rgba(245,66,167,.34));
  box-shadow: 0 0 42px rgba(188,66,245,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.cc-login-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(188,66,245,.16);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.cc-login-error {
  background: var(--cc-red-dim);
  border: 1px solid var(--cc-red-border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  color: #ff6b7a;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD  (dashboard.php)
══════════════════════════════════════════════════════════ */
.cc-wrap { max-width: 1560px; margin: 0 auto; padding: 0 28px 80px; }

.cc-widgets { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cc-widget {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .18s;
}
.cc-widget:hover { border-color: var(--border-hover); }
.cc-widget::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hairline); }
.cc-widget.is-red::before   { background: linear-gradient(90deg, transparent, var(--cc-red), transparent); }
.cc-widget.is-green::before { background: linear-gradient(90deg, transparent, var(--cc-green), transparent); }
.cc-widget.is-blue::before  { background: linear-gradient(90deg, transparent, var(--cc-blue), transparent); }
.cc-widget-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--text-muted);
}
.cc-widget-n { font-family: var(--font-mono); font-size: 42px; line-height: 1; margin: 18px 0 6px; }
.cc-widget-hint { font-size: 13px; color: var(--text-faint); }
.is-red   .cc-widget-n, .is-red   .cc-widget-head i { color: var(--cc-red);   text-shadow: 0 0 20px rgba(255,71,87,.6); }
.is-green .cc-widget-n, .is-green .cc-widget-head i { color: var(--cc-green); text-shadow: 0 0 20px rgba(46,204,113,.55); }
.is-blue  .cc-widget-n, .is-blue  .cc-widget-head i { color: var(--cc-blue);  text-shadow: 0 0 20px rgba(52,152,219,.55); }

.cc-widget-hero {
  grid-column: 1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background: linear-gradient(150deg, rgba(188,66,245,.13), rgba(188,66,245,.03) 60%);
  border-color: var(--cc-violet-border);
  box-shadow: 0 0 40px rgba(188,66,245,.08);
}
.cc-ring {
  width: 104px; height: 104px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 32px rgba(188,66,245,.35);
  background: conic-gradient(var(--cc-violet) 0turn, var(--cc-pink) var(--pct, .68turn), rgba(188,66,245,.1) var(--pct, .68turn));
}
.cc-ring-in {
  width: 82px; height: 82px;
  border-radius: 50%;
  background: #100a17;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cc-ring-n { font-family: var(--font-mono); font-size: 26px; line-height: 1; }
.cc-ring-n span { font-size: 14px; color: var(--cc-violet); }
.cc-ring-l { font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px; color: var(--text-faint); margin-top: 3px; }

.cc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.cc-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(150deg, rgba(188,66,245,.07), rgba(15,10,20,.55));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 30px rgba(188,66,245,.28); border-color: var(--cc-violet-border); color: inherit; }
.cc-tile-ico {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(188,66,245,.14);
  border: 1px solid rgba(188,66,245,.35);
  color: var(--cc-violet);
  box-shadow: 0 0 22px rgba(188,66,245,.3);
}
.cc-tile.t-pink  .cc-tile-ico { background: rgba(245,66,167,.14); border-color: rgba(245,66,167,.35); color: var(--cc-pink); box-shadow: 0 0 22px rgba(245,66,167,.3); }
.cc-tile.t-pink:hover  { border-color: rgba(245,66,167,.6); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 30px rgba(245,66,167,.28); }
.cc-tile.t-blue  .cc-tile-ico { background: rgba(52,152,219,.14); border-color: rgba(52,152,219,.35); color: var(--cc-blue); box-shadow: 0 0 22px rgba(52,152,219,.3); }
.cc-tile.t-blue:hover  { border-color: rgba(52,152,219,.6); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 30px rgba(52,152,219,.28); }
.cc-tile-title { font-size: 19px; font-weight: 700; }
.cc-tile-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin-top: 3px; }
.cc-tile-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cc-violet); margin-top: 10px; }
.cc-tile.t-pink .cc-tile-meta { color: var(--cc-pink); }
.cc-tile.t-blue .cc-tile-meta { color: var(--cc-blue); }
.cc-tile-arrow { font-size: 20px; color: var(--text-faint); display: flex; }

.cc-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.cc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cc-panel.is-danger { background: linear-gradient(160deg, rgba(255,71,87,.07), rgba(15,10,20,.5)); border-color: rgba(255,71,87,.24); box-shadow: 0 0 34px rgba(255,71,87,.06); }
.cc-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cc-panel-head i { color: var(--cc-violet); }
.cc-panel.is-danger .cc-panel-head { color: #ff6b7a; border-bottom-color: rgba(255,71,87,.16); }
.cc-panel.is-danger .cc-panel-head i { color: #ff6b7a; }
.cc-panel-head .cc-badge {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cc-red);
  background: rgba(255,71,87,.14);
  border: 1px solid var(--cc-red-border);
  border-radius: 20px; padding: 2px 9px;
}
.cc-feed-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(188,66,245,.08);
}
.cc-feed-row:last-child { border-bottom: none; }
.cc-feed-av {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cc-violet), var(--cc-pink));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: #fff;
}
.cc-feed-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; color: rgba(240,230,255,.85); }
.cc-feed-txt b { color: var(--text); }
.cc-feed-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .8px; color: var(--text-faint); margin-top: 3px; }
.cc-urgent-row { padding: 15px 20px; border-bottom: 1px solid rgba(255,71,87,.1); display: flex; flex-direction: column; gap: 8px; }
.cc-urgent-row:last-child { border-bottom: none; }
.cc-urgent-txt { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.cc-urgent-meta { display: flex; align-items: center; gap: 8px; }
.cc-chip-crit {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cc-red); background: rgba(255,71,87,.14);
  border: 1px solid rgba(255,71,87,.38); border-radius: 4px; padding: 2px 7px;
}
.cc-empty { padding: 26px 20px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
