/* Infynix Console — reuses the exact brand tokens from the Infynix
   WordPress theme (theme/style.css :root), not reinvented. */
:root {
  --c-bg:       #0B0B0B;
  --c-surface:  #141414;
  --c-surface2: #1A1A1A;
  --c-surface3: #222222;
  --c-gold:     #D4AF37;
  --c-gold-lt:  #E8C84A;
  --c-gold-dim: rgba(212,175,55,.14);
  --c-white:    #F5F5F5;
  --c-white-70: rgba(245,245,245,.70);
  --c-white-45: rgba(245,245,245,.45);
  --c-white-20: rgba(245,245,245,.20);
  --c-border:   rgba(245,245,245,.10);
  --c-danger:   #e05555;
  --f-display: 'Bebas Neue', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
  --t: .2s;
}

* { box-sizing: border-box; }

body {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-body);
  margin: 0;
  min-height: 100vh;
}

a { color: inherit; }

.console-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  border-bottom: .5px solid var(--c-border);
}
.console-logo {
  font-family: var(--f-display);
  font-size: 20px; letter-spacing: 1px;
  text-decoration: none; color: var(--c-white);
}
.console-logo em { color: var(--c-gold); font-style: normal; }
.console-nav { display: flex; gap: 24px; }
.console-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--c-white-45); text-decoration: none; transition: color var(--t);
}
.console-nav a:hover, .console-nav a.active { color: var(--c-gold); }

.console-main { max-width: 1200px; margin: 0 auto; padding: 48px 40px 96px; }

.c-breadcrumb { color: var(--c-white-45); font-size: 13px; margin-bottom: 24px; }
.c-breadcrumb a { color: var(--c-white-45); text-decoration: none; }
.c-breadcrumb a:hover { color: var(--c-gold); }

.c-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 24px; }
.c-heading { font-family: var(--f-display); font-size: 40px; margin: 0; letter-spacing: .5px; }

.c-btn {
  display: inline-block; padding: 12px 22px;
  background: var(--c-gold); color: var(--c-ink, #0B0B0B);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer; border-radius: 2px;
  transition: background var(--t);
}
.c-btn:hover { background: var(--c-gold-lt); }
.c-btn-secondary {
  background: transparent; color: var(--c-white-70);
  border: .5px solid var(--c-border);
}
.c-btn-secondary:hover { color: var(--c-gold); border-color: var(--c-gold); }
.c-btn-danger { background: transparent; color: var(--c-danger); border: .5px solid var(--c-danger); }

.c-search {
  width: 100%; padding: 14px 18px;
  background: var(--c-surface2); border: .5px solid var(--c-border);
  color: var(--c-white); font-size: 14px; font-family: var(--f-body);
  outline: none; margin-bottom: 28px;
}
.c-search:focus { border-color: var(--c-gold); }
.c-search::placeholder { color: var(--c-white-20); }

.c-badge {
  display: inline-block; padding: 4px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 2px;
}
.c-badge-draft       { background: var(--c-surface3); color: var(--c-white-70); }
.c-badge-in_analysis { background: rgba(90,140,220,.15); color: #7fa9e8; }
.c-badge-completed   { background: var(--c-gold-dim); color: var(--c-gold-lt); }
.c-badge-published   { background: rgba(90,200,120,.15); color: #6ed08a; }
.c-badge-superseded  { background: var(--c-surface3); color: var(--c-white-45); }
.c-badge-archived    { background: var(--c-surface3); color: var(--c-white-20); }
.c-badge-scheduled   { background: rgba(90,140,220,.15); color: #7fa9e8; }
.c-badge-organization{ background: rgba(120,90,220,.18); color: #b19af0; }

.c-table { width: 100%; border-collapse: collapse; }
.c-table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--c-white-45); padding: 10px 12px; border-bottom: .5px solid var(--c-border);
}
.c-table td { padding: 16px 12px; border-bottom: .5px solid var(--c-border); font-size: 14px; }
.c-table tr:hover td { background: var(--c-surface); }
.c-table a { text-decoration: none; color: var(--c-white); font-weight: 500; }
.c-table a:hover { color: var(--c-gold); }
.c-mono { font-family: var(--f-mono); color: var(--c-white-70); font-size: 13px; }

.c-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2px; background: var(--c-border); margin-bottom: 32px; }
.c-card { background: var(--c-surface); padding: 24px; }
.c-card-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-white-45); margin-bottom: 10px; }
.c-card-value { font-size: 22px; font-weight: 500; }
.c-card-value-mono { font-family: var(--f-mono); font-size: 18px; }
.c-card-value-num { font-family: var(--f-mono); font-size: 30px; color: var(--c-gold); }

.c-empty { border: .5px dashed var(--c-border); padding: 40px; text-align: center; color: var(--c-white-45); }

.c-graph { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 24px 0; }
.c-graph-node {
  padding: 12px 18px; font-family: var(--f-mono); font-size: 14px; font-weight: 600;
  border: .5px solid var(--c-border); background: var(--c-surface2);
}
.c-graph-node-entity { background: var(--c-gold-dim); border-color: rgba(212,175,55,.3); color: var(--c-gold-lt); }
.c-graph-edge { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--c-white-45); font-size: 11px; }
.c-graph-edge::before, .c-graph-edge::after { content: ''; width: 20px; height: .5px; background: var(--c-border); }

.c-map-placeholder {
  height: 320px; border: .5px solid var(--c-border); background: var(--c-surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white-20); font-size: 13px; margin-top: 16px;
}

.c-section { border-top: .5px solid var(--c-border); padding-top: 24px; margin-top: 32px; }
.c-section-title { font-family: var(--f-display); font-size: 20px; margin: 0 0 16px; letter-spacing: .5px; }

/* wizard */
.c-steps { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 48px; position: relative; }
.c-steps::before { content: ''; position: absolute; top: 15px; left: 30px; right: 30px; height: .5px; background: var(--c-border); z-index: 0; }
.c-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; background: var(--c-bg); padding: 0 8px; }
.c-step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-surface2); border: .5px solid var(--c-border); color: var(--c-white-45); font-family: var(--f-mono); font-size: 13px;
}
.c-step.active .c-step-num { background: var(--c-gold); border-color: var(--c-gold); color: #0B0B0B; }
.c-step.done .c-step-num { background: var(--c-surface3); border-color: var(--c-gold); color: var(--c-gold); }
.c-step-label { font-size: 11px; color: var(--c-white-45); text-align: center; }
.c-step.active .c-step-label { color: var(--c-white); }

.c-wizard-panel { background: var(--c-surface); border: .5px solid var(--c-border); padding: 32px; margin-bottom: 24px; }
.c-wizard-panel h2 { font-family: var(--f-display); font-size: 22px; margin: 0 0 20px; }

.c-autocomplete-item {
  padding: 16px 18px; border-bottom: .5px solid var(--c-border); cursor: pointer; transition: background var(--t);
  display: block; text-decoration: none; color: var(--c-white);
}
.c-autocomplete-item:hover { background: var(--c-surface3); }
.c-autocomplete-item .c-sub { display: block; color: var(--c-white-45); font-size: 12px; margin-top: 4px; }

.c-hint { color: var(--c-white-20); font-size: 12px; margin-top: 16px; }
.c-form-actions { display: flex; justify-content: space-between; margin-top: 32px; }
