/* ========================================== */
/* PREMIUM PLAYER INTELLIGENCE DASHBOARD      */
/* Redesigned to match Stitch design           */
/* ========================================== */

/* ── Container ───────────────────────────── */
.doctor-report-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px 8px 100px;
}

/* ── Background Darkening Overlay ─────────── */
/* #1 — Darken/blur the background image behind the dashboard */
.doctor-report-container::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

/* ── Wood Frame Override for Home ─────────── */
.doctor-report-container .wood-frame {
  background: linear-gradient(145deg, rgba(18, 14, 8, 0.92), rgba(26, 20, 12, 0.88));
  border: 1px solid rgba(245, 166, 35, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 16px !important;    /* Force margin since gap sometimes fails */
  display: block;
}
.doctor-report-container .wood-frame-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px;                /* #8 — min 20px all sides */
}
.doctor-report-container .section-title {
  font-size: 0.85em;
  color: var(--gold-primary, #F5A623);
  margin-bottom: 16px;          /* #4 — section header spacing */
  letter-spacing: 0.5px;
}

/* ========================================== */
/* 1. PLAYER OVERVIEW CARD                     */
/* ========================================== */
.doctor-overview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  /* #1 — subtle gold inner glow + dark gradient */
  background: linear-gradient(165deg, rgba(30, 22, 10, 0.95) 0%, rgba(8, 6, 4, 0.98) 100%);
  border: 1px solid rgba(240, 165, 0, 0.3);
  box-shadow: inset 0 0 20px rgba(240, 165, 0, 0.04);
  border-radius: 14px;
}
.doc-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Progress Ring (Left) ────────────────── */
/* #3 — gold outer glow pulse on progress ring */
@keyframes ringGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.3)); }
  50%      { filter: drop-shadow(0 0 14px rgba(245, 166, 35, 0.6)); }
}
.doc-big-stat-container {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
  animation: ringGlow 3s ease-in-out infinite;
}
.village-progress-ring {
  width: 100%;
  height: 100%;
  position: relative;
}
.doc-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.doc-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.5;
}
.doc-ring-fill {
  fill: none;
  stroke: var(--gold-primary, #F5A623);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s ease-out;
  filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.4));
}
.doc-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.doc-ring-val {
  font-family: 'Clash-Regular', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1;
}
.doc-ring-label {
  font-size: 0.5em;
  color: var(--gold-primary, #F5A623);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ── TH + Identity (Right) ───────────────── */
.doc-th-container {
  position: relative;
  width: 44px;
  flex-shrink: 0;
}
.doc-th-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
/* #6 — prominent TH badge for Account Doctor (Mini) */
.doc-th-container .th-level-badge {
  font-size: 0.55em;
  padding: 2px 6px;
  border-radius: 6px;
  bottom: -6px;
}
.doc-player-identity {
  flex-grow: 1;
  min-width: 0;
}
/* #2 — player name gold glow + letter spacing */
.doc-player-identity .player-name {
  font-size: 1.1em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(240, 165, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.doc-clan-name {
  color: var(--text-muted, #6b7280);
  font-size: 0.82em;
  margin: 2px 0;
}
.doc-player-tag {
  color: var(--text-secondary, #9ca3af);
  font-size: 0.72em;
  opacity: 0.6;
}

/* ── 4 Key Stats Grid (Premium HUD) ──────── */
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.doc-stat-box {
  background: linear-gradient(135deg, #0d1117 0%, #111820 100%);
  border: 1px solid rgba(240, 165, 0, 0.35);
  border-left: 3px solid #f0a500;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.doc-stat-box:hover {
  box-shadow: inset 0 0 15px rgba(240, 165, 0, 0.1);
  background: #11161d;
}

.doc-stat-label {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: #666666;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-stat-label::before {
  content: "❯";
  color: #f0a500;
  font-size: 8px;
  opacity: 0.8;
}

.doc-stat-val {
  font-family: 'ClashBold', 'Impact', sans-serif;
  font-size: 22px;
  line-height: 1;
  /* Extremely minute glow as requested */
  text-shadow: 0 0 3px color-mix(in srgb, currentColor 40%, transparent);
}

/* Explicit colors for specific stats */
#doc-stat-war {
  color: #ffffff;
}
/* #doc-stat-rush color is dynamically injected by JS */
#doc-stat-strength {
  color: #00ff88;
}
#doc-stat-spike, .spike-text {
  color: #f0a500 !important;
  font-family: 'ClashBold', 'Impact', sans-serif !important;
  font-size: 22px !important;
  font-weight: normal !important;
}

/* ========================================== */
/* 2. ACCOUNT HEALTH — HUD PROGRESS BARS      */
/* ========================================== */
.doc-health-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;                  /* #8 — card padding */
}

/* HUD Bar Row */
.health-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hb-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0a500;
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
  flex-shrink: 0;
}

.hb-label {
  width: 70px;
  font-size: 0.75em;
  color: #e0c97f;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.hb-track {
  flex: 1;
  height: 8px;
  background: #0d0d0d;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hb-fill {
  height: 100%;
  width: 0%;
  border-radius: 0 4px 4px 0;
  transition: width 0.8s ease;
}

/* Gradients and glows based on health */
.hb-fill.green {
  background: linear-gradient(90deg, #00C853, #00FF88);
  box-shadow: 0 0 10px #00ff88;
}
.hb-fill.gold {
  background: linear-gradient(90deg, #F5A623, #F0A500);
  box-shadow: 0 0 10px #f0a500;
}
.hb-fill.red {
  background: linear-gradient(90deg, #EF4444, #FF4444);
  box-shadow: 0 0 10px #ff4444;
}

.hb-pct {
  width: 45px;
  font-family: 'Clash-Regular', sans-serif;
  font-size: 0.9em;
  color: white;
  text-align: right;
  flex-shrink: 0;
}

/* ========================================== */
/* 3. RUSH RISK — COMPACT BAR + BADGE         */
/* ========================================== */
/* ── Rush Risk HUD ──────── */
.doc-rush-card {
  padding: 20px;
  border-radius: 12px;
  /* Default dark border, gets overridden below by state */
  border: 1px solid rgba(255, 255, 255, 0.08); 
  background: linear-gradient(135deg, #11161d 0%, #0d1117 100%);
  animation: rushCardPulse 3s infinite alternate ease-in-out;
}

@keyframes rushCardPulse {
  0% { box-shadow: 0 0 5px rgba(255, 80, 0, 0); }
  100% { box-shadow: 0 0 15px rgba(255, 80, 0, 0.15); }
}

.rush-risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px 0;
}

.rush-risk-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'ClashBold', sans-serif;
  font-size: 0.95em;
  letter-spacing: 0.5px;
  /* The SVG will pick up the text color automatically via currentColor */
}
.rush-warning-icon {
  width: 16px;
  height: 16px;
}

/* ── Dynamic State Colors for Card & Label ──────── */
.rush-rushed { 
  color: #ff3333; 
  background: rgba(255, 0, 0, 0.2); 
  border: 1px solid #ff3333; 
  animation: rushDangerPulse 1s infinite alternate; 
}
.rush-mild { 
  color: #ff8800; 
  background: rgba(255, 100, 0, 0.2); 
  border: 1px solid #ff8800; 
  animation: rushDangerPulse 1.5s infinite alternate; 
}
.rush-balanced { 
  color: #3b82f6; 
  background: rgba(59, 130, 246, 0.15); 
  border: 1px solid rgba(59, 130, 246, 0.5); 
}
.rush-maxed { 
  color: #4ade80; 
  background: rgba(74, 222, 128, 0.15); 
  border: 1px solid rgba(74, 222, 128, 0.5); 
}

@keyframes rushDangerPulse {
  0% { box-shadow: 0 0 4px currentColor; transform: scale(1); }
  100% { box-shadow: 0 0 12px currentColor; transform: scale(1.02); }
}

/* ── Rush Gauge ──────── */
.rush-gauge-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 0 0 10px 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.rush-gauge-fill {
  height: 100%;
  border-radius: 4px 0 0 4px; /* Sharp right cut */
  transition: width 1.2s ease-out;
}

/* Dynamic State Gradient Fills & Animations */
.bar-rushed { 
  background: linear-gradient(90deg, #990000, #ff0000); 
  animation: barFlicker 0.2s infinite alternate;
}
.bar-mild { 
  background: linear-gradient(90deg, #ff4400, #ffaa00); 
  animation: barFlicker 0.4s infinite alternate;
}
.bar-balanced { 
  background: linear-gradient(90deg, #1d4ed8, #60a5fa); 
  box-shadow: 0 0 10px #60a5fa;
}
.bar-maxed { 
  background: linear-gradient(90deg, #15803d, #4ade80); 
  box-shadow: 0 0 10px #4ade80;
}

@keyframes barFlicker {
  0% { opacity: 0.9; box-shadow: 0 0 10px currentColor, 0 0 15px currentColor; }
  100% { opacity: 1; box-shadow: 0 0 15px #ff6400, 0 0 30px #ff4400; }
}

/* ── HUD Typewriter Text ──────── */
.rush-risk-desc {
  color: #ffaa44;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 0.82em;
  letter-spacing: 1px;
  line-height: 1.5;
  display: inline-block;
  margin-top: 4px;
}
.rush-risk-desc::after {
  content: '█';
  animation: blinkCursor 1s step-end infinite;
  margin-left: 4px;
  opacity: 0.7;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.7; }
}

/* ========================================== */
/* 4. UPGRADE PRIORITY CARDS (PREMIUM)        */
/* ========================================== */
#priority-grid-v2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding-top: 8px;
}

.priority-card-premium {
  position: relative;
  flex: 1;
  max-width: 160px;
  background: linear-gradient(160deg, #1a1200 0%, #0d0d0d 100%);
  border: 1px solid rgba(240, 165, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.priority-card-premium:hover {
  transform: scale(1.05);
  border-color: #f0a500;
  box-shadow: 0 0 30px rgba(240, 165, 0, 0.3);
}

.power-up-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f0a500, #cc7700);
  border-radius: 0 12px 0 12px;
  padding: 3px 8px;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  z-index: 3;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.4);
  animation: badgeShimmer 3s infinite linear;
}

@keyframes badgeShimmer {
  0% { filter: brightness(1); }
  5% { filter: brightness(1.3); }
  10% { filter: brightness(1); }
  100% { filter: brightness(1); }
}

.priority-img-container {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.priority-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.priority-card-premium:hover .priority-img {
  filter: brightness(1.15);
  transform: scale(1.05);
}

.img-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, #0d0d0d 100%);
  pointer-events: none;
  z-index: 1;
}

.priority-level {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  font-family: 'ClashBold', sans-serif;
  font-size: 16px;
  color: #f0a500;
  text-shadow: 0 0 10px rgba(240, 165, 0, 0.8);
  z-index: 2;
}

.priority-name {
  color: #aabbcc;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 8px 16px 8px;
  font-weight: 600;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}



/* ========================================== */
/* 5. TIME TO MAX VILLAGE                      */
/* ========================================== */
.time-to-max-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.time-box {
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 180px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.time-box:hover {
  transform: translateY(-4px);
}

.time-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}

.time-val {
  text-transform: lowercase;
}

/* FREE TO PLAY */
.card-f2p {
  background: linear-gradient(160deg, #0d1117 0%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.icon-f2p {
  filter: grayscale(1) opacity(0.8);
}
.label-f2p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #666;
  letter-spacing: 1px;
}
.val-f2p {
  font-family: 'ClashBold', sans-serif;
  font-size: 24px;
  color: #ffffff;
}
.tag-f2p {
  color: #555;
  font-size: 10px;
  margin-top: auto;
}

/* GOLD PASS */
.card-gp {
  background: linear-gradient(160deg, #2a1800 0%, #1a0f00 100%);
  border: 1px solid rgba(240, 165, 0, 0.5);
  box-shadow: 0 0 20px rgba(240, 165, 0, 0.15);
  transform: scale(1.05);
}
.card-gp:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 0 30px rgba(240, 165, 0, 0.3);
}
.icon-gp {
  filter: drop-shadow(0 0 8px rgba(240, 165, 0, 0.6));
}
.label-gp {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #f0a500;
  letter-spacing: 1px;
}
.val-gp {
  font-family: 'ClashBold', sans-serif;
  font-size: 24px;
  color: #f0a500;
}
.tag-gp {
  color: #1a0f00;
  background: #f0a500;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  margin-top: auto;
}

/* HEAVY GEMS */
.card-gems {
  background: linear-gradient(160deg, #0a1520 0%, #060d18 100%);
  border: 1px solid rgba(100, 200, 255, 0.2);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.08);
}
.card-gems:hover {
  box-shadow: 0 0 30px rgba(100, 200, 255, 0.2);
}
.icon-gems {
  filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.6));
}
.label-gems {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #64c8ff;
  letter-spacing: 1px;
}
.val-gems {
  font-family: 'ClashBold', sans-serif;
  font-size: 24px;
  color: #64c8ff;
}
.tag-gems {
  color: #64c8ff;
  font-size: 10px;
  margin-top: auto;
}

/* ========================================== */
/* 6. REMAINING UPGRADES TABLE                 */
/* ========================================== */
.remaining-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.remaining-list.intel-style {
  display: flex;
  flex-direction: column;
  background: transparent;
  gap: 0;
  padding: 0;
  border: none;
}

.intel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  border-left: 2px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease-in-out;
}

.intel-row:hover {
  background: rgba(240, 165, 0, 0.05);
  border-left: 2px solid #f0a500;
}

.intel-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  color: var(--text-secondary, #9ca3af);
  font-size: 13px;
}

.intel-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}

.intel-middle {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}

.intel-bar-track {
  width: 120px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.intel-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

/* Dynamic Fill Colors applied via JS */
.fill-high { background-color: #ff4444; box-shadow: 0 0 10px #ff4444; }
.fill-medium { background-color: #f0a500; box-shadow: 0 0 10px #f0a500; }
.fill-low { background-color: #00ff88; box-shadow: 0 0 10px #00ff88; }
.fill-none { width: 0 !important; background-color: transparent; box-shadow: none; }

.intel-right {
  flex: 1;
  text-align: right;
  font-family: 'Clash-Regular', sans-serif;
  color: #f0a500;
  font-size: 14px;
}

.intel-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,165,0,0.5), transparent);
  margin: 16px 0;
}

.intel-total-section {
  text-align: center;
  padding: 8px 0 16px;
}

.intel-total-label {
  font-family: monospace;
  font-size: 10px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.intel-total-value {
  font-family: 'Clash-Regular', sans-serif;
  font-size: 48px;
  color: #f0a500;
  text-shadow: 0 0 15px rgba(240, 165, 0, 0.4);
  line-height: 1;
  margin-bottom: 4px;
}

.intel-total-sub {
  color: #555;
  font-size: 11px;
}

/* Glow Planner Button */
.btn-planner {
  width: 100%;
  background: linear-gradient(135deg, #f0a500, #cc7700);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Clash-Regular', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-planner:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(240, 165, 0, 0.5);
}

.arrow-slide {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-planner:hover .arrow-slide {
  transform: translateX(6px);
}


/* ========================================== */
/* 7. QUICK ACTIONS                            */
/* ========================================== */
.quick-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

/* Global Card Styles */
.qa-card {
  position: relative;
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.qa-card:hover { transform: translateY(-4px); }

/* Common Inner Elements */
.qa-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.qa-card:hover .qa-image { transform: scale(1.1); }

.qa-title {
  font-family: 'ClashBold', sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
  display: block;   /* Changed from flex to block to allow text-overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.qa-subtitle {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.qa-accent-line {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  border-radius: 2px 2px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.qa-card:hover .qa-accent-line { opacity: 1; }

.qa-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  margin-left: 0px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0px;
  overflow: hidden;
}
.qa-card:hover .qa-arrow {
  opacity: 1;
  transform: translateX(0px);
  margin-left: 6px;
  width: auto;
}

/* 1. PROGRESS INTEL CARD */
.card-intel {
  background: linear-gradient(160deg, #0a1a0a, #0d1a0d);
  border: 1px solid rgba(0,255,136,0.25);
}
.card-intel:hover { box-shadow: 0 0 25px rgba(0,255,136,0.2); }
.card-intel .qa-image { filter: drop-shadow(0 0 15px rgba(0,255,136,0.3)); }
.card-intel .qa-title { color: #00ff88; text-shadow: 0 0 10px rgba(0,255,136,0.3); }
.card-intel .qa-subtitle { color: #446644; }
.card-intel .qa-accent-line { background: #00ff88; box-shadow: 0 0 10px #00ff88; }

/* 2. WAR PLANNER CARD */
.card-war {
  background: linear-gradient(160deg, #1a0a0a, #1a0d0d);
  border: 1px solid rgba(255,68,68,0.25);
}
.card-war:hover { box-shadow: 0 0 25px rgba(255,68,68,0.2); animation: pulse-war-border 2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.card-war .qa-image { filter: drop-shadow(0 0 15px rgba(255,68,68,0.3)); }
.card-war .qa-title { color: #ff4444; text-shadow: 0 0 10px rgba(255,68,68,0.3); }
.card-war .qa-subtitle { color: #664444; }
.card-war .qa-accent-line { background: #ff4444; box-shadow: 0 0 10px #ff4444; }

@keyframes pulse-war-border {
  0% { border-color: rgba(255,68,68,0.25); }
  50% { border-color: rgba(255,68,68,0.6); }
  100% { border-color: rgba(255,68,68,0.25); }
}

/* 3. CWL DASH CARD */
.card-cwl {
  background: linear-gradient(160deg, #0a0f1a, #0d1020);
  border: 1px solid rgba(240,165,0,0.25);
}
.card-cwl:hover { box-shadow: 0 0 25px rgba(240,165,0,0.2); }
.card-cwl:hover .qa-image { animation: shimmer-trophy 1.5s infinite linear; }
.card-cwl .qa-image { filter: drop-shadow(0 0 15px rgba(240,165,0,0.3)); }
.card-cwl .qa-title { color: #f0a500; text-shadow: 0 0 10px rgba(240,165,0,0.3); }
.card-cwl .qa-subtitle { color: #664400; }
.card-cwl .qa-accent-line { background: #f0a500; box-shadow: 0 0 10px #f0a500; }

@keyframes shimmer-trophy {
  0% { filter: drop-shadow(0 0 15px rgba(240,165,0,0.3)) brightness(1); }
  50% { filter: drop-shadow(0 0 25px rgba(240,165,0,0.6)) brightness(1.2); }
  100% { filter: drop-shadow(0 0 15px rgba(240,165,0,0.3)) brightness(1); }
}

/* ========================================== */
/* MOBILE RESPONSIVE                           */
/* ========================================== */
@media (max-width: 600px) {
  .doctor-report-container {
    gap: 16px;                    /* #7 — still generous on mobile */
  }
  .doctor-overview-card {
    padding: 20px 16px;          /* #8 — generous padding */
  }
  .doc-big-stat-container {
    width: 76px;
    height: 76px;
  }
  .doc-ring-val { font-size: 1.2em; }
  .doc-th-container { width: 44px; }
  .th-level-badge {
    font-size: 0.42em; /* substantially smaller on mobile so it doesn't overlap */
    padding: 1px 4px;
    bottom: -14px;
  }

  .account-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
  }
  .doc-stat-val { font-size: 1.05em; }  /* #4 — still readable on mobile */

  /* HUD bars mobile tweaks */
  .health-bar-row {
    padding: 0 8px;
    height: 40px;
  }
  .hb-label {
    width: 60px;
    font-size: 0.65em;
  }
  .hb-pct {
    width: 35px;
    font-size: 0.8em;
  }

  .time-to-max-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .time-box { padding: 10px 6px; }
  .time-val { font-size: 1em; }
  .time-label { font-size: 0.6em; }

  .quick-action-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .quick-action-btn { padding: 10px 4px; }
  .qa-icon { font-size: 1.3em; }
  .qa-label { font-size: 0.68em; }

  /* #5 — Mobile: Upgrade Priority 2+1 layout */
  #priority-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: stretch;
  }
  .priority-card-v2 {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  /* Center the 3rd card spanning full width on its own row */
  .priority-card-v2:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 200px;
    justify-self: center;
  }
}
