/* ═══════════════════════════════════════════════════════
   TRÔNE IMPÉRIAL — salle de commandement suprême Nova
   ═══════════════════════════════════════════════════════ */

.throne-page {
  --thr-glow: rgba(0,207,255,.18);
  --thr-violet: #8b6dff;
  color: var(--text);
}

.throne-root { display: flex; flex-direction: column; gap: 16px; }

.throne-loading {
  padding: 80px 20px; text-align: center; color: var(--muted);
  font-size: 15px; letter-spacing: .5px;
}
.throne-loading a { color: var(--accent-text); }

/* Carte de verre générique ─────────────────────────────── */
.thr-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(28,52,85,.55), rgba(13,30,48,.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(120,200,255,.06), 0 6px 24px rgba(0,0,0,.28);
}
.thr-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(0,207,255,.35), transparent 40%, transparent 70%, rgba(139,109,255,.30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6;
}

.thr-panel-head { display: flex; align-items: center; gap: 9px; }
.thr-panel-head h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  margin: 0; color: var(--accent-text);
}
.thr-panel-head h2.danger-text { color: var(--danger); }
.thr-ph-ico {
  font-size: 16px; filter: drop-shadow(0 0 6px var(--thr-glow));
}
.thr-sub { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.thr-panel-cta {
  margin-top: auto; width: 100%;
  background: linear-gradient(180deg, rgba(0,207,255,.16), rgba(0,207,255,.05));
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--accent-text); font-weight: 700; font-size: 12px; letter-spacing: .4px;
  padding: 9px 12px; cursor: pointer; transition: var(--t);
}
.thr-panel-cta:hover { background: rgba(0,207,255,.22); border-color: var(--accent); box-shadow: var(--accent-glow); }
.thr-cta-glow { animation: thrPulseCta 2.6s ease-in-out infinite; }
@keyframes thrPulseCta { 0%,100%{box-shadow:0 0 0 rgba(0,207,255,0)} 50%{box-shadow:0 0 18px rgba(0,207,255,.30)} }

.thr-empty {
  padding: 14px; text-align: center; color: var(--muted); font-size: 12px;
  border: 1px dashed var(--border); border-radius: var(--radius-sm); line-height: 1.5;
}
.thr-empty small { color: var(--muted-2); }

/* ═══════ BARRE SUPÉRIEURE ═══════════════════════════════ */
.thr-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 14px 22px;
  background:
    radial-gradient(120% 180% at 50% -40%, rgba(0,207,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(20,40,68,.7), rgba(13,30,48,.55));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(0,120,200,.08);
}
.thr-crest { display: flex; align-items: center; gap: 12px; }
.thr-crest-badge {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px;
  border-radius: 12px; background: linear-gradient(160deg, rgba(139,109,255,.3), rgba(0,207,255,.18));
  border: 1px solid var(--border-strong); box-shadow: 0 0 18px rgba(139,109,255,.3);
}
.thr-crest-info { display: flex; flex-direction: column; line-height: 1.3; }
.thr-crest-info strong { font-size: 14px; font-weight: 800; letter-spacing: .3px; }
.thr-crest-info span { font-size: 12px; color: var(--text-soft); }
.thr-crest-info small { font-size: 10.5px; color: var(--muted); letter-spacing: .5px; }

.thr-title-block { text-align: center; }
.thr-title-block h1 {
  margin: 0; font-size: 30px; font-weight: 900; letter-spacing: 6px;
  background: linear-gradient(180deg, #eafbff, #6cc6ff 60%, #2a8fd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(0,180,255,.25);
}
.thr-title-block p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-soft); letter-spacing: 1px; }

