* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-color: #e2e8f0;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

#ui-layer {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  min-width: 270px;
  max-width: 310px;
}

h2 {
  margin: 0 0 14px 0;
  font-size: 18px;
  letter-spacing: 1px;
  color: #38bdf8;
  text-transform: uppercase;
}

button {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

button:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

button:active {
  transform: translateY(1px);
}

.secondary-btn {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}

.secondary-btn:hover {
  background: #334155;
  color: #f8fafc;
  border-color: #64748b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

input[type="text"] {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 8px;
  outline: none;
}

input[type="text"]:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

#hud {
  display: none !important;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11.5px;
}

.badge-pilot {
  background: rgba(74, 93, 35, 0.4);
  color: #a3e635;
  border: 1px solid #65a30d;
}

.badge-scavenger {
  background: rgba(255, 140, 0, 0.25);
  color: #fb923c;
  border: 1px solid #ea580c;
}

.hud-code {
  font-family: monospace;
  background: #1e293b;
  padding: 3px 8px;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 11.5px;
}

.hp-bar-bg {
  width: 100%;
  height: 7px;
  background: #334155;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 3px;
}

.hp-bar-fill {
  height: 100%;
  transition: width 0.15s ease;
}

/* Upgrade Station Grid */
.upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.upgrade-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.upgrade-btn:hover:not(:disabled) {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.upgrade-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #334155;
}

/* Power Routing Mode Buttons */
.power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.power-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 3px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.power-btn:hover {
  background: #1e293b;
  color: #f8fafc;
}

.power-btn.active#btn-pwr-engines {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.power-btn.active#btn-pwr-shields {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.power-btn.active#btn-pwr-turrets {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  color: #f472b6;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

/* Boarding Toggle Button */
.board-btn {
  background: #065f46;
  border: 1px solid #10b981;
  color: #a7f3d0;
  font-size: 11px;
  padding: 6px 10px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.board-btn:hover {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.board-btn.boarded {
  background: #7c2d12;
  border-color: #f97316;
  color: #fed7aa;
}

.board-btn.boarded:hover {
  background: #9a3412;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Tech Core Upgrades */
.tech-btn {
  border-color: #db2777;
  color: #f472b6;
  background: rgba(131, 24, 67, 0.2);
}

.tech-btn:hover:not(:disabled) {
  background: #be185d;
  border-color: #f472b6;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #e2e8f0;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

/* --- LOBBY NAVIGATION & ROLE SELECT --- */
.lobby-screen {
  display: flex;
  flex-direction: column;
}

.lobby-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin: -6px 0 14px 0;
  line-height: 1.4;
}

.role-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.role-card:hover {
  background: #0f2744;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.role-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

.role-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.badge-commander {
  background: rgba(147, 51, 234, 0.25);
  color: #c084fc;
  border: 1px solid #9333ea;
}

/* --- PREDETERMINED SECTOR UPGRADE & CHOICE MODAL --- */
#choice-container {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 14px 20px 16px 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 24px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  width: 90%;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.choice-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2px;
}

.choice-close-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 13px;
  font-weight: bold;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-close-btn:hover {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
}

.choice-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #38bdf8;
  text-transform: uppercase;
}

.choice-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.choice-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  user-select: none;
}

.choice-card:hover {
  background: #0369a1;
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.35);
}

.choice-card.unaffordable {
  opacity: 0.6;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

.choice-card.unaffordable:hover {
  background: #1e293b;
  border-color: #334155;
  transform: none;
  box-shadow: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.card-key {
  font-size: 10px;
  font-weight: 800;
  color: #facc15;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #facc15;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-icon {
  font-size: 24px;
  margin: 2px 0 6px 0;
}

.card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.card-desc {
  font-size: 10.5px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.35;
  flex-grow: 1;
}

.card-cost {
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- UPGRADE READINESS NOTIFIER PILL --- */
#upgrade-notify-pill {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  background: linear-gradient(90deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  border-radius: 9999px;
  padding: 9px 22px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  animation: glowPulse 1.8s infinite;
  transition: transform 0.15s ease;
}

#upgrade-notify-pill:hover {
  transform: translateX(-50%) scale(1.04);
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
  50% { box-shadow: 0 0 28px rgba(56, 189, 248, 0.95); }
  100% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
}

.notify-key {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  color: #facc15;
}

/* --- SURGE ALERT BANNER --- */
#surge-alert-banner {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.94), rgba(185, 28, 28, 0.97), rgba(220, 38, 38, 0.94));
  border: 2px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 24px;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.85);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: surgePulse 1s infinite alternate;
  pointer-events: none;
}

@keyframes surgePulse {
  0% { transform: translateX(-50%) scale(0.98); box-shadow: 0 0 18px rgba(239, 68, 68, 0.6); }
  100% { transform: translateX(-50%) scale(1.02); box-shadow: 0 0 38px rgba(239, 68, 68, 1.0); }
}

.surge-icon {
  font-size: 26px;
}

.surge-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.surge-sub {
  font-size: 11px;
  color: #fee2e2;
  font-weight: 600;
  margin-top: 2px;
}

/* --- MOBILE & IPHONE RESPONSIVENESS --- */
@media (max-width: 768px) {
  #ui-layer {
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
  }
}

