/* =========================================================
   التوأم الرقمي البحري v2 — Marine Digital Twin Styles
   ========================================================= */

/* ---- Section ---- */
.dt2-section { padding: 60px 20px 50px; }

/* ---- Time Bar ---- */
.dt2-time-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: rgba(8,145,178,.1);
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.dt2-play-btn {
  padding: 7px 18px;
  background: rgba(59,130,246,.2);
  border: 1px solid rgba(59,130,246,.4);
  color: #93c5fd;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85em;
  font-weight: 700;
  transition: all .2s;
}
.dt2-play-btn:hover { background: rgba(59,130,246,.35); }
.dt2-speed-group { display: flex; align-items: center; gap: 5px; }
.dt2-speed-lbl { font-size: .78em; color: var(--text-muted); }
.dt2-spd {
  padding: 5px 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: .78em;
  transition: all .2s;
}
.dt2-spd.active { background: rgba(8,145,178,.3); border-color: #38bdf8; color: #7dd3fc; font-weight: 700; }
.dt2-spd:hover { border-color: rgba(125,211,252,.4); }
.dt2-elapsed { font-size: .82em; color: var(--text-muted); }
.dt2-elapsed strong { color: #7dd3fc; }
.dt2-reset-btn {
  margin-right: auto;
  padding: 6px 14px;
  background: rgba(100,116,139,.15);
  border: 1px solid rgba(100,116,139,.3);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .8em;
  transition: all .2s;
}
.dt2-reset-btn:hover { background: rgba(100,116,139,.28); color: var(--text); }

/* ---- Top Layout ---- */
.dt2-top {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  margin-bottom: 20px;
  align-items: start;
}
@media(max-width:1000px) { .dt2-top { grid-template-columns: 1fr; } }

/* ---- Canvas ---- */
.dt2-sim-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.22);
  box-shadow: 0 8px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.dt2-sim-wrap canvas { width: 100%; height: 100%; display: block; }
.dt2-hud-tl {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
}
.dt2-hud-tr {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
}
.dt2-eco-pill, .dt2-fish-pill {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: .8em;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: background .5s;
  white-space: nowrap;
}
.dt2-eco-pill { background: rgba(16,185,129,.85); color: #fff; }
.dt2-fish-pill { background: rgba(8,145,178,.8); color: #e0f2fe; }

/* ---- KPI Column ---- */
.dt2-kpi-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Gauges */
.dt2-gauges-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dt2-gauge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(8,145,178,.07);
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 14px;
  padding: 10px 8px;
  transition: border-color .3s;
}
.dt2-gauge-box:hover { border-color: rgba(125,211,252,.3); }
.dt2-gauge-box canvas { width: 80px !important; height: 80px !important; }
.dt2-g-label { font-size: .72em; color: var(--text-muted); text-align: center; font-weight: 600; }

/* Sensors */
.dt2-sensors {
  background: rgba(8,145,178,.07);
  border: 1px solid rgba(125,211,252,.12);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dt2-sensor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.03);
  font-size: .78em;
}
.dt2-s-ico { font-size: 1em; flex-shrink: 0; }
.dt2-s-lbl { color: var(--text-muted); flex: 1; }
.dt2-s-val { font-weight: 700; color: #7dd3fc; font-size: .95em; }

/* Mini Economics */
.dt2-mini-econ {
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.15);
  border-radius: 14px;
  padding: 10px 14px;
}
.dt2-me-title { font-size: .8em; font-weight: 700; color: #fbbf24; margin-bottom: 8px; }
.dt2-me-row {
  display: flex;
  justify-content: space-between;
  font-size: .78em;
  color: var(--text-muted);
  padding: 3px 0;
}
.dt2-me-row span:last-child { color: #7dd3fc; font-weight: 600; }
.dt2-me-total { border-top: 1px solid rgba(251,191,36,.15); margin-top: 4px; padding-top: 6px; }
.dt2-me-total span:last-child { color: #fbbf24 !important; font-weight: 800; font-size: 1.05em; }

/* ---- Inputs Grid ---- */
.dt2-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media(max-width:1100px) { .dt2-inputs-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:700px)  { .dt2-inputs-grid { grid-template-columns: 1fr; } }

/* ---- Panel ---- */
.dt2-panel {
  background: rgba(15,23,42,.75);
  border: 1px solid rgba(125,211,252,.1);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.dt2-panel-hdr {
  font-size: .86em;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 14px;
  letter-spacing: .4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dt2-hdr-red { color: #fca5a5; }
.dt2-hdr-green { color: #86efac; }
.dt2-hdr-purple { color: #c4b5fd; }
.dt2-panel-title { font-size: .86em; font-weight: 700; color: #7dd3fc; margin-bottom: 12px; }

/* ---- Slider Row ---- */
.dt2-slider-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}
.dt2-sl-ico { font-size: 1.1em; flex-shrink: 0; width: 22px; text-align: center; }
.dt2-sl-lbl {
  font-size: .74em;
  color: var(--text-muted);
  flex: 0 0 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dt2-sl-track {
  flex: 1;
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.dt2-range {
  position: relative;
  z-index: 2;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  outline: none;
  cursor: pointer;
}
.dt2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 0 6px rgba(0,0,0,.4);
}
.dt2-range::-webkit-slider-thumb:hover { transform: scale(1.25); }
.dt2-range-red::-webkit-slider-thumb { background: #f87171; }
.dt2-range-green::-webkit-slider-thumb { background: #4ade80; }
.dt2-range-red::-webkit-slider-runnable-track { background: rgba(248,113,113,.15); border-radius: 4px; }
.dt2-range-green::-webkit-slider-runnable-track { background: rgba(74,222,128,.15); border-radius: 4px; }
.dt2-sl-val {
  font-size: .74em;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
  text-align: left;
}
.dt2-x2 {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: .7em;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dt2-x2-red:hover { background: rgba(248,113,113,.2); border-color: #f87171; color: #fca5a5; }
.dt2-x2-green:hover { background: rgba(74,222,128,.2); border-color: #4ade80; color: #86efac; }

/* ---- Custom Inputs Panel ---- */
.dt2-custom-panel {}
.dt2-add-btn {
  margin-right: auto;
  padding: 4px 12px;
  background: rgba(167,139,250,.15);
  border: 1px solid rgba(167,139,250,.3);
  color: #c4b5fd;
  border-radius: 7px;
  cursor: pointer;
  font-size: .75em;
  font-family: inherit;
  font-weight: 600;
  transition: all .2s;
}
.dt2-add-btn:hover { background: rgba(167,139,250,.28); }
.dt2-ci-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: .8em;
  padding: 20px 10px;
  line-height: 1.7;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 10px;
}

/* Add Form */
.dt2-add-form {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(167,139,250,.15);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dt2-fi {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: .82em;
  outline: none;
  box-sizing: border-box;
}
.dt2-fi:focus { border-color: rgba(167,139,250,.5); }
.dt2-form-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dt2-fs {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  border-radius: 7px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: .78em;
  cursor: pointer;
  flex: 1;
  min-width: 80px;
}
.dt2-form-btns { display: flex; gap: 8px; }
.dt2-fbtn {
  flex: 1;
  padding: 7px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .8em;
  font-weight: 700;
  transition: all .2s;
}
.dt2-fbtn-ok { background: rgba(167,139,250,.3); color: #c4b5fd; }
.dt2-fbtn-ok:hover { background: rgba(167,139,250,.5); }
.dt2-fbtn-cancel { background: rgba(100,116,139,.15); color: var(--text-muted); }

/* Custom item */
.dt2-ci-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(167,139,250,.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.dt2-ci-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dt2-ci-badge {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .72em;
  font-weight: 700;
}
.dt2-ci-badge.bad { background: rgba(248,113,113,.15); color: #fca5a5; }
.dt2-ci-badge.good { background: rgba(74,222,128,.15); color: #86efac; }
.dt2-ci-rm {
  margin-right: auto;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: .9em;
  padding: 0 4px;
  transition: color .2s;
}
.dt2-ci-rm:hover { color: #f87171; }
.dt2-ci-ctrl { display: flex; align-items: center; gap: 6px; }
.dt2-ci-ctrl .dt2-range { flex: 1; }

/* ---- Scenarios Bar ---- */
.dt2-scenarios-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: .82em;
}
.dt2-sc-title { color: var(--text-muted); font-weight: 600; }
.dt2-sc-pill {
  padding: 6px 14px;
  background: rgba(8,145,178,.1);
  border: 1px solid rgba(125,211,252,.18);
  color: #7dd3fc;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: .82em;
  font-weight: 600;
  transition: all .2s;
}
.dt2-sc-pill:hover { background: rgba(8,145,178,.25); border-color: rgba(125,211,252,.4); transform: translateY(-1px); }
.dt2-sc-danger { border-color: rgba(248,113,113,.25); color: #fca5a5; background: rgba(248,113,113,.08); }
.dt2-sc-danger:hover { background: rgba(248,113,113,.2); }
.dt2-sc-green { border-color: rgba(74,222,128,.25); color: #86efac; background: rgba(74,222,128,.08); }
.dt2-sc-green:hover { background: rgba(74,222,128,.2); }

/* ---- Main Chart ---- */
.dt2-chart-wrap {
  background: rgba(15,23,42,.75);
  border: 1px solid rgba(125,211,252,.1);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}
.dt2-chart-title { font-size: .88em; font-weight: 700; color: #7dd3fc; margin-bottom: 12px; }
.dt2-chart-wrap canvas { width: 100% !important; border-radius: 8px; }
.dt2-chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: .74em;
  color: var(--text-muted);
}
.dt2-leg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }

/* ---- Bottom Grid ---- */
.dt2-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media(max-width:768px) { .dt2-bottom-grid { grid-template-columns: 1fr; } }

/* Species bars */
.dt2-sp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .78em;
}
.dt2-sp-row:last-child { border-bottom: none; }
.dt2-sp-ico { font-size: 1.15em; flex-shrink: 0; width: 22px; text-align: center; }
.dt2-sp-name { color: var(--text-muted); flex: 0 0 110px; }
.dt2-sp-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  overflow: hidden;
}
.dt2-sp-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }
.dt2-sp-val { min-width: 36px; text-align: left; font-weight: 700; color: var(--text); }

/* Missions */
.dt2-mission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  transition: all .3s;
}
.dt2-mission.done { background: rgba(74,222,128,.08); border-color: rgba(74,222,128,.25); }
.dt2-m-tit { font-size: .83em; font-weight: 700; color: var(--text); }
.dt2-m-desc { font-size: .73em; color: var(--text-muted); margin-top: 2px; }
.dt2-m-pts { font-weight: 800; color: #fbbf24; font-size: .85em; white-space: nowrap; }
.dt2-mission.done .dt2-m-pts { color: #4ade80; }

/* ---- Section Subtitle ---- */
.dt2-section-sub { font-size: 1.1em; font-weight: 700; color: var(--text-heading); text-align: center; margin-bottom: 12px; }

/* ---- Map ---- */
.dt2-map-section { margin-bottom: 20px; }
.dt2-map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.2);
  box-shadow: 0 6px 30px rgba(0,0,0,.38);
}
.dt2-map {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 35%, #083854 65%, #052d3d 100%);
}
.dt2-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(0,100,160,.55) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0,80,130,.4) 0%, transparent 45%),
    radial-gradient(circle at 30% 70%, rgba(120,210,180,.18) 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(60,160,130,.12) 0%, transparent 20%);
}
.dt2-marker {
  position: absolute;
  transform: translate(-50%,-50%);
  cursor: pointer;
  z-index: 10;
}
.dt2-mpulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border: 2px solid rgba(125,211,252,.5);
  border-radius: 50%;
  animation: dt2MPulse 2.2s ease-out infinite;
}
@keyframes dt2MPulse {
  0%   { width: 18px; height: 18px; opacity: .85; }
  100% { width: 44px; height: 44px; opacity: 0; }
}
.dt2-mico { font-size: 1.6em; position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); transition: transform .2s; }
.dt2-marker:hover .dt2-mico { transform: scale(1.28); }
.dt2-map-popup {
  position: absolute;
  z-index: 20;
  background: rgba(12,18,34,.96);
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 190px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  font-size: .82em;
  color: #7dd3fc;
}

/* ---- Alerts ---- */
.dt2-alerts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dt2-alert {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .85em;
  font-weight: 600;
  animation: dt2SlideIn .3s ease;
}
.dt2-alert.critical { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.dt2-alert.warn { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.28); color: #fde68a; }
@keyframes dt2SlideIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* ---- Light mode overrides ---- */
body.light-mode .dt2-panel,
body.light-mode .dt2-chart-wrap { background: rgba(255,255,255,.92); border-color: rgba(14,116,144,.15); }
body.light-mode .dt2-sensors,
body.light-mode .dt2-gauge-box,
body.light-mode .dt2-mini-econ { background: rgba(255,255,255,.85); border-color: rgba(14,116,144,.15); }
body.light-mode .dt2-sensor-row { background: rgba(0,0,0,.04); }
body.light-mode .dt2-range { background: rgba(0,0,0,.1); }
body.light-mode .dt2-mission { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
body.light-mode .dt2-sp-track { background: rgba(0,0,0,.08); }
body.light-mode .dt2-add-form { border-color: rgba(124,58,237,.2); }
body.light-mode .dt2-fi,
body.light-mode .dt2-fs { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.12); color: #1e293b; }
body.light-mode .dt2-ci-item { background: rgba(0,0,0,.03); border-color: rgba(124,58,237,.12); }
body.light-mode .dt2-map-popup { background: rgba(255,255,255,.97); }

/* =====================================================
   SMART ANALYSIS PANEL
   ===================================================== */
.dt2-analysis-panel {
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(125,211,252,.16);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.dt2-ap-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dt2-ap-ico { font-size: 1.5em; }
.dt2-ap-title { font-size: .98em; font-weight: 800; color: #7dd3fc; }
.dt2-ap-sub { font-size: .72em; color: var(--text-muted); margin-right: auto; background: rgba(125,211,252,.08); padding: 2px 10px; border-radius: 10px; }
.dt2-ap-loading { text-align:center; color:var(--text-muted); font-size:.85em; padding:20px; }

/* Overall score */
.dt2-ap-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  margin-bottom: 14px;
}
.dt2-ap-score-label { font-size: .76em; color: var(--text-muted); flex-shrink: 0; }
.dt2-ap-score-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
}
.dt2-ap-score-bar { height: 100%; border-radius: 6px; transition: width .7s ease, background .5s; }
.dt2-ap-score-val { font-size: .88em; font-weight: 800; min-width: 46px; text-align: left; }

/* Projection */
.dt2-ap-projection {
  font-size: .82em;
  color: #94a3b8;
  padding: 8px 14px;
  background: rgba(255,255,255,.03);
  border-right: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
  font-style: italic;
}

/* Section titles */
.dt2-ap-section-title {
  font-size: .8em;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 12px 0 8px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}
.dt2-ap-critical { color: #fca5a5; background: rgba(239,68,68,.1); }
.dt2-ap-warn     { color: #fde68a; background: rgba(245,158,11,.1); }
.dt2-ap-good     { color: #86efac; background: rgba(74,222,128,.1); }

/* Cards */
.dt2-ap-card {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid;
  animation: dt2SlideIn .25s ease;
}
.dt2-ap-card-red { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.22); }
.dt2-ap-card-yellow { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.22); }

.dt2-ap-card-hdr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.dt2-ap-card-ico { font-size: 1.6em; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.dt2-ap-card-metric { font-size: .84em; font-weight: 700; color: var(--text); }
.dt2-ap-card-val { font-size: .75em; color: var(--text-muted); margin-top: 2px; }
.dt2-ap-card-val strong { color: #7dd3fc; }
.dt2-ap-detail {
  font-size: .77em;
  color: #94a3b8;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
  font-style: italic;
}
.dt2-ap-recs-title { font-size: .74em; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }

/* Individual recommendation */
.dt2-ap-rec {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.dt2-ap-rec-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(125,211,252,.15);
  color: #7dd3fc;
  font-size: .7em;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dt2-ap-rec-text { font-size: .78em; color: var(--text); flex: 1; }
.dt2-ap-impact { font-size: .68em; color: #94a3b8; white-space: nowrap; }
.dt2-ap-apply {
  padding: 4px 12px;
  background: rgba(74,222,128,.18);
  border: 1px solid rgba(74,222,128,.4);
  color: #86efac;
  border-radius: 7px;
  font-family: inherit;
  font-size: .72em;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.dt2-ap-apply:hover { background: rgba(74,222,128,.32); transform: scale(1.04); }
.dt2-ap-apply-warn {
  background: rgba(251,191,36,.15);
  border-color: rgba(251,191,36,.35);
  color: #fde68a;
}
.dt2-ap-apply-warn:hover { background: rgba(251,191,36,.28); }

/* Good pills */
.dt2-ap-goods-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.dt2-ap-good-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.22);
  border-radius: 20px;
  font-size: .76em;
  color: #86efac;
}
.dt2-ap-good-pill strong { color: #4ade80; }

.dt2-ap-perfect {
  text-align: center;
  padding: 18px;
  font-size: .9em;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,.08);
  border-radius: 12px;
  border: 1px solid rgba(74,222,128,.2);
}

/* Light mode */
body.light-mode .dt2-analysis-panel { background: rgba(255,255,255,.92); border-color: rgba(14,116,144,.15); }
body.light-mode .dt2-ap-score { background: rgba(0,0,0,.04); }
body.light-mode .dt2-ap-card-red { background: rgba(239,68,68,.06); }
body.light-mode .dt2-ap-card-yellow { background: rgba(245,158,11,.06); }
body.light-mode .dt2-ap-rec { background: rgba(0,0,0,.03); }
body.light-mode .dt2-ap-detail { background: rgba(0,0,0,.03); }
body.light-mode .dt2-ap-projection { color: #475569; }