.thr-topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.thr-score-box {
  display: flex; gap: 14px; padding: 8px 14px;
  background: rgba(11,22,38,.6); border: 1px solid var(--border); border-radius: 12px;
}
.thr-score-cell { display: flex; align-items: center; gap: 7px; }
.thr-score-cell strong { font-size: 18px; font-weight: 800; color: #eafaff; }
.thr-score-cell small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.thr-score-ico { font-size: 18px; color: var(--accent-text); filter: drop-shadow(0 0 6px var(--thr-glow)); }
.thr-rank-total { font-size: 10px; font-weight: 600; color: var(--muted); font-style: normal; }
.thr-rank-up   { color: #4ade80; font-style: normal; font-size: 12px; }
.thr-rank-down { color: #f87171; font-style: normal; font-size: 12px; }

.thr-domination {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 12px; min-width: 150px;
  border: 1px solid; text-align: center;
}
.thr-dom-label { font-size: 8.5px; letter-spacing: 1.4px; opacity: .8; text-transform: uppercase; }
.thr-domination strong { font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.thr-dom-ok     { background: var(--success-dim); border-color: rgba(34,197,94,.4);  color: #6ee7a0; box-shadow: 0 0 18px rgba(34,197,94,.18); }
.thr-dom-info   { background: var(--info-dim);    border-color: rgba(59,130,246,.4); color: #8ab4ff; box-shadow: 0 0 18px rgba(59,130,246,.18); }
.thr-dom-warn   { background: var(--warning-dim); border-color: rgba(245,158,11,.45);color: #fcd34d; box-shadow: 0 0 18px rgba(245,158,11,.2); }
.thr-dom-danger { background: var(--danger-dim);  border-color: rgba(239,68,68,.5);  color: #fca5a5; box-shadow: 0 0 22px rgba(239,68,68,.28); animation: thrDomAlert 1.6s ease-in-out infinite; }
@keyframes thrDomAlert { 0%,100%{box-shadow:0 0 12px rgba(239,68,68,.2)} 50%{box-shadow:0 0 26px rgba(239,68,68,.5)} }

/* ═══════ BARRE DE RESSOURCES ════════════════════════════ */
.thr-resbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; background: rgba(13,28,46,.5);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.thr-res-pills { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.thr-res-pill {
  display: flex; align-items: center; gap: 9px; padding: 7px 12px;
  background: linear-gradient(180deg, rgba(28,52,85,.5), rgba(13,30,48,.4));
  border: 1px solid var(--border); border-left: 3px solid var(--rc);
  border-radius: 10px; min-width: 132px; flex: 1;
}
.thr-res-ico { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(0,0,0,.5)); }
.thr-res-body { display: flex; flex-direction: column; line-height: 1.25; }
.thr-res-name { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.thr-res-amt { font-size: 14px; font-weight: 800; color: #eef6ff; }
.thr-res-amt em { font-size: 10.5px; font-weight: 600; color: var(--muted); font-style: normal; }
.thr-res-rate { font-size: 10.5px; font-weight: 700; }
.thr-res-rate.pos { color: var(--c-pop); }
.thr-res-rate.neg { color: var(--danger); }
.thr-res-near { border-color: rgba(245,158,11,.5); box-shadow: 0 0 14px rgba(245,158,11,.18); }
.thr-res-full { border-color: rgba(239,68,68,.55); box-shadow: 0 0 14px rgba(239,68,68,.22); }

.thr-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.thr-qa {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: rgba(11,22,38,.6); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text-soft); font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: var(--t);
}
.thr-qa span { font-size: 13px; }
.thr-qa:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-dim); }

/* ═══════ GRILLE PRINCIPALE ══════════════════════════════ */
.thr-grid {
  display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; align-items: stretch;
}
.thr-col { display: flex; flex-direction: column; gap: 16px; }
.thr-col-left .thr-panel, .thr-col-right .thr-panel { flex: 1; }

/* ── FLUX IMPÉRIAUX ─────────────────────────────────────── */
.thr-flux-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 12px; border-radius: 9px;
  background: linear-gradient(90deg, rgba(0,207,255,.12), transparent);
  border: 1px solid var(--border-soft);
}
.thr-flux-total span { font-size: 11px; color: var(--muted); }
.thr-flux-total strong { font-size: 19px; font-weight: 800; color: var(--c-pop); }
.thr-flux-rows { display: flex; flex-direction: column; gap: 7px; }
.thr-flux-row { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 8px; }
.thr-flux-name { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-soft); }
.thr-flux-name img { width: 15px; height: 15px; object-fit: contain; }
.thr-flux-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.thr-flux-bar div { height: 100%; border-radius: 3px; transition: width .5s ease; }
.thr-flux-rate { font-size: 11.5px; font-weight: 700; text-align: right; }
.thr-flux-energy {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; border-radius: 9px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2);
  font-size: 12px;
}
.thr-flux-energy strong { color: var(--c-energy); font-weight: 800; }
.thr-flux-energy.warn { background: var(--danger-dim); border-color: rgba(239,68,68,.35); }
.thr-flux-energy.warn strong { color: var(--danger); }
.thr-flux-notes { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-soft); }
.thr-flux-notes em { color: var(--muted); font-style: normal; margin-right: 5px; }
.thr-flux-notes .warn { color: #fcd34d; }

/* ── INFRASTRUCTURE / LABO : blocs actifs ───────────────── */
.thr-build-active, .thr-lab-active {
  display: flex; align-items: center; gap: 11px; padding: 10px;
  background: rgba(11,22,38,.5); border: 1px solid var(--border); border-radius: 10px;
}
.thr-build-ico, .thr-lab-ico { font-size: 22px; }
.thr-build-info, .thr-lab-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.thr-build-info strong, .thr-lab-info strong { font-size: 12.5px; font-weight: 700; }
.thr-build-info em, .thr-lab-info em { font-style: normal; color: var(--accent-text); font-size: 11px; }
.thr-lab-info small { font-size: 10.5px; color: var(--muted); }
.thr-build-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.thr-build-bar div { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; transition: width .5s; }
.thr-build-timer { font-size: 12px; font-weight: 800; color: var(--accent-text); white-space: nowrap; }

.thr-advice {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: rgba(139,109,255,.08); border: 1px solid rgba(139,109,255,.22); border-radius: 10px;
}
.thr-advice-ico { font-size: 18px; }
.thr-advice strong { display: block; font-size: 11.5px; font-weight: 700; }
.thr-advice small { font-size: 10px; color: var(--muted); }

/* ═══════ HOLOGRAMME CENTRAL ═════════════════════════════ */
.thr-holo {
  position: relative; display: flex; flex-direction: column;
  min-height: 480px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(0,90,160,.22), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(139,109,255,.14), transparent 55%),
    linear-gradient(180deg, #081627, #04101e);
  box-shadow: inset 0 0 70px rgba(0,120,200,.14), 0 8px 30px rgba(0,0,0,.4);
}
.thr-holo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.thr-holo-top { position: relative; z-index: 4; text-align: center; padding: 16px 10px 0; pointer-events: none; }
.thr-holo-eyebrow { font-size: 9.5px; letter-spacing: 3px; color: var(--accent-text); opacity: .8; }
.thr-holo-top h2 {
  margin: 3px 0 1px; font-size: 26px; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(0,180,255,.5); color: #eafbff;
}
.thr-holo-type { font-size: 11.5px; color: var(--text-soft); letter-spacing: .5px; }

.thr-holo-tags {
  position: absolute; z-index: 3; top: 96px; left: 0; right: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 14px;
  pointer-events: none; gap: 6px;
}
.thr-holo-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .6px; padding: 4px 8px; border-radius: 6px;
  background: rgba(8,18,32,.75); border: 1px solid var(--border); backdrop-filter: blur(3px);
}
.thr-holo-tag.ok     { color: #6ee7a0; border-color: rgba(34,197,94,.4); }
.thr-holo-tag.info   { color: #8ab4ff; border-color: rgba(59,130,246,.4); }
.thr-holo-tag.warn   { color: #fcd34d; border-color: rgba(245,158,11,.45); }
.thr-holo-tag.danger { color: #fca5a5; border-color: rgba(239,68,68,.5); animation: thrDomAlert 1.6s ease-in-out infinite; }

.thr-holo-stats {
  position: relative; z-index: 2; margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(4,12,22,.85));
}
.thr-hs { display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  background: rgba(8,18,32,.6); border: 1px solid var(--border); border-radius: 9px; }
.thr-hs span { font-size: 16px; }
.thr-hs strong { display: block; font-size: 13px; font-weight: 800; }
.thr-hs small { font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* ═══════ PUISSANCE MILITAIRE ════════════════════════════ */
.thr-mil-rows { display: flex; flex-direction: column; gap: 0; }
.thr-mil-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 2px; border-bottom: 1px solid var(--border-soft); font-size: 12px;
}
.thr-mil-row span { color: var(--muted); }
.thr-mil-row strong { font-weight: 800; color: #eef6ff; }
.thr-mil-threat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 9px; font-size: 12px; border: 1px solid;
}
.thr-mil-threat span { letter-spacing: .3px; }
.thr-mil-threat strong { font-weight: 800; letter-spacing: 1px; }
.thr-mil-threat-low    { background: var(--success-dim); border-color: rgba(34,197,94,.35); color: #6ee7a0; }
.thr-mil-threat-medium { background: var(--warning-dim); border-color: rgba(245,158,11,.4); color: #fcd34d; }
.thr-mil-threat-high   { background: var(--danger-dim);  border-color: rgba(239,68,68,.5);  color: #fca5a5; }
.thr-mil-alert {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  background: var(--danger-dim); border: 1px solid rgba(239,68,68,.5); border-radius: 10px;
  animation: thrDomAlert 1.4s ease-in-out infinite;
}
.thr-mil-alert strong { color: #fca5a5; font-size: 12.5px; }
.thr-mil-alert span { font-size: 11px; color: var(--text-soft); }
.thr-mil-alert em { font-style: normal; font-weight: 800; color: #fff; }
.thr-mil-actions { display: flex; flex-direction: column; gap: 7px; }
.thr-mil-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  background: rgba(11,22,38,.6); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-soft); font-size: 11.5px; font-weight: 600; cursor: pointer; transition: var(--t);
}
.thr-mil-btn span { font-size: 14px; }
.thr-mil-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-dim); }

/* ═══════ SIGNAUX D'ALERTE ═══════════════════════════════ */
.thr-alerts-section { display: flex; flex-direction: column; gap: 10px; }
.thr-section-head { display: flex; align-items: center; gap: 9px; padding-left: 2px; }
.thr-section-head span { font-size: 16px; filter: drop-shadow(0 0 6px var(--thr-glow)); }
.thr-section-head h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-text); }
.thr-alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.thr-alert {
  display: flex; flex-direction: column; gap: 5px; padding: 11px 13px;
  background: linear-gradient(180deg, rgba(28,52,85,.5), rgba(13,30,48,.6));
  border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: 10px;
  transition: var(--t);
}
.thr-alert.clickable { cursor: pointer; }
.thr-alert.clickable:hover { transform: translateY(-2px); border-color: var(--accent); }
.thr-alert-head { display: flex; align-items: center; justify-content: space-between; }
.thr-alert-ico { font-size: 16px; }
.thr-alert-level { font-size: 8.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.thr-alert-title { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.thr-alert-desc { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.thr-alert-action { font-size: 10.5px; font-weight: 700; color: var(--accent-text); margin-top: 2px; }
.thr-alert-critique  { border-left-color: var(--danger); animation: thrDomAlert 1.8s ease-in-out infinite; }
.thr-alert-critique  .thr-alert-level { background: var(--danger-dim); color: #fca5a5; }
.thr-alert-important { border-left-color: var(--warning); }
.thr-alert-important .thr-alert-level { background: var(--warning-dim); color: #fcd34d; }
.thr-alert-conseil   { border-left-color: var(--accent); }
.thr-alert-conseil   .thr-alert-level { background: var(--accent-dim); color: var(--accent-text); }
.thr-alert-info      { border-left-color: var(--success); }
.thr-alert-info      .thr-alert-level { background: var(--success-dim); color: #6ee7a0; }

/* ═══════ BAS : PRIORITÉ / ORDRES / COLONIES ═════════════ */
.thr-bottom { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 16px; align-items: stretch; }

.thr-priority-title {
  font-size: 17px; font-weight: 800; color: #eafbff; line-height: 1.25;
  text-shadow: 0 0 16px rgba(0,180,255,.3);
}
.thr-priority-reason { margin: 0; font-size: 11.5px; color: var(--text-soft); line-height: 1.45; }
.thr-priority-reward {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 11px;
  background: rgba(139,109,255,.1); border: 1px solid rgba(139,109,255,.25); border-radius: 10px;
}
.thr-priority-reward span { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--thr-violet); }
.thr-priority-reward small { font-size: 11px; color: var(--text-soft); }

/* ── ORDRES IMPÉRIAUX ───────────────────────────────────── */
.thr-orders-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.thr-order-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px;
  background: linear-gradient(180deg, rgba(20,40,68,.6), rgba(13,30,48,.7));
  border: 1px solid var(--border); border-top: 2px solid var(--oc); border-radius: 11px;
  cursor: pointer; transition: var(--t); text-align: center;
}
.thr-order-card:hover:not(.disabled) { transform: translateY(-3px); border-color: var(--oc); box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 16px color-mix(in srgb, var(--oc) 35%, transparent); }
.thr-order-card.disabled { opacity: .45; cursor: not-allowed; }
.thr-oc-ico { font-size: 22px; filter: drop-shadow(0 0 8px var(--oc)); }
.thr-oc-name { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; color: #eef6ff; line-height: 1.2; min-height: 26px; display: flex; align-items: center; }
.thr-oc-bonus { font-size: 9.5px; color: #6ee7a0; line-height: 1.2; }
.thr-oc-malus { font-size: 9.5px; color: #fca5a5; line-height: 1.2; }
.thr-oc-dur { font-size: 9px; color: var(--muted); margin-top: 2px; }
.thr-oc-activate {
  margin-top: 4px; width: 100%; padding: 5px; border-radius: 6px; font-size: 10px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; color: var(--oc);
  background: color-mix(in srgb, var(--oc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--oc) 40%, transparent);
}
.thr-order-card.disabled .thr-oc-activate { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--border); }

.thr-order-cooldown {
  padding: 8px 12px; font-size: 11px; color: #fcd34d; text-align: center;
  background: var(--warning-dim); border: 1px solid rgba(245,158,11,.3); border-radius: 9px;
}
.thr-order-cooldown strong { color: #fff; }

.thr-order-active {
  display: flex; flex-direction: column; gap: 9px; padding: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--oc) 14%, transparent), rgba(13,30,48,.6));
  border: 1px solid color-mix(in srgb, var(--oc) 45%, transparent); border-radius: 12px;
}
.thr-oa-head { display: flex; align-items: center; gap: 9px; }
.thr-oa-ico { font-size: 22px; filter: drop-shadow(0 0 8px var(--oc)); }
.thr-oa-head strong { font-size: 14px; font-weight: 800; flex: 1; }
.thr-oa-live { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--oc); animation: thrBlink 1.4s steps(2) infinite; }
@keyframes thrBlink { 50% { opacity: .35; } }
.thr-oa-timer { font-size: 12px; color: var(--text-soft); }
.thr-oa-timer strong { color: #fff; font-weight: 800; }
.thr-oa-effects { display: flex; flex-wrap: wrap; gap: 6px; }
.thr-oa-bonus, .thr-oa-malus { font-size: 10.5px; padding: 3px 8px; border-radius: 6px; }
.thr-oa-bonus { color: #6ee7a0; background: var(--success-dim); }
.thr-oa-malus { color: #fca5a5; background: var(--danger-dim); }
.thr-oa-note { font-size: 10px; color: var(--muted); }

/* ── COLONIES ───────────────────────────────────────────── */
.thr-colony-list { display: flex; flex-direction: column; gap: 7px; }
.thr-colony {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  background: rgba(11,22,38,.5); border: 1px solid var(--border); border-radius: 10px; transition: var(--t);
}
.thr-colony[data-planet-switch] { cursor: pointer; }
.thr-colony[data-planet-switch]:hover { border-color: var(--accent); background: var(--accent-dim); }
.thr-colony.active { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.thr-colony.colonizing { opacity: .7; border-style: dashed; }
.thr-colony-ico { font-size: 20px; }
.thr-colony-info { flex: 1; min-width: 0; }
.thr-colony-info strong { display: block; font-size: 12.5px; font-weight: 700; }
.thr-colony-info small { font-size: 10.5px; color: var(--muted); }
.thr-colony-you { font-style: normal; font-size: 9px; color: #6ee7a0; margin-left: 4px; }
.thr-colony-badge.ok { color: #4ade80; font-size: 12px; }
.thr-colony-go { color: var(--muted); font-size: 16px; }

/* ═══════ MODALE D'ORDRE ═════════════════════════════════ */
.thr-order-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.thr-order-backdrop { position: absolute; inset: 0; background: rgba(4,10,20,.78); backdrop-filter: blur(4px); }
.thr-order-panel {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(24,46,76,.96), rgba(13,30,48,.98));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.thr-om-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.thr-om-ico { font-size: 32px; filter: drop-shadow(0 0 12px var(--oc)); }
.thr-om-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.thr-om-head small { font-size: 11px; color: var(--muted); }
.thr-om-effects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.thr-om-col { display: flex; flex-direction: column; gap: 6px; padding: 11px; background: rgba(11,22,38,.5); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
.thr-om-col span { color: var(--text-soft); }
.thr-om-label { font-size: 10px !important; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.thr-om-label.bonus { color: #6ee7a0 !important; }
.thr-om-label.malus { color: #fca5a5 !important; }
.thr-om-warn { font-size: 11px; color: #fcd34d; line-height: 1.5; background: var(--warning-dim); border: 1px solid rgba(245,158,11,.25); border-radius: 9px; padding: 10px; margin: 0 0 16px; }
.thr-om-actions { display: flex; gap: 10px; }
.thr-om-cancel, .thr-om-confirm { flex: 1; padding: 11px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--t); }
.thr-om-cancel { background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-soft); }
.thr-om-cancel:hover { background: rgba(255,255,255,.1); }
.thr-om-confirm { border: 1px solid var(--oc); color: #fff; background: color-mix(in srgb, var(--oc) 24%, transparent); }
.thr-om-confirm:hover { background: color-mix(in srgb, var(--oc) 38%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--oc) 40%, transparent); }

/* ═══════ RESPONSIVE ═════════════════════════════════════ */
@media (max-width: 1100px) {
  .thr-grid { grid-template-columns: 1fr; }
  .thr-bottom { grid-template-columns: 1fr; }
  .thr-holo { min-height: 420px; order: -1; }
  .thr-orders-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 820px) {
  .thr-topbar { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .thr-crest { justify-content: center; }
  .thr-topbar-right { justify-content: center; flex-wrap: wrap; }
  .thr-title-block h1 { font-size: 24px; letter-spacing: 4px; }
}
@media (max-width: 600px) {
  .thr-res-pills { gap: 7px; }
  .thr-res-pill { min-width: calc(50% - 4px); }
  .thr-orders-grid { grid-template-columns: 1fr 1fr; }
  .thr-holo-stats { grid-template-columns: 1fr 1fr; }
  .thr-title-block h1 { font-size: 21px; letter-spacing: 3px; }
  .thr-quick-actions { width: 100%; }
  .thr-qa { flex: 1; justify-content: center; }
}