/* --- TOUCHSCREEN JOYSTICK & CONTROLS (IPHONE SAFARI & MOBILE) --- */
#touch-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Virtual Joystick Container */
#joystick-zone {
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom, 26px));
  left: max(26px, env(safe-area-inset-left, 26px));
  width: 140px;
  height: 140px;
  background: rgba(15, 23, 42, 0.55);
  border: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #38bdf8, #0284c7);
  border: 2px solid #e0f2fe;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.65);
  transform: translate(-50%, -50%);
  pointer-events: none;
  touch-action: none;
}

.joystick-hint {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(56, 189, 248, 0.45);
  pointer-events: none;
  text-transform: uppercase;
  font-family: monospace;
}

/* Touch Action Buttons */
#touch-actions {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: max(24px, env(safe-area-inset-right, 24px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.touch-btn {
  pointer-events: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  color: #f8fafc;
  font-family: monospace;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  width: auto;
}

.touch-btn:active, .touch-btn.active {
  transform: scale(0.92);
}

.touch-btn-fire {
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.88), rgba(185, 28, 28, 0.95));
  border-color: #fca5a5;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
}

.touch-btn-fire:active, .touch-btn-fire.active {
  background: radial-gradient(circle at 35% 35%, rgba(248, 113, 113, 1), rgba(220, 38, 38, 1));
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.95);
}

.touch-btn-icon {
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}

.touch-btn-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 3px;
  pointer-events: none;
}

.touch-btn-row {
  display: flex;
  gap: 12px;
  pointer-events: none;
}

.touch-btn-dock, .touch-btn-focus, .touch-btn-zoom {
  width: 56px;
  height: 56px;
}

.touch-btn-zoom {
  border-color: #a855f7;
}

.touch-btn-zoom:active {
  background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.85), rgba(126, 34, 206, 0.9));
  border-color: #f3e8ff;
}

.touch-btn-dock {
  border-color: #10b981;
}

.touch-btn-dock.in-range {
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
  animation: glowPulseDock 1.5s infinite;
}

.touch-btn-dock.active {
  background: radial-gradient(circle at 35% 35%, rgba(249, 115, 22, 0.85), rgba(194, 65, 12, 0.9));
  border-color: #fed7aa;
}

@keyframes glowPulseDock {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 22px rgba(16, 185, 129, 0.9); }
  100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
}

.touch-btn-focus {
  border-color: #38bdf8;
}

/* Quick Power Mode Routing Selector (Top-Right) */
.touch-power-modes {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(180px, calc(env(safe-area-inset-right, 14px) + 170px));
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.touch-pwr-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  width: auto;
}

.touch-pwr-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

@media (max-width: 600px) {
  #joystick-zone {
    width: 120px;
    height: 120px;
  }
  #joystick-knob {
    width: 50px;
    height: 50px;
  }
  .touch-btn-fire {
    width: 68px;
    height: 68px;
  }
  .touch-btn-dock, .touch-btn-focus, .touch-btn-upgrade, .touch-btn-zoom {
    width: 48px;
    height: 48px;
  }
  .touch-power-modes {
    right: 14px;
    top: 75px;
  }
  .citadel-dock-panel {
    padding: 14px;
    width: 95%;
  }
  .dock-armory-body {
    flex-direction: column;
    gap: 8px;
  }
  .armory-arrow {
    transform: rotate(90deg);
    margin: -2px 0;
  }
  .armory-card {
    min-height: auto;
    width: 100%;
  }
  .dock-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* =====================================================================
   CITADEL DOCK & WEAPON ARMORY OVERLAY
   ===================================================================== */
.citadel-dock-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: 90%;
  max-width: 530px;
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #38bdf8;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35), 0 20px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  color: #f1f5f9;
  animation: fadeInDock 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDock {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dock-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.dock-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-icon {
  font-size: 28px;
}

.dock-title {
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
}

.dock-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.dock-scrap-highlight {
  color: #facc15;
  font-weight: 800;
  font-size: 13px;
}

.dock-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  padding: 4px 8px;
}

.dock-close-btn:hover {
  color: #ef4444;
  transform: none;
  box-shadow: none;
}

.dock-armory-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.armory-card {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.current-weapon-card {
  border-color: rgba(56, 189, 248, 0.4);
}

.next-weapon-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.card-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.armory-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.armory-desc {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.35;
  margin-bottom: 6px;
  flex-grow: 1;
}

.armory-stats {
  font-size: 10px;
  font-family: monospace;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px 6px;
  border-radius: 4px;
}

.armory-cost {
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.armory-arrow {
  font-size: 18px;
  color: #f59e0b;
  font-weight: bold;
}

.dock-actions {
  display: flex;
  gap: 12px;
}

.dock-upgrade-btn {
  flex: 1.4;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.dock-upgrade-btn:disabled {
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.dock-deploy-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dock-deploy-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #94a3b8;
}

/* Touch upgrade button in touch-actions */
.touch-btn-upgrade {
  width: 56px;
  height: 56px;
  border-color: #f59e0b;
  background: radial-gradient(circle at 35% 35%, rgba(245, 158, 11, 0.85), rgba(180, 83, 9, 0.9));
  animation: glowPulseUpgrade 1.6s infinite;
}

@keyframes glowPulseUpgrade {
  0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.9); }
  100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
}




